P4 to Git Change 1706503 by skudchad@skudchad_test2_win_opencl on 2018/11/13 18:06:02
SWDEV-145570 - [HIP] Skip empty bundles ReviewBoardURL = http://ocltc.amd.com/reviews/r/16140/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_platform.cpp#20 edit
This commit is contained in:
@@ -445,6 +445,9 @@ const std::vector<hipModule_t>& modules() {
|
||||
nullptr);
|
||||
|
||||
for (auto&& bundle : bundles) {
|
||||
if (bundle.empty()) {
|
||||
continue;
|
||||
}
|
||||
std::string magic(&bundle[0], sizeof(CLANG_OFFLOAD_BUNDLER_MAGIC_STR) - 1);
|
||||
if (magic.compare(CLANG_OFFLOAD_BUNDLER_MAGIC_STR))
|
||||
continue;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user