Skip to content

Instantly share code, notes, and snippets.

@Sitin
Created April 10, 2016 22:07
Show Gist options
  • Save Sitin/340d7e8851716af7e06929a6b5bea1b5 to your computer and use it in GitHub Desktop.
Save Sitin/340d7e8851716af7e06929a6b5bea1b5 to your computer and use it in GitHub Desktop.
libnd4j: lots of compilation errors
/usr/local/cuda/include/math_functions.h(9406): error: __lazy_enable_if is not a template
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(74): error: duplicate specifier in declaration
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(82): error: duplicate specifier in declaration
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(1489): error: duplicate specifier in declaration
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(2625): warning: a __host__ function("shape::stride") redeclared with __host__ __device__, hence treated as a __host__ __device__ function
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(3865): error: duplicate specifier in declaration
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(1197): error: declaration is incompatible with "void NativeOps::execBroadcastFloat(Nd4jPointer *, OpType, Nd4jPointer, Nd4jPointer, Nd4jPointer, Nd4jPointer, Nd4jPointer, Nd4jPointer, int)"
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/../NativeOps.h(475): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(2150): warning: variable "length" was declared but never referenced
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce3.h(315): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, unsigned int, int **)
detected during:
instantiation of "functions::reduce3::Reduce3<T>::Reduce3() [with T=double]"
(1462): here
instantiation of "functions::reduce3::ops::ManhattanDistance<T>::ManhattanDistance() [with T=double]"
(1492): here
instantiation of "functions::reduce3::Reduce3<T> *functions::reduce3::Reduce3OpFactory<T>::getOp(int) [with T=double]"
(1526): here
instantiation of "void reduce3NoElementWiseStrideGeneric(int, T *, int *, T *, int *, T *, T *, int *, int) [with T=double]"
(1550): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce3.h(470): error: argument of type "int **" is incompatible with parameter of type "int *"
detected during:
instantiation of "functions::reduce3::Reduce3<T>::Reduce3() [with T=double]"
(1462): here
instantiation of "functions::reduce3::ops::ManhattanDistance<T>::ManhattanDistance() [with T=double]"
(1492): here
instantiation of "functions::reduce3::Reduce3<T> *functions::reduce3::Reduce3OpFactory<T>::getOp(int) [with T=double]"
(1526): here
instantiation of "void reduce3NoElementWiseStrideGeneric(int, T *, int *, T *, int *, T *, T *, int *, int) [with T=double]"
(1550): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce3.h(471): error: argument of type "int *" is incompatible with parameter of type "size_t"
detected during:
instantiation of "functions::reduce3::Reduce3<T>::Reduce3() [with T=double]"
(1462): here
instantiation of "functions::reduce3::ops::ManhattanDistance<T>::ManhattanDistance() [with T=double]"
(1492): here
instantiation of "functions::reduce3::Reduce3<T> *functions::reduce3::Reduce3OpFactory<T>::getOp(int) [with T=double]"
(1526): here
instantiation of "void reduce3NoElementWiseStrideGeneric(int, T *, int *, T *, int *, T *, T *, int *, int) [with T=double]"
(1550): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(339): error: argument of type "int **" is incompatible with parameter of type "int *"
detected during:
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(340): error: argument of type "int *" is incompatible with parameter of type "size_t"
detected during:
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(236): warning: variable "elementsPerTad" was set but never used
detected during:
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(300): warning: variable "n" was declared but never referenced
detected during:
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(172): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, int, int **)
detected during:
instantiation of "void functions::reduce::ReduceFunction<T>::transformCuda(T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(536): here
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/reduce.h(138): warning: variable "resultLength" was declared but never referenced
detected during:
instantiation of "void functions::reduce::ReduceFunction<T>::transformCuda(T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(536): here
instantiation of "functions::reduce::ReduceFunction<T>::ReduceFunction() [with T=double]"
(1181): here
instantiation of "functions::reduce::ops::Mean<T>::Mean() [with T=double]"
(1770): here
instantiation of "functions::reduce::ReduceFunction<T> *functions::reduce::ReduceOpFactory<T>::create(int) [with T=double]"
(1746): here
instantiation of "functions::reduce::ReduceOpFactory<T>::ReduceOpFactory() [with T=double]"
(1891): here
instantiation of "void reduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1939): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/indexreduce.h(333): error: argument of type "int **" is incompatible with parameter of type "int *"
detected during:
instantiation of "functions::indexreduce::IndexReduce<T>::IndexReduce() [with T=double]"
(1103): here
instantiation of "functions::indexreduce::ops::IMax<T>::IMax() [with T=double]"
(1276): here
instantiation of "functions::indexreduce::IndexReduce<T> *functions::indexreduce::IndexReduceOpFactory<T>::getOp(int) [with T=double]"
(1325): here
instantiation of "void indexReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1362): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/indexreduce.h(334): error: argument of type "int *" is incompatible with parameter of type "size_t"
detected during:
instantiation of "functions::indexreduce::IndexReduce<T>::IndexReduce() [with T=double]"
(1103): here
instantiation of "functions::indexreduce::ops::IMax<T>::IMax() [with T=double]"
(1276): here
instantiation of "functions::indexreduce::IndexReduce<T> *functions::indexreduce::IndexReduceOpFactory<T>::getOp(int) [with T=double]"
(1325): here
instantiation of "void indexReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1362): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/indexreduce.h(546): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, int, int **)
detected during:
instantiation of "functions::indexreduce::IndexReduce<T>::IndexReduce() [with T=double]"
(1103): here
instantiation of "functions::indexreduce::ops::IMax<T>::IMax() [with T=double]"
(1276): here
instantiation of "functions::indexreduce::IndexReduce<T> *functions::indexreduce::IndexReduceOpFactory<T>::getOp(int) [with T=double]"
(1325): here
instantiation of "void indexReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int) [with T=double]"
(1362): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/pairwise_transform.h(193): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::pairwise_transforms::PairWiseTransform<T>::PairWiseTransform() [with T=double]"
(746): here
instantiation of "functions::pairwise_transforms::ops::Add<T>::Add() [with T=double]"
(1885): here
instantiation of "functions::pairwise_transforms::PairWiseTransform<T> *functions::pairwise_transforms::PairWiseTransformOpFactory<T>::getOp(int) [with T=double]"
(1963): here
instantiation of "void pairWiseTransformGeneric(int, T *, T *, T *, T *, int *, int *, int *) [with T=double]"
(2002): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/pairwise_transform.h(194): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::pairwise_transforms::PairWiseTransform<T>::PairWiseTransform() [with T=double]"
(746): here
instantiation of "functions::pairwise_transforms::ops::Add<T>::Add() [with T=double]"
(1885): here
instantiation of "functions::pairwise_transforms::PairWiseTransform<T> *functions::pairwise_transforms::PairWiseTransformOpFactory<T>::getOp(int) [with T=double]"
(1963): here
instantiation of "void pairWiseTransformGeneric(int, T *, T *, T *, T *, int *, int *, int *) [with T=double]"
(2002): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/pairwise_transform.h(202): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::pairwise_transforms::PairWiseTransform<T>::PairWiseTransform() [with T=double]"
(746): here
instantiation of "functions::pairwise_transforms::ops::Add<T>::Add() [with T=double]"
(1885): here
instantiation of "functions::pairwise_transforms::PairWiseTransform<T> *functions::pairwise_transforms::PairWiseTransformOpFactory<T>::getOp(int) [with T=double]"
(1963): here
instantiation of "void pairWiseTransformGeneric(int, T *, T *, T *, T *, int *, int *, int *) [with T=double]"
(2002): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/pairwise_transform.h(203): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::pairwise_transforms::PairWiseTransform<T>::PairWiseTransform() [with T=double]"
(746): here
instantiation of "functions::pairwise_transforms::ops::Add<T>::Add() [with T=double]"
(1885): here
instantiation of "functions::pairwise_transforms::PairWiseTransform<T> *functions::pairwise_transforms::PairWiseTransformOpFactory<T>::getOp(int) [with T=double]"
(1963): here
instantiation of "void pairWiseTransformGeneric(int, T *, T *, T *, T *, int *, int *, int *) [with T=double]"
(2002): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/pairwise_transform.h(204): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::pairwise_transforms::PairWiseTransform<T>::PairWiseTransform() [with T=double]"
(746): here
instantiation of "functions::pairwise_transforms::ops::Add<T>::Add() [with T=double]"
(1885): here
instantiation of "functions::pairwise_transforms::PairWiseTransform<T> *functions::pairwise_transforms::PairWiseTransformOpFactory<T>::getOp(int) [with T=double]"
(1963): here
instantiation of "void pairWiseTransformGeneric(int, T *, T *, T *, T *, int *, int *, int *) [with T=double]"
(2002): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/scalar.h(122): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::scalar::ScalarTransform<T>::ScalarTransform() [with T=double]"
(410): here
instantiation of "functions::scalar::ops::Add<T>::Add() [with T=double]"
(1052): here
instantiation of "functions::scalar::ScalarTransform<T> *functions::scalar::ScalarOpFactory<T>::getOp(int) [with T=double]"
(1108): here
instantiation of "void scalarGeneric(int, Nd4jIndex, T, T *, int, T *, T *, int) [with T=double]"
(1128): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/broadcasting.h(107): error: argument of type "int **" is incompatible with parameter of type "int *"
detected during instantiation of "void broadcastGeneric(int, T *, int *, T *, int *, T *, int *, int *, int) [with T=double]"
(921): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/broadcasting.h(108): error: argument of type "int *" is incompatible with parameter of type "size_t"
detected during instantiation of "void broadcastGeneric(int, T *, int *, T *, int *, T *, int *, int *, int) [with T=double]"
(921): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(165): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, Nd4jIndex, int **)
detected during:
instantiation of "functions::transform::Transform<T>::Transform() [with T=double]"
(5243): here
implicit generation of "functions::transform::ops::Abs<T>::Abs() [with T=double]"
(5243): here
instantiation of class "functions::transform::ops::Abs<T> [with T=double]"
(5243): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=double]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=double]"
(5459): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(3420): warning: variable "inOffset" was declared but never referenced
detected during:
instantiation of "functions::transform::ops::Col2Im<T>::Col2Im() [with T=double]"
(5351): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=double]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=double]"
(5459): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(3108): warning: variable "outArrayOffset" was declared but never referenced
detected during:
instantiation of "functions::transform::ops::Im2col<T>::Im2col() [with T=double]"
(5354): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=double]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=double]"
(5459): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(3112): warning: variable "inArrayOffset" was declared but never referenced
detected during:
instantiation of "functions::transform::ops::Im2col<T>::Im2col() [with T=double]"
(5354): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=double]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=double]"
(5459): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(4834): warning: variable "maxCursor" was set but never used
detected during:
instantiation of "void functions::transform::ops::IsMax<T>::doAll(T *, int *, T *, int *, T *) [with T=double]"
(4961): here
instantiation of "void functions::transform::ops::IsMax<T>::execSpecial(T *, int *, T *, int *, T *) [with T=double]"
(5187): here
instantiation of "functions::transform::ops::IsMax<T>::IsMax() [with T=double]"
(5366): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=double]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=double]"
(5459): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/transform.h(4834): warning: variable "maxCursor" was set but never used
detected during:
instantiation of "void functions::transform::ops::IsMax<T>::doAll(T *, int *, T *, int *, T *) [with T=float]"
(4961): here
instantiation of "void functions::transform::ops::IsMax<T>::execSpecial(T *, int *, T *, int *, T *) [with T=float]"
(5187): here
instantiation of "functions::transform::ops::IsMax<T>::IsMax() [with T=float]"
(5366): here
instantiation of "functions::transform::Transform<T> *functions::transform::TransformOpFactory<T>::getOp(int) [with T=float]"
(5424): here
instantiation of "void transformGeneric(int, Nd4jIndex, T *, int, T *, T *, int) [with T=float]"
(5490): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/summarystatsreduce.h(703): error: argument of type "int **" is incompatible with parameter of type "int *"
detected during instantiation of "void summaryStatsReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int, __nv_bool) [with T=double]"
(1563): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/summarystatsreduce.h(704): error: argument of type "int *" is incompatible with parameter of type "size_t"
detected during instantiation of "void summaryStatsReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int, __nv_bool) [with T=double]"
(1563): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/summarystatsreduce.h(859): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, int, int **)
detected during instantiation of "void summaryStatsReduceGeneric(int, T *, int *, T *, T *, int *, int *, int, int, __nv_bool) [with T=double]"
(1563): here
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(2069): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, int, int **)
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(2076): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, int, int **)
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(2088): error: no instance of overloaded function "shape::ind2sub" matches the argument list
argument types are: (int, int *, int, int **)
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/cuda/NativeOps.cu(2095): error: no instance of overloaded function "shape::ind2subC" matches the argument list
argument types are: (int, int *, int, int **)
/Users/sitin/Documents/Workspace/dlf4/libnd4j/include/shape.h(155): warning: extern inline function "shape::shapeCopy(shape::ShapeInformation *)" was referenced but not defined
31 errors detected in the compilation of "/var/folders/nf/77c17zn14v556chcvzkg989c0000gp/T//tmpxft_000087cf_00000000-22_NativeOps.compute_52.cpp1.ii".
-- Removing /Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/CMakeFiles/nd4j.dir/cuda/./nd4j_generated_NativeOps.cu.o
/usr/local/Cellar/cmake/3.5.1/bin/cmake -E remove /Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/CMakeFiles/nd4j.dir/cuda/./nd4j_generated_NativeOps.cu.o
CMake Error at nd4j_generated_NativeOps.cu.o.cmake:257 (message):
Error generating file
/Users/sitin/Documents/Workspace/dlf4/libnd4j/blas/CMakeFiles/nd4j.dir/cuda/./nd4j_generated_NativeOps.cu.o
make[2]: *** [blas/CMakeFiles/nd4j.dir/cuda/nd4j_generated_NativeOps.cu.o] Error 1
make[1]: *** [blas/CMakeFiles/nd4j.dir/all] Error 2
make: *** [all] Error 2
@badend
Copy link

badend commented Nov 13, 2016

same with me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment