fix file-not-found detection

Change-Id: Ida84923ed18b3ebf8ffcfd6ee84d8a72f611ecd3


[ROCm/hip commit: fa075091b5]
此提交包含在:
Ben Sander
2016-10-13 11:43:49 -05:00
父節點 7b8e824779
當前提交 17c3b3dd07
+2 -2
查看文件
@@ -118,10 +118,10 @@ hipError_t hipModuleLoad(hipModule_t *module, const char *fname){
ihipDevice_t *currentDevice = ihipGetDevice(deviceId);
std::ifstream in(fname, std::ios::binary | std::ios::ate);
if(!in){
if(!in.is_open() ){
return ihipLogStatus(hipErrorFileNotFound);
}else{
} else {
*module = new ihipModule_t;
size_t size = std::string::size_type(in.tellg());