Skip to content

Commit 171d356

Browse files
committed
Fix failure with destructor order in CUDA params
1 parent e53e52f commit 171d356

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/provider/provider_cuda.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ umf_memory_provider_ops_t *umfCUDAMemoryProviderOps(void) {
6868
#endif // _MSC_VER
6969

7070
#include "base_alloc_global.h"
71+
#include "libumf.h"
7172
#include "utils_assert.h"
7273
#include "utils_common.h"
7374
#include "utils_concurrency.h"
@@ -201,6 +202,7 @@ static void init_cu_global_state(void) {
201202

202203
umf_result_t umfCUDAMemoryProviderParamsCreate(
203204
umf_cuda_memory_provider_params_handle_t *hParams) {
205+
libumfInit();
204206
if (!hParams) {
205207
LOG_ERR("CUDA Memory Provider params handle is NULL");
206208
return UMF_RESULT_ERROR_INVALID_ARGUMENT;

0 commit comments

Comments
 (0)