SWDEV-393910 - Port gfx940 changes to mainline. (#321)

Change-Id: I77e70bcb15fbd38b1c79c1f68b7e483b2b3e0daf
Tento commit je obsažen v:
ROCm CI Service Account
2023-06-29 08:57:51 +05:30
odevzdal GitHub
rodič a7ab47589b
revize d33ccb3569
23 změnil soubory, kde provedl 190 přidání a 74 odebrání
+2 -1
Zobrazit soubor
@@ -21,6 +21,7 @@ THE SOFTWARE.
*/
#include <hip_test_common.hh>
#include <hip_test_features.hh>
#include <hip/hiprtc.h>
#include <hip/hip_runtime.h>
@@ -52,7 +53,7 @@ TEST_CASE("Unit_unsafeAtomicAdd") {
HIP_CHECK(hipGetDeviceProperties(&props, device));
std::string gfxName(props.gcnArchName);
if (gfxName == "gfx90a" || gfxName.find("gfx90a:") == 0) {
if (CheckIfFeatSupported(CTFeatures::CT_FEATURE_FINEGRAIN_HWSUPPORT, gfxName)) {
hiprtcProgram prog;
hiprtcCreateProgram(&prog, // prog
kernel, // buffer