
This change introduces a check-libomp target which is based upon llvm's lit test infrastructure. Each test (generated from the University of Houston's OpenMP testsuite) is compiled and then run. For each test, an exit status of 0 indicates success and non-zero indicates failure. This way, FileCheck is not needed. I've added a bit of logic to generate symlinks (libiomp5 and libgomp) in the build tree so that gcc can be tested as well. When building out-of- tree builds, the user will have to provide llvm-lit either by specifying -DLIBOMP_LLVM_LIT_EXECUTABLE or having llvm-lit in their PATH. Differential Revision: http://reviews.llvm.org/D11821 llvm-svn: 248211
23 lines
636 B
C
23 lines
636 B
C
/* Global headerfile of the OpenMP Testsuite */
|
|
|
|
#ifndef OMP_TESTSUITE_H
|
|
#define OMP_TESTSUITE_H
|
|
|
|
#include <stdio.h>
|
|
#include <omp.h>
|
|
|
|
/* General */
|
|
/**********************************************************/
|
|
#define LOOPCOUNT 1000 /* Number of iterations to slit amongst threads */
|
|
#define REPETITIONS 10 /* Number of times to run each test */
|
|
|
|
/* following times are in seconds */
|
|
#define SLEEPTIME 0.1
|
|
|
|
/* Definitions for tasks */
|
|
/**********************************************************/
|
|
#define NUM_TASKS 25
|
|
#define MAX_TASKS_PER_THREAD 5
|
|
|
|
#endif
|