Skip to content

Commit

Permalink
Call compile with correct executable (#3493)
Browse files Browse the repository at this point in the history
  • Loading branch information
richagadgil authored Oct 12, 2024
1 parent fc0d876 commit ddc4c0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/targets/gpu/compile_hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,15 @@ std::vector<std::vector<char>> compile_hip_src_with_hiprtc(std::vector<hiprtc_sr
bool hip_has_flags(const std::vector<std::string>& flags)
{
hiprtc_program prog{" "};

std::string src = " ";
src_file input{"main.cpp", src};
std::vector<src_file> srcs = {input};

try
{
prog.compile(flags, true);
std::string arch = "gfx900";
compile_hip_src(srcs, flags, arch);
return true;
}
catch(...)
Expand Down

0 comments on commit ddc4c0c

Please sign in to comment.