Use Major/Minor/Step device numbers to differentiate gfx devices

Change-Id: I0901871971a5b33018917ada6c0e69ac7aa91944


[ROCm/ROCR-Runtime commit: a7cbe78366]
このコミットが含まれているのは:
Chris Freehill
2017-10-11 23:43:00 -05:00
コミット 26ebd1727c
ノーマルファイル → 実行可能ファイル
+18
ファイルの表示
@@ -90,6 +90,12 @@ namespace loader {
#if defined(GFX9_BUILD)
gfx900.handle = 900;
gfx901.handle = 901;
gfx901.handle = 902;
gfx903.handle = 903;
gfx903.handle = 904;
gfx903.handle = 905;
gfx903.handle = 906;
gfx907.handle = 907;
#endif // GFX9_BUILD
}
@@ -117,6 +123,18 @@ namespace loader {
return gfx900;
} else if (sname == "AMD:AMDGPU:9:0:1") {
return gfx901;
} else if (sname == "AMD:AMDGPU:9:0:2") {
return gfx902;
} else if (sname == "AMD:AMDGPU:9:0:3") {
return gfx903;
} else if (sname == "AMD:AMDGPU:9:0:4") {
return gfx904;
} else if (sname == "AMD:AMDGPU:9:0:5") {
return gfx905;
} else if (sname == "AMD:AMDGPU:9:0:6") {
return gfx906;
} else if (sname == "AMD:AMDGPU:9:0:7") {
return gfx907;
#endif // GFX_BUILD
} else {
assert(0);