-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RhiResult(-3) error when running NGP example on Windows with Vulkan #7674
Comments
-3 means error not supported, so we accidentally used a unsupported / not activated feature I think... We will look into it |
We have located the bug, it appears to be an issue with the |
Any updates for this issue? This seems to have affected Intel cards as well. |
Here is a minimal script to reproduce the issue: import numpy as np
import taichi as ti
ti.init(arch=ti.gpu)
np_arr = np.ones((100000000,), dtype=np.float32)
ti_field = ti.field(dtype=ti.f32, shape=(np_arr.shape[0],))
@ti.kernel
def run(dst: ti.template(), src: ti.types.ndarray()):
for I in dst:
dst[I] = src[I]
run(ti_field, np_arr) Once the length of If this issue is low priority on your list, could you please advise me how I may contribute a PR for the issue? @bobcao3 Thanks |
No PR, sorry, but if somebody wants to pick this up (e.g. as part of PR #7333), the following patch fixes this for me (linux, mesa radv vulkan, amd). The problem is in the const-range case of spir-v range-for codegen, which can currently ask for an unbounded number of workgroups. This patch just applies a fixed cap that matches the dynamic case. I'm assuming the performance implications don't matter, but you may know better.
|
Describe the bug
I get a
Dispatch error : RhiResult(-3)
when trying to run taichi_ngp.py on Windows using Vulkan.To Reproduce
Tried running the script taichi_ngp.py on Windows 11 with python 3.10.9 and taichi 1.5.0.
CPU: Ryzen 9 7900X
GPU: AMD 7900XT
Log/Screenshots
Additional comments
The text was updated successfully, but these errors were encountered: