Skip to content

cuda 13.0 error, no suitable constructor exists #1958

@mlohry

Description

@mlohry

On latest develop and cuda 13.0, I'm hitting this compiler error:

/home/mlohry/dev/build-cuda/external/raja/include/RAJA/policy/cuda/MemUtils_CUDA.hpp(147): error: no suitable constructor exists to convert from "int" to "cudaMemLocation"
      do { cudaError_t code_56792578 = cudaMemAdvise(ptr, nbytes, cudaMemAdviseSetPreferredLocation, device); if (code_56792578 != cudaSuccess && code_56792578 != cudaErrorNotReady) { static constexpr auto func_name_56792578 = "cudaMemAdvise"; static constexpr auto arg_names_56792578 = ::camp::experimental::cuda_get_api_arg_names(func_name_56792578); ::camp::reportError( "CUDA", cudaGetErrorString(code_56792578), func_name_56792578, arg_names_56792578, std::forward_as_tuple(ptr, nbytes, cudaMemAdviseSetPreferredLocation, device), "/home/mlohry/dev/build-cuda/external/raja/include/RAJA/policy/cuda/MemUtils_CUDA.hpp", 147); } } while (false)
                                                                                                     ^

/home/mlohry/dev/build-cuda/external/raja/include/RAJA/policy/cuda/MemUtils_CUDA.hpp(149): error: no suitable constructor exists to convert from "int" to "cudaMemLocation"
     ((int)-1)
     ^

Looks like a camp issue in CAMP_CUDA_API_INVOKE_AND_CHECK.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions