Skip to content

Commit

Permalink
Change nvcc platform to "nvidia"
Browse files Browse the repository at this point in the history
* hipcc version 4.0 and later expect HIP_PLATFORM=nvidia for nvidia GPUs
and HIP_PLATFORM=amd for AMD gpus.
  • Loading branch information
fluidnumerics-joe committed Apr 9, 2021
1 parent b101f7c commit b6ae107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hipfc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6ae107

Please sign in to comment.