text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: runtime/test/ompt/cancel/cancel_worksharing.c
// RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// Current GOMP interface implementation does not support cancellation; icc 16 does not distinguish between sections and loops
// XFAIL: icc-16
#incl... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/cancel/cancel_worksharing.c", "license": "apache-2.0", "size": 2193} |
### File: runtime/test/ompt/loadtool/tool_available/tool_available.c
// The OpenMP standard defines 3 ways of providing ompt_start_tool:
// 1. "statically-linking the tool’s definition of ompt_start_tool into an OpenMP application"
// RUN: %libomp-compile -DCODE -DTOOL && %libomp-run | FileCheck %s
// Note: We should ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/loadtool/tool_available/tool_available.c", "license": "apache-2.0", "size": 2433} |
### File: runtime/test/ompt/loadtool/tool_available_search/tool_available_search.c
// RUN: %clang %flags -shared -fPIC %s -o %T/first_tool.so
// RUN: %clang %flags -DTOOL -DSECOND_TOOL -shared -fPIC %s -o %T/second_tool.so
// RUN: %clang %flags -DTOOL -DTHIRD_TOOL -shared -fPIC %s -o %T/third_tool.so
// RUN: %libomp-co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/loadtool/tool_available_search/tool_available_search.c", "license": "apache-2.0", "size": 2936} |
### File: runtime/test/ompt/loadtool/tool_not_available/tool_not_available.c
// The OpenMP standard defines 3 ways of providing ompt_start_tool:
// 1. "statically-linking the tool’s definition of ompt_start_tool into an OpenMP application"
// RUN: %libomp-compile -DCODE -DTOOL && %libomp-run | FileCheck %s
// Note: We... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/loadtool/tool_not_available/tool_not_available.c", "license": "apache-2.0", "size": 2300} |
### File: runtime/test/ompt/misc/api_calls_from_other_thread.cpp
// RUN: %libomp-cxx-compile-and-run | FileCheck %s
// REQUIRES: ompt, linux
#include <thread>
#include "callback.h"
void f() {
ompt_data_t *tdata = ompt_get_thread_data();
uint64_t tvalue = tdata ? tdata->value : 0;
printf("%" PRIu64 ": ompt_get_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/api_calls_from_other_thread.cpp", "license": "apache-2.0", "size": 2762} |
### File: runtime/test/ompt/misc/api_calls_misc.c
// RUN: %libomp-compile && %libomp-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main() {
#pragma omp parallel num_threads(1)
{
// ompt_get_callback()
ompt_callback_t callback;
ompt_get_callback(ompt_callback_thread_begin... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/api_calls_misc.c", "license": "apache-2.0", "size": 2366} |
### File: runtime/test/ompt/misc/api_calls_places.c
// RUN: %libomp-compile && env OMP_PLACES=cores %libomp-run | FileCheck %s
// REQUIRES: ompt, linux
#include "callback.h"
#include <omp.h>
#define __USE_GNU
#include <sched.h>
#undef __USE_GNU
void print_list(char *function_name, int size, int list[]) {
printf("%" ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/api_calls_places.c", "license": "apache-2.0", "size": 3398} |
### File: runtime/test/ompt/misc/api_calls_without_ompt.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#define _BSD_SOURCE
#define _DEFAULT_SOURCE
#include <stdio.h>
#include <inttypes.h>
#include <omp.h>
#include <omp-tools.h>
static ompt_set_callback_t ompt_set_callback;
static ompt_get_callbac... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/api_calls_without_ompt.c", "license": "apache-2.0", "size": 5561} |
### File: runtime/test/ompt/misc/control_tool.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(1)
{
print_frame_from_o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/control_tool.c", "license": "apache-2.0", "size": 1067} |
### File: runtime/test/ompt/misc/control_tool_no_ompt_support.c
// RUN: %libomp-compile-and-run
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(1)
{
omp_control_tool(omp_control_tool_flush, 1, NULL);
}
return 0;
}
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/control_tool_no_ompt_support.c", "license": "apache-2.0", "size": 180} |
### File: runtime/test/ompt/misc/finalize_tool.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
int main() {
#pragma omp parallel num_threads(2)
{}
printf("Before ompt_finalize_tool\n");
ompt_finalize_tool();
printf("After ompt_finalize_tool\n");
return 0;
}
// CHEC... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/finalize_tool.c", "license": "apache-2.0", "size": 727} |
### File: runtime/test/ompt/misc/interoperability.cpp
// RUN: %libomp-cxx-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include <iostream>
#include <thread>
#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <alloca.h>
#else
#include <cstdlib>
#endif
#include "callback.h"
#include "omp.h"
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/interoperability.cpp", "license": "apache-2.0", "size": 4428} |
### File: runtime/test/ompt/misc/threads.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main() {
int x = 0;
#pragma omp parallel num_threads(4)
{
#pragma omp atomic
x++;
}
// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
// CHECK: {{^... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/threads.c", "license": "apache-2.0", "size": 1230} |
### File: runtime/test/ompt/misc/threads_nested.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main() {
int condition = 0;
int x = 0;
omp_set_nested(1);
#pragma omp parallel num_threads(2)
{
#pragma omp parallel num_threads(2)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/threads_nested.c", "license": "apache-2.0", "size": 1354} |
### File: runtime/test/ompt/misc/unset_callback.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(1)
{
}
ompt_set_callback(ompt_callback_parallel_begin, NULL);
#pragma omp parallel num_threads(1)
{
}
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/misc/unset_callback.c", "license": "apache-2.0", "size": 703} |
### File: runtime/test/ompt/ompt-signal.h
#if defined(WIN32) || defined(_WIN32)
#include <windows.h>
#define delay() Sleep(1);
#else
#include <unistd.h>
#define delay(t) usleep(t);
#endif
// These functions are used to provide a signal-wait mechanism to enforce expected scheduling for the test cases.
// Conditional va... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/ompt-signal.h", "license": "apache-2.0", "size": 668} |
### File: runtime/test/ompt/parallel/dynamic_enough_threads.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
int main()
{
omp_set_dynamic(1);
#pragma omp parallel num_threads(4)
{
print_ids(0);
print_ids(1);
}
print_fuzzy_address(1);
// Check if libomp supp... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/dynamic_enough_threads.c", "license": "apache-2.0", "size": 2020} |
### File: runtime/test/ompt/parallel/dynamic_not_enough_threads.c
// RUN: %libomp-compile && env OMP_THREAD_LIMIT=2 %libomp-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
int main()
{
omp_set_dynamic(1);
#pragma omp parallel num_threads(4)
{
print_ids(0);
print_ids(1);
}
print_fuzzy_addr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/dynamic_not_enough_threads.c", "license": "apache-2.0", "size": 2050} |
### File: runtime/test/ompt/parallel/max_active_levels_serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
omp... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/max_active_levels_serialized.c", "license": "apache-2.0", "size": 5199} |
### File: runtime/test/ompt/parallel/nested.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/nested.c", "license": "apache-2.0", "size": 26645} |
### File: runtime/test/ompt/parallel/nested_lwt.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
#include <unistd.h>
int main()
{
o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/nested_lwt.c", "license": "apache-2.0", "size": 35702} |
### File: runtime/test/ompt/parallel/nested_serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
omp_set_nested... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/nested_serialized.c", "license": "apache-2.0", "size": 11014} |
### File: runtime/test/ompt/parallel/nested_thread_num.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/nested_thread_num.c", "license": "apache-2.0", "size": 14243} |
### File: runtime/test/ompt/parallel/nested_threadnum.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include <omp.h>
#include "callback.h"
int main() {
omp_set_nested(1);
#pragma omp parallel num_threads(2)
{
#pragma omp barrier
#pragma omp parallel num_threads(2)
{ print_f... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/nested_threadnum.c", "license": "apache-2.0", "size": 2631} |
### File: runtime/test/ompt/parallel/no_thread_num_clause.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
#include "callback.h"
int main()
{
omp_set_num_threads(4);
#pragma omp parallel
{
print_ids(0);
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/no_thread_num_clause.c", "license": "apache-2.0", "size": 7146} |
### File: runtime/test/ompt/parallel/normal.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | %sort-threads \
// RUN: | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
#include "callback.h"
int main() {
#pragma omp parallel num_threads(4)
{
print_ids... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/normal.c", "license": "apache-2.0", "size": 6610} |
### File: runtime/test/ompt/parallel/not_enough_threads.c
// RUN: %libomp-compile && env OMP_THREAD_LIMIT=2 %libomp-run | FileCheck %s
// RUN: %libomp-compile && env OMP_THREAD_LIMIT=2 %libomp-run | %sort-threads \
// RUN: | FileCheck --check-prefix=THREADS %s
// REQUIRES: ompt
#include "callback.h"
int main() {... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/not_enough_threads.c", "license": "apache-2.0", "size": 4123} |
### File: runtime/test/ompt/parallel/parallel_if0.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
int main()
{
// print_frame(0);
#pragma omp parallel if(0)
{
// print_frame(1);
print_ids(0);
print_ids(1);
// print_f... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/parallel_if0.c", "license": "apache-2.0", "size": 4827} |
### File: runtime/test/ompt/parallel/serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
int main()
{
// print_frame(0);
#pragma omp parallel num_threads(1)
{
// print_frame(1);
print_ids(0);
print_ids(1);
// ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/parallel/serialized.c", "license": "apache-2.0", "size": 4958} |
### File: runtime/test/ompt/synchronization/barrier/explicit.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
#pragma omp parallel num_threads(2)
{
#pragma omp atomic
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/explicit.c", "license": "apache-2.0", "size": 3072} |
### File: runtime/test/ompt/synchronization/barrier/for_loop.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
int y[] = {0,1,2,3};
#pragma omp parallel num_threads(2)
{
//implicit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/for_loop.c", "license": "apache-2.0", "size": 2918} |
### File: runtime/test/ompt/synchronization/barrier/for_simd.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// XFAIL: gcc-4
#include "callback.h"
#include <omp.h>
int main()
{
int y[] = {0,1,2,3};
int i;
#pragma omp for simd
for (i = 0; i < 4; i++)
{
y[i]++;
}
// Check if libo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/for_simd.c", "license": "apache-2.0", "size": 1092} |
### File: runtime/test/ompt/synchronization/barrier/implicit_task_data.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// This test checks that values stored in task_data in a barrier_begin event
// are still present in the corresponding barrier_end event.
// Therefore, callback impl... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/implicit_task_data.c", "license": "apache-2.0", "size": 5837} |
### File: runtime/test/ompt/synchronization/barrier/parallel_region.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
//implicit barrier at end of a parallel region
#pragma omp parallel num_threads(2)
{
#pragma... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/parallel_region.c", "license": "apache-2.0", "size": 1868} |
### File: runtime/test/ompt/synchronization/barrier/sections.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
#pragma omp parallel num_threads(2)
{
//implicit barrier after sections with nowait but with lastpri... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/sections.c", "license": "apache-2.0", "size": 3053} |
### File: runtime/test/ompt/synchronization/barrier/single.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
#pragma omp parallel num_threads(2)
{
//implicit barrier at ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/barrier/single.c", "license": "apache-2.0", "size": 3311} |
### File: runtime/test/ompt/synchronization/critical.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
#pragma omp critical
{
print_current_address(1);
print_ids(0);
}
print_current_address(2... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/critical.c", "license": "apache-2.0", "size": 1269} |
### File: runtime/test/ompt/synchronization/flush.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// GCC generates code that does not call the runtime for the flush construct
// XFAIL: gcc
#include "callback.h"
#include <omp.h>
int main() {
#pragma omp parallel num_threads(2)
{
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/flush.c", "license": "apache-2.0", "size": 902} |
### File: runtime/test/ompt/synchronization/lock.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
//need to use an OpenMP construct so that OMPT will be initalized
#pragma omp parallel num_threads(1)
print_ids(0);
omp_lock_t lock;
print... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/lock.c", "license": "apache-2.0", "size": 2111} |
### File: runtime/test/ompt/synchronization/master.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// GCC generates code that does not call the runtime for the master construct
// XFAIL: gcc
#include "callback.h"
#include <omp.h>
int main() {
int x = 0;
#pragma omp parallel num_threads(2)
{
#pr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/master.c", "license": "apache-2.0", "size": 1154} |
### File: runtime/test/ompt/synchronization/nest_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
//need to use an OpenMP construct so that OMPT will be initalized
#pragma omp parallel num_threads(1)
print_ids(0);
omp_nest_lock_t nes... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/nest_lock.c", "license": "apache-2.0", "size": 2838} |
### File: runtime/test/ompt/synchronization/ordered.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
#pragma omp ordered
{
print_current_address(1);
print_ids(0);
}
print_current_address(2);... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/ordered.c", "license": "apache-2.0", "size": 1269} |
### File: runtime/test/ompt/synchronization/taskgroup.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <unistd.h>
#include <stdio.h>
int main()
{
int condition=0;
int x=0;
#pragma omp parallel num_thre... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/taskgroup.c", "license": "apache-2.0", "size": 1792} |
### File: runtime/test/ompt/synchronization/taskwait.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
#pragma omp parallel num_threads(2)
{
#pragma omp master
{
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/taskwait.c", "license": "apache-2.0", "size": 1302} |
### File: runtime/test/ompt/synchronization/test_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
omp_lock_t lock;
omp_init_lock(&lock);
print_fuzzy_address(1);
omp_test_lock(&lock);
print_fuzzy_address(2);
omp_unset_lock(&lock);
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/test_lock.c", "license": "apache-2.0", "size": 2736} |
### File: runtime/test/ompt/synchronization/test_nest_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
int main()
{
omp_nest_lock_t nest_lock;
omp_init_nest_lock(&nest_lock);
omp_test_nest_lock(&nest_lock);
omp_unset_nest_lock(&nest_lock);
omp_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/test_nest_lock.c", "license": "apache-2.0", "size": 2091} |
### File: runtime/test/ompt/synchronization/test_nest_lock_parallel.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
int main()
{
omp_nest_lock_t nest_lock;
omp_init_nest_lock(&nest_lock);
#pragma... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/synchronization/test_nest_lock_parallel.c", "license": "apache-2.0", "size": 2785} |
### File: runtime/test/ompt/tasks/dependences.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#include "callback.h"
#include <omp.h>
#include <math.h>
#include <unistd.h>
int main()
{
int x = 0;
#pragma omp parallel num_threads(2)
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/dependences.c", "license": "apache-2.0", "size": 2635} |
### File: runtime/test/ompt/tasks/explicit_task.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <omp.h>
int main()
{
int condition=0;
omp_set_nested(0);
pri... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/explicit_task.c", "license": "apache-2.0", "size": 6702} |
### File: runtime/test/ompt/tasks/serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <omp.h>
#include <math.h>
int main() {
omp_set_nested(0);
print_fr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/serialized.c", "license": "apache-2.0", "size": 6292} |
### File: runtime/test/ompt/tasks/task_in_joinbarrier.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <omp.h>
int main()
{
int condition=0;
omp_set_nested(0);
print_frame(0);
#pragma omp parallel n... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/task_in_joinbarrier.c", "license": "apache-2.0", "size": 5670} |
### File: runtime/test/ompt/tasks/task_memory.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define USE_PRIVATE_TOOL 1
#include "callback.h"
#include <omp.h>
int main() {
int x;
#pragma omp parallel num_threads(2)
{
#pragma omp master
{
#pragma om... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/task_memory.c", "license": "apache-2.0", "size": 4042} |
### File: runtime/test/ompt/tasks/task_types.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
#include <math.h>
int main() {
//initialize the OpenMP runtime
omp_get_num_threads();
// initial task
print_ids(0);
int x;
// implicit task
#pragma omp para... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/task_types.c", "license": "apache-2.0", "size": 7847} |
### File: runtime/test/ompt/tasks/task_types_serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
#include "callback.h"
#include <omp.h>
__attribute__ ((noinline)) // workaround for bug in icc
void print_task_type(int id)
{
#pragma omp critical
{
int task_type;
char buffer[2048];
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/task_types_serialized.c", "license": "apache-2.0", "size": 4384} |
### File: runtime/test/ompt/tasks/taskloop.c
// RUN: %libomp-compile-and-run | FileCheck %s
// RUN: %libomp-compile-and-run | FileCheck --check-prefix=TASKS %s
// REQUIRES: ompt
// These compilers don't support the taskloop construct
// UNSUPPORTED: gcc-4, gcc-5, icc-16
// GCC 6 has support for taskloops, but at least... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/taskloop.c", "license": "apache-2.0", "size": 3429} |
### File: runtime/test/ompt/tasks/taskyield.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// Current GOMP interface implements taskyield as stub
// XFAIL: gcc
#include "callback.h"
#include <omp.h>
#include <unistd.h>
int main()
{
int condition=0, x=0;
#pragma omp parallel ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/taskyield.c", "license": "apache-2.0", "size": 2615} |
### File: runtime/test/ompt/tasks/untied_task.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
#define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN
#include "callback.h"
#include <omp.h>
int main()
{
int condition=0;
omp_set_nested(0);
print_frame(0);
#pragma omp parallel num_threa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/tasks/untied_task.c", "license": "apache-2.0", "size": 6719} |
### File: runtime/test/ompt/teams/parallel_team.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc
#include "callback.h"
int main() {
#pragma omp target teams num_teams(1) thread_limit(2)
#pragma omp parallel num_threads(2)
{ printf("In teams\n"); }
return 0;
}
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/teams/parallel_team.c", "license": "apache-2.0", "size": 2982} |
### File: runtime/test/ompt/teams/serial_teams.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc
#include "callback.h"
int main() {
#pragma omp target teams num_teams(2) thread_limit(1)
#pragma omp parallel num_threads(1)
{ printf("In teams parallel\n"); }
retur... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/teams/serial_teams.c", "license": "apache-2.0", "size": 3483} |
### File: runtime/test/ompt/teams/serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc
#include "callback.h"
int main() {
#pragma omp target teams num_teams(1) thread_limit(1)
#pragma omp parallel num_threads(1)
{ printf("In teams\n"); }
return 0;
}
// CHECK: 0: NULL_P... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/teams/serialized.c", "license": "apache-2.0", "size": 2457} |
### File: runtime/test/ompt/teams/team.c
// RUN: %libomp-compile-and-run | FileCheck %s
// REQUIRES: ompt
// UNSUPPORTED: gcc
#include "callback.h"
int main() {
#pragma omp target teams num_teams(1) thread_limit(1)
{ printf("In teams\n"); }
return 0;
}
// CHECK: 0: NULL_POINTER=[[NULL:.*$]]
// CHECK-NOT: 0: para... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/teams/team.c", "license": "apache-2.0", "size": 1884} |
### File: runtime/test/ompt/worksharing/for/auto.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base.h
// REQUIRES: ompt
// GCC doesn't call runtime for auto = static schedule
// XFAIL: gcc
#define SCHEDULE auto
#include "base.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/auto.c", "license": "apache-2.0", "size": 198} |
### File: runtime/test/ompt/worksharing/for/auto_serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_serialized.h
// REQUIRES: ompt
// GCC doesn't call runtime for auto = static schedule
// XFAIL: gcc
#define SCHEDULE auto
#include "base_serialized.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/auto_serialized.c", "license": "apache-2.0", "size": 220} |
### File: runtime/test/ompt/worksharing/for/auto_split.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
// GCC doesn't call runtime for auto = static schedule
// XFAIL: gc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/auto_split.c", "license": "apache-2.0", "size": 312} |
### File: runtime/test/ompt/worksharing/for/base.h
#include "callback.h"
#include <omp.h>
int main()
{
unsigned int i;
#pragma omp parallel for num_threads(4) schedule(SCHEDULE)
for (i = 0; i < 4; i++) {
}
// Check if libomp supports the callbacks for this test.
// CHECK-NOT: {{^}}0: Could not register c... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/base.h", "license": "apache-2.0", "size": 2848} |
### File: runtime/test/ompt/worksharing/for/base_serialized.h
#include "callback.h"
#include <omp.h>
int main()
{
unsigned int i;
#pragma omp parallel for num_threads(1) schedule(SCHEDULE)
for (i = 0; i < 1; i++) {
}
// Check if libomp supports the callbacks for this test.
// CHECK-NOT: {{^}}0: Could n... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/base_serialized.h", "license": "apache-2.0", "size": 1405} |
### File: runtime/test/ompt/worksharing/for/base_split.h
#include "callback.h"
#include <omp.h>
/* With the combined parallel-for construct (base.h), the return-addresses are hard to compare.
With the separate parallel and for-nowait construct, the addresses become more predictable,
but the begin of the for-loop... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/base_split.h", "license": "apache-2.0", "size": 4093} |
### File: runtime/test/ompt/worksharing/for/dynamic.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base.h
// REQUIRES: ompt
#define SCHEDULE dynamic
#include "base.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/dynamic.c", "license": "apache-2.0", "size": 132} |
### File: runtime/test/ompt/worksharing/for/dynamic_serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_serialized.h
// REQUIRES: ompt
#define SCHEDULE dynamic
#include "base_serialized.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/dynamic_serialized.c", "license": "apache-2.0", "size": 154} |
### File: runtime/test/ompt/worksharing/for/dynamic_split.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE dyn... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/dynamic_split.c", "license": "apache-2.0", "size": 289} |
### File: runtime/test/ompt/worksharing/for/guided.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base.h
// REQUIRES: ompt
#define SCHEDULE guided
#include "base.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/guided.c", "license": "apache-2.0", "size": 131} |
### File: runtime/test/ompt/worksharing/for/guided_serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_serialized.h
// REQUIRES: ompt
#define SCHEDULE guided
#include "base_serialized.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/guided_serialized.c", "license": "apache-2.0", "size": 153} |
### File: runtime/test/ompt/worksharing/for/guided_split.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE guid... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/guided_split.c", "license": "apache-2.0", "size": 288} |
### File: runtime/test/ompt/worksharing/for/runtime.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base.h
// REQUIRES: ompt
#define SCHEDULE runtime
#include "base.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/runtime.c", "license": "apache-2.0", "size": 132} |
### File: runtime/test/ompt/worksharing/for/runtime_serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_serialized.h
// REQUIRES: ompt
#define SCHEDULE runtime
#include "base_serialized.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/runtime_serialized.c", "license": "apache-2.0", "size": 154} |
### File: runtime/test/ompt/worksharing/for/runtime_split.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
// UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7
#define SCHEDULE run... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/runtime_split.c", "license": "apache-2.0", "size": 289} |
### File: runtime/test/ompt/worksharing/for/static.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base.h
// REQUIRES: ompt
// GCC doesn't call runtime for static schedule
// XFAIL: gcc
#define SCHEDULE static
#include "base.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/static.c", "license": "apache-2.0", "size": 193} |
### File: runtime/test/ompt/worksharing/for/static_serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_serialized.h
// REQUIRES: ompt
// GCC doesn't call runtime for static schedule
// XFAIL: gcc
#define SCHEDULE static
#include "base_serialized.h"
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/static_serialized.c", "license": "apache-2.0", "size": 215} |
### File: runtime/test/ompt/worksharing/for/static_split.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %S/base_split.h
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=CHECK-LOOP %S/base_split.h
// REQUIRES: ompt
// GCC doesn't call runtime for static schedule
// XFAIL: gcc
#d... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/for/static_split.c", "license": "apache-2.0", "size": 307} |
### File: runtime/test/ompt/worksharing/sections.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// Some compilers generate code that does not distinguish between sections and loops
// XFAIL: gcc, clang-3, clang-4, clang-5, icc-16, icc-17
// UNSUPPORTED: icc-18
#include "callback.h"
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/sections.c", "license": "apache-2.0", "size": 1364} |
### File: runtime/test/ompt/worksharing/single.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s
// REQUIRES: ompt
// GCC generates code that does not call the runtime for the single construct
// XFAIL: gcc
#include "callback.h"
#include <omp.h>
int main()
{
int x = 0;
#pragma omp parallel num_thre... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/ompt/worksharing/single.c", "license": "apache-2.0", "size": 1330} |
### File: runtime/test/parallel/omp_nested.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
/*
* Test if the compiler supports nested parallelism
* By Chunhua Liao, University of Houston
* Oct. 2005
*/
int test_omp_nested()
{
#ifdef _OPENMP
if (omp_get_max_threads() > 4)
omp_se... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_nested.c", "license": "apache-2.0", "size": 847} |
### File: runtime/test/parallel/omp_parallel_copyin.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
static int sum1 = 789;
#pragma omp threadprivate(sum1)
int test_omp_parallel_copyin()
{
int sum, num_threads;
int known_sum;
sum = 0;
sum1 = 7;
num_threads... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_copyin.c", "license": "apache-2.0", "size": 835} |
### File: runtime/test/parallel/omp_parallel_default.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_default()
{
int i;
int sum;
int mysum;
int known_sum;
sum =0;
known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2 ;
#pragma omp parallel default(shared) pr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_default.c", "license": "apache-2.0", "size": 813} |
### File: runtime/test/parallel/omp_parallel_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
//static int sum1 = 789;
int test_omp_parallel_firstprivate()
{
int sum, num_threads,sum1;
int known_sum;
sum = 0;
sum1=7;
num_threads = 0;
#pragm... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_firstprivate.c", "license": "apache-2.0", "size": 826} |
### File: runtime/test/parallel/omp_parallel_if.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_if()
{
int i;
int sum;
int known_sum;
int mysum;
int control=1;
sum =0;
known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2 ;
#pragma omp parallel private(i) ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_if.c", "license": "apache-2.0", "size": 639} |
### File: runtime/test/parallel/omp_parallel_num_threads.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_num_threads()
{
int num_failed;
int threads;
int nthreads;
int max_threads = 0;
num_failed = 0;
/* first we check how many threads are available *... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_num_threads.c", "license": "apache-2.0", "size": 954} |
### File: runtime/test/parallel/omp_parallel_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
//static int sum1 = 789;
int test_omp_parallel_private()
{
int sum, num_threads,sum1;
int known_sum;
sum = 0;
num_threads = 0;
#pragma omp parallel priva... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_private.c", "license": "apache-2.0", "size": 759} |
### File: runtime/test/parallel/omp_parallel_reduction.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#define DOUBLE_DIGITS 20 /* dt^DOUBLE_DIGITS */
#define MAX_FACTOR 10
#define KNOWN_PRODUCT 3628800 /* 10! */
int test_omp_parallel_reduction()
{
int sum;
in... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_reduction.c", "license": "apache-2.0", "size": 5897} |
### File: runtime/test/parallel/omp_parallel_shared.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_shared()
{
int i;
int sum;
int known_sum;
sum = 0;
known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2 ;
#pragma omp parallel private(i) shared(sum)
{
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/parallel/omp_parallel_shared.c", "license": "apache-2.0", "size": 740} |
### File: runtime/test/tasking/bug_36720.c
// RUN: %libomp-compile-and-run
/*
Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=36720
Assertion failure at kmp_runtime.cpp(1715): nthreads > 0.
OMP: Error #13: Assertion failure at kmp_runtime.cpp(1715).
The assertion fails even with OMP_NUM_THREADS=1. If the second task... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/bug_36720.c", "license": "apache-2.0", "size": 719} |
### File: runtime/test/tasking/bug_nested_proxy_task.c
// RUN: %libomp-compile-and-run
// The runtime currently does not get dependency information from GCC.
// UNSUPPORTED: gcc
#include <stdio.h>
#include <omp.h>
#include <pthread.h>
#include "omp_my_sleep.h"
/*
With task dependencies one can generate proxy tasks f... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/bug_nested_proxy_task.c", "license": "apache-2.0", "size": 4323} |
### File: runtime/test/tasking/bug_serial_taskgroup.c
// RUN: %libomp-compile-and-run
/*
GCC failed this test because __kmp_get_gtid() instead of __kmp_entry_gtid()
was called in xexpand(KMP_API_NAME_GOMP_TASKGROUP_START)(void).
__kmp_entry_gtid() will initialize the runtime if not yet done which does not
happen w... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/bug_serial_taskgroup.c", "license": "apache-2.0", "size": 357} |
### File: runtime/test/tasking/kmp_detach_tasks_t3.c
// RUN: %libomp-compile && env OMP_NUM_THREADS='3' %libomp-run
// RUN: %libomp-compile && env OMP_NUM_THREADS='1' %libomp-run
// The runtime currently does not get dependency information from GCC.
// UNSUPPORTED: gcc
#include <stdio.h>
#include <omp.h>
#include "omp... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_detach_tasks_t3.c", "license": "apache-2.0", "size": 3352} |
### File: runtime/test/tasking/kmp_task_modifier_simple_par_new.cpp
// RUN: %libomp-cxx-compile-and-run
#include <stdio.h>
#include <omp.h>
#define NT 4
#define INIT 10
/*
The test emulates code generation needed for reduction with task modifier on
parallel construct.
Note: tasks could just use in_reduction clause,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_task_modifier_simple_par_new.cpp", "license": "apache-2.0", "size": 3282} |
### File: runtime/test/tasking/kmp_task_modifier_simple_par_old.cpp
// RUN: %libomp-cxx-compile-and-run
#include <stdio.h>
#include <omp.h>
#define NT 4
#define INIT 10
/*
The test emulates code generation needed for reduction with task modifier on
parallel construct.
Note: tasks could just use in_reduction clause,... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_task_modifier_simple_par_old.cpp", "license": "apache-2.0", "size": 2979} |
### File: runtime/test/tasking/kmp_task_modifier_simple_ws_new.cpp
// RUN: %libomp-cxx-compile-and-run
#include <stdio.h>
#include <omp.h>
#define NT 4
#define INIT 10
/*
The test emulates code generation needed for reduction with task modifier on
parallel construct.
Note: tasks could just use in_reduction clause, ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_task_modifier_simple_ws_new.cpp", "license": "apache-2.0", "size": 4052} |
### File: runtime/test/tasking/kmp_task_modifier_simple_ws_old.cpp
// RUN: %libomp-cxx-compile-and-run
#include <stdio.h>
#include <omp.h>
#define NT 4
#define INIT 10
/*
The test emulates code generation needed for reduction with task modifier on
parallel construct.
Note: tasks could just use in_reduction clause, ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_task_modifier_simple_ws_old.cpp", "license": "apache-2.0", "size": 3749} |
### File: runtime/test/tasking/kmp_task_reduction_nest.cpp
// RUN: %libomp-cxx-compile-and-run
// RUN: %libomp-cxx-compile -DFLG=1 && %libomp-run
// GCC-5 is needed for OpenMP 4.0 support (taskgroup)
// XFAIL: gcc-4
#include <cstdio>
#include <cmath>
#include <cassert>
#include <omp.h>
// Total number of loop iteratio... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/kmp_task_reduction_nest.cpp", "license": "apache-2.0", "size": 12918} |
### File: runtime/test/tasking/nested_parallel_tasking.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <omp.h>
/*
* This test would hang when level instead of active level
* used to push task state.
*/
int main()
{
// If num_threads is changed to a value greater than 1, then the test passes
#prag... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/openmp", "path": "runtime/test/tasking/nested_parallel_tasking.c", "license": "apache-2.0", "size": 656} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.