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
{{ message }}
Repository navigation
Stride mismatch using fortran ordered (0,N) arrays
#582
In the below code, knl(queue, input=a_c) successfully executes with a C ordered argument of shape (0,2). Calling the same kernel with an F ordered argument of shape (0,2) raises the following error.
Traceback (most recent call last):
File "/autofs/nccs-svm1_home1/njchris/Workspace/test_0_length_array.py", line 31, in <module>
result2 = knl(queue, input=a_f)
File "/autofs/nccs-svm1_home1/njchris/Workspace/loopy/loopy/translation_unit.py", line 347, in __call__
return pex(*args, **kwargs)
File "/autofs/nccs-svm1_home1/njchris/Workspace/loopy/loopy/target/pyopencl_execution.py", line 371, in __call__
return translation_unit_info.invoker(
File "/ccs/home/njchris/miniconda3/envs/dev/lib/python3.10/site-packages/pytools/py_codegen.py", line 150, in __call__
return self.func(*args, **kwargs)
File "<generated code for 'invoke_loopy_kernel_loopy_kernel'>", line 101, in invoke_loopy_kernel_loopy_kernel
TypeError: strides mismatch on argument 'input' (after removing unit length dims, got: (8,), expected: (8,))
This discussion was converted from issue #581 on March 19, 2022 21:40.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
In the below code,
knl(queue, input=a_c)successfully executes with aCordered argument of shape (0,2). Calling the same kernel with anFordered argument of shape (0,2) raises the following error.All reactions