text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: runtime/src/kmp_import.cpp /* * kmp_import.cpp */ //===----------------------------------------------------------------------===// // // 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: Apa...
{"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/src/kmp_import.cpp", "license": "apache-2.0", "size": 1067}
### File: runtime/src/kmp_io.cpp /* * kmp_io.cpp -- RTL IO */ //===----------------------------------------------------------------------===// // // 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: A...
{"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/src/kmp_io.cpp", "license": "apache-2.0", "size": 6536}
### File: runtime/src/kmp_io.h /* * kmp_io.h -- RTL IO header file. */ //===----------------------------------------------------------------------===// // // 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-Iden...
{"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/src/kmp_io.h", "license": "apache-2.0", "size": 1125}
### File: runtime/src/kmp_itt.cpp #include "kmp_config.h" #if USE_ITT_BUILD /* * kmp_itt.cpp -- ITT Notify interface. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENS...
{"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/src/kmp_itt.cpp", "license": "apache-2.0", "size": 5078}
### File: runtime/src/kmp_itt.h #if USE_ITT_BUILD /* * kmp_itt.h -- ITT Notify interface. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information...
{"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/src/kmp_itt.h", "license": "apache-2.0", "size": 14659}
### File: runtime/src/kmp_itt.inl #if USE_ITT_BUILD /* * kmp_itt.inl -- Inline functions of ITT Notify. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for licen...
{"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/src/kmp_itt.inl", "license": "apache-2.0", "size": 39671}
### File: runtime/src/kmp_lock.cpp /* * kmp_lock.cpp -- lock-related functions */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-L...
{"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/src/kmp_lock.cpp", "license": "apache-2.0", "size": 137216}
### File: runtime/src/kmp_lock.h /* * kmp_lock.h -- lock header file */ //===----------------------------------------------------------------------===// // // 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-Ide...
{"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/src/kmp_lock.h", "license": "apache-2.0", "size": 54185}
### File: runtime/src/kmp_omp.h #if USE_DEBUGGER /* * kmp_omp.h -- OpenMP definition for kmp_omp_struct_info_t. * This is for information about runtime library structures. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apach...
{"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/src/kmp_omp.h", "license": "apache-2.0", "size": 8540}
### File: runtime/src/kmp_os.h /* * kmp_os.h -- KPTS runtime header file. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-Licens...
{"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/src/kmp_os.h", "license": "apache-2.0", "size": 44606}
### File: runtime/src/kmp_platform.h /* * kmp_platform.h -- header for determining operating system and architecture */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE....
{"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/src/kmp_platform.h", "license": "apache-2.0", "size": 5415}
### File: runtime/src/kmp_runtime.cpp /* * kmp_runtime.cpp -- KPTS runtime support library */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informatio...
{"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/src/kmp_runtime.cpp", "license": "apache-2.0", "size": 297603}
### File: runtime/src/kmp_safe_c_api.h //===----------------------------------------------------------------------===// // // 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-excep...
{"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/src/kmp_safe_c_api.h", "license": "apache-2.0", "size": 2333}
### File: runtime/src/kmp_sched.cpp /* * kmp_sched.cpp -- static scheduling -- iteration initialization */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for licen...
{"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/src/kmp_sched.cpp", "license": "apache-2.0", "size": 38223}
### File: runtime/src/kmp_settings.cpp /* * kmp_settings.cpp -- Initialize environment variables */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license info...
{"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/src/kmp_settings.cpp", "license": "apache-2.0", "size": 196406}
### File: runtime/src/kmp_settings.h /* * kmp_settings.h -- Initialize environment variables */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informat...
{"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/src/kmp_settings.h", "license": "apache-2.0", "size": 3267}
### File: runtime/src/kmp_stats.cpp /** @file kmp_stats.cpp * Statistics gathering and processing. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license 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/src/kmp_stats.cpp", "license": "apache-2.0", "size": 29827}
### File: runtime/src/kmp_stats.h #ifndef KMP_STATS_H #define KMP_STATS_H /** @file kmp_stats.h * Functions for collecting statistics. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https:...
{"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/src/kmp_stats.h", "license": "apache-2.0", "size": 41918}
### File: runtime/src/kmp_stats_timing.cpp /** @file kmp_stats_timing.cpp * Timing functions */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informat...
{"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/src/kmp_stats_timing.cpp", "license": "apache-2.0", "size": 3675}
### File: runtime/src/kmp_stats_timing.h #ifndef KMP_STATS_TIMING_H #define KMP_STATS_TIMING_H /** @file kmp_stats_timing.h * Access to real time clock and timers. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with L...
{"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/src/kmp_stats_timing.h", "license": "apache-2.0", "size": 3690}
### File: runtime/src/kmp_str.cpp /* * kmp_str.cpp -- String manipulation routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // 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/src/kmp_str.cpp", "license": "apache-2.0", "size": 22814}
### File: runtime/src/kmp_str.h /* * kmp_str.h -- String manipulation routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-...
{"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/src/kmp_str.h", "license": "apache-2.0", "size": 4587}
### File: runtime/src/kmp_stub.cpp /* * kmp_stub.cpp -- stub versions of user-callable OpenMP RT functions. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for l...
{"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/src/kmp_stub.cpp", "license": "apache-2.0", "size": 9917}
### File: runtime/src/kmp_stub.h /* * kmp_stub.h */ //===----------------------------------------------------------------------===// // // 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 ...
{"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/src/kmp_stub.h", "license": "apache-2.0", "size": 1595}
### File: runtime/src/kmp_taskdeps.cpp /* * kmp_taskdeps.cpp */ //===----------------------------------------------------------------------===// // // 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": "C++", "repo_name": "minhanghuang/openmp", "path": "runtime/src/kmp_taskdeps.cpp", "license": "apache-2.0", "size": 26516}
### File: runtime/src/kmp_taskdeps.h /* * kmp_taskdeps.h */ //===----------------------------------------------------------------------===// // // 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: Ap...
{"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/src/kmp_taskdeps.h", "license": "apache-2.0", "size": 4027}
### File: runtime/src/kmp_tasking.cpp /* * kmp_tasking.cpp -- OpenMP 3.0 tasking support. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information...
{"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/src/kmp_tasking.cpp", "license": "apache-2.0", "size": 179699}
### File: runtime/src/kmp_threadprivate.cpp /* * kmp_threadprivate.cpp -- OpenMP threadprivate support library */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt 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/src/kmp_threadprivate.cpp", "license": "apache-2.0", "size": 26853}
### File: runtime/src/kmp_utility.cpp /* * kmp_utility.cpp -- Utility routines for the OpenMP support library. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt 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/src/kmp_utility.cpp", "license": "apache-2.0", "size": 10987}
### File: runtime/src/kmp_version.cpp /* * kmp_version.cpp */ //===----------------------------------------------------------------------===// // // 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: A...
{"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/src/kmp_version.cpp", "license": "apache-2.0", "size": 7206}
### File: runtime/src/kmp_version.h /* * kmp_version.h -- version number for this release */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information...
{"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/src/kmp_version.h", "license": "apache-2.0", "size": 2442}
### File: runtime/src/kmp_wait_release.cpp /* * kmp_wait_release.cpp -- Wait/Release implementation */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license 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/src/kmp_wait_release.cpp", "license": "apache-2.0", "size": 905}
### File: runtime/src/kmp_wait_release.h /* * kmp_wait_release.h -- Wait/Release implementation */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license infor...
{"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/src/kmp_wait_release.h", "license": "apache-2.0", "size": 32870}
### File: runtime/src/kmp_wrapper_getpid.h /* * kmp_wrapper_getpid.h -- getpid() declaration. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informa...
{"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/src/kmp_wrapper_getpid.h", "license": "apache-2.0", "size": 2021}
### File: runtime/src/kmp_wrapper_malloc.h /* * kmp_wrapper_malloc.h -- Wrappers for memory allocation routines * (malloc(), free(), and others). */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.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/src/kmp_wrapper_malloc.h", "license": "apache-2.0", "size": 7377}
### File: runtime/src/ompt-event-specific.h /****************************************************************************** * File: ompt-event-specific.h * * Description: * * specify which of the OMPT events are implemented by this runtime system * and the level of their implementation by a runtime system. *...
{"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/src/ompt-event-specific.h", "license": "apache-2.0", "size": 4478}
### File: runtime/src/ompt-general.cpp /* * ompt-general.cpp -- OMPT implementation of interface functions */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for li...
{"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/src/ompt-general.cpp", "license": "apache-2.0", "size": 23890}
### File: runtime/src/ompt-internal.h /* * ompt-internal.h - header of OMPT internal data structures */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license ...
{"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/src/ompt-internal.h", "license": "apache-2.0", "size": 3742}
### File: runtime/src/ompt-specific.cpp /* * ompt-specific.cpp -- OMPT internal functions */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information...
{"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/src/ompt-specific.cpp", "license": "apache-2.0", "size": 14831}
### File: runtime/src/ompt-specific.h /* * ompt-specific.h - header of OMPT internal functions implementation */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for...
{"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/src/ompt-specific.h", "license": "apache-2.0", "size": 4011}
### File: runtime/src/test-touch.c // test-touch.c // //===----------------------------------------------------------------------===// // // 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...
{"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/src/test-touch.c", "license": "apache-2.0", "size": 688}
### File: runtime/src/tsan_annotations.cpp /* * tsan_annotations.cpp -- ThreadSanitizer annotations to support data * race detection in OpenMP programs. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Excepti...
{"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/src/tsan_annotations.cpp", "license": "apache-2.0", "size": 6058}
### File: runtime/src/tsan_annotations.h /*! \file */ /* * tsan_annotations.h -- ThreadSanitizer annotations to support data * race detection in OpenMP programs. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLV...
{"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/src/tsan_annotations.h", "license": "apache-2.0", "size": 6935}
### File: runtime/src/z_Linux_asm.S // z_Linux_asm.S: - microtasking routines specifically // written for Intel platforms running Linux* OS // ////===----------------------------------------------------------------------===// //// //// Part of the LLVM Project, under the Apache License v2.0 with L...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Unix Assembly", "repo_name": "minhanghuang/openmp", "path": "runtime/src/z_Linux_asm.S", "license": "apache-2.0", "size": 42053}
### File: runtime/src/z_Linux_util.cpp /* * z_Linux_util.cpp -- platform specific routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license informati...
{"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/src/z_Linux_util.cpp", "license": "apache-2.0", "size": 83089}
### File: runtime/src/z_Windows_NT-586_asm.asm ; z_Windows_NT-586_asm.asm: - microtasking routines specifically ; written for IA-32 architecture and Intel(R) 64 running Windows* OS ; ;//===----------------------------------------------------------------------===// ;// ;// Part of the LLVM Project, under the Apach...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Assembly", "repo_name": "minhanghuang/openmp", "path": "runtime/src/z_Windows_NT-586_asm.asm", "license": "apache-2.0", "size": 31100}
### File: runtime/src/z_Windows_NT-586_util.cpp /* * z_Windows_NT-586_util.cpp -- platform specific routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for...
{"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/src/z_Windows_NT-586_util.cpp", "license": "apache-2.0", "size": 3573}
### File: runtime/src/z_Windows_NT_util.cpp /* * z_Windows_NT_util.cpp -- platform specific routines. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license...
{"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/src/z_Windows_NT_util.cpp", "license": "apache-2.0", "size": 53400}
### File: runtime/test/CMakeLists.txt # CMakeLists.txt file for unit testing OpenMP host runtime library. include(CheckFunctionExists) include(CheckLibraryExists) # Some tests use math functions check_library_exists(m sqrt "" LIBOMP_HAVE_LIBM) # When using libgcc, -latomic may be needed for atomics # (but when using c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/openmp", "path": "runtime/test/CMakeLists.txt", "license": "apache-2.0", "size": 1447}
### File: runtime/test/affinity/bug-nested.c // RUN: %libomp-compile && env KMP_AFFINITY=compact %libomp-run #include <stdio.h> #include <stdint.h> #include <omp.h> #include "omp_testsuite.h" int test_nested_affinity_bug() { int a = 0; omp_set_nested(1); #pragma omp parallel num_threads(2) shared(a) { #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/affinity/bug-nested.c", "license": "apache-2.0", "size": 577}
### File: runtime/test/affinity/format/affinity_display.1.c // RUN: %libomp-compile // RUN: env OMP_DISPLAY_AFFINITY=TRUE OMP_NUM_THREADS=4 OMP_PLACES='{0,1},{2,3},{4,5},{6,7}' %libomp-run | %python %S/check.py -c 'CHECK' %s // Affinity Display examples #include <stdio.h> #include <stdlib.h> // also null is in <stddef...
{"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/affinity/format/affinity_display.1.c", "license": "apache-2.0", "size": 3109}
### File: runtime/test/affinity/format/affinity_values.c // RUN: %libomp-compile // RUN: env OMP_PROC_BIND=close OMP_PLACES=threads %libomp-run // RUN: env OMP_PROC_BIND=close OMP_PLACES=cores %libomp-run // RUN: env OMP_PROC_BIND=close OMP_PLACES=sockets %libomp-run // RUN: env KMP_AFFINITY=compact %libomp-run // 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/affinity/format/affinity_values.c", "license": "apache-2.0", "size": 3723}
### File: runtime/test/affinity/format/api.c // RUN: %libomp-compile-and-run // RUN: %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #define XSTR(x) #x #define STR(x) XSTR(x) #define streqls(s1, s2) (!strcmp(s1, s2)) #define check(condition...
{"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/affinity/format/api.c", "license": "apache-2.0", "size": 1462}
### File: runtime/test/affinity/format/api2.c // RUN: %libomp-compile-and-run // RUN: %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #define XSTR(x) #x #define STR(x) XSTR(x) #define streqls(s1, s2) (!strcmp(s1, s2)) #define check(conditio...
{"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/affinity/format/api2.c", "license": "apache-2.0", "size": 2667}
### File: runtime/test/affinity/format/check.py import os import sys import argparse import re class Checks(object): class CheckError(Exception): pass def __init__(self, filename, prefix): self.checks = [] self.lines = [] self.check_no_output = False self.filename = fil...
{"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/test/affinity/format/check.py", "license": "apache-2.0", "size": 2890}
### File: runtime/test/affinity/format/fields_modifiers.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #define XSTR(x) #x #define STR(x) XSTR(x) #define streqls(s1, s2) (!strcmp(s1, s2)) #define check(condition) ...
{"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/affinity/format/fields_modifiers.c", "license": "apache-2.0", "size": 3052}
### File: runtime/test/affinity/format/fields_values.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #define XSTR(x) #x #define STR(x) XSTR(x) #define streqls(s1, s2) (!strcmp(s1, s2)) #define check(condition) ...
{"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/affinity/format/fields_values.c", "license": "apache-2.0", "size": 3763}
### File: runtime/test/affinity/format/increase.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char** argv) { omp_set_affinity_format("TESTER: tl:%L tn:%n nt:%N"); // should 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/affinity/format/increase.c", "license": "apache-2.0", "size": 999}
### File: runtime/test/affinity/format/nested.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close %libomp-run | %python %S/check.py -c 'CHECK' %s // REQUIRES: affinity #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char** argv) { omp_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/affinity/format/nested.c", "license": "apache-2.0", "size": 753}
### File: runtime/test/affinity/format/nested2.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES=threads OMP_PROC_BIND=spread,close KMP_HOT_TEAMS_MAX_LEVEL=2 %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <omp.h> // Currently, KMP_HOT_TEAMS_MAX_LEVE...
{"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/affinity/format/nested2.c", "license": "apache-2.0", "size": 951}
### File: runtime/test/affinity/format/nested_mixed.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char** argv) { omp_set_affinity_format("TESTER: tl:%L at:%a tn:%n nt:%N"); omp_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/affinity/format/nested_mixed.c", "license": "apache-2.0", "size": 1209}
### File: runtime/test/affinity/format/nested_serial.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true %libomp-run | %python %S/check.py -c 'CHECK' %s #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char** argv) { omp_set_affinity_format("TESTER: tl:%L at:%a tn:%n nt:%N"); 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/affinity/format/nested_serial.c", "license": "apache-2.0", "size": 937}
### File: runtime/test/affinity/format/proc_bind.c // RUN: %libomp-compile && env OMP_DISPLAY_AFFINITY=true OMP_PLACES='{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0},{0,1},{0}' %libomp-run | %python %S/check.py -c 'CHECK' %s // REQUIRES: affinity #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc...
{"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/affinity/format/proc_bind.c", "license": "apache-2.0", "size": 916}
### File: runtime/test/affinity/format/simple.c // RUN: %libomp-compile // RUN: env OMP_DISPLAY_AFFINITY=false %libomp-run | %python %S/check.py -c 'NOTHING' %s // RUN: env OMP_DISPLAY_AFFINITY=true OMP_NUM_THREADS=1 %libomp-run | %python %S/check.py -c 'CHECK' %s // RUN: env OMP_DISPLAY_AFFINITY=true OMP_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/affinity/format/simple.c", "license": "apache-2.0", "size": 1142}
### File: runtime/test/affinity/format/simple_env.c // RUN: %libomp-compile // RUN: env OMP_DISPLAY_AFFINITY=true OMP_AFFINITY_FORMAT='TESTER-ENV: tl:%L tn:%n nt:%N' OMP_NUM_THREADS=8 %libomp-run | %python %S/check.py -c 'CHECK-8' %s #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char** ar...
{"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/affinity/format/simple_env.c", "license": "apache-2.0", "size": 404}
### File: runtime/test/api/has_openmp.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include "omp_testsuite.h" int test_has_openmp() { int rvalue = 0; #ifdef _OPENMP rvalue = 1; #endif return (rvalue); } int main() { int i; int num_failed=0; if(!test_has_openmp()) { num_fail...
{"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/api/has_openmp.c", "license": "apache-2.0", "size": 313}
### File: runtime/test/api/kmp_aligned_malloc.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <stdint.h> #include <omp.h> #include "omp_testsuite.h" int alignments[] = {64, 128, 256, 512, 1024, 2048, 4096}; unsigned aligned_by(uint64_t addr) { uint64_t alignment = 1; while((addr & (alignment-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/api/kmp_aligned_malloc.c", "license": "apache-2.0", "size": 1461}
### File: runtime/test/api/kmp_set_defaults_lock_bug.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" /* The bug occurs if the lock table is reallocated after kmp_set_defaults() is called. If the table is reallocated, then the lock will not point to a valid lock object after the ...
{"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/api/kmp_set_defaults_lock_bug.c", "license": "apache-2.0", "size": 1145}
### File: runtime/test/api/omp_alloc_def_fb.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <omp.h> int main() { omp_alloctrait_t at[2]; omp_allocator_handle_t a; void *p[2]; at[0].key = OMP_ATK_POOL_SIZE; at[0].value = 2 * 1024 * 1024; at[1].key = OMP_ATK_FALLBACK; at[1].value = OMP_ATV_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/api/omp_alloc_def_fb.c", "license": "apache-2.0", "size": 795}
### File: runtime/test/api/omp_alloc_hbw.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <omp.h> int main() { omp_alloctrait_t at[2]; omp_allocator_handle_t a; void *p[2]; at[0].key = OMP_ATK_POOL_SIZE; at[0].value = 2 * 1024 * 1024; at[1].key = OMP_ATK_FALLBACK; at[1].value = OMP_ATV_NULL...
{"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/api/omp_alloc_hbw.c", "license": "apache-2.0", "size": 1220}
### File: runtime/test/api/omp_alloc_null_fb.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <omp.h> int main() { omp_alloctrait_t at[2]; omp_allocator_handle_t a; void *p[2]; at[0].key = OMP_ATK_POOL_SIZE; at[0].value = 2 * 1024 * 1024; at[1].key = OMP_ATK_FALLBACK; at[1].value = OMP_ATV_...
{"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/api/omp_alloc_null_fb.c", "license": "apache-2.0", "size": 954}
### File: runtime/test/api/omp_get_num_devices.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_get_num_devices() { /* checks that omp_get_device_num */ int num_devices = omp_get_num_devices(); return (num_devices == 0); } int main() { int i; int num_failed=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/api/omp_get_num_devices.c", "license": "apache-2.0", "size": 398}
### File: runtime/test/api/omp_get_num_threads.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_get_num_threads() { /* checks that omp_get_num_threads is equal to the number of threads */ int nthreads_lib; int nthreads = 0; nthreads_lib = -1; #pragma omp par...
{"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/api/omp_get_num_threads.c", "license": "apache-2.0", "size": 696}
### File: runtime/test/api/omp_get_wtick.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_get_wtick() { double tick; tick = -1.; tick = omp_get_wtick (); return ((tick > 0.0) && (tick <= 0.01)); } int main() { int i; int num_failed=0; for(i = 0; i < REPETITIO...
{"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/api/omp_get_wtick.c", "license": "apache-2.0", "size": 373}
### File: runtime/test/api/omp_get_wtime.c // RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" int test_omp_get_wtime() { double start; double end; double measured_time; double wait_time = 5.0; start = 0; end = 0; start = omp_get_wti...
{"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/api/omp_get_wtime.c", "license": "apache-2.0", "size": 615}
### File: runtime/test/api/omp_in_parallel.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" /* * Checks that false is returned when called from serial region * and true is returned when called within parallel region. */ int test_omp_in_parallel() { int serial; int isparallel; 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/api/omp_in_parallel.c", "license": "apache-2.0", "size": 867}
### File: runtime/test/api/omp_pause_resource.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_pause_resource() { int fails, nthreads, my_dev; fails = 0; nthreads = 0; my_dev = omp_get_initial_device(); #pragma omp parallel #pragma omp single nthreads = omp_get_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/api/omp_pause_resource.c", "license": "apache-2.0", "size": 1089}
### File: runtime/test/atomic/omp_atomic.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_atomic() { int sum; int diff; double dsum = 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/atomic/omp_atomic.c", "license": "apache-2.0", "size": 6891}
### File: runtime/test/barrier/omp_barrier.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" int test_omp_barrier() { int result1; int result2; result1 = 0; result2 = 0; #pragma omp parallel { int rank; rank = omp_get_thread_num (); if (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/barrier/omp_barrier.c", "license": "apache-2.0", "size": 815}
### File: runtime/test/critical/omp_critical.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_critical() { int sum; int known_sum; sum=0; #pragma omp parallel { int mysum=0; int i; #pragma omp for for (i = 0; i < 1000; i++) mysum = mysum + 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/critical/omp_critical.c", "license": "apache-2.0", "size": 552}
### File: runtime/test/flush/omp_flush.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" int test_omp_flush() { int result1; int result2; int dummy; result1 = 0; result2 = 0; #pragma omp parallel { int rank; rank = omp_get_thread_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/flush/omp_flush.c", "license": "apache-2.0", "size": 1005}
### File: runtime/test/lit.cfg # -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: # Configuration file for the 'lit' test runner. import os import re import subprocess import lit.formats # Tell pylint that we know config and lit_config exist somewhere. if 'PYLINT_IMPORT' in os.environ: config = object...
{"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/test/lit.cfg", "license": "apache-2.0", "size": 4922}
### File: runtime/test/lock/omp_init_lock.c // RUN: %libomp-compile-and-run #include "omp_testsuite.h" #include <stdio.h> // This should be slightly less than KMP_I_LOCK_CHUNK, which is 1024 #define LOCKS_PER_ITER 1000 #define ITERATIONS (REPETITIONS + 1) // This tests concurrently using locks on one thread while ini...
{"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/lock/omp_init_lock.c", "license": "apache-2.0", "size": 1306}
### File: runtime/test/lock/omp_lock.c // RUN: %libomp-compile-and-run // RUN: env KMP_LOCK_KIND=tas KMP_SPIN_BACKOFF_PARAMS=2048,200 %libomp-run // RUN: env KMP_LOCK_KIND=futex %libomp-run #include <stdio.h> #include "omp_testsuite.h" omp_lock_t lck; int test_omp_lock() { int nr_threads_in_single = 0; int result...
{"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/lock/omp_lock.c", "license": "apache-2.0", "size": 930}
### File: runtime/test/lock/omp_nest_lock.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" omp_nest_lock_t lck; int test_omp_nest_lock() { int nr_threads_in_single = 0; int result = 0; int nr_iterations = 0; int i; omp_init_nest_lock(&lck); #pragma omp parallel shared(lck) ...
{"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/lock/omp_nest_lock.c", "license": "apache-2.0", "size": 846}
### File: runtime/test/lock/omp_test_lock.c // RUN: %libomp-compile-and-run // RUN: env KMP_LOCK_KIND=tas %libomp-run // RUN: env KMP_LOCK_KIND=futex %libomp-run #include <stdio.h> #include "omp_testsuite.h" omp_lock_t lck; int test_omp_test_lock() { int nr_threads_in_single = 0; int result = 0; int nr_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/lock/omp_test_lock.c", "license": "apache-2.0", "size": 929}
### File: runtime/test/lock/omp_test_nest_lock.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" static omp_nest_lock_t lck; int test_omp_test_nest_lock() { int nr_threads_in_single = 0; int result = 0; int nr_iterations = 0; int i; omp_init_nest_lock (&lck); #pragma omp par...
{"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/lock/omp_test_nest_lock.c", "license": "apache-2.0", "size": 919}
### File: runtime/test/master/omp_master.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_master() { int nthreads; int executing_thread; nthreads = 0; executing_thread = -1; #pragma omp parallel { #pragma omp master { #pragma omp critical { ...
{"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/master/omp_master.c", "license": "apache-2.0", "size": 622}
### File: runtime/test/master/omp_master_3.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_master_3() { int nthreads; int executing_thread; int tid_result = 0; /* counts up the number of wrong thread no. for the master thread. (Must be 0) */ nthreads ...
{"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/master/omp_master_3.c", "license": "apache-2.0", "size": 889}
### File: runtime/test/misc_bugs/cancellation_for_sections.c // RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run // Clang had a bug until version 4.0.1 which resulted in a hang. // UNSUPPORTED: clang-3, clang-4.0.0 // Regression test for a bug in cancellation to cover effect of `#pragma omp cancel` // 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/misc_bugs/cancellation_for_sections.c", "license": "apache-2.0", "size": 1488}
### File: runtime/test/misc_bugs/many-microtask-args.c // RUN: %libomp-compile-and-run #include <stdio.h> int main() { int i; int i1 = 0; int i2 = 1; int i3 = 2; int i4 = 3; int i5 = 4; int i6 = 6; int i7 = 7; int i8 = 8; int i9 = 9; int i10 = 10; int i11 = 11; int i12 = 12; int i13 = 13; ...
{"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/misc_bugs/many-microtask-args.c", "license": "apache-2.0", "size": 727}
### File: runtime/test/misc_bugs/omp_foreign_thread_team_reuse.c // RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" #define NUM_THREADS 10 /* After hot teams were enabled by default, the library started using levels kept in the team structure. The levels are broken in case foreign thread...
{"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/misc_bugs/omp_foreign_thread_team_reuse.c", "license": "apache-2.0", "size": 2076}
### File: runtime/test/misc_bugs/stack-propagate.c // RUN: %libomp-compile-and-run // https://bugs.llvm.org/show_bug.cgi?id=26540 requested // stack size to be propagated from master to workers. // Library implements propagation of not too big stack // for Linux x86_64 platform (skipped Windows for now). // // The tes...
{"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/misc_bugs/stack-propagate.c", "license": "apache-2.0", "size": 1616}
### File: runtime/test/misc_bugs/teams-no-par.c // RUN: %libomp-compile-and-run // // The test checks the teams construct pseudocode executed on host // #include <stdio.h> #include <omp.h> #ifndef N_TEAMS #define N_TEAMS 4 #endif #ifndef N_THR #define N_THR 3 #endif static int err = 0; // Internal library staff to ...
{"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/misc_bugs/teams-no-par.c", "license": "apache-2.0", "size": 1405}
### File: runtime/test/misc_bugs/teams-reduction.c // RUN: %libomp-compile-and-run // // The test checks the teams construct with reduction executed on the host. // #include <stdio.h> #include <omp.h> #include <stdint.h> #ifndef N_TEAMS #define N_TEAMS 4 #endif #ifndef N_THR #define N_THR 3 #endif // Internal libra...
{"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/misc_bugs/teams-reduction.c", "license": "apache-2.0", "size": 1784}
### File: runtime/test/omp_my_sleep.h #ifndef MY_SLEEP_H #define MY_SLEEP_H /*! Utility function to have a sleep function with better resolution and * which only stops one thread. */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <time.h> #if defined(_WIN32) # include <windows.h> // Windows ver...
{"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/omp_my_sleep.h", "license": "apache-2.0", "size": 693}
### File: runtime/test/omp_testsuite.h /* Global headerfile of the OpenMP Testsuite */ #ifndef OMP_TESTSUITE_H #define OMP_TESTSUITE_H #include <stdio.h> #include <stdlib.h> #include <omp.h> /* General */ /**********************************************************/ #def...
{"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/omp_testsuite.h", "license": "apache-2.0", "size": 2284}
### File: runtime/test/ompt/callback.h #ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #define _DEFAULT_SOURCE #include <stdio.h> #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif #include <inttypes.h> #include <omp.h> #include <omp-tools.h> #include "ompt-signal.h" // Used to detect architecture #includ...
{"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/callback.h", "license": "apache-2.0", "size": 36579}
### File: runtime/test/ompt/cancel/cancel_parallel.c // RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s // REQUIRES: ompt // Current GOMP interface implementation does not support cancellation // XFAIL: gcc #include "callback.h" #include "omp.h" int main() { #pragma 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/cancel/cancel_parallel.c", "license": "apache-2.0", "size": 1846}
### File: runtime/test/ompt/cancel/cancel_taskgroup.c // RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s // REQUIRES: ompt // UNSUPPORTED: clang-3, clang-4.0.0 // Current GOMP interface implementation does not support cancellation; icc 16 has a bug // XFAIL: gcc, icc-16 #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/ompt/cancel/cancel_taskgroup.c", "license": "apache-2.0", "size": 4545}