1 //===------ cancel.cu - NVPTX OpenMP cancel interface ------------ CUDA -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Interface to be used in the implementation of OpenMP cancel.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "interface.h"
14 #include "common/debug.h"
15
__kmpc_cancellationpoint(kmp_Ident * loc,int32_t global_tid,int32_t cancelVal)16 EXTERN int32_t __kmpc_cancellationpoint(kmp_Ident *loc, int32_t global_tid,
17 int32_t cancelVal) {
18 PRINT(LD_IO, "call kmpc_cancellationpoint(cancel val %d)\n", (int)cancelVal);
19 // disabled
20 return 0;
21 }
22
__kmpc_cancel(kmp_Ident * loc,int32_t global_tid,int32_t cancelVal)23 EXTERN int32_t __kmpc_cancel(kmp_Ident *loc, int32_t global_tid,
24 int32_t cancelVal) {
25 PRINT(LD_IO, "call kmpc_cancel(cancel val %d)\n", (int)cancelVal);
26 // disabled
27 return 0;
28 }
29