[PATCH] OpenMP Validation Suite for testing LLVM OpenMP Implementation, Patch 2 of 2
sunita chandrasekaran
sunisg123 at gmail.com
Fri Feb 13 21:09:03 PST 2015
The goal is for LLVM to use OpenMP test suite (created by University of Houston and University of Stuttgart) as a basis for testing the LLVM OpenMP implementation.
Changes under llvm/openmp/runtime
REPOSITORY
rL LLVM
http://reviews.llvm.org/D7638
Files:
Makefile
tools/check-openmp-test.pl
tools/check-openmp.pl
Index: Makefile
===================================================================
--- Makefile
+++ Makefile
@@ -47,3 +47,20 @@
@echo mode=$(mode)
@echo jobs=$(jobs)
+include $(omp_root)$(SLASH)..$(SLASH)testsuite/Makefile
+
+libiomp5_path=$(shell $(omp_root)/tools/check-openmp.pl)
+test_path=$(shell $(omp_root)/tools/check-openmp-test.pl)
+
+check-openmp: info mkdir
+ @$(Verb) if which llvm-lit &> /dev/null; then \
+ if [ -d "$(omp_root)$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR" ] ; then \
+ TESTSUITE_TEMP=$(realpath $(omp_root))$(SLASH)tmp \
+ LIBRARY_PATH=$(libiomp5_path):$(LIBRARY_PATH) \
+ LD_LIBRARY_PATH=$(libiomp5_path):$(LD_LIBRARY_PATH) \
+ DYLD_LIBRARY_PATH=$(libiomp5_path):$(DYLD_LIBRARY_PATH) \
+ llvm-lit -j 1 $(realpath $(omp_root))$(SLASH)..$(SLASH)testsuite$(SLASH)LLVM-IR$(SLASH)$(test_path) -v ; \
+ else \
+ echo "No test directory" ; exit 1; \
+ fi; else echo "No llvm-lit in $(PATH)"; exit 1; fi
+
Index: tools/check-openmp-test.pl
===================================================================
--- tools/check-openmp-test.pl
+++ tools/check-openmp-test.pl
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+# LIBOMP modules.
+use Build;
+use LibOMP;
+use Platform ":vars";
+use Uname;
+use tools;
+
+my $root_dir = $ENV{ LIBOMP_WORK };
+print join('', $target_os, "_", $target_arch, "/");
+
Index: tools/check-openmp.pl
===================================================================
--- tools/check-openmp.pl
+++ tools/check-openmp.pl
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+# LIBOMP modules.
+use Build;
+use LibOMP;
+use Platform ":vars";
+use Uname;
+use tools;
+
+my $root_dir = $ENV{ LIBOMP_WORK };
+print join('', $root_dir, "/", "exports", "/", $target_os, "_", $target_arch, "/", "lib");
+
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7638.19959.patch
Type: text/x-patch
Size: 1997 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150214/5a860786/attachment.bin>
More information about the llvm-commits
mailing list