Skip to content

Commit 7ad4d9c

Browse files
committed
fix CUDABIN and version.txt
1 parent 9090a13 commit 7ad4d9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/aomp_common_vars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ AOMP_REPOS=${AOMP_REPOS:-$HOME/git/aomp}
2121
CUDA=${CUDA:-/usr/local/cuda}
2222
CUDAT=${CUDAT:-$CUDA/targets}
2323
CUDAINCLUDE=${CUDAINCLUDE:-$CUDA/include}
24-
CUDABIN=${CUDAH:-$CUDA/bin}
24+
CUDABIN=${CUDABIN:-$CUDA/bin}
2525

2626
# Set list of default nvptx subarchitectures to build
2727
# Only Cuda 9 and above supports sm_70
2828
NVPTXGPUS_DEFAULT="30,35,50,60,61"
29-
if [ -f /usr/local/cuda/version.txt ] ; then
29+
if [ -f $CUDA/version.txt ] ; then
3030
if [ `head -1 /usr/local/cuda/version.txt | cut -d " " -f 3 | cut -d "." -f 1` -ge 9 ] ; then
3131
NVPTXGPUS_DEFAULT+=",70"
3232
fi

0 commit comments

Comments
 (0)