Skip to content

Commit

Permalink
Fix build after #2657 and #2690 (boost::filesystem) (#2732)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAHEK7 authored Feb 6, 2024
1 parent 66e41dc commit 365d183
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hip/handlehip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Program Handle::LoadProgram(const std::string& program_name,
program_name,
params);
#else
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path();
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path().string();
if(p.IsCodeObjectInMemory())
miopen::WriteFile(p.GetCodeObjectBlob(), path);
else
Expand Down
1 change: 0 additions & 1 deletion src/include/miopen/execution_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ struct ExecutionContext
MIOPEN_LOG_I2("inexact embedded perf database search");
const auto db_id = GetStream().GetTargetProperties().DbId();
const int real_cu_count = GetStream().GetMaxComputeUnits();
namespace fs = boost::filesystem;
int closest_cu = std::numeric_limits<int>::max();
fs::path best_path;
for(auto const& entry : miopen_data())
Expand Down
2 changes: 1 addition & 1 deletion src/nogpu/handle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Program Handle::LoadProgram(const std::string& program_name,
program_name,
params);
#else
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path();
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path().string();
if(p.IsCodeObjectInMemory())
miopen::WriteFile(p.GetCodeObjectBlob(), path);
else
Expand Down
2 changes: 1 addition & 1 deletion src/ocl/handleocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ Program Handle::LoadProgram(const std::string& program_name,
miopen::SaveBinary(
binary, this->GetTargetProperties(), this->GetMaxComputeUnits(), program_name, params);
#else
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path();
auto path = miopen::GetCachePath(false) / boost::filesystem::unique_path().string();
miopen::SaveProgramBinary(p, path.string());
miopen::SaveBinary(path.string(), this->GetTargetProperties(), program_name, params);
#endif
Expand Down

0 comments on commit 365d183

Please sign in to comment.