From 8d08142918f6784bb2c70de32a5cc99d8ab746df Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 2 May 2023 15:16:52 -0700 Subject: Fix: rocFFT 5.5 (#3888) ``` /opt/rocm-5.5.0/include/rocfft.h:16:2: error: "This file is deprecated. Use the header file from /opt/rocm-5.5.0/include/rocfft/rocfft.h by using #include " [-Werror,-W#warnings] warning "This file is deprecated. Use the header file from /opt/rocm-5.5.0/include/rocfft/rocfft.h by using #include " ^ ``` --- Source/Particles/PhotonParticleContainer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Particles/PhotonParticleContainer.cpp') diff --git a/Source/Particles/PhotonParticleContainer.cpp b/Source/Particles/PhotonParticleContainer.cpp index dc4c1b122..30d51f383 100644 --- a/Source/Particles/PhotonParticleContainer.cpp +++ b/Source/Particles/PhotonParticleContainer.cpp @@ -177,7 +177,7 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti, {exteb_runtime_flag, qed_runtime_flag}, np_to_push, [=] AMREX_GPU_DEVICE (long i, auto exteb_control, - [[maybe_unused]] auto qed_control) { + auto qed_control) { if (do_copy) copyAttribs(i); ParticleReal x, y, z; GetPosition(i, x, y, z); @@ -210,6 +210,8 @@ PhotonParticleContainer::PushPX (WarpXParIter& pti, evolve_opt(ux[i], uy[i], uz[i], Exp, Eyp, Ezp, Bxp, Byp, Bzp, dt, p_optical_depth_BW[i]); } +#else + amrex::ignore_unused(qed_control); #endif UpdatePositionPhoton( x, y, z, ux[i], uy[i], uz[i], dt ); -- cgit v1.2.3