Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix build after #2657 and #2690 (boost::filesystem) #2732

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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