Update to modern cmake.
Adds support for find_package(), locates dependencies with
find_package(), swaps the roles of /hsa/include/hsa and /include/hsa
as well as /lib & /hsa/lib.
Kernel code objects no longer build at every make call but only
as needed. Dependencies are tracked through to clang.
Device lib is still located with directory searches. build_devicelibs.sh
does not yet install the cmake config files on the build systems.
Corrects DAZ mode mismatch in code object compilation.
Still needs updating to compiler properties rather than direct
manipulation of CMAKE_CXX_FLAGS.
Change-Id: I02d946c8a77d5cf753681f8e3d3153fca4aae86a
[ROCm/ROCR-Runtime commit: 55a4f01b16]
This commit is contained in:
@@ -122,7 +122,9 @@ void ExtensionEntryPoints::UnloadImage() {
|
||||
InitAmdExtTable();
|
||||
InitImageExtTable();
|
||||
core::hsa_internal_api_table_.Reset();
|
||||
#ifdef HSA_IMAGE_SUPPORT
|
||||
rocr::image::ReleaseImageRsrcs();
|
||||
#endif
|
||||
}
|
||||
|
||||
void ExtensionEntryPoints::Unload() {
|
||||
@@ -151,6 +153,7 @@ void ExtensionEntryPoints::Unload() {
|
||||
}
|
||||
|
||||
bool ExtensionEntryPoints::LoadImage() {
|
||||
#ifdef HSA_IMAGE_SUPPORT
|
||||
// Consult user input on linking to Image implementation
|
||||
bool disable_image = core::Runtime::runtime_singleton_->flag().disable_image();
|
||||
if (disable_image) {
|
||||
@@ -172,6 +175,7 @@ bool ExtensionEntryPoints::LoadImage() {
|
||||
|
||||
// Update Amd Ext Api table Api that deals with Images
|
||||
UpdateAmdExtTable(func);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user