Skip to content

Commit 7fc9407

Browse files
committed
Fixed warnings about explicitly deprecated CUDA/HIP functions.
1 parent 8981a5b commit 7fc9407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/acc/cuda/acc_mem.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extern "C" int acc_dev_mem_deallocate(void *dev_mem){
4848
extern "C" int acc_host_mem_allocate(void **host_mem, size_t n, void *stream){
4949
unsigned int flag = ACC(HostAllocDefault);
5050

51-
ACC_API_CALL(HostAlloc, ((void **) host_mem, (size_t) n, flag));
51+
ACC_API_CALL(HostMalloc, ((void **) host_mem, (size_t) n, flag));
5252
if (host_mem == NULL)
5353
return -2;
5454
if (verbose_print)
@@ -62,7 +62,7 @@ extern "C" int acc_host_mem_allocate(void **host_mem, size_t n, void *stream){
6262
extern "C" int acc_host_mem_deallocate(void *host_mem, void *stream){
6363
if (verbose_print)
6464
printf ("Host pinned deallocation address %p\n", host_mem);
65-
ACC_API_CALL(FreeHost, ((void *) host_mem));
65+
ACC_API_CALL(HostFree, ((void *) host_mem));
6666

6767
return 0;
6868
}

0 commit comments

Comments
 (0)