rlagpu's People
rlagpu's Issues
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_critical_end' and so on
Hello,
I was trying to build the code following the instructions but I came across this error when running the second 'make' command. The full output is shown below:
../../../build/libRLAgpu.a(math_util_gpu.cpp.o): In function `genLowRankMatrixGPU(cublasContext*&, double*, unsigned long, unsigned long, unsigned long, unsigned long)':
math_util_gpu.cpp:(.text+0x3c): undefined reference to `curandCreateGenerator'
math_util_gpu.cpp:(.text+0x58): undefined reference to `curandSetPseudoRandomGeneratorSeed'
math_util_gpu.cpp:(.text+0xe5): undefined reference to `curandGenerateNormalDouble'
math_util_gpu.cpp:(.text+0x10d): undefined reference to `curandGenerateNormalDouble'
math_util_gpu.cpp:(.text+0x175): undefined reference to `curandDestroyGenerator'
../../../build/libRLAgpu.a(rsvdOoC.cpp.o): In function `rsvdOoC_colSampling(double*, double*, double*, double const*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, cusolverDnContext*&, cublasContext*&)':
rsvdOoC.cpp:(.text+0x8a8): undefined reference to `curandCreateGenerator'
rsvdOoC.cpp:(.text+0x8c6): undefined reference to `curandSetPseudoRandomGeneratorSeed'
rsvdOoC.cpp:(.text+0x980): undefined reference to `curandGenerateNormalDouble'
rsvdOoC.cpp:(.text+0xb2e): undefined reference to `curandDestroyGenerator'
rsvdOoC.cpp:(.text+0x12f7): undefined reference to `curandGenerateNormalDouble'
../../../build/libRLAgpu.a(rsvdOoC.cpp.o): In function `rsvdOoC_rowSampling(double*, double*, double*, double const*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, cusolverDnContext*&, cublasContext*&)':
rsvdOoC.cpp:(.text+0x21b5): undefined reference to `curandCreateGenerator'
rsvdOoC.cpp:(.text+0x21d3): undefined reference to `curandSetPseudoRandomGeneratorSeed'
rsvdOoC.cpp:(.text+0x23f7): undefined reference to `curandGenerateNormalDouble'
rsvdOoC.cpp:(.text+0x24d6): undefined reference to `curandDestroyGenerator'
rsvdOoC.cpp:(.text+0x28a2): undefined reference to `curandGenerateNormalDouble'
../../../build/libRLAgpu.a(rSVDgpu.cpp.o): In function `rsvd_colSampling_gpu(double*, double*, double*, double*, unsigned long, unsigned long, unsigned long, unsigned long, cusolverDnContext*&, cublasContext*&)':
rSVDgpu.cpp:(.text+0xdf): undefined reference to `curandCreateGenerator'
rSVDgpu.cpp:(.text+0xfe): undefined reference to `curandSetPseudoRandomGeneratorSeed'
rSVDgpu.cpp:(.text+0x12a): undefined reference to `curandGenerateNormalDouble'
rSVDgpu.cpp:(.text+0x13f): undefined reference to `curandDestroyGenerator'
../../../build/libRLAgpu.a(rSVDgpu.cpp.o): In function `rsvd_rowSampling_gpu(double*, double*, double*, double*, unsigned long, unsigned long, unsigned long, unsigned long, cusolverDnContext*&, cublasContext*&)':
rSVDgpu.cpp:(.text+0x8a6): undefined reference to `curandCreateGenerator'
rSVDgpu.cpp:(.text+0x8c2): undefined reference to `curandSetPseudoRandomGeneratorSeed'
rSVDgpu.cpp:(.text+0x920): undefined reference to `curandGenerateNormalDouble'
rSVDgpu.cpp:(.text+0x932): undefined reference to `curandDestroyGenerator'
../../../build/libRLAgpu.a(math_util_cpu.cpp.o): In function `genNormalRand(double*, unsigned long, unsigned long)':
math_util_cpu.cpp:(.text+0x32): undefined reference to `curandCreateGenerator'
math_util_cpu.cpp:(.text+0x4e): undefined reference to `curandSetPseudoRandomGeneratorSeed'
math_util_cpu.cpp:(.text+0xb4): undefined reference to `curandGenerateNormalDouble'
math_util_cpu.cpp:(.text+0xea): undefined reference to `curandDestroyGenerator'
math_util_cpu.cpp:(.text+0x174): undefined reference to `curandGenerateNormalDouble'
math_util_cpu.cpp:(.text+0x1e1): undefined reference to `curandGenerateNormalDouble'
../../../build/libRLAgpu.a(math_util_cpu.cpp.o): In function `genUniformRand(double*, unsigned long, unsigned long)':
math_util_cpu.cpp:(.text+0x3a2): undefined reference to `curandCreateGenerator'
math_util_cpu.cpp:(.text+0x3be): undefined reference to `curandSetPseudoRandomGeneratorSeed'
math_util_cpu.cpp:(.text+0x418): undefined reference to `curandGenerateUniformDouble'
math_util_cpu.cpp:(.text+0x44e): undefined reference to `curandDestroyGenerator'
math_util_cpu.cpp:(.text+0x4d0): undefined reference to `curandGenerateUniformDouble'
math_util_cpu.cpp:(.text+0x531): undefined reference to `curandGenerateUniformDouble'
../../../build/libRLAgpu.a(math_util_cpu.cpp.o): In function `genLowRankMatrix(double*, unsigned long, unsigned long, unsigned long)':
math_util_cpu.cpp:(.text+0x6f1): undefined reference to `curandCreateGenerator'
math_util_cpu.cpp:(.text+0x70c): undefined reference to `curandSetPseudoRandomGeneratorSeed'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_critical_end'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `omp_get_thread_num'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `omp_get_num_threads'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_parallel_start'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `omp_get_max_threads'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_loop_end_nowait'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_critical_start'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_parallel_end'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_loop_dynamic_next'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to `GOMP_loop_dynamic_start'
collect2: error: ld returned 1 exit status
CMakeFiles/RLAgpuTest.dir/build.make:100: recipe for target 'RLAgpuTest' failed
make[2]: *** [RLAgpuTest] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/RLAgpuTest.dir/all' failed
make[1]: *** [CMakeFiles/RLAgpuTest.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
I guess this is because of a lack of flags -fopenmp and -lcurand. Can you tell me which file should I put them into? Thanks!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.