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:
foreman
2018-11-13 18:10:36 -05:00
parent 5a126bf678
commit 98f12121ff
+3
Vedi File
@@ -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;