Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed Jun 10, 2024
1 parent 583b7cf commit 0a59565
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci_build_scm_ubuntu_22.04_nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,17 @@ jobs:
nvhpc_2024_241_Linux_x86_64_cuda_12.3/install
export PATH=${PATH}:${NVCOMPILERS}/${NVARCH}/24.1/compilers/bin
export MANPATH=${MANPATH}:${NVCOMPILERS}/${NVARCH}/24.1/compilers/man
echo "The mpifort installed is:"
mpifort --version
echo "The path to mpifort is:"
command -v mpifort
echo "The nvfortran installed is:"
nvfortran --version
echo "The path to nvfortran is:"
command -v nvfortran
echo "Removing tarball"
rm nvhpc_2024_241_Linux_x86_64_cuda_12.3.tar.gz
- name: Set environment for Nvidia compiler.
run: |
echo "CC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/mpicc" >> $GITHUB_ENV
echo "FC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/mpifort" >> $GITHUB_ENV
echo "CC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvc" >> $GITHUB_ENV
echo "FC=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/nvfortran" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/mpicc" >> $GITHUB_ENV
echo "CMAKE_Fortran_COMPILER=/home/runner/hpc_sdk/Linux_x86_64/24.1/compilers/bin/mpifort" >> $GITHUB_ENV
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ci_plt_scm_rts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI test to plot SCM regression tests.
name: CI test to plot SCM regression test baseliness.

on: [pull_request, workflow_dispatch]

Expand Down Expand Up @@ -50,6 +50,9 @@ jobs:
#######################################################################################
# Plot latest SCM regression tests baselines
#######################################################################################
- name: Create directory for SCM RT baselines
run: mkdir ${dir_bl}

- name: Download SCM regression tests baselines.
run: |
cd ${dir_bl}
Expand Down
8 changes: 4 additions & 4 deletions scm/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ elseif (${CMAKE_Fortran_COMPILER_ID} MATCHES "Intel")

elseif (${CMAKE_Fortran_COMPILER_ID} MATCHES "NVHPC")
if(ENABLE_NVIDIA_OPENACC MATCHES "true")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -acc -Minfo=accel")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -acc -Minfo=accel")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Mstandard -fPIC -acc -Minfo=accel ")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Mstandard -fPIC -acc -Minfo=accel")
else()
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -Mstandard -fPIC")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Mstandard -fPIC")
endif()

if(NOT 32BIT)
Expand Down

0 comments on commit 0a59565

Please sign in to comment.