Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
Add cudaHostRegister and cudaHostUnregister passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge committed Jun 24, 2019
1 parent 1659ecc commit fecb328
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cuda-ecc-ed25519/ed25519.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ void ED25519_DECLSPEC ed25519_set_verbose(bool val);
const char* ED25519_DECLSPEC ed25519_license();
bool ED25519_DECLSPEC ed25519_init();

int cuda_host_register(void* ptr, size_t size, unsigned int flags);
int cuda_host_unregister(void* ptr);

#ifdef __cplusplus
}
#endif
Expand Down
8 changes: 8 additions & 0 deletions src/cuda-ecc-ed25519/verify.cu
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,11 @@ const char* ed25519_license() {
"Licensed under the Apache License, Version 2.0 "
"<http://www.apache.org/licenses/LICENSE-2.0>";
}

int cuda_host_register(void* ptr, size_t size, unsigned int flags) {
return cudaHostRegister(ptr, size, flags);
}

int cuda_host_unregister(void* ptr) {
return cudaHostUnregister(ptr);
}

0 comments on commit fecb328

Please sign in to comment.