Adding checks for return type compatibility with CUDA

Change-Id: I09b6bd9a7299f0a97ac9011ea0903a1f81e28251
このコミットが含まれているのは:
Jatin Chaudhary authored and Jatin Chaudhary committed 2020-09-21 00:36:02 -04:00
1 親 36ecdf9c3a
コミット a779350181
2ファイル変更
+6

検索条件に一致するファイルはありません

+3
ファイルの表示
@@ -64,6 +64,9 @@ hipError_t FatBinaryInfo::ExtractFatBinary(const std::vector<hip::Device*>& devi
if (!amd::Os::GetFileHandle(fname_.c_str(), &fdesc_, &fsize_)) {
return hipErrorFileNotFound;
}
if (fsize_ == 0) {
return hipErrorInvalidKernelFile;
}
// Extract the code object from file
hip_error = CodeObject::ExtractCodeObjectFromFile(fdesc_, fsize_,