clMathLibraries / clSPARSE

a software library containing Sparse functions written in OpenCL
Apache License 2.0
173 stars 60 forks source link

Not building on OS X High Sierra #209

Open DLChopp opened 6 years ago

DLChopp commented 6 years ago

Downloaded clSPARSE and did cmake followed by make. cmake seemed to work fine, but make gives errors when building transform/clsparse-bench.dir/src/main.cpp.o complaining of an undeclared identifier 'cudaErrorHardwareStackError'. There are more of these types of errors shown below. Since I'm on a Mac Pro with AMD cards, don't think cuda is an option. Is there a build option that I missed? Is the cusparse-bench stuff required or is it just testing software? Thanks for any help...

D

[ 57%] Building CXX object benchmarks/cusparse-bench/CMakeFiles/cusparse-bench.dir/src/main.cpp.o In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:32: In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_xSpMdV.hpp:20: /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:181:10: error: use of undeclared identifier 'cudaErrorHardwareStackError' case cudaErrorHardwareStackError: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:183:10: error: use of undeclared identifier 'cudaErrorIllegalInstruction' case cudaErrorIllegalInstruction: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:185:10: error: use of undeclared identifier 'cudaErrorMisalignedAddress' case cudaErrorMisalignedAddress: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:187:10: error: use of undeclared identifier 'cudaErrorInvalidAddressSpace'; did you mean 'cudaErrorInvalidSurface'? case cudaErrorInvalidAddressSpace: ^~~~~~~~ cudaErrorInvalidSurface /usr/local/cuda/include/driver_types.h:400:5: note: 'cudaErrorInvalidSurface' declared here cudaErrorInvalidSurface = 37, ^ In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:32: In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_xSpMdV.hpp:20: /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:189:10: error: use of undeclared identifier 'cudaErrorInvalidPc' case cudaErrorInvalidPc: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:191:10: error: use of undeclared identifier 'cudaErrorIllegalAddress' case cudaErrorIllegalAddress: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:193:10: error: use of undeclared identifier 'cudaErrorInvalidPtx'; did you mean 'cudaErrorInvalidValue'? case cudaErrorInvalidPtx: ^~~~~~~ cudaErrorInvalidValue /usr/local/cuda/include/driver_types.h:214:5: note: 'cudaErrorInvalidValue' declared here cudaErrorInvalidValue = 11, ^ In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:32: In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_xSpMdV.hpp:20: /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:195:10: error: use of undeclared identifier 'cudaErrorInvalidGraphicsContext'; did you mean 'cudaErrorInvalidDevicePointer'? case cudaErrorInvalidGraphicsContext: ^~~~~~~ cudaErrorInvalidDevicePointer /usr/local/cuda/include/driver_types.h:248:5: note: 'cudaErrorInvalidDevicePointer' declared here cudaErrorInvalidDevicePointer = 17, ^ In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:32: In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_xSpMdV.hpp:20: /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:193:10: error: duplicate case value 'cudaErrorInvalidValue' case cudaErrorInvalidPtx: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:63:10: note: previous case defined here case cudaErrorInvalidValue: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:195:10: error: duplicate case value 'cudaErrorInvalidDevicePointer' case cudaErrorInvalidGraphicsContext: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:75:10: note: previous case defined here case cudaErrorInvalidDevicePointer: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:187:10: error: duplicate case value 'cudaErrorInvalidSurface' case cudaErrorInvalidAddressSpace: ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_common.hpp:115:10: note: previous case defined here case cudaErrorInvalidSurface: ^ In file included from /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:37: /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/functions/cufunc_xSpMSpM.hpp:262:5: error: unknown type name 'csrgemm2Info_t' csrgemm2Info_t info; ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:121:3: error: use of undeclared identifier 'po' po::options_description desc( "cuSPARSE bench command line options" ); ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:122:3: error: use of undeclared identifier 'desc' desc.add_options() ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:124:20: error: use of undeclared identifier 'po' ( "dirpath,d", po::value( &root_dir ), "Matrix directory" ) ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:125:16: error: use of undeclared identifier 'po' ( "alpha", po::value( &alpha )->default_value( 1.0f ), "specifies the scalar alpha" ) ^ /Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:125:32: error: expected '(' for function-style cast or type construction ( "alpha", po::value( &alpha )->default_value( 1.0f ), "specifies the scalar alpha" )


/Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:125:43: error: member reference base type 'double' is not a structure or union
    ( "alpha", po::value<double>( &alpha )->default_value( 1.0f ), "specifies the scalar alpha" )
                                ~~~~~~~~~~^ ~~~~~~~~~~~~~
/Users/chopp/Documents/code/clSPARSE-master/src/benchmarks/cusparse-bench/src/main.cpp:126:15: error: use of undeclared identifier 'po'
    ( "beta", po::value<double>( &beta )->default_value( 0.0f ), "specifies the scalar beta" )
              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]