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

How to change Accelerator? #15

Open
kusnezoff-alexander opened this issue Jan 19, 2025 · 1 comment
Open

How to change Accelerator? #15

kusnezoff-alexander opened this issue Jan 19, 2025 · 1 comment

Comments

@kusnezoff-alexander
Copy link
Collaborator

How can one change the Acc (CPU/CPU-OMP/CPU-Threads/CUDA)?

Eg simply changing Dalpaka_ACC_CPU_B_SEQ_T_SEQ_ENABLE=ON to -DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED=ON doesn't work for me:

mkdir -p build && cd build && \
cmake ../all -DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED=ON -DCPM_SOURCE_CACHE=~/.cache/cpm && \
cmake --build . -j --target KitGenBenchExamplePlainMalloc KitGenBenchExampleSimpleMallocMC
```

@chillenzer
Copy link
Collaborator

Typo:

< -DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLED=ON
> -DALPAKA_ACC_CPU_B_OMP2_T_SEQ_ENABLE=ON

For CUDA you probably have to add alpaka_ACC_GPU_CUDA_ONLY_MODE because we use CUDA-specific code in kernels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants