File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ using namespace hipFile;
1515bool
1616Configuration::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
3030bool
3131Configuration::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
4343unsigned int
4444Configuration::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}
Original file line number Diff line number Diff line change @@ -25,15 +25,15 @@ catch (...) {
2525hipAmdFileRead_t
2626getHipAmdFileReadPtr ()
2727{
28- HIPFILE_STATIC hipAmdFileRead_t hipAmdFileReadPtr{
28+ hipAmdFileRead_t hipAmdFileReadPtr{
2929 reinterpret_cast <hipAmdFileRead_t>(hipGetProcAddressHelper (" hipAmdFileRead" ))};
3030 return hipAmdFileReadPtr;
3131}
3232
3333hipAmdFileWrite_t
3434getHipAmdFileWritePtr ()
3535{
36- HIPFILE_STATIC hipAmdFileWrite_t hipAmdFileWritePtr{
36+ hipAmdFileWrite_t hipAmdFileWritePtr{
3737 reinterpret_cast <hipAmdFileWrite_t>(hipGetProcAddressHelper (" hipAmdFileWrite" ))};
3838 return hipAmdFileWritePtr;
3939}
You can’t perform that action at this time.
0 commit comments