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

[CUDAX] Add modernized simpleP2P sample #2696

Merged
merged 31 commits into from
Nov 11, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
eae1b06
copy pasted sample
pciolkosz Oct 25, 2024
5d7ad98
WIP
pciolkosz Oct 25, 2024
2a3060f
First draft
pciolkosz Oct 28, 2024
795439b
Fixes
pciolkosz Oct 28, 2024
850f5ec
More fixes
pciolkosz Oct 28, 2024
bbc7d2e
More fixes
pciolkosz Oct 28, 2024
9ec90b6
More fixes
pciolkosz Oct 28, 2024
29d48b7
Kernel functor and some other things
pciolkosz Oct 31, 2024
4760c7d
Clean up and break up long main function
pciolkosz Oct 31, 2024
836c512
Needs launch fix
pciolkosz Oct 31, 2024
824a568
Switch to copy_bytes and cleanups
pciolkosz Nov 1, 2024
088dad2
Missing include
pciolkosz Nov 1, 2024
3a813a3
Add exception print and waive value
pciolkosz Nov 2, 2024
8ffc7f7
Adjust copy count
pciolkosz Nov 2, 2024
5174101
Add license and switch benchmark streams
pciolkosz Nov 4, 2024
9d47842
Remove a function left as a mistake
pciolkosz Nov 4, 2024
a5f1e4a
Update copyright date
pciolkosz Nov 4, 2024
fa570ad
Setup cudax examples. (#2697)
alliepiper Nov 4, 2024
197ed75
Move the sample to new location and fix warning
pciolkosz Nov 5, 2024
3650705
Merge branch 'main' into cudax_p2p_sample
pciolkosz Nov 5, 2024
f20190d
build fixes and 0 return code on waive
pciolkosz Nov 5, 2024
119b05c
Some new MSVC errors
pciolkosz Nov 5, 2024
02c94b9
explicit cast
pciolkosz Nov 5, 2024
baaff9b
Rename enable/disable peer access and separate the sample loop
pciolkosz Nov 6, 2024
ed5cf1f
Add `cuda::minimum` and `cuda::maximum` (#2681)
Jacobfaib Nov 5, 2024
49c431c
Various fixes to cub::DeviceTransform (#2709)
bernhardmgruber Nov 6, 2024
1f05372
Make `thrust::transform` use `cub::DeviceTransform` (#2389)
bernhardmgruber Nov 6, 2024
13961d0
Ensure that we only use the inline variable trait when it is actually…
miscco Nov 6, 2024
b0384b6
[CUDAX] Rename memory resource and memory pool from async to device (…
pciolkosz Nov 6, 2024
603f2aa
Update memory resource name
pciolkosz Nov 6, 2024
76cd405
Merge branch 'main' into cudax_p2p_sample
pciolkosz Nov 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Missing include
pciolkosz committed Nov 4, 2024
commit 088dad24a76bbebdaf806575e20e93b7100daeb5
5 changes: 3 additions & 2 deletions examples/cudax/simple_p2p/simple_p2p.cu
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@
// includes, system
#include <cuda/memory_resource>

#include <cuda/experimental/algorithm.cuh>
#include <cuda/experimental/buffer.cuh>
#include <cuda/experimental/device.cuh>
#include <cuda/experimental/launch.cuh>
@@ -81,11 +82,11 @@ void benchmark_cross_device_ping_pong_copy(
// Ping-pong copy between GPUs
if (i % 2 == 0)
{
cudax::copy_bytes(stream, dev0_buffer, dev1_buffer);
cudax::copy_bytes(dev0_stream, dev0_buffer, dev1_buffer);
}
else
{
cudax::copy_bytes(stream, dev1_buffer, dev0_buffer);
cudax::copy_bytes(dev0_stream, dev1_buffer, dev0_buffer);
}
}