From b6ae107883590af3a66f0406fbe9ad1ddfcce0c4 Mon Sep 17 00:00:00 2001 From: Joe Schoonover Date: Fri, 9 Apr 2021 17:37:02 -0600 Subject: [PATCH] Change nvcc platform to "nvidia" * hipcc version 4.0 and later expect HIP_PLATFORM=nvidia for nvidia GPUs and HIP_PLATFORM=amd for AMD gpus. --- bin/hipfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipfc b/bin/hipfc index 176d890ca..7f12e2f0f 100755 --- a/bin/hipfc +++ b/bin/hipfc @@ -299,7 +299,7 @@ if [ "${HIPFORT_GPU:0:3}" == "sm_" ] ; then TARGET_ARCH="nvptx" TARGET_TRIPLE=${TARGET_TRIPLE:-nvptx64-nvidia-cuda} TARGET_LIBS="-L$CUDA_PATH/targets/x86_64-linux/lib -lcudart" - HIPCC_ENV="HIP_PLATFORM=nvcc" + HIPCC_ENV="HIP_PLATFORM=nvidia" HIPCC_OPTS="--gpu-architecture=$HIPFORT_GPU -x cu $CUOPTS" # fixme: add test for minimum cuda version here else