[Openmp-commits] [openmp] r301075 - [OpenMP] libomptarget: Remove obsolete negative device IDs -2/-3
George Rokos via Openmp-commits
openmp-commits at lists.llvm.org
Sat Apr 22 04:21:55 PDT 2017
Author: grokos
Date: Sat Apr 22 06:21:54 2017
New Revision: 301075
URL: http://llvm.org/viewvc/llvm-project?rev=301075&view=rev
Log:
[OpenMP] libomptarget: Remove obsolete negative device IDs -2/-3
Differential Revision: https://reviews.llvm.org/D32325
Modified:
openmp/trunk/libomptarget/src/omptarget.cpp
openmp/trunk/libomptarget/src/omptarget.h
Modified: openmp/trunk/libomptarget/src/omptarget.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/omptarget.cpp?rev=301075&r1=301074&r2=301075&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/omptarget.cpp (original)
+++ openmp/trunk/libomptarget/src/omptarget.cpp Sat Apr 22 06:21:54 2017
@@ -2208,13 +2208,6 @@ static int target(int32_t device_id, voi
EXTERN int __tgt_target(int32_t device_id, void *host_ptr, int32_t arg_num,
void **args_base, void **args, int64_t *arg_sizes, int32_t *arg_types) {
- if (device_id == OFFLOAD_DEVICE_CONSTRUCTOR ||
- device_id == OFFLOAD_DEVICE_DESTRUCTOR) {
- // Return immediately for the time being, target calls with device_id
- // -2 or -3 will be removed from the compiler in the future.
- return OFFLOAD_SUCCESS;
- }
-
DP("Entering target region with entry point " DPxMOD " and device Id %d\n",
DPxPTR(host_ptr), device_id);
@@ -2262,13 +2255,6 @@ EXTERN int __tgt_target_nowait(int32_t d
EXTERN int __tgt_target_teams(int32_t device_id, void *host_ptr,
int32_t arg_num, void **args_base, void **args, int64_t *arg_sizes,
int32_t *arg_types, int32_t team_num, int32_t thread_limit) {
- if (device_id == OFFLOAD_DEVICE_CONSTRUCTOR ||
- device_id == OFFLOAD_DEVICE_DESTRUCTOR) {
- // Return immediately for the time being, target calls with device_id
- // -2 or -3 will be removed from the compiler in the future.
- return OFFLOAD_SUCCESS;
- }
-
DP("Entering target region with entry point " DPxMOD " and device Id %d\n",
DPxPTR(host_ptr), device_id);
Modified: openmp/trunk/libomptarget/src/omptarget.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/libomptarget/src/omptarget.h?rev=301075&r1=301074&r2=301075&view=diff
==============================================================================
--- openmp/trunk/libomptarget/src/omptarget.h (original)
+++ openmp/trunk/libomptarget/src/omptarget.h Sat Apr 22 06:21:54 2017
@@ -21,8 +21,6 @@
#define OFFLOAD_FAIL (~0)
#define OFFLOAD_DEVICE_DEFAULT -1
-#define OFFLOAD_DEVICE_CONSTRUCTOR -2
-#define OFFLOAD_DEVICE_DESTRUCTOR -3
#define HOST_DEVICE -10
/// Data attributes for each data reference used in an OpenMP target region.
More information about the Openmp-commits
mailing list