clMathLibraries / clSPARSE

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

clSparse build fails on K40 system or any NVidia systems #92

Open kvaragan opened 9 years ago

kvaragan commented 9 years ago

The build fails when trying to look for OpenCL version 1.2 not found,

jpola commented 9 years ago

Hi, you have to install newest nvidia driver to have support for OpenCL 1.2. For Windows platform it is a driver version 350. and above. For linux it is driver 352.21 After installation please execute clinfo program to check if it showing something similar to this output:

Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 1.2 CUDA 7.5.9
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts 
  Platform Extensions function suffix             NV
pavanky commented 9 years ago

The driver supports 1.2, but the problem is with the header files.

@kvaragan You can download OpenCL 1.2 headers from Khronos to fix the builds.

kknox commented 9 years ago

@kvaragan I think you can close this issue; it's resolved right?

kvaragan commented 9 years ago

I have to check this issue, then I will close it, till now I have not used clSparse on NV, I have been only using cuSPARSE.