Skip to content

Commit a77b383

Browse files
hipFile: Remove HIPFILE_STATICs.
1 parent 9257f07 commit a77b383

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/amd_detail/configuration.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ using namespace hipFile;
1515
bool
1616
Configuration::fastpath() const noexcept
1717
{
18-
HIPFILE_STATIC bool fastpath_env{!Environment::force_compat_mode().value_or(false)};
19-
HIPFILE_STATIC bool readExists{!!getHipAmdFileReadPtr()};
20-
HIPFILE_STATIC bool writeExists{!!getHipAmdFileWritePtr()};
18+
bool fastpath_env{!Environment::force_compat_mode().value_or(false)};
19+
bool readExists{!!getHipAmdFileReadPtr()};
20+
bool writeExists{!!getHipAmdFileWritePtr()};
2121
return readExists && writeExists && m_fastpath_override.value_or(fastpath_env);
2222
}
2323

@@ -30,7 +30,7 @@ Configuration::fastpath(bool enabled) noexcept
3030
bool
3131
Configuration::fallback() const noexcept
3232
{
33-
HIPFILE_STATIC bool fallback_env{Environment::allow_compat_mode().value_or(true)};
33+
bool fallback_env{Environment::allow_compat_mode().value_or(true)};
3434
return m_fallback_override.value_or(fallback_env);
3535
}
3636

@@ -43,6 +43,6 @@ Configuration::fallback(bool enabled) noexcept
4343
unsigned int
4444
Configuration::statsLevel() const noexcept
4545
{
46-
HIPFILE_STATIC unsigned int stats_level_env{Environment::stats_level().value_or(0)};
46+
unsigned int stats_level_env{Environment::stats_level().value_or(0)};
4747
return stats_level_env;
4848
}

src/amd_detail/hip.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ catch (...) {
2525
hipAmdFileRead_t
2626
getHipAmdFileReadPtr()
2727
{
28-
HIPFILE_STATIC hipAmdFileRead_t hipAmdFileReadPtr{
28+
hipAmdFileRead_t hipAmdFileReadPtr{
2929
reinterpret_cast<hipAmdFileRead_t>(hipGetProcAddressHelper("hipAmdFileRead"))};
3030
return hipAmdFileReadPtr;
3131
}
3232

3333
hipAmdFileWrite_t
3434
getHipAmdFileWritePtr()
3535
{
36-
HIPFILE_STATIC hipAmdFileWrite_t hipAmdFileWritePtr{
36+
hipAmdFileWrite_t hipAmdFileWritePtr{
3737
reinterpret_cast<hipAmdFileWrite_t>(hipGetProcAddressHelper("hipAmdFileWrite"))};
3838
return hipAmdFileWritePtr;
3939
}

0 commit comments

Comments
 (0)