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

Convert daxpy example to alpaka #469

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

bernhardmgruber
Copy link
Member

@bernhardmgruber bernhardmgruber commented Feb 11, 2022

This PR converts the daxpy example to alpaka so it can be used on more architectures.

@codecov
Copy link

codecov bot commented Feb 11, 2022

Codecov Report

Merging #469 (3442c07) into develop (2b903f1) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 3442c07 differs from pull request most recent head ff18b95. Consider uploading reports for the commit ff18b95 to get more accurate results

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #469      +/-   ##
===========================================
- Coverage    99.24%   99.23%   -0.01%     
===========================================
  Files           59       59              
  Lines         5395     5387       -8     
===========================================
- Hits          5354     5346       -8     
  Misses          41       41              
Impacted Files Coverage Δ
include/llama/mapping/ChangeType.hpp 100.00% <ø> (ø)
include/llama/Core.hpp 95.23% <100.00%> (-0.32%) ⬇️
include/llama/mapping/Bytesplit.hpp 100.00% <100.00%> (ø)
tests/core.cpp 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b903f1...ff18b95. Read the comment docs.

@bernhardmgruber bernhardmgruber force-pushed the daxpy_alpaka branch 3 times, most recently from 2fc3972 to a5522b9 Compare February 11, 2022 12:51
@bernhardmgruber
Copy link
Member Author

A quick test on a big Xeon shows:

8192Mi doubles (65536MiB data)
Threads: 80
Affinity: 0-79
baseline std::vector
alloc 75.859 s
init 16.1799 s
daxpy 18.2234 s
daxpy 2.11368 s
daxpy 2.11574 s
daxpy 2.11507 s
daxpy 2.11447 s

We clearly need a warmup run here.

@bernhardmgruber
Copy link
Member Author

image

@bernhardmgruber bernhardmgruber marked this pull request as ready for review February 11, 2022 14:25
@bernhardmgruber bernhardmgruber merged commit 30cfe97 into alpaka-group:develop Feb 11, 2022
@bernhardmgruber bernhardmgruber deleted the daxpy_alpaka branch February 11, 2022 16:02
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

Successfully merging this pull request may close these issues.

1 participant