Skip to content

Instantly share code, notes, and snippets.

@SadatAnwar
Last active April 5, 2016 23:22
Show Gist options
  • Save SadatAnwar/abd6bc5afa4a3a8cf012a3e129c462b8 to your computer and use it in GitHub Desktop.
Save SadatAnwar/abd6bc5afa4a3a8cf012a3e129c462b8 to your computer and use it in GitHub Desktop.
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/Cellar/clang-omp/2015-04-01/bin/clang-omp++
-- Check for working CXX compiler: /usr/local/Cellar/clang-omp/2015-04-01/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:
/Users/Sadat/workspace/libnd4jC/include/broadcasting.h:291:9: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeInfo);
^
/Users/Sadat/workspace/libnd4jC/include/broadcasting.h:279:8: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeInfo);
^
/Users/Sadat/workspace/libnd4jC/include/broadcasting.h:322:7: warning: unused variable 'tadLength' [-Wunused-variable]
int tadLength = shape::length(tadShapeShapeInfo);
^
/Users/Sadat/workspace/libnd4jC/include/broadcasting.h:323:7: warning: unused variable 'rank' [-Wunused-variable]
int rank = shape::rank(tadShapeShapeInfo);
^
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:9:
/Users/Sadat/workspace/libnd4jC/include/indexreduce.h:676:10: 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:10:
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:470:9: warning: unused variable 'yShape' [-Wunused-variable]
int *yShape = shape::shapeOf(yShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:471:9: warning: unused variable 'resultShape' [-Wunused-variable]
int *resultShape = shape::shapeOf(resultShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:477:8: warning: unused variable 'xRank' [-Wunused-variable]
int xRank = shape::rank(xShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:478:8: warning: unused variable 'yRank' [-Wunused-variable]
int yRank = shape::rank(yShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:479:8: warning: unused variable 'resultRank' [-Wunused-variable]
int resultRank = shape::rank(resultShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:482:9: warning: unused variable 'xOrder' [-Wunused-variable]
char xOrder = shape::order(xShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:483:9: warning: unused variable 'yOrder' [-Wunused-variable]
char yOrder = shape::order(yShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:484:9: warning: unused variable 'resultOrder' [-Wunused-variable]
char resultOrder = shape::order(resultShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:534:9: warning: unused variable 'xOrder' [-Wunused-variable]
char xOrder = shape::order(xShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:535:9: warning: unused variable 'yOrder' [-Wunused-variable]
char yOrder = shape::order(yShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:536:9: warning: unused variable 'resultOrder' [-Wunused-variable]
char resultOrder = shape::order(resultShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:552:9: warning: unused variable 'resultStride' [-Wunused-variable]
int *resultStride = shape::stride(resultShapeBuffer);
^
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:11:
/Users/Sadat/workspace/libnd4jC/include/reduce.h:609:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/reduce.h:665:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/reduce.h:805:9: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeInfo);
^
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:12:
/Users/Sadat/workspace/libnd4jC/include/reduce3.h:669: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:13:
/Users/Sadat/workspace/libnd4jC/include/summarystatsreduce.h:1010:26: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeInfo);
^
/Users/Sadat/workspace/libnd4jC/include/summarystatsreduce.h:1045:25: warning: unused variable 'tadLength' [-Wunused-variable]
int tadLength = shape::length(tadShapeShapeInfo);
^
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:14:
/Users/Sadat/workspace/libnd4jC/include/transform.h:230:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:353:9: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma simd
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:3365:7: warning: unused variable 'imgHeight' [-Wunused-variable]
int imgHeight = (int) extraParams[4];
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:3366:7: warning: unused variable 'imgWidth' [-Wunused-variable]
int imgWidth = (int) extraParams[5];
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:3650:9: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:4098:9: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(xShapeBuffer);
^
/Users/Sadat/workspace/libnd4jC/include/transform.h:4524:72: warning: '&&' within '||' [-Wlogical-op-parentheses]
if(extraParams == NULL || extraParams[0] == 0 || extraParams[0] == 1 && extraParams[1] == shape::MAX_DIMENSION) {
~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/Sadat/workspace/libnd4jC/include/transform.h:4524:72: note: place parentheses around the '&&' expression to silence this
warning
if(extraParams == NULL || extraParams[0] == 0 || extraParams[0] == 1 && extraParams[1] == shape::MAX_DIMENSION) {
^
( )
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1432:18: warning: unused variable 'inputOrder' [-Wunused-variable]
char inputOrder = shape::order(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1459:14: warning: unused variable 'inputOrder' [-Wunused-variable]
char inputOrder = shape::order(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1393:10: warning: unused variable 'stride' [-Wunused-variable]
int *stride = shape::stride(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1395:10: warning: unused variable 'squeezed' [-Wunused-variable]
bool squeezed = false;
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1407:10: warning: unused variable 'coord' [-Wunused-variable]
int *coord = (int *) malloc(sizeof(int) * rank);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1408:10: warning: unused variable 'xShape' [-Wunused-variable]
int *xShape = shape::shapeOf(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1409:10: warning: unused variable 'xStride' [-Wunused-variable]
int *xStride = shape::stride(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1410:10: warning: unused variable 'resultOrder' [-Wunused-variable]
char resultOrder = shape::order(inputShapeInfoPointer);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1550:17: warning: comparison between NULL and non-pointer
('long long' and NULL) [-Wnull-arithmetic]
if (pointer == NULL)
~~~~~~~ ^ ~~~~
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:1550:20: warning: implicit conversion of NULL constant to 'long long'
[-Wnull-conversion]
if (pointer == NULL)
~~ ^~~~
0
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:10:
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: warning: using integer absolute value function 'abs' when
argument is of floating point type [-Wabsolute-value]
T absDiff = abs(diff);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:1891:11: note: in instantiation of member function
'functions::pairwise_transforms::ops::Epsilon<double>::op' requested here
return new pairwise_transforms::ops::Epsilon<T>();
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:135:96: note: in instantiation of member function
'functions::pairwise_transforms::PairWiseTransformOpFactory<double>::getOp' requested here
functions::pairwise_transforms::PairWiseTransform<T> *op = pairWiseTransformOpFactory->getOp(opNum);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:154:47: note: in instantiation of member function
'NativeOpExcutioner<double>::execPairwiseTransform' requested here
DoubleNativeOpExecutioner::getInstance()->execPairwiseTransform(opNum,xPointer,xStride,yPointer,yStride,resultPointer,re...
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: note: use function 'std::abs' instead
T absDiff = abs(diff);
^~~
std::abs
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: note: include the header <cmath> or explicitly provide a
declaration for 'std::abs'
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: warning: using integer absolute value function 'abs' when
argument is of floating point type [-Wabsolute-value]
T absDiff = abs(diff);
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:1891:11: note: in instantiation of member function
'functions::pairwise_transforms::ops::Epsilon<float>::op' requested here
return new pairwise_transforms::ops::Epsilon<T>();
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/../NativeOpExcutioner.h:135:96: note: in instantiation of member function
'functions::pairwise_transforms::PairWiseTransformOpFactory<float>::getOp' requested here
functions::pairwise_transforms::PairWiseTransform<T> *op = pairWiseTransformOpFactory->getOp(opNum);
^
/Users/Sadat/workspace/libnd4jC/blas/cpu/NativeOps.cpp:810:46: note: in instantiation of member function
'NativeOpExcutioner<float>::execPairwiseTransform' requested here
FloatNativeOpExecutioner::getInstance()->execPairwiseTransform(
^
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: note: use function 'std::abs' instead
T absDiff = abs(diff);
^~~
std::abs
/Users/Sadat/workspace/libnd4jC/include/pairwise_transform.h:984:15: note: include the header <cmath> or explicitly provide a
declaration for 'std::abs'
45 warnings generated.
[100%] Linking CXX shared library libnd4j.dylib
cd /Users/Sadat/workspace/libnd4jC/blasbuild/cpu/blas && /usr/local/Cellar/cmake/3.4.1/bin/cmake -E cmake_link_script CMakeFiles/nd4j.dir/link.txt --verbose=1
clang-omp++ -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 -dynamiclib -Wl,-headerpad_max_install_names -o libnd4j.dylib -install_name @rpath/libnd4j.dylib CMakeFiles/nd4j.dir/cpu/NativeBlas.cpp.o CMakeFiles/nd4j.dir/cpu/NativeOps.cpp.o -L/usr/local/lib -framework Accelerate -framework Accelerate -Wl,-rpath,/usr/local/lib
Undefined symbols for architecture x86_64:
"__ZNSt12length_errorD1Ev", referenced from:
__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in NativeOps.cpp.o
"__ZSt9terminatev", referenced from:
___clang_call_terminate in NativeOps.cpp.o
"__ZTISt12length_error", referenced from:
__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in NativeOps.cpp.o
"__ZTVSt12length_error", referenced from:
__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv in NativeOps.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang-3.5: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [blas/libnd4j.dylib] 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