 now supports explicit memory orderings, while warp functions gain mask support through the new alpaka::warp::Mask type. Warp functionality is also implemented for the…
 or std::experimental::mdspan (from…
, .y(), .... CMake's native HIP support is used to improve the compatibility with future HIP updates. CMake presets for alpaka backends simplify the…
 SYCL back-end. This adds support for Intel oneAPI hardware targets (CPUs, GPUs, FPGAs) as well as AMD/Xilinx FPGAs. Support for complex numbers. The code base has been migrated to C++17. C++14 is no longer supported. View the full…
.
This release brings new memory ordering support, masked warp operations, and further improvements to alpaka's type-safe interface. alpaka::mem_fence() now supports explicit memory orderings, while warp functions gain mask support through the new alpaka::warp::Mask type. Warp functionality is also…
Why it matters: First release in 10 months. alpaka is in HPC & Scientific (one of your focus areas).
 now supports explicit memory orderings, while warp functions gain mask support through the new alpaka::warp::Mask type. Warp functionality is also implemented for the…
, .y(), .... CMake's native HIP support is used to improve the compatibility with future HIP updates. CMake presets for alpaka backends simplify the…
 SYCL back-end. This adds support for Intel oneAPI hardware targets (CPUs, GPUs, FPGAs) as well as AMD/Xilinx FPGAs. Support for complex numbers. The code base has been migrated to C++17. C++14 is no longer supported. View the full…
. Apart from that we mostly focused on maintenance and convenience changes: We removed support for 32bit Windows, Visual Studio versions older than 2019 and clang+CUDA for clang versions older than 9. We now…
Aug 3, 2021
Contribution opportunities
0 published
No published opportunities
Cards are published only for real, open, unassigned issues with maintainer engagement.
Implement support for clang Lifetime Safety Analysis ?
Lifetime Safety Analysis looks interesting, it might be worth considering implementing its interface in alpaka. --- Note: disables the related warnings introduced in clang 23 with c++ #if ALPAKA_COMP_CLANG >= ALPAKA_VERSION_NUMBER(23, 0, 0) pragma clang diagnostic push pragma clang diagnostic ignored "-Wlifetime-safety-intra-tu-suggestions" #endif ... #if ALPAKA_COMP_CLANG >= ALPAKA_VERSION_NUMBER(23, 0, 0) pragma clang diagnostic pop #endif and those changes should be reverted once the annotations for Lifetime Safety are implemented.
52score
cuda
Demandweight 25% × value 0.17 = 4.4 pts1 reactions, 1 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 1.00 = 25.0 ptsa maintainer commented; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Demand25% × 0.17 = 41 reactions, 1 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Lifetime Safety Analysis looks interesting, it might be worth considering implementing its interface in alpaka. --- Note: disables the related warnings introduced in clang 23 with c++ #if ALPAKA_COMP_CLANG >= ALPAKA_VERSION_NUMBER(23, 0, 0) pragma clang diagnostic push pragma…
Motivation Alpaka gives users high flexibility and freedom for their implementations. Alpaka is explicit everywhere and can therefore be controlled in fine granularity. For IMO 90% of the users, simple usage - at least to get started with a library - is very important. Proposal Alpaka is from the view of a user very hard to use, therefore I like to do the first step and propose an example of our vector add written against a pseudo API simple. Example C++ using namespace alpaka; // Define the accelerator // - GpuCuda // - CpuThreads // - CpuFibers // - CpuOmp2Threads // - CpuOmp2Blocks // -…
48score
docs
Demandweight 25% × value 0.54 = 13.6 pts7 reactions, 9 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Demand25% × 0.54 = 147 reactions, 9 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Feasibility20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
Motivation Alpaka gives users high flexibility and freedom for their implementations. Alpaka is explicit everywhere and can therefore be controlled in fine granularity. For IMO 90% of the users, simple usage - at least to get started with a library - is very important. Proposal…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Atomic operations on pinned host memory crash on Intel GPUs
Description On Intel Data Center GPU Max (Ponte Vecchio), calling alpaka::atomicAdd on pinned host memory from alpaka::allocMappedBuf fails: Segmentation fault from GPU at 0xff80eceed65000, ctx_id: 9 (CCS) type: 2 (AtomicAccessViolation), level: 0 (PTE), access: 2 (Atomic), banned: 1, aborting. Abort was called at 288 line in file: .../intel-compute-runtime-25.18.33578.42/shared/source/os_interface/linux/drm_neo.cpp Environment Intel Data Center GPU Max 1550 (intel_gpu_pvc), Level Zero backend Intel oneAPI 2026.1 Intel compute-runtime 25.18.33578 (Level Zero driver 1.6.33578+77) alpaka…
42score
concurrencycudalinux
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, linux, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptsno maintainer comment yet; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
Description On Intel Data Center GPU Max (Ponte Vecchio), calling alpaka::atomicAdd on pinned host memory from alpaka::allocMappedBuf fails: Segmentation fault from GPU at 0xff80eceed65000, ctx_id: 9 (CCS) type: 2 (AtomicAccessViolation), level: 0 (PTE), access: 2 (Atomic)…
Suggested first step
Reproduce the bug on the latest main branch of alpaka, reduce it to a minimal example, and post your findings on the issue before opening a PR.
To enable/disable accelerators in CMake, there are various options, like: ALPAKA_ACC_CPU_BT_OMP4_ENABLE ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE ALPAKA_ACC_GPU_CUDA_ENABLE These names are sometimes confusing (like why is there a B and a T in the name). Furthermore, they do not correspond to the names we use in code. E.g. ALPAKA_ACC_CPU_B_SEQ_T_SEQ_ENABLE corresponds to alpaka::acc::AccCpuSerial in code. I would like to propose to rename the options in CMake to match the accelerator names in code: ALPAKA_ENABLE_AccCpuSerial ALPAKA_ENABLE_AccCpuOmp2Blocks ALPAKA_ENABLE_AccGpuCudaRt
42score
cmake
Demandweight 25% × value 0.30 = 7.4 pts2 reactions, 3 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Demand25% × 0.30 = 72 reactions, 3 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Feasibility20% × 0.55 = 11clear scope; has reproduction steps; has code; project onboarding 50%
To enable/disable accelerators in CMake, there are various options, like: ALPAKA_ACC_CPU_BT_OMP4_ENABLE ALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE ALPAKA_ACC_GPU_CUDA_ENABLE These names are sometimes confusing (like why is there a B and a T in the name). Furthermore, they do not…
Suggested first step
Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.
Libraries for explicit vectorization that might be usable for the Alpaka element layer
Vectorization is still an open issue (Does it belong in Alpaka at all? How do we enforce it?). I want to use this issue to create a list of libraries that might help. Please extend to your own liking. Update: I have started ordering the list to my own liking in terms of usability, sustainability, etc. My current take is that VecCore from CERN uses Vc as a backend while xsimd is really an independent approach. Vc is also Helmholtz (Volker Lindenstruth) and thus has in principle long term support and it seems there's activity in including this into the C++ standard. 1) Vc: 2) xsimd: 3) VecCore:…
42score
simd
Demandweight 25% × value 0.28 = 7.1 pts1 reactions, 8 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs simd, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.28 = 71 reactions, 8 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs simd, which you listed
Vectorization is still an open issue (Does it belong in Alpaka at all? How do we enforce it?). I want to use this issue to create a list of libraries that might help. Please extend to your own liking. Update: I have started ordering the list to my own liking in terms of…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
AccCpuThreads is currently a bad showcase of C++11 threads as it uses the sub-optimal strategy of spawning CPU threads at thread instead of block level just like the equally useless AccOmp2Threads. To escape Amdahl's law as long as possible you must parallelize at as high a level at possible. AccCpuThreads should do this. I am aware, that AccCpuThreads is, and will remain, only a demonstration, thus there will not be many resources to be spend on improving it. Just putting the issue here for reference, based on a discussion we had.
41score
concurrency
Demandweight 25% × value 0.28 = 6.9 pts1 reactions, 7 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.28 = 71 reactions, 7 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listed
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
AccCpuThreads is currently a bad showcase of C++11 threads as it uses the sub-optimal strategy of spawning CPU threads at thread instead of block level just like the equally useless AccOmp2Threads. To escape Amdahl's law as long as possible you must parallelize at as high a…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
random number generators not identical across accelerators
Currently the generation method for random numbers for a accelerator is fixed defined within alpaka. To provide different generators per accelerator depending of the users needs we should think about an interface change. Why we need different generators: each generator provide different qualities of random numbers the size of the stored random number state is different and influence the memory usage and performance e.g. PIConGPU provides different methods up to my pull request to use the native alpaka generator which removes the possibility for the user to control the quality of the RNG…
41score
performance
Demandweight 25% × value 0.28 = 6.9 pts1 reactions, 7 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.28 = 71 reactions, 7 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs performance, which you listed
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Currently the generation method for random numbers for a accelerator is fixed defined within alpaka. To provide different generators per accelerator depending of the users needs we should think about an interface change. Why we need different generators: each generator provide…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
I am looking for an efficient way to obtain the same pseudo random numbers being independent of the backend and parallelization. The focus is on parallel RNG, so it can be easily mapped to serial execution. __Counter/Index based RNGs__ (1, 2, 3) are also lightweight (stateless) and fast in the parallel environment, and therefore used in parallel Monte-Carlo etc. Other RNGs also offer streams and sub-streams like MRG32k3a with "fast enough" jump aheads and also might offer better quality than CBRNGs, but have states, are slower (e.g., for CBRNG skip-ahead is O(1)) and might be more tricky to…
41score
performancestorage
Demandweight 25% × value 0.25 = 6.2 pts2 reactions, 1 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.25 = 62 reactions, 1 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs performance, which you listed
I am looking for an efficient way to obtain the same pseudo random numbers being independent of the backend and parallelization. The focus is on parallel RNG, so it can be easily mapped to serial execution. __Counter/Index based RNGs__ (1, 2, 3) are also lightweight (stateless)…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
As pointed out by @SimeonEhrig (who is currently resorting to profiling on a widescreen 4K TV) alpaka's generated kernel names are way too long (up to 512 KiB as shown by @kloppstock). We should think about a way to considerably shorten them. Example from the test cases when compiled with the SYCL backend: Kernel was successfully vectorized (16)
41score
cudadocssimdtesting
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs simd, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
As pointed out by @SimeonEhrig (who is currently resorting to profiling on a widescreen 4K TV) alpaka's generated kernel names are way too long (up to 512 KiB as shown by @kloppstock). We should think about a way to considerably shorten them. Example from the test cases when…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Improve the behaviour of alpaka buffers with respect to asynchronous operations
While reviewing the use of alpaka buffer in the CMS code, we have seen a recurrent pattern that relies on the (undocumented) behaviour of the underlying back-ends. Consider this example: c++ using Host = alpaka::DevCpu; using HostPlatform = alpaka::PlatformCpu; auto host = alpaka::getDevByIdx(alpaka::PlatformCpu{}, 0); using Platform = ...; using Device = alpaka::Dev ; using Queue = alpaka::Queue Platform platform{}; auto device = alpaka::getDevByIdx(platform, 0); Queue queue(dev); auto dbuf = alpaka::allocBuf (device, extent); { #if use_1_a // 1.a allocate the host buffer in pageable system…
41score
concurrencydocsmemory
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
While reviewing the use of alpaka buffer in the CMS code, we have seen a recurrent pattern that relies on the (undocumented) behaviour of the underlying back-ends. Consider this example: c++ using Host = alpaka::DevCpu; using HostPlatform = alpaka::PlatformCpu; auto host =…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Alpaka objects do not have an "empty, invalid state"
Alpaka objects do not have an "empty, invalid state", which prevents their direct use in various situations. --- lifetime different than the containing object One such case is holding a memory buffer that does not need to live as long as the holding object, but still longer than individual methods: c++ // the definition or templating on Device, Queue, Acc, etc. are left out for clarity class Producer { public: Producer() : ... // Note: the buffers cannot be initialised here, as their size is not known yet { } // method called by the framework to begin an asynchronous operation void…
41score
concurrency
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Alpaka objects do not have an "empty, invalid state", which prevents their direct use in various situations. --- lifetime different than the containing object One such case is holding a memory buffer that does not need to live as long as the holding object, but still longer…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`QueueGenericThreadsNonBlocking` technically illegal with OpenMP
I ran into an issue with the new FenceTest which occasionally crashes after succeeding with NVHPC for any OpenMP backend. This test runs kernels in parallel using separate non-blocking queues. All OpenMP backends use QueueGenericThreadsNonBlocking, only with different device type (aliased as QueueCpuNonBlocking and QueueOmp5NonBlocking. The reason for this crash is probably a race condition in the OpenMP runtime. Which has only one set of global ICVs and is not thread save. Apparently, the standard allows this implementation (section 1.3) An OpenMP program begins as a single thread of…
41score
concurrencytesting
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
I ran into an issue with the new FenceTest which occasionally crashes after succeeding with NVHPC for any OpenMP backend. This test runs kernels in parallel using separate non-blocking queues. All OpenMP backends use QueueGenericThreadsNonBlocking, only with different device…
Suggested first step
Reproduce the bug on the latest main branch of alpaka, reduce it to a minimal example, and post your findings on the issue before opening a PR.
`getCpuName()` working properly only on `x86` cpus
While running a CMS wfs on ARM I noticed that the CPU informations are not available %MSG-i ThreadStreamSetup: (NoModuleName) 10-Sep-2024 12:41:38 CEST pre-events setting # threads 8 setting # streams 1 %MSG %MSG-i AlpakaService: (NoModuleName) 10-Sep-2024 12:41:39 CEST pre-events AlpakaServiceSerialSync succesfully initialised. Found 1 device: %MSG and it's related to how getCpuName() is implemented (for x86 only if I understand well). In general I think it would be nice to have this expanded to other architectures.
41score
armconcurrency
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listed
While running a CMS wfs on ARM I noticed that the CPU informations are not available %MSG-i ThreadStreamSetup: (NoModuleName) 10-Sep-2024 12:41:38 CEST pre-events setting # threads 8 setting # streams 1 %MSG %MSG-i AlpakaService: (NoModuleName) 10-Sep-2024 12:41:39 CEST…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`alpaka::math::isfinite(...)` does not work in "fast math" compilation mode
The math functions like isfinite, isnan, isinf that rely on their std counterparts for CPU code fail when the code is built with -Ofast, -ffast-math or -ffinite-math. This is documents on the GCC manual 1 and on cppreference 2, but may still be a source of issues. With -O3: $ ./mathTest Randomness seeded to: 1147509038 =============================================================================== All tests passed (268120 assertions in 290 test cases) With -Ofast: $ ./mathTest Randomness seeded to: 3034605778 ... /home/fwyzard/src/alpaka-group/alpaka/test/unit/math/src/TestTemplate.hpp:145:…
41score
concurrencytesting
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.55 = 11.0 ptsclear scope; has reproduction steps; has code; project onboarding 50%
The math functions like isfinite, isnan, isinf that rely on their std counterparts for CPU code fail when the code is built with -Ofast, -ffast-math or -ffinite-math. This is documents on the GCC manual 1 and on cppreference 2, but may still be a source of issues. With -O3: $…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
In today's meeting we decided that we need a list of feature wishes that we can use for further development of alpaka. This issue will provide that overview and will be constantly open and pinned. Please open new issues for any feature wish that you might have - they will subsequently be linked here. Currently open wishes: General API Improve wait API: #32 C++ concepts: #286 Assignment of ViewPlainPtr: #655 API simplification: #944 Separate host-side and device-side Acc: #966 Inform dynamic shared memory about work division: #993 Vulkan as inspiration: #1065 Accelerator tags: #1246 Tensor…
39score
docstemplates
Demandweight 25% × value 0.43 = 10.8 pts6 reactions, 2 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.43 = 116 reactions, 2 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
In today's meeting we decided that we need a list of feature wishes that we can use for further development of alpaka. This issue will provide that overview and will be constantly open and pinned. Please open new issues for any feature wish that you might have - they will…
Suggested first step
Read the code the issue refers to, draft the documentation change, and open a small PR that references the issue.
The traits BlockSharedMemDynSizeBytes is designed with a local view in mind. The number of threads and elements per thread where passed to the trait ref If you like to implement a global prefix sum as it could be helpful to know how many blocks are involved. The example is not running (syntax issues) but it shows a general way how to implement it. IMO there is not reason to limit knowledge of the trait to information about a block even if shared memory can not by accesses by other blocks. My suggestion: pass the workDiv to the trait instead of the thread extents and number of elements per…
39score
concurrencydocs
Demandweight 25% × value 0.17 = 4.4 pts1 reactions, 1 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.17 = 41 reactions, 1 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listed
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
The traits BlockSharedMemDynSizeBytes is designed with a local view in mind. The number of threads and elements per thread where passed to the trait ref If you like to implement a global prefix sum as it could be helpful to know how many blocks are involved. The example is not…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Alpaka currently lacks support for texture/image capabilities of certain backends. This currently concerns the CUDA backend and the currently developed SYCL backend. Texture/image support was also requested in: The discussion also came up during the prototyping of kernel side accessors to buffers: and Since backend support for this feature is scarce, we have two options to implement such a facility: emulation on backends without texture/image support, e.g. via a wrapper on alpaka::Buf do not provide the feature and fail to compile While option 1 is certainly doable, given that only CUDA…
39score
cuda
Demandweight 25% × value 0.42 = 10.6 pts3 reactions, 10 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.42 = 113 reactions, 10 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Alpaka currently lacks support for texture/image capabilities of certain backends. This currently concerns the CUDA backend and the currently developed SYCL backend. Texture/image support was also requested in: The discussion also came up during the prototyping of kernel side…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
polling: low performance with CPU accelerator and async streams
If multiple asynchronous streams will be used on a CPU accelerator and the user program is using a lot of test calls to check the states of events and streams than we lose one cpu core for the polling action. The overhead can be reduced if we add the possibility to add priorities to a device and/or stream. This is only a suggestion we need to evaluate the possibilities.
39score
concurrencyperformancetesting
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
If multiple asynchronous streams will be used on a CPU accelerator and the user program is using a lot of test calls to check the states of events and streams than we lose one cpu core for the polling action. The overhead can be reduced if we add the possibility to add…
Suggested first step
Reproduce the benchmark or slow path, profile it (perf, VTune or Tracy), and share the numbers on the issue before proposing a change.
The current buffer allocation API's allow to specify the size of the requested block of memory, but the alignment of the memory block is unspecified. Internally, we rely on the default alignment of the underlying backend. For the CPU backend, we choose the alignment based on the available vectorization width during compilation. Having the right alignment is relevant for e.g. vectorization or optimizing memory access patterns. I would like to propose to add support for explicitely specifying an alignment when allocating a buffer. Furthermore, we might consider documenting the default…
39score
memoryperformancesimd
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs performance, simd, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
The current buffer allocation API's allow to specify the size of the requested block of memory, but the alignment of the memory block is unspecified. Internally, we rely on the default alignment of the underlying backend. For the CPU backend, we choose the alignment based on…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
The CPU atomic implementation using std::atomic_ref use a sequentially consistent memory ordering, which is a stronger guarantee than their CUDA counterparts, which are weakly ordered and always require explicit fences. Therefore, the CPU atomics should also be weakened to a relaxed memory order, potentially improving performance on CPUs.
39score
concurrencycudaperformance
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
The CPU atomic implementation using std::atomic_ref use a sequentially consistent memory ordering, which is a stronger guarantee than their CUDA counterparts, which are weakly ordered and always require explicit fences. Therefore, the CPU atomics should also be weakened to a…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
I did some tests with the tbb back end and it is as fast the OpenMP2 blocks back end (which makes sense) for many cases and architectures, but at least for one test and architecture I did, it is much slower. I checked the generated and executing code and it is exactly the same for tbb and openmp, but nevertheless tbb was two orders of magnitude slower. My theory is that this happens because of missing thread pinning with tbb. Unfortunately there is no easy way to steer the thread placement in tbb like for OpenMP, but it should be evaluated how this goal can still be achieved. This link is…
39score
concurrencyperformancetesting
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.75 = 22alpaka is in HPC & Scientific (a focus area); issue needs concurrency, performance, which you listed
I did some tests with the tbb back end and it is as fast the OpenMP2 blocks back end (which makes sense) for many cases and architectures, but at least for one test and architecture I did, it is much slower. I checked the generated and executing code and it is exactly the same…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
During PR there was the question if we already support the native implementation of C++23 std::mdspan. At the moment we do not support it. Instead we use the reference implementation from the kokkos team. This implementation has the two major advantages that it supports C++17 and is working with all our back-ends. @fwyzard Suggest that we should use the native implementation of the standard library if the available. Therefore we have to solve two different problems. C++ 20 and older only supports only the access operator[] with one argument. Instead the operator() is used in the kokkos…
39score
concurrencycpp20cudalinuxmacoswindows
Technical fitweight 30% × value 0.75 = 22.5 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, cpp20, linux, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
During PR there was the question if we already support the native implementation of C++23 std::mdspan. At the moment we do not support it. Instead we use the reference implementation from the kokkos team. This implementation has the two major advantages that it supports C++17…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Based on this I suggest that we add CMake target for each accelerator backend. Currently alpaka CMake behaves to optimal fits the CI workflow and is activating all available backends. Backends should be select able during the install of alpaka and store the dependencies including there locations. After alpaka is installed e.g. for CUDA than there is no requirement to search for a CUDA library again because dependencies must be checked during the install or when add_subdirectory is called.
38score
cmakecudatesting
Demandweight 25% × value 0.38 = 9.6 pts2 reactions, 12 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.38 = 102 reactions, 12 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Based on this I suggest that we add CMake target for each accelerator backend. Currently alpaka CMake behaves to optimal fits the CI workflow and is activating all available backends. Backends should be select able during the install of alpaka and store the dependencies…
Suggested first step
Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.
I did some work on LLAMA, and a bit in picongpu, to optimize compilation times using clang's -ftime-trace. There were a few low hanging fruits which could speed up compilation a fair bit. For LLAMA, even by an order of magnitude for pathological data structure definitions. I want to suggest to run such a trace on alpaka as well and just see whether there are any low hanging fruits as well.
38score
performance
Demandweight 25% × value 0.13 = 3.1 pts1 reactions, 0 commentsTechnical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs performance, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.13 = 31 reactions, 0 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs performance, which you listed
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
I did some work on LLAMA, and a bit in picongpu, to optimize compilation times using clang's -ftime-trace. There were a few low hanging fruits which could speed up compilation a fair bit. For LLAMA, even by an order of magnitude for pathological data structure definitions. I…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Catch2 tests using managed memory crash on Intel GPUs
Description On Intel Data Center GPU Max (Ponte Vecchio), memBufManagedTest in memBufTest crashes with a segmentation fault: $ ./test/unit/mem/buf/memBufTest Randomness seeded to: 3493700263 Testing Kernel with scalar indices with a grid of (123456, 1) blocks x (1, 1) threads x (1, 1) elements... Testing Kernel with scalar indices with a grid of (192, 1, 1) blocks x (643, 1, 1) threads x (1, 1, 1) elements... ~ memBufTest is a Catch2 v3.16.0 host application. Run with -? for options ------------------------------------------------------------------------------- memBufManagedTest -…
38score
concurrencycudatesting
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptsno maintainer comment yet; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
Demand25% × 0.00 = 00 reactions, 0 comments
Technical fit30% × 0.61 = 18alpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listed
Description On Intel Data Center GPU Max (Ponte Vecchio), memBufManagedTest in memBufTest crashes with a segmentation fault: $ ./test/unit/mem/buf/memBufTest Randomness seeded to: 3493700263 Testing Kernel with scalar indices with a grid of (123456, 1) blocks x (1, 1) threads x…
Suggested first step
Reproduce the bug on the latest main branch of alpaka, reduce it to a minimal example, and post your findings on the issue before opening a PR.
I do not expect alpaka to support Vulkan as a backend anytime soon, at least not without going through an abstraction layer like codeplay's SyCL-over-Vulkan implementation, because Vulkan uses a split-source programming model and this is fundamentally incompatible with alpaka's current design. However, I think Vulkan's API _design_ could inform alpaka's future API design direction, because it is one of the most recently designed GPU APIs and probably the lowest level GPU API to achieve wide-scale popularity in recent times. This means that it exposes a wealth of interesting concepts which are…
38score
cudatemplates
Demandweight 25% × value 0.25 = 6.2 pts2 reactions, 1 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.40 = 8.0 ptshas reproduction steps; has code; project onboarding 50%
Demand25% × 0.25 = 62 reactions, 1 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
I do not expect alpaka to support Vulkan as a backend anytime soon, at least not without going through an abstraction layer like codeplay's SyCL-over-Vulkan implementation, because Vulkan uses a split-source programming model and this is fundamentally incompatible with alpaka's…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
Precompiled headers can reduce compilation time. It works like object files for cpp files. In special cases, templates should be accelerated because a compiled version of the generic template is stored in the precompiled header. Theoretically, it should reduce compilation time. Practically, I'm not sure, so someone has to test it. CMake 3.16 supports PCH, so testing and integration should not be too difficult. Implementation details:
37score
cmaketemplatestesting
Demandweight 25% × value 0.36 = 8.9 pts2 reactions, 8 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.36 = 92 reactions, 8 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Precompiled headers can reduce compilation time. It works like object files for cpp files. In special cases, templates should be accelerated because a compiled version of the generic template is stored in the precompiled header. Theoretically, it should reduce compilation time…
Suggested first step
Reproduce the build problem in a clean environment (container or CI matrix), then propose the smallest change to the build scripts.
Years ago, we settled on clang-tidy rules for our projects. However, we never picked up these rules and added CI jobs to enforce them (LLAMA did that for most rules). A while back I experimentally applied the clang-tidy file to alpaka, generating a substantial changeset (#1345) to give us a scope of impact. However, this effort was not followed up by the professional support and the PR went stale. This ticket is a reminder that we should still add a clang-tidy CI to alpaka and start to enforce the checks which we agreed upon in the past.
35score
testing
Demandweight 25% × value 0.28 = 7.0 pts2 reactions, 2 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; filed by a maintainer; project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.28 = 72 reactions, 2 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
Maintainer engagement25% × 0.45 = 11comments not checked; filed by a maintainer; project responsiveness 100%
Years ago, we settled on clang-tidy rules for our projects. However, we never picked up these rules and added CI jobs to enforce them (LLAMA did that for most rules). A while back I experimentally applied the clang-tidy file to alpaka, generating a substantial changeset (#1345)…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
`alpaka::getWarpSizes` incurs a noticeable overhead
While porting the CMS pixel reconstruction from native CUDA to Alpaka, it was noticed that the use of the alpaka::getWarpSizes(device) function incurs a noticeable overhead. See for the discussion. A possible workaround is to cache the warp size in our code, instead of querying it for every event. However, it would seem natural to cache this information within the Alpaka device objects, instead of querying the underlying back-end each time.
35score
cuda
Demandweight 25% × value 0.27 = 6.7 pts1 reactions, 6 commentsTechnical fitweight 30% × value 0.40 = 12.0 ptsalpaka is in HPC & Scientific (a focus area)Maintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
Demand25% × 0.27 = 71 reactions, 6 comments
Technical fit30% × 0.40 = 12alpaka is in HPC & Scientific (a focus area)
While porting the CMS pixel reconstruction from native CUDA to Alpaka, it was noticed that the use of the alpaka::getWarpSizes(device) function incurs a noticeable overhead. See for the discussion. A possible workaround is to cache the warp size in our code, instead of querying…
Suggested first step
Comment on the issue with a short design sketch and ask a maintainer to confirm the approach before writing code.
According to the documentation of the SYCL Group functions 1 and SYCL Group algorithms library 2, calling sycl::all_of_group with some threads having exited the kernel is _undefined behaviour_. This was confirmed during a support meeting with Intel. oneAPI has an extension to support non-uniform (sub)groups: sycl_ext_oneapi_non_uniform_groups. The implementation of the SYCL warp functions should be extended using it; until then, we disable the failing test when using a SYCL back-end and instead print an informational message via #2468 / #2469 / #2501.
35score
concurrencycudadocstesting
Technical fitweight 30% × value 0.61 = 18.3 ptsalpaka is in HPC & Scientific (a focus area); issue needs concurrency, which you listedMaintainer engagementweight 25% × value 0.45 = 11.3 ptscomments not checked; labelled (triaged); project responsiveness 100%Feasibilityweight 20% × value 0.25 = 5.0 ptsclear scope; project onboarding 50%
According to the documentation of the SYCL Group functions 1 and SYCL Group algorithms library 2, calling sycl::all_of_group with some threads having exited the kernel is _undefined behaviour_. This was confirmed during a support meeting with Intel. oneAPI has an extension to…
Suggested first step
Reproduce the bug on the latest main branch of alpaka, reduce it to a minimal example, and post your findings on the issue before opening a PR.
Recent issues and discussions in 6 tracked projects (AdaptiveCpp, LLVM, RAJA, XLA and 2 more) mention “vectorization”. This is an automatically detected signal, not a validated need.
Recent issues and discussions in 6 tracked projects (Apache Arrow, DOLFINx (FEniCS), Spack, Xmake and 2 more) mention “find_package”. This is an automatically detected signal, not a validated need.