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


[ROCm/hip commit: 26ce431eef]
Tento commit je obsažen v:
foreman
2018-11-13 18:10:36 -05:00
rodič 1f2ac6e17e
revize 67f8bf0270
+3
Zobrazit soubor
@@ -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;