We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6fd226 commit b0a6e21Copy full SHA for b0a6e21
src/coop_vec.cpp
@@ -14,6 +14,7 @@
14
#include "op.h"
15
#include "optix_api.h"
16
#include "optix.h"
17
+#include "cuda.h"
18
#include <drjit-core/nanostl.h>
19
20
uint32_t jitc_coop_vec_pack(uint32_t n, const uint32_t *in) {
@@ -28,6 +29,15 @@ uint32_t jitc_coop_vec_pack(uint32_t n, const uint32_t *in) {
28
29
}
30
31
const Variable *arg_v = jitc_var(in[0]);
32
+ if (arg_v->backend == (uint32_t) JitBackend::CUDA) {
33
+ bool coop_vec_supported =
34
+ (jitc_cuda_version_major == 12 && jitc_cuda_version_minor >= 8) ||
35
+ jitc_cuda_version_major > 12;
36
+ if (!coop_vec_supported)
37
+ jitc_raise("jit_coop_vec_pack(): The use of cooperative vectors on "
38
+ "the CUDA/OptiX backend requires CUDA 12.8 or newer "
39
+ "(driver R570+).");
40
+ }
41
42
Variable v;
43
v.kind = (uint32_t) VarKind::CoopVecPack;
0 commit comments