We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e1195e commit 27ad818Copy full SHA for 27ad818
src/ptx.jl
@@ -427,6 +427,10 @@ function nvvm_reflect!(fun::LLVM.Function)
427
str = operands(call)[1]
428
isa(str, LLVM.ConstantExpr) || error("Format of __nvvm__reflect function not recognized")
429
sym = operands(str)[1]
430
+ if isa(sym, LLVM.ConstantExpr) && opcode(sym) == LLVM.API.LLVMGetElementPtr
431
+ # CUDA 11.0 or below
432
+ sym = operands(sym)[1]
433
+ end
434
isa(sym, LLVM.GlobalVariable) || error("Format of __nvvm__reflect function not recognized")
435
sym_op = operands(sym)[1]
436
isa(sym_op, LLVM.ConstantArray) || error("Format of __nvvm__reflect function not recognized")
0 commit comments