Skip to content

Commit

Permalink
Fixes #628, regards #3: Corrected signatures of `context::current::pe…
Browse files Browse the repository at this point in the history
…er_to_peer` functions + added documentation
  • Loading branch information
eyalroz committed Apr 29, 2024
1 parent c54cc05 commit eecd427
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/cuda/api/peer_to_peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,19 @@ namespace current {

namespace peer_to_peer {

void enable_access_to(const context_t &context, const context_t &peer_context);
/**
* Allows subsequently-executed memory operations and kernels to access the memory
* associated with the specified peer context - if peer-to-peer access is supported
* between the two devices.
*/
void enable_access_to(const context_t &peer_context);

void disable_access_to(const context_t &context, const context_t &peer_context);
/**
* Prevents subsequently-executed memory operations and kernels from accessing the
* memory associated with the specified peer context - if peer-to-peer access is
* supported between the two devices.
*/
void disable_access_to(const context_t &peer_context);

} // namespace peer_to_peer

Expand Down

0 comments on commit eecd427

Please sign in to comment.