Skip to content

Commit

Permalink
fixing EOSPAC preprocessor macros
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 25, 2024
1 parent d15f43f commit bec2cf5
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions singularity-eos/eos/eos_eospac.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ inline std::size_t EOSPAC::SharedMemorySizeInBytes() const { return shared_size_
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::TemperatureFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1293,7 +1293,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::TemperatureFromDensityInternalEnergy(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::PressureFromDensityTemperature(
const Real rho, const Real temp, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1317,7 +1317,7 @@ template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION void
EOSPAC::FillEos(Real &rho, Real &temp, Real &sie, Real &press, Real &cv, Real &bmod,
const unsigned long output, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
#else
using namespace EospacWrapper;
Expand Down Expand Up @@ -1403,7 +1403,7 @@ EOSPAC::FillEos(Real &rho, Real &temp, Real &sie, Real &press, Real &cv, Real &b
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::InternalEnergyFromDensityTemperature(
const Real rho, const Real temp, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1418,7 +1418,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::InternalEnergyFromDensityTemperature(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::BulkModulusFromDensityTemperature(
const Real rho, const Real temp, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1433,7 +1433,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::BulkModulusFromDensityTemperature(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::SpecificHeatFromDensityTemperature(
const Real rho, const Real temp, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1448,7 +1448,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::SpecificHeatFromDensityTemperature(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::PressureFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1469,7 +1469,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::PressureFromDensityInternalEnergy(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real
EOSPAC::MinInternalEnergyFromDensity(const Real rho, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1490,7 +1490,7 @@ EOSPAC::MinInternalEnergyFromDensity(const Real rho, Indexer_t &&lambda) const {
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::EntropyFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1503,7 +1503,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::EntropyFromDensityInternalEnergy(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::SpecificHeatFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1516,7 +1516,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::SpecificHeatFromDensityInternalEnergy(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::BulkModulusFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1529,7 +1529,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::BulkModulusFromDensityInternalEnergy(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::GruneisenParamFromDensityTemperature(
const Real rho, const Real temperature, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1552,7 +1552,7 @@ PORTABLE_INLINE_FUNCTION Real EOSPAC::GruneisenParamFromDensityTemperature(
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION Real EOSPAC::GruneisenParamFromDensityInternalEnergy(
const Real rho, const Real sie, Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
return 0; // compiler happy
#else
Expand All @@ -1565,7 +1565,7 @@ SG_PIF_NOWARN
template <typename Indexer_t>
PORTABLE_INLINE_FUNCTION void EOSPAC::DensityEnergyFromPressureTemperature(
const Real press, const Real temp, Indexer_t &&lambda, Real &rho, Real &sie) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
#else
using namespace EospacWrapper;
Expand All @@ -1590,7 +1590,7 @@ PORTABLE_INLINE_FUNCTION void
EOSPAC::ValuesAtReferenceState(Real &rho, Real &temp, Real &sie, Real &press, Real &cv,
Real &bmod, Real &dpde, Real &dvdt,
Indexer_t &&lambda) const {
#if defined(__CUDACC__) || defined(__HIPCC__)
#if defined(__CUDA_ARCH__) || __HIP_DEVICE_COMPILE__
EOS_ERROR("EOSPAC calls not supported on device\n");
#else
using namespace EospacWrapper;
Expand Down

0 comments on commit bec2cf5

Please sign in to comment.