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
The filed in Taichi can only be accessed through the index of I32. If default_ip=ti. I64 is set at the beginning, it will fail to access the index below
The following code will report an error
[Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70, win, python 3.10.7
[Taichi] Starting on arch=x64
C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\ast\ast_transformer.py:38: Warning: Casting range_for
boundary values from i64 to i32, which may cause numerical issues
warnings.warn(
[I 09/25/22 21:07:25.771 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@134] Function :
Dense_lookup_element
[I 09/25/22 21:07:25.772 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@135] Type :
i8* (i8*, i8*, i32)
[E 09/25/22 21:07:25.773 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@144] parameter 2 mismatch: required=i32, provided=i64
Traceback (most recent call last):
File "c:\Code\github\my_python_function\Test\test22.py", line 16, in
prefix_sum()
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 915, in wrapped
return primal(*args, **kwargs)
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 842, in call
return self.runtime.compiled_functionskey
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 769, in func__
raise e from None
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 766, in func__
t_kernel(launch_ctx)
RuntimeError: [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@144] parameter 2 mismatch: required=i32, provided=i64
No error will be reported after the transformation
ok,thanks your reply
***@***.***
From: Zhanlue Yang
Date: 2022-10-11 10:54
To: taichi-dev/taichi
CC: jun; Author
Subject: Re: [taichi-dev/taichi] The filed in Taichi can only be accessed through the index of I32? (Issue #6159)
Closed #6159 as completed via #6276.
―
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
My system is Win10 and Taichi version is 1.1.3
The filed in Taichi can only be accessed through the index of I32. If default_ip=ti. I64 is set at the beginning, it will fail to access the index below
The following code will report an error
[Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70, win, python 3.10.7
[Taichi] Starting on arch=x64
C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\ast\ast_transformer.py:38: Warning: Casting range_for
boundary values from i64 to i32, which may cause numerical issues
warnings.warn(
[I 09/25/22 21:07:25.771 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@134] Function :
Dense_lookup_element
[I 09/25/22 21:07:25.772 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@135] Type :
i8* (i8*, i8*, i32)
[E 09/25/22 21:07:25.773 20228] [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@144] parameter 2 mismatch: required=i32, provided=i64
Traceback (most recent call last):
File "c:\Code\github\my_python_function\Test\test22.py", line 16, in
prefix_sum()
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 915, in wrapped
return primal(*args, **kwargs)
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 842, in call
return self.runtime.compiled_functionskey
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 769, in func__
raise e from None
File "C:\Users\001\AppData\Local\Programs\Python\Python310\lib\site-packages\taichi\lang\kernel_impl.py", line 766, in func__
t_kernel(launch_ctx)
RuntimeError: [D:/a/taichi/taichi/taichi/codegen/llvm/llvm_codegen_utils.cpp:check_func_call_signature@144] parameter 2 mismatch: required=i32, provided=i64
No error will be reported after the transformation
The text was updated successfully, but these errors were encountered: