| 783 | } |
| 784 | |
| 785 | size_t GetMaxStackSize(const std::string& procName) { |
| 786 | if (procName.find("gfx9") != std::string::npos || procName.find("gfx8") != std::string::npos) { |
| 787 | return kMaxStackSize9X; |
| 788 | } else if (procName.find("gfx11") != std::string::npos || |
| 789 | procName.find("gfx10") != std::string::npos) { |
| 790 | return kMaxStackSize11X; |
| 791 | } else { |
| 792 | return kMaxStackSize12X; |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | bool Device::create(const Isa& isa) { |
| 797 | assert(!vaCacheAccess_ && !vaCacheMap_); |