CURAND Library - Compiling Error - Undefined reference to functions

前端 未结 2 1458
一个人的身影
一个人的身影 2021-01-13 11:58

I have the following code which I am trying to compile using nvcc.

Code:

#include 
#include 
#include 
         


        
2条回答
  •  天命终不由人
    2021-01-13 12:26

    @Wilo Maldonado: just use a linker flag -lcurand and additionally -L/path/to/cuda/libs if you do not have it already

提交回复
热议问题