From e9d7584b02bb00fec0f52cde8fce3061e4970568 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Thu, 2 Aug 2018 15:16:36 +0530 Subject: [PATCH] Remove adipose extension from genco output --- hipamd/lpl_ca/lpl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hipamd/lpl_ca/lpl.hpp b/hipamd/lpl_ca/lpl.hpp index cbd7fe8386..c3992e43c0 100644 --- a/hipamd/lpl_ca/lpl.hpp +++ b/hipamd/lpl_ca/lpl.hpp @@ -80,7 +80,7 @@ inline void copy_kernel_section_to_fat_binary(const std::string& tmp, const std: std::find_if(reader.sections.begin(), reader.sections.end(), [](const ELFIO::section* x) { return x->get_name() == kernel_section(); }); - std::ofstream out{output + fat_binary_extension()}; + std::ofstream out{output}; if (it == reader.sections.end()) { std::cerr << "Warning: no kernels were generated; fat binary shall " @@ -95,8 +95,8 @@ inline void generate_fat_binary(const std::vector& sources, const std::vector& targets, const std::string& flags, const std::string& output) { static const auto d = [](const std::string* f) { remove(f->c_str()); }; - - std::unique_ptr tmp{&output, d}; + std::string temp_str = output + ".tmp"; + std::unique_ptr tmp{&temp_str, d}; redi::ipstream hipcc{make_hipcc_call(sources, targets, flags, *tmp), redi::pstream::pstderr};