diff --git a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp index 217a0d8849..effced6dee 100644 --- a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -598,7 +598,7 @@ bool RTCLinkProgram::AddLinkerDataImpl(std::vector& link_data, hiprtcJITIn } bool RTCLinkProgram::AddLinkerFile(std::string file_path, hiprtcJITInputType input_type) { - std::ifstream file_stream{file_path}; + std::ifstream file_stream{file_path, std::ios_base::in | std::ios_base::binary}; if (!file_stream.good()) { return false; }