Skip to content

Instantly share code, notes, and snippets.

@SadatAnwar
Last active April 5, 2016 21:50
Show Gist options
  • Save SadatAnwar/7b7a2db7ca9b3b9788b4d8cca9e2859b to your computer and use it in GitHub Desktop.
Save SadatAnwar/7b7a2db7ca9b3b9788b4d8cca9e2859b to your computer and use it in GitHub Desktop.
Syeds-MacBook-Pro:libnd4jC Sadat$ ./buildnativeoperations.sh blas cpu
eval cmake
RUNNING OSX CLANG
Running blas
RUNNING COMMAND cmake
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is Clang 3.5.0
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/bin/clang-omp++
-- Check for working CXX compiler: /usr/local/bin/clang-omp++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
ADDING BLAS
Using apple
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)
CPU BLAS
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Sadat/workspace/libnd4jC/blasbuild/cpu
/usr/local/Cellar/cmake/3.4.1/bin/cmake -H/Users/Sadat/workspace/libnd4jC -B/Users/Sadat/workspace/libnd4jC/blasbuild/cpu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.4.1/bin/cmake -E cmake_progress_start /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/CMakeFiles /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f blas/CMakeFiles/nd4j.dir/build.make blas/CMakeFiles/nd4j.dir/depend
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu && /usr/local/Cellar/cmake/3.4.1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Sadat/workspace/libnd4jC /Users/Sadat/workspace/libnd4jC/blas /Users/Sadat/workspace/libnd4jC/blasbuild/cpu /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas/CMakeFiles/nd4j.dir/DependInfo.cmake --color=
Scanning dependencies of target nd4j
make -f blas/CMakeFiles/nd4j.dir/build.make blas/CMakeFiles/nd4j.dir/build
[ 33%] Building CXX object blas/CMakeFiles/nd4j.dir/cpu/NativeBlas.cpp.o
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas && clang-omp++ -D__CPUBLAS__=true -Dnd4j_EXPORTS -I/Users/Sadat/workspace/libnd4jC/include -I/Users/Sadat/workspace/libnd4jC/blas/../include -Wall -g -fopenmp -std=c++11 -fassociative-math -funsafe-math-optimizations -march=native -O3 -ffast-math -ftree-vectorize -msse2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -o CMakeFiles/nd4j.dir/cpu/NativeBlas.cpp.o -c /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeBlas.cpp
[ 66%] Building CXX object blas/CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas && clang-omp++ -D__CPUBLAS__=true -Dnd4j_EXPORTS -I/Users/Sadat/workspace/libnd4jC/include -I/Users/Sadat/workspace/libnd4jC/blas/../include -Wall -g -fopenmp -std=c++11 -fassociative-math -funsafe-math-optimizations -march=native -O3 -ffast-math -ftree-vectorize -msse2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -o CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o -c /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:6:
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:8:
In file included from /Users/Sadat/workspace/libnd4jC/include/broadcasting.h:12:
/Users/Sadat/workspace/libnd4jC/include/shape.h:3085:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/shape.h:3807:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/shape.h:3811:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:6:
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:8:
In file included from /Users/Sadat/workspace/libnd4jC/include/broadcasting.h:16:
/Users/Sadat/workspace/libnd4jC/include/pairwise_util.h:10:10: fatal error:
'omp.h' file not found
#include <omp.h>
^
3 warnings and 1 error generated.
make[2]: *** [blas/CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o] Error 1
make[1]: *** [blas/CMakeFiles/nd4j.dir/all] Error 2
make: *** [all] Error 2
FINISHING BUILD
Syeds-MacBook-Pro:libnd4jC Sadat$ pwd
/Users/Sadat/workspace/libnd4jC
Syeds-MacBook-Pro:libnd4jC Sadat$ export $LIBND4J_HOME=/Users/Sadat/workspace/libnd4jC
-bash: export: `=/Users/Sadat/workspace/libnd4jC': not a valid identifier
Syeds-MacBook-Pro:libnd4jC Sadat$ ~./bash_profile
-bash: ~./bash_profile: No such file or directory
Syeds-MacBook-Pro:libnd4jC Sadat$ export LIBND4J_HOME=/Users/Sadat/workspace/libnd4jC
Syeds-MacBook-Pro:libnd4jC Sadat$ ./buildnativeoperations.sh blas cpu
eval cmake
RUNNING OSX CLANG
Running blas
RUNNING COMMAND cmake
-- The C compiler identification is AppleClang 7.3.0.7030029
-- The CXX compiler identification is Clang 3.5.0
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/local/bin/clang-omp++
-- Check for working CXX compiler: /usr/local/bin/clang-omp++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
ADDING BLAS
Using apple
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Could NOT find OpenMP (missing: OpenMP_C_FLAGS OpenMP_CXX_FLAGS)
CPU BLAS
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- A library with BLAS API found.
-- Looking for cheev_
-- Looking for cheev_ - found
-- A library with LAPACK API found.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Sadat/workspace/libnd4jC/blasbuild/cpu
/usr/local/Cellar/cmake/3.4.1/bin/cmake -H/Users/Sadat/workspace/libnd4jC -B/Users/Sadat/workspace/libnd4jC/blasbuild/cpu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.4.1/bin/cmake -E cmake_progress_start /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/CMakeFiles /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f blas/CMakeFiles/nd4j.dir/build.make blas/CMakeFiles/nd4j.dir/depend
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu && /usr/local/Cellar/cmake/3.4.1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/Sadat/workspace/libnd4jC /Users/Sadat/workspace/libnd4jC/blas /Users/Sadat/workspace/libnd4jC/blasbuild/cpu /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas/CMakeFiles/nd4j.dir/DependInfo.cmake --color=
Scanning dependencies of target nd4j
make -f blas/CMakeFiles/nd4j.dir/build.make blas/CMakeFiles/nd4j.dir/build
[ 33%] Building CXX object blas/CMakeFiles/nd4j.dir/cpu/NativeBlas.cpp.o
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas && clang-omp++ -D__CPUBLAS__=true -Dnd4j_EXPORTS -I/Users/Sadat/workspace/libnd4jC/include -I/Users/Sadat/workspace/libnd4jC/blas/../include -Wall -g -fopenmp -std=c++11 -fassociative-math -funsafe-math-optimizations -march=native -O3 -ffast-math -ftree-vectorize -msse2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -o CMakeFiles/nd4j.dir/cpu/NativeBlas.cpp.o -c /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeBlas.cpp
[ 66%] Building CXX object blas/CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas && clang-omp++ -D__CPUBLAS__=true -Dnd4j_EXPORTS -I/Users/Sadat/workspace/libnd4jC/include -I/Users/Sadat/workspace/libnd4jC/blas/../include -Wall -g -fopenmp -std=c++11 -fassociative-math -funsafe-math-optimizations -march=native -O3 -ffast-math -ftree-vectorize -msse2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fPIC -o CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o -c /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:6:
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:8:
In file included from /Users/Sadat/workspace/libnd4jC/include/broadcasting.h:12:
/Users/Sadat/workspace/libnd4jC/include/shape.h:3085:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/shape.h:3807:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/shape.h:3811:9: warning: unknown pragma
ignored [-Wunknown-pragmas]
#pragma simd
^
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:6:
In file included from /Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:8:
In file included from /Users/Sadat/workspace/libnd4jC/include/broadcasting.h:16:
/Users/Sadat/workspace/libnd4jC/include/pairwise_util.h:10:10: fatal error:
'omp.h' file not found
#include <omp.h>
^
3 warnings and 1 error generated.
make[2]: *** [blas/CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o] Error 1
make[1]: *** [blas/CMakeFiles/nd4j.dir/all] Error 2
make: *** [all] Error 2
FINISHING BUILD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment