ralna / spral

Sparse Parallel Robust Algorithms Library
https://ralna.github.io/spral/
Other
104 stars 27 forks source link

Error in compilation #139

Closed bharswami closed 11 months ago

bharswami commented 11 months ago

I am trying to compile dense_factor.cu (rename to .cpp). I am getting a compilation error: Error C2485 '__device_builtin__': unrecognized extended attribute spraltestfull C:\Program Files\MATLAB\R2021a\sys\cuda\win64\cuda\include\device_types.h

jfowkes commented 11 months ago

As the extension implies, dense_factor.cu is a CUDA kernel and can only be compiled using NVIDIA's GPU compiler nvcc. It is not required if you are building for CPU.