-
Notifications
You must be signed in to change notification settings - Fork 35
Update Cuda provider config API #921
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
Update Cuda provider config API #921
Conversation
4b554ef
to
0199253
Compare
umf_cuda_memory_provider_params_handle_t cu_params = NULL; | ||
umf_result_t umf_result = umfCudaMemoryProviderParamsCreate(&cu_params); | ||
if (umf_result != UMF_RESULT_SUCCESS) { | ||
fprintf(stderr, "Failed to create level zero params!\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[...] CUDA memory provider params!
, same with the rest of the error messages in the consumer and producer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
bc080fa
to
c9c0cc2
Compare
general note: when referring to a specific UMF pool provider/implementation, we should always use capital letters, e.g. we should write ‘UMF CUDA Memory Provider is an example of a memory provider implemented in UMF’ etc. We should also never write ‘Cuda’. Always use ‘CUDA’ in comments, and ‘cuda’ only as part of C variables/names, such as ‘umf_cuda_params’ etc. |
/// @brief Create a struct to store parameters of the Cuda memory provider. | ||
/// @param hParams [out] handle to the newly created parameters struct. | ||
/// @return UMF_RESULT_SUCCESS on success or appropriate error code on failure. | ||
umf_result_t umfCudaMemoryProviderParamsCreate( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please always write "CUDA" using capital letters as this is an acronym
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
c9c0cc2
to
d3a1398
Compare
Description
Change the Cuda provider config as we agreed in #844
Checklist