[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where to put .hipVersion?



Hi Jeremy,

Thanks for the info!

On 2022-07-03 19:52, Jeremy Newton wrote:
I noticed ". hipInfo" is installed into the libdir. Is this a required file?

In practice, no. hipcc attempts to read .hipInfo to determine the values of HIP_COMPILER and HIP_RUNTIME.

If .hipInfo is not found, hipcc will default to HIP_COMPILER=clang and HIP_RUNTIME=rocclr. If HIP was built for AMD, .hipInfo will contain HIP_COMPILER=clang and HIP_RUNTIME=rocclr. If HIP was built for NVIDIA, .hipInfo will contain HIP_COMPILER=nvcc and HIP_RUNTIME=cuda.

When building for the AMD runtime, .hipInfo is not necessary at all. When building for NVIDIA, if .hipInfo file is not available, you can specify the values with environment variables:

export HIP_PLATFORM=nvidia
export HIP_COMPILER=nvcc
export HIP_RUNTIME=cuda

Sincerely,
Cory Bloor


Reply to: