[Openmp-commits] [PATCH] D88476: [OpenMP][VE plugin] Fixing failure to build VE plugin with consolidated error handling in libomptarget

Manoel Roemmer via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Sep 29 04:09:48 PDT 2020


manorom created this revision.
manorom added a reviewer: simoll.
Herald added subscribers: openmp-commits, guansong, yaxunl.
Herald added a project: OpenMP.
manorom requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

The libomptarget VE plugin fails zu build <http://lab.llvm.org:8014/builders/clang-ve-ninja/builds/8937/steps/build-unified-tree/logs/stdio> after ae95ceeb8f98d81f615c69da02f73b5ee6b1519a <https://reviews.llvm.org/rGae95ceeb8f98d81f615c69da02f73b5ee6b1519a> .


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88476

Files:
  openmp/libomptarget/plugins/ve/src/rtl.cpp


Index: openmp/libomptarget/plugins/ve/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/ve/src/rtl.cpp
+++ openmp/libomptarget/plugins/ve/src/rtl.cpp
@@ -11,9 +11,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "Debug.h"
-#include "omptargetplugin.h"
-
 #include <algorithm>
 #include <cassert>
 #include <cerrno>
@@ -26,14 +23,19 @@
 #include <vector>
 #include <veosinfo/veosinfo.h>
 
-#ifndef TARGET_ELF_ID
-#define TARGET_ELF_ID 0
-#endif
+#include "Debug.h"
+#include "omptargetplugin.h"
 
+#ifndef TARGET_NAME
 #define TARGET_NAME VE
+#endif
 
 #define DEBUG_PREFIX "Target " GETNAME(TARGET_NAME) " RTL"
 
+#ifndef TARGET_ELF_ID
+#define TARGET_ELF_ID 0
+#endif
+
 #include "../../common/elf_common.c"
 
 struct DynLibTy {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88476.294926.patch
Type: text/x-patch
Size: 846 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200929/d4e8f3d2/attachment.bin>


More information about the Openmp-commits mailing list