From f902e467b75671d06d1e9ad3663b8aa9366bc14b Mon Sep 17 00:00:00 2001 From: Jonathan Peyton Date: Mon, 13 Nov 2017 17:44:48 +0000 Subject: [OpenMP] Remove the unused testsuite/ directory The testsuite directory is not used or updated and confuses new users to the OpenMP project. These tests were rewritten using the lit format and put under the runtime/test directory. This patch removes the entire testsuite/ directory. Differential Revision: https://reviews.llvm.org/D39767 llvm-svn: 318056 --- openmp/testsuite/c/omp_get_num_threads.c | 39 -------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 openmp/testsuite/c/omp_get_num_threads.c (limited to 'openmp/testsuite/c/omp_get_num_threads.c') diff --git a/openmp/testsuite/c/omp_get_num_threads.c b/openmp/testsuite/c/omp_get_num_threads.c deleted file mode 100644 index 4b092ba966e..00000000000 --- a/openmp/testsuite/c/omp_get_num_threads.c +++ /dev/null @@ -1,39 +0,0 @@ - -Test which checks that the omp_get_num_threads returns the correct number of threads. Therefor it counts up a variable in a parallelized section and compars this value with the result of the omp_get_num_threads function. -2.0 -omp_get_num_threads - -#include - -#include "omp_testsuite.h" - -int omp_get_num_threads (FILE * logFile) -{ - /* checks that omp_get_num_threads is equal to the number of - threads */ - - int nthreads_lib; - - int nthreads = 0; - - nthreads_lib = -1; - -#pragma omp parallel - { -#pragma omp critical - { - nthreads++; - } /* end of critical */ -#pragma omp single - { - - nthreads_lib = omp_get_num_threads (); - - } /* end of single */ - } /* end of parallel */ - - fprintf (logFile, "Counted %d threads. get_num_threads returned %d.\n", nthreads, nthreads_lib); - return (nthreads == nthreads_lib); -} - - -- cgit v1.2.3