diff options
-rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h | 7 | ||||
-rw-r--r-- | openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h index 1a815ee4d24..a446e005c32 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h @@ -52,17 +52,16 @@ public: // Free any memory allocated for outlined parallel function with a large // number of arguments. if (nArgs > MAX_SHARED_ARGS) { - SafeFree(args, (char *)"new extended args"); + SafeFree(args, "new extended args"); Init(); } } INLINE void EnsureSize(size_t size) { if (size > nArgs) { if (nArgs > MAX_SHARED_ARGS) { - SafeFree(args, (char *)"new extended args"); + SafeFree(args, "new extended args"); } - args = (void **) SafeMalloc(size * sizeof(void *), - (char *)"new extended args"); + args = (void **)SafeMalloc(size * sizeof(void *), "new extended args"); nArgs = size; } } diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu index dc0c22c4319..aa017277866 100644 --- a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu @@ -413,7 +413,7 @@ EXTERN void __kmpc_end_serialized_parallel(kmp_Ident *loc, omptarget_nvptx_threadPrivateContext->SetTopLevelTaskDescr( threadId, currTaskDescr->GetPrevTaskDescr()); // free - SafeFree(currTaskDescr, (char *)"new seq parallel task"); + SafeFree(currTaskDescr, "new seq parallel task"); currTaskDescr = getMyTopTaskDescriptor(threadId); currTaskDescr->RestoreLoopData(); } |