[Openmp-commits] [PATCH] D41182: [OMPT] Add Workaround for Intel Compiler Bug

Simon Convent via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Jan 10 03:41:52 PST 2018


sconvent updated this revision to Diff 129233.
sconvent retitled this revision from "[OMPT] Fix testcases for Intel Compiler" to "[OMPT] Add Workaround for Intel Compiler Bug".
sconvent edited the summary of this revision.

https://reviews.llvm.org/D41182

Files:
  runtime/test/ompt/tasks/task_types.c
  runtime/test/ompt/tasks/task_types_serialized.c


Index: runtime/test/ompt/tasks/task_types_serialized.c
===================================================================
--- runtime/test/ompt/tasks/task_types_serialized.c
+++ runtime/test/ompt/tasks/task_types_serialized.c
@@ -4,6 +4,7 @@
 #include "callback.h"
 #include <omp.h>
 
+__attribute__ ((noinline)) // workaround for bug in icc
 void print_task_type(int id)
 {
   #pragma omp critical
Index: runtime/test/ompt/tasks/task_types.c
===================================================================
--- runtime/test/ompt/tasks/task_types.c
+++ runtime/test/ompt/tasks/task_types.c
@@ -4,7 +4,7 @@
 #include <omp.h>
 #include <math.h>
 
-
+__attribute__ ((noinline)) // workaround for bug in icc
 void print_task_type(int id)
 {
   #pragma omp critical


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41182.129233.patch
Type: text/x-patch
Size: 765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20180110/907e2db1/attachment-0001.bin>


More information about the Openmp-commits mailing list