P4 to Git Change 1781540 by kpyzhov@hip-vdi-pal-win on 2019/05/10 17:10:30

SWDEV-188234 - Corrected reading binary module file in hipModuleLoad().

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#26 edit


[ROCm/clr commit: f8d8559328]
このコミットが含まれているのは:
foreman
2019-05-10 19:19:11 -04:00
コミット c22cedd5f4
+1 -1
ファイルの表示
@@ -59,7 +59,7 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname)
HIP_RETURN(hipErrorInvalidValue);
}
std::ifstream file{fname};
std::ifstream file(fname, std::ios::binary);
if (!file.is_open()) {
HIP_RETURN(hipErrorFileNotFound);