From 365d183538e1fb64dcac1a2d8253581bc0be8567 Mon Sep 17 00:00:00 2001 From: Alex Eremin Date: Tue, 6 Feb 2024 23:03:23 +0100 Subject: [PATCH] Fix build after #2657 and #2690 (boost::filesystem) (#2732) --- src/hip/handlehip.cpp | 2 +- src/include/miopen/execution_context.hpp | 1 - src/nogpu/handle.cpp | 2 +- src/ocl/handleocl.cpp | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/hip/handlehip.cpp b/src/hip/handlehip.cpp index 4e08db7bc7..27f947d17a 100644 --- a/src/hip/handlehip.cpp +++ b/src/hip/handlehip.cpp @@ -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 diff --git a/src/include/miopen/execution_context.hpp b/src/include/miopen/execution_context.hpp index d5fa4559c5..43172303a4 100644 --- a/src/include/miopen/execution_context.hpp +++ b/src/include/miopen/execution_context.hpp @@ -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::max(); fs::path best_path; for(auto const& entry : miopen_data()) diff --git a/src/nogpu/handle.cpp b/src/nogpu/handle.cpp index d1ee0f2e44..7172866694 100644 --- a/src/nogpu/handle.cpp +++ b/src/nogpu/handle.cpp @@ -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 diff --git a/src/ocl/handleocl.cpp b/src/ocl/handleocl.cpp index 3e09d592fc..d08edc4896 100644 --- a/src/ocl/handleocl.cpp +++ b/src/ocl/handleocl.cpp @@ -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