alpaka-group / alpaka

Abstraction Library for Parallel Kernel Acceleration :llama:
https://alpaka.readthedocs.io
Mozilla Public License 2.0
356 stars 74 forks source link

Prints Acc tags of tags-tuple at runtime #2411

Closed mehmetyusufoglu closed 1 month ago

mehmetyusufoglu commented 1 month ago

Examples was exiting silently if there are no enabled backends. This issue is reported by the assistants of the october2024 workshop.

This PR creates a function that prints the Acc-tags of the enabled backends at runtime. If there is no backends, the user is informed.

./heatEquation2D
Check enabled accelerator tags:
No Tags!
./heatEquation2D 
Check enabled accelerator tags:
Tags: TagCpuSerial,TagCpuThreads
Using alpaka accelerator: AccCpuSerial<2,unsigned int>
Execution results correct!
Using alpaka accelerator: AccCpuThreads<2,unsigned int>
Execution results correct!
psychocoderHPC commented 1 month ago

I updated already which CI jobs are required. This PR was created before the last merge where clang10-12 got removed, therefore I merge it with my admin power.