troubleshooting/BUILD_TROUBLESHOOTING.md
This guide covers important build flags used for debugging crashes and performance issues in libnd4j.
SD_GCC_FUNC_TRACE cmake flagmvn -Dlibnd4j.calltrace=ON clean install
-O0) to preserve debugging information-finstrument-functions compiler flag-gmvn -Dlibnd4j.printmath=ON clean install
SD_PRINT_MATH compile definitionmvn -Dlibnd4j.printindices=ON clean install
PRINT_INDICES compile definitionmvn -Dlibnd4j.calltrace=ON clean install
mvn -Dlibnd4j.printmath=ON clean install
mvn -Dlibnd4j.printindices=ON clean install
For comprehensive debugging, you can combine multiple flags:
mvn -Dlibnd4j.calltrace=ON -Dlibnd4j.printmath=ON -Dlibnd4j.printindices=ON clean install