Skip to content

Commit 02dea2d

Browse files
committed
Add more virtual architecture option
1 parent 3932dbe commit 02dea2d

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

include/nbl/video/CCUDADevice.h

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,31 @@ class NBL_API2 CCUDADevice : public core::IReferenceCounted
4343
EVA_72,
4444
EVA_75,
4545
EVA_80,
46+
EVA_86,
47+
EVA_87,
48+
EVA_88,
49+
EVA_89,
50+
EVA_90,
51+
EVA_90A,
52+
EVA_100,
53+
EVA_100A,
54+
EVA_100F,
55+
EVA_103,
56+
EVA_103A,
57+
EVA_103F,
58+
EVA_110,
59+
EVA_110A,
60+
EVA_110F,
61+
EVA_120,
62+
EVA_120A,
63+
EVA_120F,
64+
EVA_121,
65+
EVA_121A,
66+
EVA_121F,
4667
EVA_COUNT
4768
};
4869
E_VIRTUAL_ARCHITECTURE getVirtualArchitecture() const;
4970

50-
~CCUDADevice() override;
5171

5272
core::SRange<const char* const> geDefaultCompileOptions() const;
5373

@@ -83,6 +103,7 @@ class NBL_API2 CCUDADevice : public core::IReferenceCounted
83103
static constexpr uint32_t AllocationGranularityLocationTypeCount = 5u;
84104
struct SNativeState;
85105
CCUDADevice(core::smart_refctd_ptr<CVulkanConnection>&& vulkanConnection, IPhysicalDevice* const vulkanDevice, const E_VIRTUAL_ARCHITECTURE virtualArchitecture, std::unique_ptr<SNativeState>&& nativeState, core::smart_refctd_ptr<CCUDAHandler>&& handler);
106+
~CCUDADevice() override;
86107
bool isValid() const;
87108

88109
const system::logger_opt_ptr m_logger;

src/nbl/video/CCUDADevice.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,22 @@ constexpr const char* VirtualArchCompileOption[] = {
5656
"-arch=compute_88",
5757
"-arch=compute_89",
5858
"-arch=compute_90",
59+
"-arch=compute_90a",
5960
"-arch=compute_100",
60-
"-arch=compute_110",
61+
"-arch=compute_100a",
62+
"-arch=compute_100f",
6163
"-arch=compute_103",
64+
"-arch=compute_103a",
65+
"-arch=compute_103f",
66+
"-arch=compute_110",
67+
"-arch=compute_110a",
68+
"-arch=compute_110f",
6269
"-arch=compute_120",
70+
"-arch=compute_120a",
71+
"-arch=compute_120f",
6372
"-arch=compute_121",
73+
"-arch=compute_121a",
74+
"-arch=compute_121f",
6475
};
6576

6677
static_assert(sizeof(VirtualArchCompileOption)/sizeof(*VirtualArchCompileOption)==CCUDADevice::EVA_COUNT);

0 commit comments

Comments
 (0)