source
stringlengths
3
92
c
stringlengths
26
2.25M
core_zsyr2k.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> c d s * **/ #include "core_blas.h" #include "plasma_types.h" #include "core_lapack.h" /*******************************************************************...
DRB052-indirectaccesssharebase-orig-no.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
iSENSE_MEX.c
/************************************************************************** MEX function to compute the approximate gradient of the absolute value Author: R. Marc Lebel Contact: mlebel@gmail.com Date: 11/2010 Useage: imgS = absgradMEX(img,sens) Input: img: numeric array (single/double; real/complex) sens:...
sparselu-task-dep.c
/**********************************************************************************************/ /* This program is part of the Barcelona OpenMP Tasks Suite */ /* Copyright (C) 2009 Barcelona Supercomputing Center - Centro Nacional de Supercomputacion */ /* Copyright (C) 2009 Univer...
3d7pt.c
/* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b) ...
engine.h
#include <vector> #include <map> #include <tuple> #include <fstream> #include <mutex> #include <nlohmann/json.hpp> #include <omp.h> #include <article.h> #include <utils.h> #include <lang_detector.h> #include <news_detector.h> #include <category_classifier.h> #include <stopword_filter.h> #include <thread_manager.h> #i...
GB_binop__min_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
updater_basemaker-inl.h
/*! * Copyright 2014 by Contributors * \file updater_basemaker-inl.h * \brief implement a common tree constructor * \author Tianqi Chen */ #ifndef XGBOOST_TREE_UPDATER_BASEMAKER_INL_H_ #define XGBOOST_TREE_UPDATER_BASEMAKER_INL_H_ #include <xgboost/base.h> #include <xgboost/tree_updater.h> #include <vector> #incl...
GB_binop__bset_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
transform.h
/*! * Copyright 2018 XGBoost contributors */ #ifndef XGBOOST_COMMON_TRANSFORM_H_ #define XGBOOST_COMMON_TRANSFORM_H_ #include <dmlc/omp.h> #include <xgboost/data.h> #include <vector> #include <type_traits> // enable_if #include "host_device_vector.h" #include "common.h" #include "span.h" #if defined (__CUDACC__) ...
sync_strategies.c
// Utilities void print_all_threads(shared_state_t *S, private_state_t *private_state, unsigned char *buffer) { #pragma omp critical { printf("\n%d: ", private_state->thread_id); for (int i = 0; i < S->N_OF_CORES; i++) { printf("%u ", buffer[i]); } } } /* Windowed_resy...
doacross-1.c
/* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void foo (void) { int i, j, k; #pragma omp for ordered (1) for (i = 0; i < 64; i++) { #pragma omp ordered depend (sink: i - 1) #pragma omp ordered depend (source) } #pragma omp for ordered (1) collapse (1) for (i = 0; i < 64; i++) ...
scale.c
/******************************************************************************* * Copyright 2021 UChicago Argonne, LLC. * (c.f. AUTHORS, LICENSE) * * This file is part of the NRM Benchmarks project. * For more info, see https://github.com/anlsys/nrm-benchmarks * * SPDX-License-Identifier: BSD-3-Clause ********...
spectra.c
/** @file spectra.c Documented spectra module * * Julien Lesgourgues, 25.08.2010 * * This module computes the anisotropy and Fourier power spectra * \f$ C_l^{X}, P(k), ... \f$'s given the transfer and Bessel functions * (for anisotropy spectra), the source functions (for Fourier spectra) * and the primordial spe...
test_vadd_2.c
#include <stdio.h> #include <stdlib.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif #define RESTRICT double vdiff(int n, const float * RESTRICT a, const float * RESTRICT b) { double d = 0.0; for(int i = 0; i < n; i++) { d += (a[i] - b[i]); } return d; } void vadd0(int n, float ...
test_lock.c
#include <stdio.h> #include <omp.h> omp_lock_t simple_lock; int main() { omp_init_lock(&simple_lock); #pragma omp parallel num_threads(4) { int tid = omp_get_thread_num(); while (!omp_test_lock(&simple_lock)) printf("Thread %d - failed to acquire simple_lock\n", ...
FG_dense_matrix.h
#ifndef __FG_DENSE_MATRIX_H__ #define __FG_DENSE_MATRIX_H__ /** * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of FlashGraph. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
CGOpenMPRuntime.h
//===----- CGOpenMPRuntime.h - Interface to OpenMP Runtimes -----*- 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 WITH LLVM-exception // //===---------------------------...
GraphReconstructor.h
// // Copyright (C) 2015-2020 Yahoo Japan Corporation // // 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
stats.c
//----------------------------------------------------------------------------- // stats.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (Build 5.1.001) // 09/15/14 (Build 5.1.007) // 03/19/15 (Build 5.1.008) // 08/01/16 (Build 5.1.011) // ...
matrix.c
#include "oml/matrix.h" #include <string.h> #ifdef _OML_MATRIX_SSE #include <emmintrin.h> #endif OML_EXPORT omlMatrix* omlMatAlloc(size_t rows, size_t cols) { // Force to add 16 bytes-aligned to make it easy to do multiply size_t alloc_size = OML_ALIGN_UP(rows * cols * sizeof(float) + 4 * sizeof(size_t), 16); omlMa...
MSCHAPv2_bs_fmt_plug.c
/* * MSCHAPv2_fmt.c -- Microsoft PPP CHAP Extensions, Version 2 * * Written by JoMo-Kun <jmk at foofus.net> in 2010 * and placed in the public domain. * * Modified for performance, OMP and utf-8 support * by magnum 2010-2011, no rights reserved * * Modified for using Bitsliced DES by Deepika Dutta Mishra * <d...
dgemm.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> extern void dgemm_(char*, char*, int*, int*, int*, double*, double*, int*, double*, int*, double*, double*, int*); int main(int argc, char* argv[]) { double alpha = 1.2; double beta = 1.0e-3; double gflop; ...
opencl_odf_fmt_plug.c
/* Modified by Dhiru Kholia <dhiru at openwall.com> for ODF Blowfish format. * * This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net> * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, a...
edgebased_levelset.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Antonia Larese // #if !defined(KRATOS_EDGEBASED...
SoaDistanceTableAB.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Jeongnim ...
gimple.h
/* Gimple IR definitions. Copyright 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
estimator.h
// Copyright (C) 2013 The Regents of the University of California (Regents). // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above...
par_mgr.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
GB_binop__lor_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_binop__rminus_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
dcrtpoly.h
/** * @file dcrtpoly.h Represents integer lattice elements with double-CRT * @author TPOC: contact@palisade-crypto.org * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are perm...
compatibility.h
// -*- C++ -*- // Copyright (C) 2007-2020 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3...
par_rap.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
add-brisbane.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB BT code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
2.hello.c
#include <stdio.h> #include <omp.h> /* If the OMP_NUM_THREADS variable is set to 8 with */ /* export OMP_NUM_THREADS=8 */ /* Q1: Is the execution of the program correct? Add a */ /* data sharing clause to make it correct */ /* Q2: Are the lines always printed in the same...
order-1.c
void f1 (int *a) { int i; #pragma omp for order(concurrent) for (i = 0; i < 128; i++) a[i]++; #pragma omp simd order ( concurrent ) for (i = 0; i < 128; i++) a[i]++; #pragma omp for simd order(concurrent) for (i = 0; i < 128; i++) a[i]++; } void f2 (int *a) { int i; #pragma omp parallel f...
GB_assign_zombie5.c
//------------------------------------------------------------------------------ // GB_assign_zombie5: delete entries in C for C_replace_phase //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License...
GB_unop__identity_int64_bool.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
tile.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "tile.h" #include "sort.h" #include "timer.h" #include "io.h" #include "util.h" #include <omp.h> /*************************************...
nnet.c
#include "nnet.h" nnet_object nnet_init(int layers, int *arch, int *actfcn) { nnet_object obj = NULL; int i,ld,lw,li; int add_vector,add_vector2, t_vector; // Error Checks if (layers < 2) { printf("\nThis Neural Network cannot have fewer than 2 layers (Input and Output\n"); printf("Returning NULL O...
attribute.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
no_option.c
// RUN: %clang_cc1 -verify -o - %s // expected-no-diagnostics int a; #pragma omp threadprivate(a,b) #pragma omp parallel
pr39591-2.c
/* PR other/39591 */ /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); int err; void __attribute__((noinline)) foo (int *array) { #pragma omp task { int j; for (j = 0; j < sizeof array / sizeof array[0]; j++) if (array[j] != 0x55555555) #pragma omp atomic err++; } } int mai...
arrayQueue.c
// ----------------------------------------------------------------------------- // // "00_AccelGraph" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- ...
pr93555-2.c
/* PR middle-end/93555 */ /* { dg-do compile } */ #pragma omp declare simd #pragma omp declare simd inbranch void foo (void) { } #pragma omp declare simd inbranch #pragma omp declare simd void bar (void) { }
binarySearch_openmp.c
#include "stdio.h" #include "stdlib.h" #include "string.h" #include <sys/time.h> // High resolution timer #include <omp.h> const int ARR_SIZE = 200000000; // Add 200,000,000 elements into array int randomNums[ARR_SIZE]; // Array of random integers int parallel_search_found = 0; double omp_get_wtime(void); // Hi...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
pr35439.c
/* PR c/35439 */ /* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void x[1]; /* { dg-error "array of voids" } */ #pragma omp threadprivate(x)
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- 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 WITH LLVM-exception // //===---------------------------...
HGen.c
/* ----------------------------------------------------------------- */ /* The HMM-Based Speech Synthesis System (HTS) */ /* developed by HTS Working Group */ /* http://hts.sp.nitech.ac.jp/ */ /* -----------------------------...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- 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 WITH LLVM-exception // //===---------------------------...
GB_binop__first_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
nessted.c
#include <stdio.h> #include <omp.h> void report(int level) { #pragma omp single { printf("Level %d, total thread in team: %d\n",level,omp_get_num_threads()); } } int main(int argc, char const *argv[]) { /* code */ omp_set_dynamic(1); #pragma omp parallel num_threads(2) { r...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
gather_double.c
// create a list of 64 numbers, and only sum the even ones #include <stdio.h> #include <stdlib.h> #define N 32000 int main() { srand(time(NULL)); double *numbers = malloc(sizeof(double)*N); int *mask = malloc(sizeof(int)*N); // Init the numbers for (int i = 0; i<N; i++) numbers[i] = rand() % ...
reference.h
template<int R> void reference( float *__restrict in, float *__restrict out, int w, int h, float a_square, float variance_I, float variance_spatial) { #pragma omp parallel for collapse(2) for (int idx = 0; idx < w; idx++) for (int idy = 0; idy < h; idy++) { int id = idy*w + ...
omp_dynamic_shared_memory.c
// RUN: %libomptarget-compile-nvptx64-nvidia-cuda -fopenmp-target-new-runtime // RUN: env LIBOMPTARGET_SHARED_MEMORY_SIZE=4 \ // RUN: %libomptarget-run-nvptx64-nvidia-cuda | %fcheck-nvptx64-nvidia-cuda // REQUIRES: nvptx64-nvidia-cuda #include <omp.h> #include <stdio.h> void *get_dynamic_shared() { return NULL; } #...
porosity_tools.h
#ifndef KRATOS_POROSITY_TOOLS_H #define KRATOS_POROSITY_TOOLS_H // /* External includes */ // System includes // Project includes #include "includes/variables.h" /* System includes */ #include <limits> #include <iostream> #include <iomanip> /* External includes */ #ifdef _OPENMP #include <omp.h> #endif /* Project ...
integrator.c
#define _USE_MATH_DEFINES #include <string.h> #include <assert.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include "io.h" #include "storage.h" #include "integrator.h" #include "cmontecarlo.h" #include "omp_helper.h" #define NULEN 0 #define LINELEN 1 #define PLEN 2 #define SHELLEN 3 #define C_...
OffchainWithdrawalCircuit.h
#ifndef _OFFCHAINWITHDRAWALCIRCUIT_H_ #define _OFFCHAINWITHDRAWALCIRCUIT_H_ #include "Circuit.h" #include "../Utils/Constants.h" #include "../Utils/Data.h" #include "../Utils/Utils.h" #include "../Gadgets/AccountGadgets.h" #include "ethsnarks.hpp" #include "utils.hpp" #include "gadgets/subadd.hpp" using namespace et...
ep_single.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - EP This benchmark is an OpenMP C version of the NPB EP code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
GB_unop__identity_int16_int32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
broadcast_reduce-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
interaction.c
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* Redistribution and use in source and binary forms, with or without */ /* modification, are permitted provided that the following conditions */ /* are met: */ /* * Redistributions of source code must retain the abo...
_vet.c
/* Generated by Cython 0.28.4 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "/aos/home/aperez/localStorage/local/miniconda3/envs/python3.6/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h", "/aos/home/aperez/localStorage/local/miniconda3/envs/python3.6...
c-parser.c
/* Parser for C and Objective-C. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc. Parser actions based on the old Bison parser; structure somewhat influenced by and fragments based on the C...
8481.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
3d7pt.c
/* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b) ...
GB_reduce_panel.c
//------------------------------------------------------------------------------ // GB_reduce_panel: s=reduce(A), reduce a matrix to a scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suites...
cv_basic.h
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // 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://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
H2ERI_build_Coulomb.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <omp.h> #include "H2Pack_matvec.h" #include "H2Pack_utils.h" #include "H2ERI_typedef.h" #include "H2ERI_build_Coulomb.h" #include "H2ERI_matvec.h" #include "utils.h" // In H2Pack // "Uncontract" the density matrix ...
GB_binop__islt_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_unaryop__identity_bool_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GrB_Descriptor_wait.c
//------------------------------------------------------------------------------ // GrB_Descriptor_wait: wait for a user-defined GrB_Descriptor to complete //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. //...
o10glogon_fmt_plug.c
/* * This software was written by JimF jfoug AT cox dot net * in 2016. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (c) 2016 JimF ...
GB_unaryop__minv_uint8_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
unit-tests.c
#define _XOPEN_SOURCE 700 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <CUnit/CUnit.h> #include <CUnit/Basic.h> #include "../include/encryptor.h" #include "../include/fs.h" #include "../include/keygen.h" int init_suite(void) { return 0; } int clean_suite(void) { return 0; } /** * encr...
bistack.c
// -*-Mode: C++;-*- // technically C99 // * BeginRiceCopyright ***************************************************** // // $HeadURL$ // $Id$ // // -------------------------------------------------------------------------- // Part of HPCToolkit (hpctoolkit.org) // // Information about sources of support for research an...
GB_unaryop__lnot_fp64_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
zgeqrs.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
declare_simd_aarch64.c
// REQUIRES: aarch64-registered-target // -fopemp and -fopenmp-simd behavior are expected to be the same. // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -fopenmp -x c -emit-llvm %s -o - -femit-all-decls | FileCheck %s --check-prefix=AARCH64 // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-featu...
GB_unop__identity_uint32_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
clang-313307.c
#include <stdio.h> #include <omp.h> #define SIMPLE_SPMD 0 int main(){ int nthreads_a[3]; int a1_a[4]; #pragma omp target parallel map(tofrom: a1_a, nthreads_a) { a1_a[0] = 1; nthreads_a[0] = 4; } printf("hello %d %d\n", a1_a[0], nthreads_a[0]); if (a1_a[0] != 1 || nthreads_a[0] != 4) return 1...
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
parser.c
/* C++ Parser. Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Written by Mark Mitchell <mark@codesourcery.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
GB_unaryop__abs_uint64_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
priority-1.c
void bar (void); void foo (int x, unsigned long long y) { #pragma omp task bar (); #pragma omp taskloop for (int i = 0; i < 10; i++) bar (); #pragma omp task bar (); #pragma omp taskloop for (unsigned long long int i = 0; i < y; i++) bar (); #pragma omp task priority (1) bar (...
common.h
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_UTILS_COMMON_FUN_H_ #define LIGHTGBM_UTILS_COMMON_FUN_H_ #include <LightGBM/utils/log.h> #include <LightGBM/utils/openmp_wrapper.h>...
convolution_winograd_transform_pack16.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_unaryop__ainv_uint32_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
vector.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
broadcast_reduce_customized-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
mtlasso2G_CD.c
/* * mtlasso2G_CD.c * Perform coordinate descent loop for the two-graph guided multi-task Lasso. * Author: Xing Xu (xing@ttic.edu) * Last update: 4-23-2012 */ #include <mex.h> #include <math.h> #include <omp.h> #define CHUNKSIZE 100 #define EPOWER 4 /* * Global variables, values are assigned ...
parallel_stable_sort.h
#pragma once /* A Parallel Stable Sort Using C++11 for OpenMP by Arch D. Robison (Intel) from April 11, 2014 Copyright (C) 2014 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
BRKGA.h
/* * BRKGA.h * * This class encapsulates a Biased Random-key Genetic Algorithm (for minimization problems) with K * independent Populations stored in two vectors of Population, current and previous. It supports * multi-threading via OpenMP, and implements the following key methods: * * - BRKGA() constructor: ini...
stream2.c
/*-----------------------------------------------------------------------*/ /* Program: STREAM */ /* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */ /* Original code developed by John D. McCalpin */ /* Programm...
gt_mm.c
/* * PROJECT: GEM-Tools library * FILE: gt_mm.c * DATE: 01/02/2013 * AUTHOR(S): Santiago Marco-Sola <santiagomsola@gmail.com> * DESCRIPTION: * Memory Manager provides memory allocation functions. Different types of memory are supported. * - UnitMemory * Allocate relative small chunks of memory rel...