Skip to content

Commit c6875f4

Browse files
authored
CI: NVHPC 24.1 (#4679)
* CI: NVHPC 24.1 Update NVHPC from 21.11 to 24.1. * Python off: NVHPC Fails on pybind11 Reenable once compiler bug is fixed.
1 parent 11aabdc commit c6875f4

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.github/workflows/cuda.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ jobs:
121121
ccache -s
122122
du -hs ~/.cache/ccache
123123
124-
build_nvhpc21-11-nvcc:
125-
name: NVHPC@21.11 NVCC/NVC++ Release [tests]
124+
build_nvhpc24-1-nvcc:
125+
name: NVHPC@24.1 NVCC/NVC++ Release [tests]
126126
runs-on: ubuntu-20.04
127127
if: github.event.pull_request.draft == false
128128
#env:
@@ -147,7 +147,7 @@ jobs:
147147
ccache -z
148148
149149
source /etc/profile.d/modules.sh
150-
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11
150+
module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/24.1
151151
which nvcc || echo "nvcc not in PATH!"
152152
which nvc++ || echo "nvc++ not in PATH!"
153153
which nvc || echo "nvc not in PATH!"
@@ -165,7 +165,7 @@ jobs:
165165
-DCMAKE_VERBOSE_MAKEFILE=ON \
166166
-DWarpX_COMPUTE=CUDA \
167167
-DWarpX_EB=ON \
168-
-DWarpX_PYTHON=ON \
168+
-DWarpX_PYTHON=OFF \
169169
-DAMReX_CUDA_ARCH=8.0 \
170170
-DWarpX_OPENPMD=ON \
171171
-DWarpX_PSATD=ON \

.github/workflows/dependencies/nvhpc.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ $(dirname "$0")/ccache.sh
3131
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | \
3232
sudo tee /etc/apt/sources.list.d/nvhpc.list
3333
sudo apt update -y && \
34-
sudo apt install -y --no-install-recommends nvhpc-21-11 && \
34+
sudo apt install -y --no-install-recommends nvhpc-24-1 && \
3535
sudo rm -rf /var/lib/apt/lists/* && \
36-
sudo rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/21.11/examples \
37-
/opt/nvidia/hpc_sdk/Linux_x86_64/21.11/profilers \
38-
/opt/nvidia/hpc_sdk/Linux_x86_64/21.11/math_libs/11.5/targets/x86_64-linux/lib/lib*_static*.a
36+
sudo rm -rf /opt/nvidia/hpc_sdk/Linux_x86_64/24.1/examples \
37+
/opt/nvidia/hpc_sdk/Linux_x86_64/24.1/profilers \
38+
/opt/nvidia/hpc_sdk/Linux_x86_64/24.1/math_libs/11.5/targets/x86_64-linux/lib/lib*_static*.a
3939

4040
# things should reside in /opt/nvidia/hpc_sdk now
4141

4242
# activation via:
4343
# source /etc/profile.d/modules.sh
44-
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/21.11
44+
# module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/24.1
4545

4646
# cmake-easyinstall
4747
#

Source/Diagnostics/BTD_Plotfile_Header_Impl.H

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ private:
144144
/** Number of Fabs in the plotfile. */
145145
int m_numFabs;
146146
/** Lower corner physical coordinates of each fab in the plotfile. */
147-
amrex::Vector<amrex::Array<amrex::Real, AMREX_SPACEDIM> > m_glo {{AMREX_D_DECL(0.,0.,0.)}};
147+
amrex::Vector<amrex::Array<amrex::Real, AMREX_SPACEDIM> > m_glo;
148148
/** Upper corner physical coordinates of each fab in the plotfile. */
149-
amrex::Vector<amrex::Array<amrex::Real, AMREX_SPACEDIM> > m_ghi {{AMREX_D_DECL(1.,1.,1.)}};
149+
amrex::Vector<amrex::Array<amrex::Real, AMREX_SPACEDIM> > m_ghi;
150150
std::string m_CellPath;
151151

152152
};

Source/Diagnostics/BTD_Plotfile_Header_Impl.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
using namespace amrex::literals;
2323

2424
BTDPlotfileHeaderImpl::BTDPlotfileHeaderImpl (std::string const & Headerfile_path)
25-
: m_Header_path{Headerfile_path}
25+
: m_Header_path{Headerfile_path},
26+
m_glo{{AMREX_D_DECL(0., 0., 0.)}},
27+
m_ghi{{AMREX_D_DECL(1., 1., 1.)}}
2628
{
2729

2830
}

0 commit comments

Comments
 (0)