MCPcopy Create free account
hub / github.com/RenderKit/oidn / getArch

Method getArch

devices/hip/hip_device.cpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 HIPArch HIPDevice::getArch(const hipDeviceProp_t& prop)
97 {
98 const std::string name = getArchName(prop);
99 if (name == "gfx1030" || name == "gfx1031" || name == "gfx1032" || name == "gfx1034" ||
100 name == "gfx1035" || name == "gfx1036")
101 return HIPArch::DL;
102 if (name == "gfx1100" || name == "gfx1101" || name == "gfx1102" || name == "gfx1103" ||
103 name == "gfx1150" || name == "gfx1151" || name == "gfx1152" ||
104 name == "gfx1200" || name == "gfx1201")
105 return HIPArch::WMMA;
106 else
107 return HIPArch::Unknown;
108 }
109
110 bool HIPDevice::isSupported(int deviceID)
111 {

Callers 1

newHIPConvFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected