SWDEV-419688 - Do not run GWS init kernel for targets > gfx12 and MI300.
Change-Id: I8e7441268978be71ab8a5a33e7f8bcf69660e500 (cherry picked from commit 36d37ef614909c0f215512aac0c133408d787080)
This commit is contained in:
1 parent
6398f604b0
commit
6a8bc3c718
7 file changed
+39
-12
No files matched your search
@@ -96,6 +96,7 @@ bool getValueFromIsaMeta(amd_comgr_metadata_node_t& isaMeta, const char* key,
|
||||
|
||||
namespace device {
|
||||
extern const char* HipExtraSourceCode;
|
||||
extern const char* HipExtraSourceCodeNoGWS;
|
||||
} // namespace device
|
||||
|
||||
namespace roc {
|
||||
@@ -847,7 +848,11 @@ bool Device::createBlitProgram() {
|
||||
#if defined(USE_COMGR_LIBRARY)
|
||||
if (settings().useLightning_) {
|
||||
if (amd::IS_HIP) {
|
||||
extraKernel = device::HipExtraSourceCode;
|
||||
if (settings().gwsInitSupported_) {
|
||||
extraKernel = device::HipExtraSourceCode;
|
||||
} else {
|
||||
extraKernel = device::HipExtraSourceCodeNoGWS;
|
||||
}
|
||||
} else {
|
||||
extraKernel = SchedulerSourceCode;
|
||||
}
|
||||
@@ -1752,6 +1757,7 @@ bool Device::populateOCLDeviceConstants() {
|
||||
info_.sgprsPerSimd_ =
|
||||
std::numeric_limits<uint32_t>::max(); // gfx10+ does not share SGPRs between waves
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user