Test, fix complex-valued TypeCast in PyOpenCL #3130
ci.yml
on: pull_request
Flake8
21s
Pylint
1m 58s
Mypy
1m 40s
Conda Pytest with Intel CL
3m 44s
Conda Pytest without arg check
3m 55s
Conda Pytest Twice (for cache behavior)
3m 48s
Conda Examples
2m 6s
Documentation
1m 49s
Tests for downstream project Firedrake
16m 33s
Validate CITATION.cff
6s
Matrix: downstream_tests
Matrix: Conda Pytest
Annotations
31 errors and 1 warning
Flake8
Process completed with exit code 1.
|
Conda Pytest (macos-latest):
test/test/test/test_expression.py#L81
test_complex_support[<context factory for <pyopencl.Device 'cpu' on 'Portable Computing Language'>>-ExecutableCTarget]
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 10 / 10 (100%)
Max absolute difference among violations: 0.81692795
Max relative difference among violations: 0.97792157
ACTUAL: array([0.230945, 0.17172 , 0.103202, 0.823235, 0.589145, 0.890414,
0.913584, 0.853794, 0.00174 , 0.72996 ])
DESIRED: array([0.843495, 0.90292 , 0.92013 , 0.84346 , 0.589419, 1.007113,
1.006281, 0.900249, 0.078827, 0.822648])
|
Conda Pytest (macos-latest):
test/test/test/test_loopy.py#L2060
test_tight_loop_bounds_codegen
AssertionError: assert 'for (int j = ((gid(0) == 0 && lid(0) == 0) ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); j <= ((-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)' in '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}'
+ where '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}' = <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])>()
+ where <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])> = TranslationUnitCodeGenerationResult(host_programs={'loopy_kernel': GeneratedProgram(name='loopy_kernel_outer', is_devi...e_preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')]).device_code
|
Conda Pytest (macos-latest):
test/test/test/test_loopy.py#L574
test_struct_assignment[<context factory for <pyopencl.Device 'cpu' on 'Portable Computing Language'>>]
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE
Build on <pyopencl.Device 'cpu' on 'Portable Computing Language' at 0x125008200>:
error: /Users/runner/.cache//pocl/kcache/tempfile_rvtQ7Y.cl:16:20: used type 'bbhit' where arithmetic or pointer type is required
error: /Users/runner/.cache//pocl/kcache/tempfile_rvtQ7Y.cl:17:21: used type 'bbhit' where arithmetic or pointer type is required
error: /Users/runner/.cache//pocl/kcache/tempfile_rvtQ7Y.cl:18:22: used type 'bbhit' where arithmetic or pointer type is required
error: /Users/runner/.cache//pocl/kcache/tempfile_rvtQ7Y.cl:19:22: used type 'bbhit' where arithmetic or pointer type is required
Device cpu failed to build the program
(options: -I /Users/runner/work/loopy/loopy/.conda-root/envs/testing/lib/python3.12/site-packages/pyopencl/cl)
|
Conda Pytest (macos-latest):
test/test/test/test_target.py#L230
test_opencl_emits_ternary_operators_correctly[<context factory for <pyopencl.Device 'cpu' on 'Portable Computing Language'>>-ExecutableCTarget]
codepy.CompileError: module compilation failed
|
Conda Pytest (macos-latest):
test/test/doc/tutorial.rst#L1
[doctest] tutorial.rst
|
Conda Pytest (macos-latest)
Process completed with exit code 1.
|
Conda Pytest (ubuntu-latest)
The job was canceled because "macos-latest" failed.
|
Conda Pytest (ubuntu-latest):
test/test/test/test_expression.py#L81
test_complex_support[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 10 / 10 (100%)
Max absolute difference among violations: 0.88471716
Max relative difference among violations: 0.92813427
ACTUAL: array([0.041921, 0.5788 , 0.831971, 0.795067, 0.929386, 0.095918,
0.010052, 0.578564, 0.948551, 0.286548])
DESIRED: array([0.225462, 0.690545, 0.868797, 1.023084, 1.026977, 0.980635,
0.139877, 0.833325, 1.305792, 0.286664])
|
Conda Pytest (ubuntu-latest):
test/test/test/test_loopy.py#L2060
test_tight_loop_bounds_codegen
AssertionError: assert 'for (int j = ((gid(0) == 0 && lid(0) == 0) ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); j <= ((-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)' in '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}'
+ where '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}' = <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])>()
+ where <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])> = TranslationUnitCodeGenerationResult(host_programs={'loopy_kernel': GeneratedProgram(name='loopy_kernel_outer', is_devi...e_preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')]).device_code
|
Conda Pytest (ubuntu-latest):
test/test/test/test_loopy.py#L574
test_struct_assignment[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>]
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE
Build on <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language' at 0x55cd75d21200>:
error: /home/runner/.cache//pocl/kcache/tempfile_vofMGn.cl:16:20: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_vofMGn.cl:17:21: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_vofMGn.cl:18:22: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_vofMGn.cl:19:22: used type 'bbhit' where arithmetic or pointer type is required
Device cpu-haswell-AMD EPYC 7763 64-Core Processor failed to build the program
(options: -I /home/runner/work/loopy/loopy/.conda-root/envs/testing/lib/python3.12/site-packages/pyopencl/cl)
|
Conda Pytest (ubuntu-latest):
test/test/test/test_target.py#L230
test_opencl_emits_ternary_operators_correctly[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
codepy.CompileError: module compilation failed
|
Conda Pytest (ubuntu-latest)
The operation was canceled.
|
Conda Pytest with Intel CL:
test/test/test/test_expression.py#L81
test_complex_support[<context factory for <pyopencl.Device 'AMD EPYC 7763 64-Core Processor' on 'Intel(R) OpenCL'>>-ExecutableCTarget]
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 10 / 10 (100%)
Max absolute difference among violations: 0.65078107
Max relative difference among violations: 0.80458836
ACTUAL: array([0.202555, 0.987763, 0.644839, 0.070784, 0.324145, 0.158056,
0.654669, 0.473824, 0.756174, 0.846635])
DESIRED: array([0.545647, 1.369229, 1.064192, 0.298985, 0.811468, 0.808837,
0.762844, 0.685499, 0.790984, 0.848047])
|
Conda Pytest with Intel CL:
test/test/test/test_loopy.py#L2060
test_tight_loop_bounds_codegen
AssertionError: assert 'for (int j = ((gid(0) == 0 && lid(0) == 0) ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); j <= ((-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)' in '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}'
+ where '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}' = <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])>()
+ where <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])> = TranslationUnitCodeGenerationResult(host_programs={'loopy_kernel': GeneratedProgram(name='loopy_kernel_outer', is_devi...e_preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')]).device_code
|
Conda Pytest with Intel CL:
test/test/test/test_loopy.py#L574
test_struct_assignment[<context factory for <pyopencl.Device 'AMD EPYC 7763 64-Core Processor' on 'Intel(R) OpenCL'>>]
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE
Build on <pyopencl.Device 'AMD EPYC 7763 64-Core Processor' on 'Intel(R) OpenCL' at 0x55e86ec02758>:
Compilation started
51:16:20: error: used type 'bbhit' where arithmetic or pointer type is required
result[i].bi = (bbhit) (i);
^ ~~~
51:17:21: error: used type 'bbhit' where arithmetic or pointer type is required
result[i].hit = (bbhit) (i % 2);
^ ~~~~~~~
51:18:22: error: used type 'bbhit' where arithmetic or pointer type is required
result[i].tmin = (bbhit) (i);
^ ~~~
51:19:22: error: used type 'bbhit' where arithmetic or pointer type is required
result[i].tmax = (bbhit) (i + 10);
^ ~~~~~~~~
Compilation failed
(options: -I /home/runner/work/loopy/loopy/.conda-root/envs/testing/lib/python3.12/site-packages/pyopencl/cl)
(source saved as /tmp/tmp8uoox5jk.cl)
|
Conda Pytest with Intel CL:
test/test/test/test_target.py#L230
test_opencl_emits_ternary_operators_correctly[<context factory for <pyopencl.Device 'AMD EPYC 7763 64-Core Processor' on 'Intel(R) OpenCL'>>-ExecutableCTarget]
codepy.CompileError: module compilation failed
|
Conda Pytest with Intel CL:
test/test/doc/tutorial.rst#L1
[doctest] tutorial.rst
|
Conda Pytest with Intel CL
Process completed with exit code 1.
|
Conda Pytest Twice (for cache behavior):
test/test/test/test_expression.py#L81
test_complex_support[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 10 / 10 (100%)
Max absolute difference among violations: 0.64101631
Max relative difference among violations: 0.89080566
ACTUAL: array([0.750859, 0.978674, 0.794553, 0.264662, 0.88812 , 0.246815,
0.44473 , 0.854638, 0.07028 , 0.424407])
DESIRED: array([0.752803, 1.010761, 1.022507, 0.905679, 1.037502, 0.407112,
0.886917, 0.861518, 0.643626, 0.439464])
|
Conda Pytest Twice (for cache behavior):
test/test/test/test_loopy.py#L2060
test_tight_loop_bounds_codegen
AssertionError: assert 'for (int j = ((gid(0) == 0 && lid(0) == 0) ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); j <= ((-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)' in '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}'
+ where '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}' = <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])>()
+ where <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])> = TranslationUnitCodeGenerationResult(host_programs={'loopy_kernel': GeneratedProgram(name='loopy_kernel_outer', is_devi...e_preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')]).device_code
|
Conda Pytest Twice (for cache behavior):
test/test/test/test_loopy.py#L574
test_struct_assignment[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>]
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE
Build on <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language' at 0x5579a3c5a190>:
error: /home/runner/.cache//pocl/kcache/tempfile_gqJQ2f.cl:16:20: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_gqJQ2f.cl:17:21: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_gqJQ2f.cl:18:22: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_gqJQ2f.cl:19:22: used type 'bbhit' where arithmetic or pointer type is required
Device cpu-haswell-AMD EPYC 7763 64-Core Processor failed to build the program
(options: -I /home/runner/work/loopy/loopy/.conda-root/envs/testing/lib/python3.12/site-packages/pyopencl/cl)
|
Conda Pytest Twice (for cache behavior):
test/test/test/test_target.py#L230
test_opencl_emits_ternary_operators_correctly[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
codepy.CompileError: module compilation failed
|
Conda Pytest Twice (for cache behavior):
test/test/doc/tutorial.rst#L1
[doctest] tutorial.rst
|
Conda Pytest Twice (for cache behavior)
Process completed with exit code 1.
|
Conda Pytest without arg check:
test/test/test/test_expression.py#L81
test_complex_support[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0
Mismatched elements: 10 / 10 (100%)
Max absolute difference among violations: 0.89871062
Max relative difference among violations: 0.95698408
ACTUAL: array([0.745675, 0.345999, 0.573397, 0.555121, 0.060214, 0.104609,
0.235332, 0.420117, 0.675516, 0.03497 ])
DESIRED: array([1.201572, 0.436366, 0.72058 , 0.564438, 0.958924, 0.598705,
0.828089, 0.713361, 0.678481, 0.812965])
|
Conda Pytest without arg check:
test/test/test/test_loopy.py#L2060
test_tight_loop_bounds_codegen
AssertionError: assert 'for (int j = ((gid(0) == 0 && lid(0) == 0) ? 0 : -2 + 2 * lid(0) + 10 * gid(0)); j <= ((-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)' in '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}'
+ where '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))\n\n__kernel void __attribute__ ((reqd_... * lid(0) + 10 * gid(0)); j <= ((char) (-1 + gid(0) == 0 && lid(0) == 0) ? 9 : 2 * lid(0)); ++j)\n out[j] = j;\n}' = <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])>()
+ where <bound method TranslationUnitCodeGenerationResult.device_code of TranslationUnitCodeGenerationResult(host_programs={'l..._preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')])> = TranslationUnitCodeGenerationResult(host_programs={'loopy_kernel': GeneratedProgram(name='loopy_kernel_outer', is_devi...e_preambles=[('00_declare_gid_lid', '#define lid(N) ((int) get_local_id(N))\n#define gid(N) ((int) get_group_id(N))')]).device_code
|
Conda Pytest without arg check:
test/test/test/test_loopy.py#L574
test_struct_assignment[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>]
pyopencl._cl.RuntimeError: clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE - clBuildProgram failed: BUILD_PROGRAM_FAILURE
Build on <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language' at 0x559dbcb100c0>:
error: /home/runner/.cache//pocl/kcache/tempfile_kia1bh.cl:16:20: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_kia1bh.cl:17:21: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_kia1bh.cl:18:22: used type 'bbhit' where arithmetic or pointer type is required
error: /home/runner/.cache//pocl/kcache/tempfile_kia1bh.cl:19:22: used type 'bbhit' where arithmetic or pointer type is required
Device cpu-haswell-AMD EPYC 7763 64-Core Processor failed to build the program
(options: -I /home/runner/work/loopy/loopy/.conda-root/envs/testing/lib/python3.12/site-packages/pyopencl/cl)
|
Conda Pytest without arg check:
test/test/test/test_target.py#L230
test_opencl_emits_ternary_operators_correctly[<context factory for <pyopencl.Device 'cpu-haswell-AMD EPYC 7763 64-Core Processor' on 'Portable Computing Language'>>-ExecutableCTarget]
codepy.CompileError: module compilation failed
|
Conda Pytest without arg check:
test/test/doc/tutorial.rst#L1
[doctest] tutorial.rst
|
Conda Pytest without arg check
Process completed with exit code 1.
|
Validate CITATION.cff
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
|