Skip to content
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

[1.3] Fix parallelLoopPatterns for the Intel FPGA SYCL back-end #2457

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Jan 23, 2025

Extend parallelLoopPatterns to use 64-bit indices to support more than 2³² elements.

Add a dedicated fix for SYCL back-ends, that assume that kernel-related queries (and possibly indices) are limited to INT_MAX, unless the -fno-sycl-id-queries-fit-in-int compiler flag is used.

Add a Vec constructor from a Vec with a compatible type. This seems useful in general, and is required to compile parallelLoopPatterns with these changes.

The only difference with respect to #2456 is the use of std::is_convertible_v instead of std::is_nothrow_convertible_v, which has been introduced in c++20, and a workaround for NVCC 11.3 that does not properly support SFINAE.

@fwyzard fwyzard added this to the 1.3.0 milestone Jan 23, 2025
@fwyzard fwyzard changed the title [13] Fix parallelLoopPatterns for the Intel FPGA SYCL back-end [1.3] Fix parallelLoopPatterns for the Intel FPGA SYCL back-end Jan 23, 2025
@fwyzard fwyzard force-pushed the fix_parallelLoopPatterns__for_Intel_FPGA_SYCL_130 branch 4 times, most recently from c025e24 to 5d856ce Compare January 26, 2025 11:36
@fwyzard fwyzard force-pushed the fix_parallelLoopPatterns__for_Intel_FPGA_SYCL_130 branch from 5d856ce to 90edfcc Compare January 31, 2025 17:59
@fwyzard fwyzard assigned fwyzard and unassigned fwyzard Feb 2, 2025
@psychocoderHPC psychocoderHPC merged commit 15d38a7 into alpaka-group:develop-1.3.0 Feb 4, 2025
22 checks passed
@fwyzard fwyzard deleted the fix_parallelLoopPatterns__for_Intel_FPGA_SYCL_130 branch February 4, 2025 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants