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]
Αυτή η υποβολή περιλαμβάνεται σε:
1 γονέας
3ba9bcba11
υποβολή
c22cedd5f4
1 file changed
+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);
|
||||
|
||||
Reference in new issue
Block a user