File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ if [ "$1" == "clean" ]; then
6464fi
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
7070cd $KOKKOS_EXAMPLES_SOURCE_DIR || exit 1
@@ -78,6 +78,9 @@ cd cgsolve || exit 1
7878sed -i " s/amdclang++/${COMPILERNAME_TO_USE} /g" ../Makefile.inc
7979# Do not use debug info for the time being.
8080sed -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
8285cmd=" PATH=$AOMP /bin:$PATH CXX=clang++ make KOKKOS_PATH=$KOKKOS_SOURCE_DIR arch=MI250x backend=ompt comp=rocmclang"
8386
You can’t perform that action at this time.
0 commit comments