MCPcopy Create free account
hub / github.com/ROCm/clr / TargetFeatureCheck

Function TargetFeatureCheck

hipamd/src/hip_fatbin.cpp:190–201  ·  view source on GitHub ↗

For sramecc and xnack

Source from the content-addressed store, hash-verified

188
189// For sramecc and xnack
190static std::string TargetFeatureCheck(const std::string& input, std::string feature) {
191 if (input.find(feature) != std::string::npos) {
192 auto feature_p = feature + "+"; // feature present eg: xnack+
193 auto feature_m = feature + "-"; // feature absent eg: xnack-
194 if (input.find(feature_p) != std::string::npos) {
195 return feature_p;
196 } else if (input.find(feature_m) != std::string::npos) {
197 return feature_m;
198 }
199 }
200 return "";
201}
202
203static std::string TargetToGeneric(std::string input) {
204 auto sramecc = TargetFeatureCheck(input, "sramecc");

Callers 1

TargetToGenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected