You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using CUDA
A = CUDA.rand(4, 4, 3)
B = CUDA.rand(4, 4)
C =similar(A)
functionkernel!(C, A, B)
i =threadIdx().x
if (i <=size(A, 3))
@inbounds C[:, :, i] = A[:, :, i] * B
endreturnnothingend@cuda threads =size(A, 3) kernel!(C, A, B)
[1202] signal (11.1): Segmentation fault
in expression starting at REPL[6]:1
_ZN4llvm27DeadArgumentEliminationPass27RemoveDeadStuffFromFunctionEPNS_8FunctionE.part.424 at /home/tim/Julia/depot/juliaup/julia-1.9.1+0.x64.linux.gnu/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm27DeadArgumentEliminationPass3runERNS_6ModuleERNS_15AnalysisManagerIS1_JEEE at /home/tim/Julia/depot/juliaup/julia-1.9.1+0.x64.linux.gnu/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN12_GLOBAL__N_13DAE11runOnModuleERN4llvm6ModuleE.part.425 at /home/tim/Julia/depot/juliaup/julia-1.9.1+0.x64.linux.gnu/bin/../lib/julia/libLLVM-14jl.so (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /home/tim/Julia/depot/juliaup/julia-1.9.1+0.x64.linux.gnu/bin/../lib/julia/libLLVM-14jl.so (unknown line)
LLVMRunPassManager at /home/tim/Julia/depot/juliaup/julia-1.9.1+0.x64.linux.gnu/bin/../lib/julia/libLLVM-14jl.so (unknown line)
LLVMRunPassManager at /home/tim/Julia/depot/packages/LLVM/bsdku/lib/13/libLLVM_h.jl:4898 [inlined]
run! at /home/tim/Julia/depot/packages/LLVM/bsdku/src/passmanager.jl:39 [inlined]
macro expansion at /home/tim/Julia/pkg/GPUCompiler/src/optim.jl:292 [inlined]
macro expansion at /home/tim/Julia/depot/packages/LLVM/bsdku/src/base.jl:98 [inlined]
optimize! at /home/tim/Julia/pkg/GPUCompiler/src/optim.jl:286
Should check with an assertions build, the CPU code here probably triggers something.
The text was updated successfully, but these errors were encountered:
LLVM error: Call parameter type does not match function signature!
void ([1 x i64], {}*, {}**, i32)* @inner
void ({}*, {}**, i32)* call void null(void ([1 x i64], {}*, {}**, i32)* @inner)
Should check with an assertions build, the CPU code here probably triggers something.
The text was updated successfully, but these errors were encountered: