faster-python-with-taichi icon indicating copy to clipboard operation
faster-python-with-taichi copied to clipboard

Incorrect Answer for count_primes.py Using ti.gpu With n=100,000,000

Open claybudin opened this issue 3 years ago • 0 comments
trafficstars

Hi,

Using a pip install taichi on a PC with Windows 10 Pro, AMD 3995WX CPU, nVidia RTX A5000 GPU I get an incorrect result in count_primes.py when the arguments is set to 100000000 and I replace ti.init() with ti.init(arch=ti.gpu)

python count_primes.py [Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70a, win, python 3.10.3 [Taichi] Starting on arch=cuda 5761489 time elapsed use taichi: 1.4452782000007574/s

Answer should be 5,761,455

claybudin avatar Sep 20 '22 17:09 claybudin