12
12
#include <umf.h>
13
13
#include <umf/providers/provider_cuda.h>
14
14
15
+ #include "utils_log.h"
16
+
15
17
#if defined(UMF_NO_CUDA_PROVIDER )
16
18
17
19
umf_result_t umfCUDAMemoryProviderParamsCreate (
18
20
umf_cuda_memory_provider_params_handle_t * hParams ) {
19
21
(void )hParams ;
22
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
20
23
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
21
24
}
22
25
23
26
umf_result_t umfCUDAMemoryProviderParamsDestroy (
24
27
umf_cuda_memory_provider_params_handle_t hParams ) {
25
28
(void )hParams ;
29
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
26
30
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
27
31
}
28
32
29
33
umf_result_t umfCUDAMemoryProviderParamsSetContext (
30
34
umf_cuda_memory_provider_params_handle_t hParams , void * hContext ) {
31
35
(void )hParams ;
32
36
(void )hContext ;
37
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
33
38
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
34
39
}
35
40
36
41
umf_result_t umfCUDAMemoryProviderParamsSetDevice (
37
42
umf_cuda_memory_provider_params_handle_t hParams , int hDevice ) {
38
43
(void )hParams ;
39
44
(void )hDevice ;
45
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
40
46
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
41
47
}
42
48
@@ -45,11 +51,13 @@ umf_result_t umfCUDAMemoryProviderParamsSetMemoryType(
45
51
umf_usm_memory_type_t memoryType ) {
46
52
(void )hParams ;
47
53
(void )memoryType ;
54
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
48
55
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
49
56
}
50
57
51
58
umf_memory_provider_ops_t * umfCUDAMemoryProviderOps (void ) {
52
59
// not supported
60
+ LOG_ERR ("CUDA provider is disabled (UMF_BUILD_CUDA_PROVIDER is OFF)!" );
53
61
return NULL ;
54
62
}
55
63
0 commit comments