source
stringlengths
3
92
c
stringlengths
26
2.25M
rawSHA512_ng_fmt_plug.c
/* * Copyright (c) 2013, epixoip. * Copyright (c) 2015, magnum (pseudo-intrinsics also supporting AVX2/AVX512) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that redistribution of source * retains the above copyright. */ #include "arch.h" #if SIMD_...
master-2.c
/* { dg-do compile } */ void f1(void) { #pragma omp master asdf /* { dg-error "expected" } */ #pragma omp master } /* { dg-error "expected expression" } */
declare_variant_construct_codegen_1.c
// expected-no-diagnostics #ifndef HEADER #define HEADER // RUN: %clang_cc1 -DCK1 -verify -fopenmp -triple x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s --check-prefix=CK1 // RUN: %clang_cc1 -DCK1 -fopenmp -x c -triple x86_64-unknown-linux -emit-pch -o %t -fopenmp-version=45 %s // RUN: %clang_cc1 -DCK1 -fope...
sample_for_critical.c
/* Andre Augusto Giannotti Scota (https://sites.google.com/view/a2gs/) */ #include <stdio.h> #include <stdlib.h> #include <omp.h> #include "openmp_util.h" int f(int a, int b, int c) { return(a + b + c); } int main(int argc, char *argv[]) { int x[] = {1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10}; int y[] = {10, 20, 30...
symv_c_csr_n_hi_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include<stdlib.h> static alphasparse_status_t symv_x_csr_n_hi_conj_omp(const ALPHA_Number alpha, const ALPHA_SPMAT_CSR *A, const ALPHA_Number *x, const A...
GB_binop__lor_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
resource_manager.h
// ----------------------------------------------------------------------------- // // Copyright (C) 2021 CERN & Newcastle University for the benefit of the // BioDynaMo collaboration. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compl...
trmv_x_sky_n_lo_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/opt.h" #include "alphasparse/util.h" #include <string.h> #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t ONAME_omp(const ALPHA_Number alpha, const ALPHA_SPMAT_SKY *A, const ALPHA_Number *x, ...
find_most_influential.h
//===------------------------------------------------------------*- C++ -*-===// // // Ripples: A C++ Library for Influence Maximization // Marco Minutoli <marco.minutoli@pnnl.gov> // Pacific Northwest National Laboratory // //===-------------------------------------------...
GB_unop__identity_fc32_bool.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
omp_barrier.c
<ompts:test> <ompts:testdescription>Test which checks the omp barrier directive. The test creates several threads and sends one of them sleeping before setting a flag. After the barrier the other ones do some little work depending on the flag.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:dire...
paralle_for.c
#include <stdio.h> #include <omp.h> #include <unistd.h> int main() { printf(" omp_get_max_threads %d \n", omp_get_max_threads() ); printf(" omp_get_thread_num %d \n", omp_get_thread_num() ); char hn[600]; int ID = 0; #pragma omp parallel { ID = omp_get_thread_num(); gethostname(h...
omp_master_exemple.c
// omp_master_exemple.c // compile with: /openmp /* ############################################################################# ## DESCRIPTION: Using pragma omp master. ## NAME: omp_master_exemple.c ## AUTHOR: Lucca Pessoa da Silva Matos ## DATE: 10.04.2020 ## VERSION: 1.0 ## EXEMPLE: ## PS C:\> gcc -fopenmp -o ...
laplace2d_omp_acc.c
/* File: laplace2d.c */ #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> int main(int argc, char **argv) { FILE *output_unit; int i, j; int n = 2048; int m = 2048; /* Size of the mesh */ int qn = (int)n * 0.5; /* x-coordinate of the point h...
convolution_sgemm.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
mpc.h
#ifndef __MPC_H_ #define __MPC_H_ #include "connect.h" #include "param.h" #include "util.h" #include <map> #include <vector> #include <stack> #include <NTL/mat_ZZ_p.h> #include <NTL/mat_ZZ.h> #include <NTL/ZZ.h> #include <sstream> #include <fstream> #include <chrono> #include <NTL/BasicThreadPool.h> #include <omp.h> ...
DRB002-antidep1-var-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_binop__ne_fc32.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_unaryop__abs_fp64_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
3d25pt_var.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 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
_utils.c
/* Generated by Cython 0.27.3 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "mnnpy/_utils.h" ], "include_dirs": [ "mnnpy" ], "name": "mnnpy._utils", "sources": [ "/Users/chrisk/Devel/mnnpy/mnnpy/_utils.pyx" ] ...
st_naive_up.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> /* multiprocessor support */ //#include "../PaulSwissPNG/png/mypng.h" #include "mypng.h" /***********************************************************************/ double* SteepestTangent(const uint8 *Image, const size_t N...
dense.h
#ifndef __DENSE_CHOLESKY_H__ #define __DENSE_CHOLESKY_H__ #include "../matrix-formats/matrix-formats.h" namespace __core__ { namespace __linear_algebra__ { namespace __cholesky__ { template <int ver,typename T=void> typename std::enable_if<ver==0,void>::type cholesky(MatrixHandler<T,size_t>& R) { for(size_t k=0;k...
O8ind.c
#include <mpi.h> extern int *cn_c; extern int *ce_c; extern int *ec_c; extern int *cn_crem; extern int *ce_crem; extern int *ec_crem; extern int *neighbor_map; extern int *cedge_map; extern int *ecell_map; extern int *neighbor_maprem; extern int *cedge_maprem; extern int *ecell_maprem; extern GVAL **neighbor_2Dbuf; ex...
DRB004-antidep2-var-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_unaryop__lnot_uint64_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
dctz-comp-lib-float.c
/** * @file dctz-comp-lib-float.c * @author Seung Woo Son * @date July 2019 * @brief DCTZ compression library routine for float * (C) 2019 University of Massachuetts Lowell. See LICENSE in top-level directory. */ #include <stdlib.h> #include <memory.h> #include <string.h> #ifdef TIME_DEBUG #include <sys/ti...
base_ptr_ref_count.c
// RUN: %libomptarget-compile-aarch64-unknown-linux-gnu && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-aarch64-unknown-linux-gnu 2>&1 | %fcheck-aarch64-unknown-linux-gnu // RUN: %libomptarget-compile-powerpc64-ibm-linux-gnu && env LIBOMPTARGET_DEBUG=1 %libomptarget-run-powerpc64-ibm-linux-gnu 2>&1 | %fcheck-powerpc64-ib...
cpumasks.c
#define _GNU_SOURCE #include <stdio.h> #include <unistd.h> #include <sys/syscall.h> #include <sys/types.h> #include <errno.h> #include <string.h> #include <sched.h> #include <mpi.h> #include <math.h> #ifdef _OPENMP #include <omp.h> #endif #ifndef HOST_NAME_MAX #define HOST_NAME_MAX 256 #endif void print_mask(int ran...
xcfun_itrf.c
/* Copyright 2014-2018 The PySCF Developers. 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 requi...
evolve.h
#define FLOAT double #define CLFLOAT cl_float #define CLFLOAT4 cl_float4 #define DOUBLE long double #define INT int #define UINT unsigned int #define LONG long #define ULONG unsigned long #define RVTIMESTEP #define RATIMESTEP #define RARVRATIO 1. #define MPWORKLIMIT 1000 #define CLWORKLIMIT 100000 #define MAXLEVEL...
irbuilder_unroll_partial_factor_for_collapse.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
log.h
/** * Copyright (c) 2017 rxi * * This library is free software; you can redistribute it and/or modify it * under the terms of the MIT license. See `log.c` for details. */ #pragma once #ifdef USE_LOG #include <cstdio> #include <cstdarg> #include <cstring> #include <string> #define LOG_VERSION "0.1.0" typedef v...
symm_x_dia_u_hi_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *...
DeclOpenMP.h
//===- DeclOpenMP.h - Classes for representing OpenMP directives -*- 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 // //===--------------------------...
tentusscher_epi_2004_S2_1.c
#include <assert.h> #include <stdlib.h> #include "tentusscher_epi_2004_S2_1.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } SET_ODE_INITIAL_CONDITIONS_CPU(se...
main.c
# include <stdio.h> # include <omp.h> # include "sim.h" # include "ga.h" # include "gradient.h" # include "utils.h" #include <omp.h> /* * Function saving the best individual results * * @param population whole population * @param bestindividual position of the best individual */ void save_bestind(Genome * popula...
Net.h
// Created by Boris Vidolov on 02/15/2014 // Published under Apache 2.0 licence. #pragma once #include "Layer.h" #include "File.h" namespace FastNets { //This class implements a deep network through stacking layers. //Example: // Net<5, Net<3, Net<1>>> n; //The line above creates a network with 3 layers, 5 input neur...
fisheye.c
/* Generated by Cython 0.27.3 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000) #error Cython ...
task_late_fulfill.c
// RUN: %libarcher-compile -fopenmp-version=50 && env OMP_NUM_THREADS='3' \ // RUN: %libarcher-run-race | FileCheck %s // Checked gcc 9.2 still does not support detach clause on task construct. // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9 // clang supports detach clause since version 11. // UNSUPPORTED: ...
wharf.h
#ifndef WHARF_H #define WHARF_H #include <graph/api.h> #include <cuckoohash_map.hh> #include <pbbslib/utilities.h> #include <config.h> #include <pairings.h> #include <vertex.h> #include <snapshot.h> #include <models/deepwalk.h> #include <models/node2vec.h> #include <set> namespace dynamic_graph_representation_learn...
filter.h
#ifndef OPENMC_TALLIES_FILTER_H #define OPENMC_TALLIES_FILTER_H #include <cstdint> #include <memory> #include <string> #include <unordered_map> #include <vector> #include "openmc/hdf5_interface.h" #include "openmc/particle.h" #include "pugixml.hpp" namespace openmc { //=============================================...
distribution.c
/* Generated by Cython 0.29.10 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "name": "labview_recorder.distribution", "sources": [ "distribution.pyx" ] }, "module_name": "labview_recorder.distribution" } END: Cython Metadata */ #define PY_SSIZE_T_...
my_fastmarching.h
#ifndef __MY_FASTMARCHING_H__ #define __MY_FASTMARCHING_H__ #include "fastmarching_dt.h" #include "fastmarching_tree.h" #ifdef USE_OPENMP #include <omp.h> #endif #include <algorithm> #ifndef SET_CLOCK #define SET_CLOCK clock_gettime(CLOCK_MONOTONIC, &(ts[clock_id])); printf("[ timer %d - %d ]\n", area_id, clock_id+...
EdgeDensity.c
/* ** compute edge densities ** ** G.Lohmann, Feb 2015 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_statistics.h> #include <gsl/gsl_sort.h> #include <gsl/gs...
3d7pt_var.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 with variable coefficients * Adapted from PLUTO and Po...
GB_unaryop__one_uint8_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
udata.c
#include "../umesh.h" // The indirections are messy but quite compact. #define XZPLANE_FACE_INDEX(ii, jj, kk) \ (((ii) * (3 * nx * ny + nx + ny)) + (nx * ny) + ((jj) * (2 * nx + 1)) + \ (((jj) < ny) ? (2 * (kk) + 1) : (kk))) #define XYPLANE_FACE_INDEX(ii, jj, kk) ...
omp_nested_loop3.c
#include <stdio.h> #include <omp.h> int main() { int i, j; #pragma omp parallel { #pragma omp for collapse(2) for (i=9; i>6; i--) { for (j=0; j<5; j++) { printf("[%d] (i,j=%d,%d)\n", omp_get_thread_num(), i, j); } } } return 0; }
GB_binop__div_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-...
fixed_gaussian_basis.h
#ifndef METHODS_FIXED_GAUSSIAN_BASIS_H #define METHODS_FIXED_GAUSSIAN_BASIS_H #include "quartz_internal/util/auto_generator.h" namespace method { // use your method name to create a subspace for your // implementation of details namespace fgb { namespace details { inline arma::mat overlap_matrix(const arma::mat & p...
rsvp_fmt_plug.c
/* * Cracker for HMAC-MD5 and HMAC-SHA1 based authentication in RSVP. * * This software is Copyright (c) 2014 Dhiru Kholia <dhiru at openwall.com>, * 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, ...
GB_unop__signum_fc32_fc32.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...
reciprocal_to_normal.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...
imginputfileconn.h
/** * DeepDetect * Copyright (c) 2014 Emmanuel Benazera * Author: Emmanuel Benazera <beniz@droidnik.fr> * * This file is part of deepdetect. * * deepdetect is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software F...
GB_unaryop__minv_uint32_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
section.c
#include <omp.h> #include <assert.h> int main() { int sum=7; int known_sum; int i; int j; int k = 111; #pragma omp parallel { #pragma omp sections reduction(+:sum) private(i) lastprivate(j) firstprivate(k) { #pragma omp section { assert (k == 111); for (i=1;i<400;i++){ s...
test_linear_algebra.c
/* * test_linear_algebra.c * a small program to test the linear algebra code * Brian J Gravelle * ix.cs.uoregon.edu/~gravelle * gravelle@cs.uoregon.edu * See LICENSE file for licensing information and boring legal stuff * If by some miricale you find this software useful, thanks are accepted in *...
HSetMaintainer.h
#ifndef HSET_MAINTAINER_H #define HSET_MAINTAINER_H /************************************************************* * Copyright: (C) 2012 by Markus Schordan * * Author : Markus Schordan * * License : see file LICENSE in the CodeThorn distribution * **************...
HybridAdoptorBase.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: Ye Luo, y...
gemv_c_dia_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/opt.h" #include "alphasparse/util.h" #include <string.h> #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t ONAME_omp(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA* A, const ALPHA_Number* x, const ALPH...
simulation.h
#ifndef SIMULATION_H #define SIMULATION_H #include <filesystem> #include <fstream> #include <vector> #include "selection_type.h" #include "env_change_type.h" #include "adaptation_period.h" #include "environment.h" #include "population.h" //#include <omp.h> double identity_first_element(const std::vector<double>& vec...
reduce.h
#include <dll.h> //#include <string> #include <sharedmem.h> #include <stdio.h> #include <shape.h> #include <op.h> #include <omp.h> #include <templatemath.h> #include <helper_cuda.h> #include <nd4jmalloc.h> #include <pairwise_util.h> #pragma once #ifdef __CUDACC__ #include <cuda.h> #include <cuda_runtime.h> #endif #ifde...
ast-dump-openmp-teams-distribute-simd.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target #pragma omp teams distribute simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp target #prag...
prefix_sum.h
// // Created by xehoth on 2021/11/5. // #ifndef PREFIX_SUM_H_ #define PREFIX_SUM_H_ #include <memory_manager.h> #include <omp.h> static const int MAX_THREADS = 64; template <typename T> inline void prefixSum(T *a, std::uint32_t n) { for (std::uint32_t i = 1; i < n; ++i) a[i] += a[i - 1]; } template <typename T> i...
mandelbrot.c
/* To compile: gcc -O3 -o mandelbrot mandelbrot.c png_util.c -I. -lpng -lm -fopenmp Or just type: module load gcc make To create an image with 4096 x 4096 pixels (last argument will be used to set number of threads): ./mandelbrot 4096 4096 1 */ #include <math.h> #include <stdio.h> #include <stdlib...
GB_unop__atanh_fc64_fc64.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...
DRB010-lastprivatemissing-var-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_unaryop__lnot_int64_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__second_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
omptl_numeric_extensions_par.h
// Copyright (C) 2007 Fokko Beekhof // Email contact: Fokko.Beekhof@unige.ch // The OMPTL library is free software; you can redistribute it and/or // 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 License, or (at your opt...
JacobiSMatTranspose.c
#include "mex.h" #include <omp.h> void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { //mex -largeArrayDims GaussSeidelSMatTranspose.c int i; int id, Nthrds, istart, iend; mwIndex j,k; double temp; double omega = 0.8; mwIndex *C_t = mx...
validate.h
/* Copyright (C) 2010-2011 The Trustees of Indiana University. */ /* */ /* Use, modification and distribution is subject to the Boost Software */ /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */ /* http:...
GridInit.c
#include "XSbench_header.h" #ifdef MPI #include<mpi.h> #endif GridPoint * generate_hash_table( NuclideGridPoint ** nuclide_grids, long n_isotopes, long n_gridpoints, long hash_bins ) { printf("Generating Hash Grid...\n"); GridPoint * energy_grid = (GridPoint *)malloc( hash_bins * sizeof( ...
ompData.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> int main (int argc, char **argv) { //number of parallel threads that OpenMP should use int NumThreads = 100; //tell OpenMP to use NumThreads threads omp_set_num_threads(NumThreads); float *val = (float*) malloc(NumThreads*sizeof...
ast-dump-openmp-simd.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp simd for (int i = 0; i < x; i++) for (int ...
coordinate_transformation_utilities.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: // // #ifndef KRATOS_COORDINATE_TRANSFORMATION_UTI...
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
tree_ensemble_common.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "tree_ensemble_aggregator.h" namespace onnxruntime { namespace ml { namespace detail { template <typename ITYPE, typename OTYPE> class TreeEnsembleCommon { public: int64_t n_targets_or_classes_; ...
taskdep_taskwait_tied_scheduling.c
// RUN: %libomp-compile && env KMP_ABT_NUM_ESS=4 %libomp-run // REQUIRES: abt #include "omp_testsuite.h" #include "bolt_scheduling_util.h" #include <stdio.h> #include <stdlib.h> #include <string.h> int calc_seq(int n) { int i, j, *buffer = (int *)malloc(sizeof(int) * n * n); for (i = 0; i < n; i++) { for (j = ...
GB_unop__identity_uint16_int64.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...
GB_unop__identity_int64_fp32.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...
DeclOpenMP.h
//===- DeclOpenMP.h - Classes for representing OpenMP directives -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
GB_binop__div_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
main.c
/*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ********************************************************************...
DRB035-truedepscalar-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_unaryop__lnot_fp64_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
parallel_priority_queue.h
/*************************************************************************** * include/stxxl/bits/containers/parallel_priority_queue.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2014-2015 Thomas Keh <thomas.keh@student.kit.edu> * Copyright (C) 2014-2015 Timo Bingmann <tb@panthem...
zgemm.c
#include "blas.h" #include "error.h" #include <stdio.h> #include "handle.h" #include "config.h" #include "zgemm.fatbin.c" static inline size_t min(size_t a, size_t b) { return (a < b) ? a : b; } static inline size_t max(size_t a, size_t b) { return (a > b) ? a : b; } static inline CUresult cuMemcpyHtoD2DAsync(CUdevic...
option_warn.c
// RUN: %clang_cc1 -verify -Wsource-uses-openmp -o - %s // RUN: %clang_cc1 -verify -Wsource-uses-openmp -o - %s // SIMD-ONLY0-NOT: {{__kmpc|__tgt}} int a; #pragma omp threadprivate(a,b) // expected-warning {{unexpected '#pragma omp ...' in program}} #pragma omp parallel
GB_unop__tan_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
rose_v1_struct.c
// Test if the same data member accesses from two different objects // are treated as different memory location access. // // In AST, both varRefExps are pointing to the same variable symbol. // This can be confusing to analysis. // Liao 7/7/2016 #include <omp.h> struct VectorXY { double x; double y; } ; struct ...
3d25pt.c
/* * Order-2, 3D 25 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_binop__times_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DRB019-plusplus-var-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
sptensor.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "sptensor.h" #include "matrix.h" #include "sort.h" #include "io.h" #include "timer.h" #include <math.h> /*****************************...
taskbench.c
/**************************************************************************** * * * OpenMP MicroBenchmark Suite - Version 3.1 * * * * ...
omp_nested_loop1.c
#include <stdio.h> #include <omp.h> int main() { int i, j; #pragma omp parallel { #pragma omp for private(j) for (i=9; i>6; i--) { printf("[%d] (i=%d)\n", omp_get_thread_num(), i); for (j=0; j<5; j++) { printf("[%d] (i,j=%d,%d)\n", omp_get_thread_num(), i, j); } } } return 0; }