Skip to content

Commit 7ded5e1

Browse files
authored
Merge pull request #67 from ROCm/dp_kokkos-cgsolve
[kokkos] Clone into KOKKOS_EXAMPLES_SOURCE_DIR, use AOMP_GPU
2 parents 1011364 + a9ebcfa commit 7ded5e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/bin/kokkos_build-cgsolve.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if [ "$1" == "clean" ]; then
6464
fi
6565

6666
# Get the source code
67-
git clone $KOKKOS_EXAMPLES_REPO
67+
git clone $KOKKOS_EXAMPLES_REPO $KOKKOS_EXAMPLES_SOURCE_DIR
6868

6969
# Change to the directory
7070
cd $KOKKOS_EXAMPLES_SOURCE_DIR || exit 1
@@ -78,6 +78,9 @@ cd cgsolve || exit 1
7878
sed -i "s/amdclang++/${COMPILERNAME_TO_USE}/g" ../Makefile.inc
7979
# Do not use debug info for the time being.
8080
sed -i "s/-O3 -g/-O3/g" Makefile
81+
# Replace hard coded gfx90a with AOMP_GPU env var
82+
echo "updating Makefile.inc for AOMP_GPU=$AOMP_GPU"
83+
sed -i "s/-march=gfx90a/-march=$AOMP_GPU/" ../Makefile.inc
8184

8285
cmd="PATH=$AOMP/bin:$PATH CXX=clang++ make KOKKOS_PATH=$KOKKOS_SOURCE_DIR arch=MI250x backend=ompt comp=rocmclang"
8386

0 commit comments

Comments
 (0)