Skip to content

in example code pi calculation over gpu throws error #24

@ketan-more-github

Description

@ketan-more-github

time python pi_calc_gpu.py
LLVM ERROR: Cannot select: t26: i32,ch = AtomicCmpSwap<(load store monotonic monotonic (s32) on %ir.192, addrspace 5)> t10:1, t2, t10, t13
t2: i64,ch = CopyFromReg t0, Register:i64 %5
t1: i64 = Register %5
t10: i32,ch = AtomicLoad<(dereferenceable load monotonic (s32) from %ir.192, addrspace 5)> t7:1, t2
t2: i64,ch = CopyFromReg t0, Register:i64 %5
t1: i64 = Register %5
t13: i32 = bitcast t12
t12: f32 = fadd t7, t11
t7: f32,ch = load<(dereferenceable load (s32) from %ir.2, addrspace 5)> t0, t4, undef:i64
t4: i64,ch = CopyFromReg t0, Register:i64 %3
t3: i64 = Register %3
t6: i64 = undef
t11: f32 = bitcast t10
t10: i32,ch = AtomicLoad<(dereferenceable load monotonic (s32) from %ir.192, addrspace 5)> t7:1, t2
t2: i64,ch = CopyFromReg t0, Register:i64 %5
t1: i64 = Register %5
In function: __omp_offload_numba__ZN8__main__14device0calc_piB2v4B74cw51cXTLSUwv1kCKSFtQQgEFJpiD5r7EnPLEymJ1TWBAosUpVBsi_2bSAJoCYJqARSwgOLaAIAE10float32_2axf
Aborted (core dumped)

real 0m3.786s
user 0m18.110s
sys 0m0.836s

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions