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
I am trying to use ti.random() when I am using default_fp=ti.64 as init, but it looks like it would report error like this: python3.8: /home/yuanming/repos/llvm-10.0.0.src/lib/IR/Instructions.cpp:1358: void llvm::StoreInst::AssertOK(): Assertion getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.
`
Here is the minimum code block to reproduce this problem:
`
Test random number
import taichi as ti
ti.init(arch=ti.gpu, default_fp=ti.f64)
@ti.kernel
def rand_generator():
for i in range(100):
print(ti.random())
rand_generator()
`
The text was updated successfully, but these errors were encountered:
Hello!
I am trying to use ti.random() when I am using default_fp=ti.64 as init, but it looks like it would report error like this:
python3.8: /home/yuanming/repos/llvm-10.0.0.src/lib/IR/Instructions.cpp:1358: void llvm::StoreInst::AssertOK(): Assertion
getOperand(0)->getType() == cast(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"' failed.`
Here is the minimum code block to reproduce this problem:
`
Test random number
import taichi as ti
ti.init(arch=ti.gpu, default_fp=ti.f64)
@ti.kernel
def rand_generator():
for i in range(100):
print(ti.random())
rand_generator()
`
The text was updated successfully, but these errors were encountered: