Skip to content

Commit

Permalink
Merge pull request #117 from ax3l/fix-ci-hiprand
Browse files Browse the repository at this point in the history
CI: Fix HIP Builds
  • Loading branch information
ax3l authored May 8, 2024
2 parents 74a44d8 + 8418fac commit 513385b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependencies/dependencies_hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
gfortran \
hiprand-dev \
libnuma-dev \
libopenmpi-dev \
openmpi-bin \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ jobs:
# ^
# /opt/rocm-4.1.1/hip/include/hip/hcc_detail/hip_runtime.h:176:9: note: macro 'select_impl_' defined here
# #define select_impl_(_1, _2, impl_, ...) impl_
env: {CXXFLAGS: "-fno-operator-names -Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments -Wno-pass-failed"}
env: {CXXFLAGS: "-Werror -Wall -Wextra -Wpedantic -Wnull-dereference -Wfloat-conversion -Wshadow -Woverloaded-virtual -Wextra-semi -Wunreachable-code -Wno-deprecated-declarations -Wno-gnu-zero-variadic-macro-arguments -Wno-pass-failed"}
steps:
- uses: actions/checkout@v3
- name: Dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ using namespace amrex;
Real compute_dt(const Geometry& geom, const amrex::Real& cfl)
{
const Real* dx = geom.CellSize();
const Real dt = cfl * 1./( std::sqrt(D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
const Real dt = cfl * 1./( std::sqrt(AMREX_D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
return dt;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ using namespace amrex;
Real compute_dt(const Geometry& geom, const amrex::Real& cfl)
{
const Real* dx = geom.CellSize();
const Real dt = cfl * 1./( std::sqrt(D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
const Real dt = cfl * 1./( std::sqrt(AMREX_D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
return dt;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ using namespace amrex;
Real compute_dt(const Geometry& geom, const amrex::Real& cfl)
{
const Real* dx = geom.CellSize();
const Real dt = cfl * 1./( std::sqrt(D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
const Real dt = cfl * 1./( std::sqrt(AMREX_D_TERM( 1./(dx[0]*dx[0]),
+ 1./(dx[1]*dx[1]),
+ 1./(dx[2]*dx[2]))) * PhysConst::c );
return dt;
}

Expand Down

0 comments on commit 513385b

Please sign in to comment.