Merge pull request #713 from scchan/master-hcc_early_finalize_support

Support more than one device code blobs in a single .kernel section
Цей коміт міститься в:
Maneesh Gupta
2018-10-31 14:04:06 +05:30
зафіксовано GitHub
джерело e17d24b46f 30ce25e627
коміт 7f3e7b5334
2 змінених файлів з 15 додано та 4 видалено
+5
Переглянути файл
@@ -84,6 +84,9 @@ class Bundled_code_header {
std::copy_n(f + y.header.offset, y.header.bundle_sz, std::back_inserter(y.blob));
it += y.header.triple_sz;
x.bundled_code_size = std::max(x.bundled_code_size,
y.header.offset + y.header.bundle_sz);
}
return true;
@@ -123,6 +126,8 @@ class Bundled_code_header {
// MANIPULATORS
Bundled_code_header& operator=(const Bundled_code_header&) = default;
Bundled_code_header& operator=(Bundled_code_header&&) = default;
size_t bundled_code_size = 0;
};
// CREATORS