1 | initial version |
As you have figured out, Cuda 9.0 separated the nppi library into several: nppial.lib, nppicc.lib, nppicom.lib, nppidei.lib, nppif.lib, nppig.lib, nppist.lib nppisu.lib, nppitc.lib and npps.lib.
You'll need to modify the cmake/FindCUDA.cmake file to correctly set the CUDA_nppi_LIBRARY variable to a semicolon separated string of the nppi* libraries.
Open the file and look where this variable is being set. Then add an if/else case for CUDA_VERSION 9.0 to properly set the variable. Here's what I did:
find_cuda_helper_libs(nppc) find_cuda_helper_libs(nppial) find_cuda_helper_libs(nppicc) find_cuda_helper_libs(nppicom) find_cuda_helper_libs(nppidei) find_cuda_helper_libs(nppif) find_cuda_helper_libs(nppig) find_cuda_helper_libs(nppim) find_cuda_helper_libs(nppist) find_cuda_helper_libs(nppisu) find_cuda_helper_libs(nppitc) set(CUDA_nppi_LIBRARY "${CUDA_nppial_LIBRARY};${CUDA_nppicc_LIBRARY};${CUDA_nppicom_LIBRARY};${CUDA_n ppidei_LIBRARY};${CUDA_nppif_LIBRARY};${CUDA_nppig_LIBRARY};${CUDA_nppim_LIBRARY};${CUDA_nppist_LIBRARY };${CUDA_nppisu_LIBRARY};${CUDA_nppitc_LIBRARY}")
After you do this, you will run into a few other issues building: See my post here: link text
2 | No.2 Revision |
As you have figured out, Cuda 9.0 separated the nppi library into several: nppial.lib, nppicc.lib, nppicom.lib, nppidei.lib, nppif.lib, nppig.lib, nppist.lib nppist.lib, nppisu.lib, nppitc.lib and npps.lib.nppitc.lib.
You'll need to modify the cmake/FindCUDA.cmake file to correctly set the CUDA_nppi_LIBRARY variable to a semicolon separated string of the nppi* libraries.
Open the file and look where this variable is being set. Then add an if/else case for CUDA_VERSION 9.0 to properly set the variable. Here's what I did:
find_cuda_helper_libs(nppc) find_cuda_helper_libs(nppial) find_cuda_helper_libs(nppicc) find_cuda_helper_libs(nppicom) find_cuda_helper_libs(nppidei) find_cuda_helper_libs(nppif) find_cuda_helper_libs(nppig) find_cuda_helper_libs(nppim) find_cuda_helper_libs(nppist) find_cuda_helper_libs(nppisu) find_cuda_helper_libs(nppitc) set(CUDA_nppi_LIBRARY "${CUDA_nppial_LIBRARY};${CUDA_nppicc_LIBRARY};${CUDA_nppicom_LIBRARY};${CUDA_n ppidei_LIBRARY};${CUDA_nppif_LIBRARY};${CUDA_nppig_LIBRARY};${CUDA_nppim_LIBRARY};${CUDA_nppist_LIBRARY };${CUDA_nppisu_LIBRARY};${CUDA_nppitc_LIBRARY}")
After you do this, you will run into a few other issues building: See my post here: link text