text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: runtime/test/tasking/nested_task_creation.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <omp.h>
#include "omp_my_sleep.h"
/*
* This test creates tasks that themselves create a new task.
* The runtime has to take care that they are correctly freed.
*/
int main()
{
#pragma omp 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/nested_task_creation.c", "license": "apache-2.0", "size": 526} |
### File: runtime/test/tasking/omp50_task_depend_mtx.c
// RUN: %libomp-compile-and-run
// Tests OMP 5.0 task dependences "mutexinoutset", emulates compiler codegen
// Mutually exclusive tasks get same input dependency info array
//
// Task tree created:
// task0 task1
// \ / \
// task2 task5
... | {"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/omp50_task_depend_mtx.c", "license": "apache-2.0", "size": 4147} |
### File: runtime/test/tasking/omp50_task_depend_mtx2.c
// RUN: %libomp-compile-and-run
// Tests OMP 5.0 task dependences "mutexinoutset", emulates compiler codegen
// Mutually exclusive tasks get input dependency info array sorted differently
//
// Task tree created:
// task0 task1
// \ / \
// ... | {"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/omp50_task_depend_mtx2.c", "license": "apache-2.0", "size": 4291} |
### File: runtime/test/tasking/omp_fill_taskqueue.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=1 %libomp-run
#include<omp.h>
#include<stdlib.h>
#include<string.h>
/**
* Test the task throttling behavior of the runtime.
* Unless 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/tasking/omp_fill_taskqueue.c", "license": "apache-2.0", "size": 1811} |
### File: runtime/test/tasking/omp_task.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_omp_task()
{
int tids[NUM_TASKS];
int i;
#pragma omp parallel
{
#pragma omp single
{
for (i = 0; i < NUM_TASKS; 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/tasking/omp_task.c", "license": "apache-2.0", "size": 1264} |
### File: runtime/test/tasking/omp_task_depend_resize_hashmap.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run
#include<omp.h>
#include<stdlib.h>
#include<string.h>
// The first hashtable static size is 997
#define NUM_DEPS 4000
int main()
{
int *deps = calloc(NUM_DEPS, sizeof(int));
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/tasking/omp_task_depend_resize_hashmap.c", "license": "apache-2.0", "size": 671} |
### File: runtime/test/tasking/omp_task_final.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_omp_task_final()
{
int tids[NUM_TASKS];
int includedtids[NUM_TASKS];
int i;
int error = 0;
#pragma omp parallel
{
#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/tasking/omp_task_final.c", "license": "apache-2.0", "size": 1695} |
### File: runtime/test/tasking/omp_task_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int test_omp_task_firstprivate()
{
int i;
int sum = 1234;
int known_sum;
int result = 0; /* counts the wrong sums from tasks */
known_sum = 1234 + (LOOPCOUNT... | {"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/omp_task_firstprivate.c", "license": "apache-2.0", "size": 1016} |
### File: runtime/test/tasking/omp_task_if.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_omp_task_if()
{
int condition_false;
int count;
int result;
count=0;
condition_false = (count == 1);
#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/tasking/omp_task_if.c", "license": "apache-2.0", "size": 772} |
### File: runtime/test/tasking/omp_task_imp_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/* Utility function do spend some time in a loop */
int test_omp_task_imp_firstprivate()
{
int i=5;
int k = 0;
int result = 0;
int task_result = 1;
#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/tasking/omp_task_imp_firstprivate.c", "license": "apache-2.0", "size": 929} |
### File: runtime/test/tasking/omp_task_priority.c
// RUN: %libomp-compile && env OMP_MAX_TASK_PRIORITY=42 %libomp-run
// Test OMP 4.5 task priorities
// Currently only API function and envirable parsing implemented.
// Test environment sets envirable: OMP_MAX_TASK_PRIORITY=42 as tested below.
#include <stdio.h>
#inclu... | {"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/omp_task_priority.c", "license": "apache-2.0", "size": 530} |
### File: runtime/test/tasking/omp_task_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/* Utility function do spend some time in a loop */
int test_omp_task_private()
{
int i;
int known_sum;
int sum = 0;
int result = 0; /* counts the wrong sums from ta... | {"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/omp_task_private.c", "license": "apache-2.0", "size": 1144} |
### File: runtime/test/tasking/omp_task_shared.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/* Utility function do spend some time in a loop */
int test_omp_task_imp_shared()
{
int i;
int k = 0;
int result = 0;
i=0;
#pragma omp parallel
{
#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/tasking/omp_task_shared.c", "license": "apache-2.0", "size": 682} |
### File: runtime/test/tasking/omp_taskloop_grainsize.c
// RUN: %libomp-compile-and-run
// RUN: %libomp-compile && env KMP_TASKLOOP_MIN_TASKS=1 %libomp-run
// These compilers don't support the taskloop construct
// UNSUPPORTED: gcc-4, gcc-5, icc-16
// GCC 6 has support for taskloops, but at least 6.3.0 is crashing on ... | {"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/omp_taskloop_grainsize.c", "license": "apache-2.0", "size": 2768} |
### File: runtime/test/tasking/omp_taskloop_num_tasks.c
// This test is known to be fragile on NetBSD kernel at the moment.
// UNSUPPORTED: netbsd
// RUN: %libomp-compile-and-run
// RUN: %libomp-compile && env KMP_TASKLOOP_MIN_TASKS=1 %libomp-run
// These compilers don't support the taskloop construct
// UNSUPPORTED: ... | {"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/omp_taskloop_num_tasks.c", "license": "apache-2.0", "size": 1744} |
### File: runtime/test/tasking/omp_taskwait.c
// RUN: %libomp-compile-and-run
// This test is known to be fragile on NetBSD kernel at the moment,
// https://bugs.llvm.org/show_bug.cgi?id=42020.
// UNSUPPORTED: netbsd
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_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/tasking/omp_taskwait.c", "license": "apache-2.0", "size": 2008} |
### File: runtime/test/tasking/omp_taskyield.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
int test_omp_taskyield()
{
int i;
int count = 0;
int start_tid[NUM_TASKS];
int current_tid[NUM_TASKS];
for (i=0; i< NUM_TASKS; i++) {
s... | {"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/omp_taskyield.c", "license": "apache-2.0", "size": 1295} |
### File: runtime/test/threadprivate/omp_threadprivate.c
// RUN: %libomp-compile-and-run
/*
* Threadprivate is tested in 2 ways:
* 1. The global variable declared as threadprivate should have
* local copy for each thread. Otherwise race condition and
* wrong result.
* 2. If the value of local copy is retained fo... | {"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/threadprivate/omp_threadprivate.c", "license": "apache-2.0", "size": 2390} |
### File: runtime/test/threadprivate/omp_threadprivate_for.c
// RUN: %libomp-compile-and-run
#include "omp_testsuite.h"
#include <stdlib.h>
#include <stdio.h>
static int i;
#pragma omp threadprivate(i)
int test_omp_threadprivate_for()
{
int known_sum;
int sum;
known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2;
s... | {"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/threadprivate/omp_threadprivate_for.c", "license": "apache-2.0", "size": 846} |
### File: runtime/test/worksharing/for/bug_set_schedule_0.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <omp.h>
#include "omp_testsuite.h"
/* Test that the chunk size is set to default (1) when
chunk size <= 0 is specified */
int a = 0;
int test_set_schedule_0()
{
int i;
a = 0;
omp_set_schedu... | {"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/worksharing/for/bug_set_schedule_0.c", "license": "apache-2.0", "size": 646} |
### File: runtime/test/worksharing/for/kmp_doacross_check.c
// RUN: %libomp-compile-and-run
// UNSUPPORTED: gcc
// This test is incompatible with gcc because of the explicit call to
// __kmpc_doacross_fini(). gcc relies on an implicit call to this function
// when the last iteration is executed inside the GOMP_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/worksharing/for/kmp_doacross_check.c", "license": "apache-2.0", "size": 1770} |
### File: runtime/test/worksharing/for/kmp_sch_simd_guided.c
// RUN: %libomp-compile-and-run
/*
Test for the 'schedule(simd:guided)' clause.
Compiler needs to generate a dynamic dispatching and pass the schedule
value 46 to the OpenMP RTL. Test uses numerous loop parameter combinations.
*/
#include <stdio.h>
#inc... | {"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/worksharing/for/kmp_sch_simd_guided.c", "license": "apache-2.0", "size": 12593} |
### File: runtime/test/worksharing/for/kmp_sch_simd_runtime_api.c
// RUN: %libomp-compile-and-run
// The test checks schedule(simd:runtime)
// in combination with omp_set_schedule()
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#if defined(WIN32) || defined(_WIN32)
#include <windows.h>
#define delay() Sleep... | {"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/worksharing/for/kmp_sch_simd_runtime_api.c", "license": "apache-2.0", "size": 7118} |
### File: runtime/test/worksharing/for/kmp_sch_simd_runtime_guided.c
// RUN: %libomp-compile
// RUN: env OMP_SCHEDULE=guided %libomp-run
// RUN: env OMP_SCHEDULE=guided,1 %libomp-run 1
// RUN: env OMP_SCHEDULE=guided,2 %libomp-run 2
// RUN: env OMP_SCHEDULE=dynamic %libomp-run
// RUN: env OMP_SCHEDULE=dynamic,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/worksharing/for/kmp_sch_simd_runtime_guided.c", "license": "apache-2.0", "size": 6628} |
### File: runtime/test/worksharing/for/kmp_sch_simd_runtime_static.c
// RUN: %libomp-compile && %libomp-run
// RUN: %libomp-run 1 && %libomp-run 2
// The test checks schedule(simd:runtime)
// in combination with OMP_SCHEDULE=static[,chunk]
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#if defined(WIN32) || ... | {"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/worksharing/for/kmp_sch_simd_runtime_static.c", "license": "apache-2.0", "size": 6647} |
### File: runtime/test/worksharing/for/kmp_set_dispatch_buf.c
// RUN: %libomp-compile && %libomp-run 7
// RUN: %libomp-run 0 && %libomp-run -1
// RUN: %libomp-run 1 && %libomp-run 2 && %libomp-run 5
// RUN: %libomp-compile -DMY_SCHEDULE=guided && %libomp-run 7
// RUN: %libomp-run 1 && %libomp-run 2 && %libomp-run 5
#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/worksharing/for/kmp_set_dispatch_buf.c", "license": "apache-2.0", "size": 2176} |
### File: runtime/test/worksharing/for/omp_doacross.c
// RUN: %libomp-compile-and-run
// XFAIL: gcc-4, gcc-5, clang-3.7, clang-3.8, icc-15, icc-16
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
#ifndef N
#define N 750
#endif
int test_doacross() {
int i, j;
// Allocate and zero out the matrix
... | {"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/worksharing/for/omp_doacross.c", "license": "apache-2.0", "size": 1512} |
### File: runtime/test/worksharing/for/omp_for_bigbounds.c
// RUN: %libomp-compile -DMY_SCHEDULE=static && %libomp-run
// RUN: %libomp-compile -DMY_SCHEDULE=dynamic && %libomp-run
// RUN: %libomp-compile -DMY_SCHEDULE=guided && %libomp-run
// Only works with Intel Compiler since at least version 15.0
// XFAIL: gcc, cl... | {"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/worksharing/for/omp_for_bigbounds.c", "license": "apache-2.0", "size": 1525} |
### File: runtime/test/worksharing/for/omp_for_collapse.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/* Utility function to check that i is increasing monotonically
with each call */
static int check_i_islarger (int i)
{
static int last_i;
int islarger;
if ... | {"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/worksharing/for/omp_for_collapse.c", "license": "apache-2.0", "size": 983} |
### File: runtime/test/worksharing/for/omp_for_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int sum1;
#pragma omp threadprivate(sum1)
int test_omp_for_firstprivate()
{
int sum;
int sum0;
int known_sum;
int threadsnum;
sum = 0;
sum0 = 12345... | {"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/worksharing/for/omp_for_firstprivate.c", "license": "apache-2.0", "size": 935} |
### File: runtime/test/worksharing/for/omp_for_lastprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int sum0;
#pragma omp threadprivate(sum0)
int test_omp_for_lastprivate()
{
int sum = 0;
int known_sum;
int i0;
i0 = -1;
#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/worksharing/for/omp_for_lastprivate.c", "license": "apache-2.0", "size": 1034} |
### File: runtime/test/worksharing/for/omp_for_nowait.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
/*
* This test will hang if the nowait is not working properly.
*
* It relies on a thread skipping to the second for construct to
* release the threads in the first for construct.
... | {"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/worksharing/for/omp_for_nowait.c", "license": "apache-2.0", "size": 1578} |
### File: runtime/test/worksharing/for/omp_for_ordered.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
static int last_i = 0;
/* Utility function to check that i is increasing monotonically
with each call */
static int check_i_islarger (int i)
{
int islarger;
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/worksharing/for/omp_for_ordered.c", "license": "apache-2.0", "size": 1029} |
### File: runtime/test/worksharing/for/omp_for_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/* Utility function do spend some time in a loop */
static void do_some_work()
{
int i;
double sum = 0;
for(i = 0; i < 1000; i++){
sum += sqrt ((double) 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/worksharing/for/omp_for_private.c", "license": "apache-2.0", "size": 1203} |
### File: runtime/test/worksharing/for/omp_for_reduction.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.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_for_reduction ()
{... | {"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/worksharing/for/omp_for_reduction.c", "license": "apache-2.0", "size": 7855} |
### File: runtime/test/worksharing/for/omp_for_schedule_auto.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "omp_testsuite.h"
int sum1;
#pragma omp threadprivate(sum1)
int test_omp_for_auto()
{
int j;
int sum;
int sum0;
int known_sum;
int threadsnum;
s... | {"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/worksharing/for/omp_for_schedule_auto.c", "license": "apache-2.0", "size": 1409} |
### File: runtime/test/worksharing/for/omp_for_schedule_dynamic.c
// RUN: %libomp-compile-and-run
/*
* Test for dynamic scheduling with chunk size
* Method: caculate how many times the iteration space is dispatched
* and judge if each dispatch has the requested chunk size
* unless it is the last one.
* It ... | {"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/worksharing/for/omp_for_schedule_dynamic.c", "license": "apache-2.0", "size": 2242} |
### File: runtime/test/worksharing/for/omp_for_schedule_guided.c
// RUN: %libomp-compile-and-run
/* Test for guided scheduling
* Ensure threads get chunks interleavely first
* Then judge the chunk sizes are decreasing to a stable value
* Modified by Chunhua Liao
* For example, 100 iteration on 2 threads, chunksize... | {"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/worksharing/for/omp_for_schedule_guided.c", "license": "apache-2.0", "size": 5848} |
### File: runtime/test/worksharing/for/omp_for_schedule_runtime.c
// RUN: %libomp-compile
// RUN: env OMP_SCHEDULE=static %libomp-run 1 0
// RUN: env OMP_SCHEDULE=static,10 %libomp-run 1 10
// RUN: env OMP_SCHEDULE=dynamic %libomp-run 2 1
// RUN: env OMP_SCHEDULE=dynamic,11 %libomp-run 2 11
// RUN: env OMP_SCHEDULE=gui... | {"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/worksharing/for/omp_for_schedule_runtime.c", "license": "apache-2.0", "size": 2125} |
### File: runtime/test/worksharing/for/omp_for_schedule_static.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
#define CFSMAX_SIZE 1000
#define MAX_TIME 0.01
#ifdef SLEEPTIME
#undef SLEEPTIME
#define SLEEPTIME 0.0005
#endif
int test_omp_fo... | {"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/worksharing/for/omp_for_schedule_static.c", "license": "apache-2.0", "size": 3724} |
### File: runtime/test/worksharing/for/omp_for_schedule_static_3.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <stdlib.h>
#include "omp_testsuite.h"
#include "omp_my_sleep.h"
#define CFSMAX_SIZE 1000
#define MAX_TIME 0.01
#ifdef SLEEPTIME
#undef SLEEPTIME
#define SLEEPTIME 0.0005
#endif
#define VERBO... | {"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/worksharing/for/omp_for_schedule_static_3.c", "license": "apache-2.0", "size": 4870} |
### File: runtime/test/worksharing/for/omp_monotonic_env.c
// RUN: %libomp-compile
// RUN: env OMP_SCHEDULE=monotonic:dynamic,50 %libomp-run monotonic dynamic 50
// RUN: env OMP_SCHEDULE=monotonic:guided,51 %libomp-run monotonic guided 51
// RUN: env OMP_SCHEDULE=monotonic:static,52 %libomp-run monotonic static 52
// R... | {"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/worksharing/for/omp_monotonic_env.c", "license": "apache-2.0", "size": 2597} |
### File: runtime/test/worksharing/for/omp_monotonic_schedule_set_get.c
// RUN: %libomp-compile-and-run
// The test checks OMP 5.0 monotonic/nonmonotonic scheduling API
// 1. initial schedule should be (static,0)
// 2. omp_get_schedule() should return the schedule set by omp_set_schedule()
// 3. schedules set 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/worksharing/for/omp_monotonic_schedule_set_get.c", "license": "apache-2.0", "size": 3990} |
### File: runtime/test/worksharing/for/omp_parallel_for_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_for_firstprivate()
{
int sum ;
int i2;
int i;
int known_sum;
sum=0;
i2=3;
#pragma omp parallel for reduction(+:sum) private(i) first... | {"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/worksharing/for/omp_parallel_for_firstprivate.c", "license": "apache-2.0", "size": 652} |
### File: runtime/test/worksharing/for/omp_parallel_for_if.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int test_omp_parallel_for_if()
{
int known_sum;
int num_threads;
int sum, sum2;
int i;
int control;
control = 0;
num_threads=0;
sum = 0;
sum2 =... | {"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/worksharing/for/omp_parallel_for_if.c", "license": "apache-2.0", "size": 830} |
### File: runtime/test/worksharing/for/omp_parallel_for_lastprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_for_lastprivate()
{
int sum;
int i;
int i0;
int known_sum;
sum =0;
i0 = -1;
#pragma omp parallel for reduction(+:sum) \
schedule(... | {"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/worksharing/for/omp_parallel_for_lastprivate.c", "license": "apache-2.0", "size": 714} |
### File: runtime/test/worksharing/for/omp_parallel_for_ordered.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
static int last_i = 0;
int i;
#pragma omp threadprivate(i)
/* Variable ii is used to avoid problems with a threadprivate variable used as a loop
* index. See test omp_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/worksharing/for/omp_parallel_for_ordered.c", "license": "apache-2.0", "size": 1296} |
### File: runtime/test/worksharing/for/omp_parallel_for_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
/*! Utility function to spend some time in a loop */
static void do_some_work (void)
{
int i;
double sum = 0;
for(i = 0; i < 1000; i++){
sum += sqr... | {"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/worksharing/for/omp_parallel_for_private.c", "license": "apache-2.0", "size": 905} |
### File: runtime/test/worksharing/for/omp_parallel_for_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_for_reduction()
{
... | {"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/worksharing/for/omp_parallel_for_reduction.c", "license": "apache-2.0", "size": 6004} |
### File: runtime/test/worksharing/sections/omp_parallel_sections_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_sections_firstprivate()
{
int sum;
int sum0;
int known_sum;
sum =7;
sum0=11;
#pragma omp parallel sections firstprivate(sum0... | {"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/worksharing/sections/omp_parallel_sections_firstprivate.c", "license": "apache-2.0", "size": 831} |
### File: runtime/test/worksharing/sections/omp_parallel_sections_lastprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_sections_lastprivate()
{
int sum;
int sum0;
int i;
int i0;
int known_sum;
sum =0;
sum0 = 0;
i0 = -1;
#pragma omp paralle... | {"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/worksharing/sections/omp_parallel_sections_lastprivate.c", "license": "apache-2.0", "size": 1113} |
### File: runtime/test/worksharing/sections/omp_parallel_sections_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_parallel_sections_private()
{
int sum;
int sum0;
int i;
int known_sum;
sum = 7;
sum0=0;
#pragma omp parallel sections private(sum0, 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/worksharing/sections/omp_parallel_sections_private.c", "license": "apache-2.0", "size": 1017} |
### File: runtime/test/worksharing/sections/omp_parallel_sections_reduction.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int test_omp_parallel_sections_reduction()
{
int sum;
int known_sum;
double dpt;
double dsum;
double dknown_sum;
double dt=0.5; /* ba... | {"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/worksharing/sections/omp_parallel_sections_reduction.c", "license": "apache-2.0", "size": 9612} |
### File: runtime/test/worksharing/sections/omp_section_firstprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_section_firstprivate()
{
int sum;
int sum0;
int known_sum;
sum0 = 11;
sum = 7;
#pragma omp parallel
{
#pragma omp sections firstprivate(s... | {"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/worksharing/sections/omp_section_firstprivate.c", "license": "apache-2.0", "size": 900} |
### File: runtime/test/worksharing/sections/omp_section_lastprivate.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_section_lastprivate()
{
int i0 = -1;
int sum = 0;
int i;
int sum0 = 0;
int known_sum;
i0 = -1;
sum = 0;
#pragma omp parallel
{
#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/worksharing/sections/omp_section_lastprivate.c", "license": "apache-2.0", "size": 1424} |
### File: runtime/test/worksharing/sections/omp_section_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_section_private()
{
int sum;
int sum0;
int i;
int known_sum;
sum = 7;
sum0 = 0;
#pragma omp parallel
{
#pragma omp sections private(sum0,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/worksharing/sections/omp_section_private.c", "license": "apache-2.0", "size": 1184} |
### File: runtime/test/worksharing/sections/omp_sections_nowait.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
/*
* This test will hang if the nowait is not working properly
*
* It relies on a thread skipping to the second sections construct to
* release the threads in the first 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/worksharing/sections/omp_sections_nowait.c", "license": "apache-2.0", "size": 2277} |
### File: runtime/test/worksharing/sections/omp_sections_reduction.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include <math.h>
#include "omp_testsuite.h"
int test_omp_sections_reduction()
{
int sum;
int known_sum;
double dpt,dsum;
double dknown_sum;
double dt=0.5; /* base of geometric row for + an... | {"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/worksharing/sections/omp_sections_reduction.c", "license": "apache-2.0", "size": 10293} |
### File: runtime/test/worksharing/single/omp_single.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int test_omp_single()
{
int nr_threads_in_single;
int result;
int nr_iterations;
int i;
nr_threads_in_single = 0;
result = 0;
nr_iterations = 0;
#pragma omp parallel 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/worksharing/single/omp_single.c", "license": "apache-2.0", "size": 804} |
### File: runtime/test/worksharing/single/omp_single_copyprivate.c
// RUN: %libomp-compile-and-run
#include "omp_testsuite.h"
#define DEBUG_TEST 0
int j;
#pragma omp threadprivate(j)
int test_omp_single_copyprivate()
{
int result;
int nr_iterations;
result = 0;
nr_iterations = 0;
#pragma omp parallel num_... | {"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/worksharing/single/omp_single_copyprivate.c", "license": "apache-2.0", "size": 1113} |
### File: runtime/test/worksharing/single/omp_single_nowait.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
/*
* This test will hang if the nowait is not working properly
*
* It relies on a one thread skipping to the last single construct to
* release the threads in the first three ... | {"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/worksharing/single/omp_single_nowait.c", "license": "apache-2.0", "size": 1429} |
### File: runtime/test/worksharing/single/omp_single_private.c
// RUN: %libomp-compile-and-run
#include <stdio.h>
#include "omp_testsuite.h"
int myit = 0;
#pragma omp threadprivate(myit)
int myresult = 0;
#pragma omp threadprivate(myresult)
int test_omp_single_private()
{
int nr_threads_in_single;
int result;
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/worksharing/single/omp_single_private.c", "license": "apache-2.0", "size": 1112} |
### File: runtime/tools/check-depends.pl
#!/usr/bin/env perl
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifie... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/check-depends.pl", "license": "apache-2.0", "size": 15557} |
### File: runtime/tools/check-execstack.pl
#!/usr/bin/perl
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifier:... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/check-execstack.pl", "license": "apache-2.0", "size": 3224} |
### File: runtime/tools/check-instruction-set.pl
#!/usr/bin/perl
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Ident... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/check-instruction-set.pl", "license": "apache-2.0", "size": 9302} |
### File: runtime/tools/generate-def.pl
#!/usr/bin/env perl
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifier... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/generate-def.pl", "license": "apache-2.0", "size": 8347} |
### File: runtime/tools/lib/Build.pm
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifier: Apache-2.0 WITH LLVM-e... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/lib/Build.pm", "license": "apache-2.0", "size": 8290} |
### File: runtime/tools/lib/LibOMP.pm
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifier: Apache-2.0 WITH LLVM-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/lib/LibOMP.pm", "license": "apache-2.0", "size": 2121} |
### File: runtime/tools/lib/Platform.pm
#
# This is not a runnable script, it is a Perl module, a collection of variables, subroutines, etc.
# to be used in Perl scripts.
#
# To get help about exported variables and subroutines, execute the following command:
#
# perldoc Platform.pm
#
# or see POD (Plain Old Docume... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/lib/Platform.pm", "license": "apache-2.0", "size": 14300} |
### File: runtime/tools/lib/Uname.pm
#
# This is not a runnable script, it is a Perl module, a collection of variables, subroutines, etc.
# To get help about exported variables and subroutines, execute the following command:
#
# perldoc Uname.pm
#
# or see POD (Plain Old Documentation) embedded to the source...
#
#... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/lib/Uname.pm", "license": "apache-2.0", "size": 24151} |
### File: runtime/tools/lib/tools.pm
#
# This is not a runnable script, it is a Perl module, a collection of variables, subroutines, etc.
# to be used in other scripts.
#
# To get help about exported variables and subroutines, please execute the following command:
#
# perldoc tools.pm
#
# or see POD (Plain Old Docu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/lib/tools.pm", "license": "apache-2.0", "size": 57583} |
### File: runtime/tools/message-converter.pl
#!/usr/bin/perl
#
#//===----------------------------------------------------------------------===//
#//
#// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
#// See https://llvm.org/LICENSE.txt for license information.
#// SPDX-License-Identifie... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Perl", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/message-converter.pl", "license": "apache-2.0", "size": 20975} |
### File: runtime/tools/summarizeStats.py
#!/usr/bin/python
import pandas as pd
import numpy as np
import re
import sys
import os
import argparse
import matplotlib
from matplotlib import pyplot as plt
from matplotlib.projections.polar import PolarAxes
from matplotlib.projections import register_projection
"""
Read th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/openmp", "path": "runtime/tools/summarizeStats.py", "license": "apache-2.0", "size": 12294} |
### File: www/content.css
html { margin: 0px; } body { margin: 8px; }
html, body {
padding:0px;
font-size:small; font-family:"Lucida Grande", "Lucida Sans Unicode", Arial, Verdana, Helvetica, sans-serif; background-color: #fff; color: #222;
line-height:1.5;
}
h1, h2, h3, tt { color: #000 }
h1 { padding-top:0px... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/openmp", "path": "www/content.css", "license": "apache-2.0", "size": 643} |
### File: www/index.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>OpenMP* : Support fo... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/openmp", "path": "www/index.html", "license": "apache-2.0", "size": 8280} |
### File: www/menu.css
/***************/
/* page layout */
/***************/
[id=menu] {
position:fixed;
width:25ex;
}
[id=content] {
/* ***** EDIT THIS VALUE IF CONTENT OVERLAPS MENU ***** */
position:absolute;
left:29ex;
padding-right:4ex;
}
/**************/
/* menu style */
/**************/
#menu .submenu... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/openmp", "path": "www/menu.css", "license": "apache-2.0", "size": 594} |
### File: osrf_testing_tools_cpp/CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(osrf_testing_tools_cpp)
set(osrf_testing_tools_cpp_VERSION 1.5.1)
# Default to C++11
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 11)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/CMakeLists.txt", "license": "apache-2.0", "size": 1442} |
### File: osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_add_test.cmake
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_add_test.cmake", "license": "apache-2.0", "size... |
### File: osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_extract_and_build_googletest.cmake
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the Li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_extract_and_build_googletest.cmake", "license":... |
### File: osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_get_googletest_versions.cmake
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_get_googletest_versions.cmake", "license": "apa... |
### File: osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_require_googletest.cmake
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/cmake/osrf_testing_tools_cpp_require_googletest.cmake", "license": "apache-2... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/demangle.hpp
// Copyright 2015 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/demangle.hpp", "license": "apache-2.0", "size":... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/macros.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/macros.hpp", "license": "apache-2.0", "size": 9... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/gtest_quickstart.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/gtest_quickstart.hpp", "license": ... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/initialize.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/initialize.hpp", "license": "apach... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/is_working.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/is_working.hpp", "license": "apach... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/memory_tools.hpp
// Copyright 2015 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/memory_tools.hpp", "license": "apa... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/memory_tools_service.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/memory_tools_service.hpp", "licens... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/monitoring.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Li... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/monitoring.hpp", "license": "apach... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/register_hooks.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of th... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/register_hooks.hpp", "license": "a... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/stack_trace.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the L... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/stack_trace.hpp", "license": "apac... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/testing_helpers.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/testing_helpers.hpp", "license": "... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/verbosity.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Lic... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/verbosity.hpp", "license": "apache... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/visibility_control.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/memory_tools/visibility_control.hpp", "license"... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/scope_exit.hpp
// Copyright 2015 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
/... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/scope_exit.hpp", "license": "apache-2.0", "size... |
### File: osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp
// Copyright 2018 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/include/osrf_testing_tools_cpp/variant_helper.hpp", "license": "apache-2.0", "... |
### File: osrf_testing_tools_cpp/osrf_testing_tools_cppConfig.cmake.in
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://ww... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/osrf_testing_tools_cppConfig.cmake.in", "license": "apache-2.0", "size": 270... |
### File: osrf_testing_tools_cpp/osrf_testing_tools_cppConfigVersion.cmake.in
set(PACKAGE_VERSION "@osrf_testing_tools_cpp_VERSION@")
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PAC... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/osrf_testing_tools_cppConfigVersion.cmake.in", "license": "apache-2.0", "siz... |
### File: osrf_testing_tools_cpp/src/CMakeLists.txt
add_subdirectory(memory_tools)
add_subdirectory(test_runner)
set(memory_tools_extra_test_env "${memory_tools_extra_test_env}" PARENT_SCOPE)
set(memory_tools_is_available "${memory_tools_is_available}" PARENT_SCOPE)
set(memory_tools_src_dir_internal_testing_only
"${... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/src/CMakeLists.txt", "license": "apache-2.0", "size": 327} |
### File: osrf_testing_tools_cpp/src/memory_tools/CMakeLists.txt
# Integrate backward-cpp according to:
# https://github.com/bombela/backward-cpp/tree/v1.5#modifying-cmake_module_path
# Note, I had to use Backward_DIR since they provide a config file rather than a module...
# list(APPEND CMAKE_MODULE_PATH "${CMAKE_C... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/osrf_testing_tools_cpp", "path": "osrf_testing_tools_cpp/src/memory_tools/CMakeLists.txt", "license": "apache-2.0", "size": 2875} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.