SWDEV-447973 - Add generic target codeobj test

Add simple tests to verify generic target code
objects.

Change-Id: Iae148c3c938b18247624938512918dbb3cbc462e
This commit is contained in:
taosang2
2024-06-28 17:17:31 -04:00
committed by Tao Sang
parent 168312b97f
commit f581518103
14 changed files with 720 additions and 4 deletions
+1
View File
@@ -34,6 +34,7 @@ THE SOFTWARE.
#include <mutex>
#include <cstdlib>
#include <thread>
#include "hip_test_features.hh"
#ifdef TEST_CLOCK_CYCLE
#define clock_function() clock64()
+2
View File
@@ -36,3 +36,5 @@ typedef enum CTFeatures {
} CTFeatures;
bool CheckIfFeatSupported(enum CTFeatures test_feat, std::string gcn_arch);
bool getGenericTarget(const std::string& agentTarget, std::string& genericTarget);
bool isGenericTargetSupported(char* gcnArchName = nullptr, int deviceId = 0);