You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.bat 610 B

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. @title mindspore_build
  3. SET BASEPATH=%CD%
  4. IF NOT EXIST %BASEPATH%/build (
  5. md "build"
  6. )
  7. cd %BASEPATH%/build
  8. SET BUILD_PATH=%CD%
  9. IF NOT EXIST %BUILD_PATH%/mindspore (
  10. md "mindspore"
  11. )
  12. cd %CD%/mindspore
  13. cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CPU=ON -DENABLE_MINDDATA=ON -DUSE_GLOG=ON -G "CodeBlocks - MinGW Makefiles" ../..
  14. IF NOT %errorlevel% == 0 (
  15. goto run_fail
  16. )
  17. cmake --build . --target all -- -j6
  18. IF NOT %errorlevel% == 0 (
  19. goto run_fail
  20. )
  21. cd %BASEPATH%
  22. goto run_eof
  23. :run_fail
  24. cd %BASEPATH%
  25. echo "build fail."
  26. :run_eof