source
stringlengths
3
92
c
stringlengths
26
2.25M
fci_graph.c
/* Copyright 2021 Google LLC 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 applicable law or agreed to i...
nco_s1d.c
/* $Header$ */ /* Purpose: NCO utilities for Sparse-1D (S1D) datasets */ /* Copyright (C) 2020--present Charlie Zender This file is part of NCO, the netCDF Operators. NCO is free software. You may redistribute and/or modify NCO under the terms of the 3-Clause BSD License with exceptions described in the LIC...
bench.c
#include "omp.h" #include "pmsis.h" #define LOOP_ITER (2048) #define NB_ITER (256) #define NB_BARRIER_ITER (256) #define NB_ITER_SINGLE (128) #define CORE_ID pi_core_id() #define PRINTF(...) //#define PRINTF(...) printf(__VA_ARGS__) static void start_timer() { pi_perf_cl_reset(); pi_perf_conf(1<<PI_PERF_CYC...
ConverterOSG.h
/* -*-c++-*- IfcQuery www.ifcquery.com * MIT License Copyright (c) 2017 Fabian Gerold Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
convolution_3x3_pack4to1.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 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 ...
15.c
#include<stdio.h> #include<omp.h> #include<stdlib.h> int main() { float sum, serialsum; int n, i, k, NoOfthreads; printf("Enter number of threads: "); scanf("%d", &NoOfthreads); printf("array size: "); scanf("%d", &n); if ((NoOfthreads!=1) && (NoOfthreads!=2) && (NoOfthreads!=4) && (NoOfth...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
kmp_atomic.c
/* * kmp_atomic.c -- ATOMIC implementation routines */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.txt fo...
cryptocontext.h
/** * @file cryptocontext.h -- Control for encryption operations. * @author TPOC: palisade@njit.edu * * @section LICENSE * * Copyright (c) 2017, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted p...
api_calls_places.c
// RUN: %libomp-compile && env OMP_PLACES=cores %libomp-run | FileCheck %s // REQUIRES: ompt, linux #include "callback.h" #include <omp.h> #define __USE_GNU #include <sched.h> #undef __USE_GNU void print_list(char *function_name, int size, int list[]) { printf("%" PRIu64 ": %s(0)=(%d", ompt_get_thread_data()->value,...
GB_unaryop__lnot_uint64_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
laplace_acc.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <openacc.h> #include <omp.h> // grid size #define GRIDY 8192 #define GRIDX 8192 // smallest permitted change in temperature #define MAX_TEMP_ERROR 0.02 double T_new[GRIDX+2][GRIDY+2]; // temperature grid double T[GRIDX+2][...
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)...
laplace_cpu.c
/** CPU Laplace solver using optimized red-black Gauss–Seidel with SOR solver * \file main_cpu.c * * \author Kyle E. Niemeyer * \date 09/21/2012 * * Solves Laplace's equation in 2D (e.g., heat conduction in a rectangular plate) * using the red-black Gauss–Seidel with sucessive overrelaxation (SOR) that has * be...
scalar_product.h
//============================================================================== // // Copyright 2018 The InsideLoop 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 Lic...
DRB054-inneronly2-orig-no.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...
omp50_taskwait_depend.c
// RUN: %libomp-compile-and-run // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8 // clang does not yet support taskwait with depend clause // clang-12 introduced parsing, but no codegen // TODO: update expected result when codegen in clang is added // icc does not yet support taskwait with depend clause // TODO: updat...
smg.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
for-4.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(dynamic) for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOMP_loop_dynamic_start" 1 "ompexp" } } */ /* { dg-final { scan-tree-dump-tim...
c_mandel.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
tool_not_available.c
// The OpenMP standard defines 3 ways of providing ompt_start_tool: // 1. "statically-linking the tool’s definition of ompt_start_tool into an OpenMP application" // RUN: %libomp-compile -DCODE -DTOOL && %libomp-run | FileCheck %s // Note: We should compile the tool without -fopenmp as other tools developer // w...
omp_parallel_sections_lastprivate.c
<ompts:test> <ompts:testdescription>Test which checks the omp parallel sections lastprivate directive.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:directive>omp parallel sections lastprivate</ompts:directive> <ompts:dependences>omp critical,omp parallel sections private</ompts:dependences> <...
pfmg2_setup_rap.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
projector.c
#include "projector.h" #include "linalg.h" #include "quadrature.h" #include "radial.h" #include "sbt.h" #include "utils.h" #include <complex.h> #include <math.h> #include <mkl.h> #include <mkl_types.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define c 0.262465831 #define PI 3.14159265...
scheduled-clause.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif int main(int argc, char **argv) { int i, n=200,chunk,a[n],suma=0; int dyn_var_value, nthreads_var_value, thread_limit_var; omp_sched_t kind; int modifier = 0; int primera = 1; if(argc <...
simd2.c
/* { dg-do compile } */ /* { dg-options "-fopenmp" } */ /* { dg-additional-options "-std=c99" { target c } } */ extern int a[13][13][13][13], k, l, m; void foo (int *q, float *p) { int i, j, n, o; #pragma omp simd collapse (4) linear(k : m + 1) aligned(p, q) for (i = 0; i < 13; i++) for (j = 0; j < 13; j++) ...
GB_unaryop__identity_uint32_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...
bfs_replicated.c
/* Copyright (C) 2010 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:...
adagrad_op.h
#pragma once #include "caffe2/core/operator.h" namespace caffe2 { template <typename Context> void adagrad_update( int N, const float* g, const float* h, float* ng, float* nh, float epsilon, const float* lr, Context* context) { // TODO(cxj): use OMP when it is reliable // #pragma ...
jacobi.pluto.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 pmax(x,y) ((x) > (y)? (x) : (y)) #define pmin(x,y) ((x) < (y)? (x) : (y)) #include "smoothers.h" #include <math.h> // cannot be 8 or below #ifndef TS #define TS...
omp_single_nowait.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" /* * This test will hang if the nowait is not working properly * * It relies on a one thread skipping to the last single construct to * release the threads in the first three single constructs */ volatile int release; volatile int count...
TaskDispatcher.h
#include "nvtt.h" // OpenMP // http://en.wikipedia.org/wiki/OpenMP #if defined(HAVE_OPENMP) #include <omp.h> #endif // Gran Central Dispatch (GCD/libdispatch) // http://developer.apple.com/mac/library/documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html #if NV_OS_DARWIN && defined(HAVE_DI...
A1_5.c
// gcc -std=c99 -Wall -lm -fopenmp -o go A1_5.c #include <stdio.h> #include <omp.h> #include <stdlib.h> void display(int, int *); void swap(int *, int *); unsigned long long tick(void) { unsigned long long d; __asm__ __volatile__("rdtsc": "=A"(d)); return d; } int main(int argc, char *argv[]) { int...
GB_binop__first_bool.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
lis_matrix_dia.c
/* Copyright (C) 2002-2012 The SSI Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
pi_parallel.c
/* *Parallelized version of pi_serial. Compare performance with time ./pi_parallel * and time ./pi_serial * * Author: Matt Cufari * Version 1.1.0 * Date Created: Dec 18 2020 * Date Last Modified: Jan 4 2021 * */ #include <omp.h> #include <stdio.h> #define NUM_THREADS 2 //Thread count macro static long nu...
copyprivate-clause.c
/* * copyprivate-clause.c * * Created on: 09/04/2014 * Author: Carlos de la Torre */ #include <stdio.h> #include <omp.h> int main() { int n = 9, i, b[n]; for (i = 0; i < n; i++) b[i] = -1; #pragma omp parallel { int a; #pragma omp single copyprivate(a) { printf("\nIntroduce valor de inicializ...
rootfinder_initial_guess_mex.c
#include "math.h" #include "mex.h" #include "matrix.h" #include "linequad.h" /* The gateway function */ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { // Read input int n = mxGetNumberOfElements(prhs[0]); double* tj = mxGetPr(prhs[0]); double* xj = mxGetPr(pr...
kriging.h
/* Copyright 2009 HPGL Team This file is part of HPGL (High Perfomance Geostatistics Library). HPGL is free software: you can redistribute it and/or modify it under the terms of the BSD License. You should have received a copy of the BSD License along with HPGL. */ #ifndef __KRIGING_H__69012DAB_...
oracle12c_fmt_plug.c
/* * This software is Copyright (c) 2015, Dhiru Kholia <dhiru.kholia at gmail.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, * are permitted. * * https://www.trustwave.com/Resources/SpiderLabs-Bl...
geopm_sched.c
/* * Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation * * 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 copyright * notice, this list o...
rt_dsyssq.c
#include "runtime.h" void RT_CORE_dsyssq_f1( Quark *quark, Quark_Task_Flags *task_flags, PLASMA_enum uplo, int n, const double *A, int lda, double *scale, double *sumsq, double *fake, int szeF, int paramF ) { plasma_context_t *plasma; p...
Fig_10.4_loopCollapse.c
// sample compile command: "gcc -fopenmp -c Fig_10.4_loopCollapse.c" to generate *.o object file #include <omp.h> // apply a function (*MFUNC) to each element of an N by M array void Apply(int N, int M, float* A, void(*MFUNC)(int, int, float*)) { #pragma omp parallel for num_threads(4) collapse(2) if(N*M>100) ...
lis_vector.c
/* Copyright (C) 2002-2012 The SSI Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
GB_binop__lt_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
section.c
#include <omp.h> #include <stdio.h> #define N 1000 int main (){ int i,id; float a[N], b[N], c[N]; /* Some initializations */ for (i=0; i < N; i++) a[i] = b[i] = i * 1.0; #pragma omp parallel shared(a,b,c) private(i,id) { #pragma omp sections nowait { #pragma omp section { ...
mxEvaluateSourceTopography1d.c
#include "../../@SWEAbstract1d/private/mxSWE1d.h" #include "mex.h" #define NRHS 4 #define NLHS 1 #define NVAR 2 void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { /* check input & output */ if (nrhs != NRHS) { mexPrintf("Matlab:%s:InvalidNumberInput,\n", __FILE__); mexPrintf("%...
t_cholmod_subtree.c
/* ========================================================================== */ /* === GPU/t_cholmod_subtree ================================================ */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__ainv_int8_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...
DRB060-matrixmultiply-orig-no.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__minv_uint64_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
GB_unaryop__abs_int32_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...
server.c
// C99 // Start program: mpirun -np 1 server #include <mpi.h> #include <omp.h> #include <stdio.h> #include <stdbool.h> #include <unistd.h> // needed for sleep() on POSIX system #define MAX_DATA 100 int main( int argc, char **argv ) { int providedThreadSupport; bool terminateListening = false; char portNa...
pi.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #include <time.h> #include <math.h> static long MULTIPLIER = 1366; static long ADDEND = 150889; static long PMOD = 714025; long random_last = 0.0; double random_low, random_hi; #define r 1 /* Functions used to generate random nu...
Stmt.h
//===- Stmt.h - Classes for representing statements -------------*- 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 // //===---------------------------...
omp-nested-1.c
// { dg-do run } extern void abort(void); #define N 1000 int foo() { int i = 0, j; #pragma omp parallel for num_threads(2) shared (i) for (j = 0; j < N; ++j) { #pragma omp parallel num_threads(1) shared (i) { #pragma omp atomic i++; } } return i; } int main() { if (foo() != N)...
core_dgemm.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/core_blas/core_zgemm.c, normal z -> d, Fri Sep 28 17:38:18 2018 * **/ #include <plasma_core_blas.h> #include "plas...
c-tree.h
/* Definitions for C parsing and type checking. Copyright (C) 1987-2019 Free Software Foundation, Inc. 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 Foundation; either version 3, or (at yo...
tammes.c
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #ifndef M_PI # define M_PI 3.141592653589793 #endif #define GA 2.39996322972865332 int frame = 0; int asymmetric = 1; int N; double minD = 0; double bestMinD = 0; typedef struct { double x,y,z; } v...
weights.c
#include <stdio.h> #include <stdint.h> #include <omp.h> #include <math.h> #include "geometry.h" #include "allocator.h" #include "mesh2geo.h" static inline void compute_terms( const struct geometry *g, const double *w, struct xyz *terms0, struct xyz *terms1) { const uint32_t *ie = g->s->i; const uint32_t *p...
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 ...
attribute.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
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)...
fdtd2d.c
/** * fdtd2d.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@students....
libsais.c
/*-- This file is a part of libsais, a library for linear time suffix array and burrows wheeler transform construction. Copyright (c) 2021 Ilya Grebnov <ilya.grebnov@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
test_core.c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2017 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
DRB066-pointernoaliasing-orig-no.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_unop__log2_fp32_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...
SharedHeap.h
#ifndef SHARED_HEAP_H_ #define SHARED_HEAP_H_ #include <assert.h> #include "CommonParallel.h" #ifdef __UPC__ #include <upc.h> #elif defined _OPENMP #include <omp.h> #elif defined USE_MPI #include <mpi.h> #else #warn "No parallelism has been chosen at compile time... did you want OpenMP (cc -fopenmp), MPI (mp...
openmp-unsupported.c
// RUN: %clang_cc1 -triple i386-apple-darwin10 -analyze -analyzer-checker=core.builtin -fopenmp -verify %s // expected-no-diagnostics void openmp_parallel_crash_test() { #pragma omp parallel ; }
GB_binop__div_uint32.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_builder.c
//------------------------------------------------------------------------------ // GB_builder: build a matrix from tuples //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apache-...
task_codegen.c
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -fopenmp-version=50 -x c -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=50 -x c -triple x86_64-apple-darwin10 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -fopenmp-version=50 -x c -triple x86_64-apple-darwin10 -include-p...
tentusscher_epi_2004_S1_1.c
#include <assert.h> #include <stdlib.h> #include "tentusscher_epi_2004_S1_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...
segment.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
rmse.c
/*************************************************************************/ /** File: rmse.c **/ /** Description: calculate root mean squared error of particular **/ /** clustering. **/ /** Author: Sang-Ha Lee **/ /** University of Virginia....
bml_setters_ellpack_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_introspection.h" #include "../bml_types.h" #include "bml_setters_ellpack.h" #include "bml_types_ellpack.h" #include <complex.h> #include <math.h> #include <stdio.h> #include <stdlib.h> /** Set element i,j asuming there's no resetting of any element o...
GB_unop__frexpe_fp32_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...
task_unitied_thread_threadid.c
// RUN: %libomp-compile-and-run // REQUIRES: abt // Compilation error after clang11+ // UNSUPPORTED: clang #include "omp_testsuite.h" #include <string.h> #include <stdio.h> int test_task_untied_thread_threadid(int num_threads) { int vals[num_threads]; memset(vals, 0, sizeof(int) * num_threads); omp_set_max_acti...
difrancesco.c
// A Model of Cardiac Electrical Activity Incorporating Ionic Pumps and Concentration Changes // Reference: https://models.physiomeproject.org/exposure/91d93b61d7da56b6baf1f0c4d88ecd77/difrancesco_noble_1985.cellml #include "difrancesco.h" real CONSTANTS[50]; GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_...
convolution_packnto1.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 ...
GB_unaryop__abs_fp64_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...
GB_binop__lxor_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-...
rose_v1_scalar_privatization.c
/* a local variable to transfer temp value * It introduces "fake" data dependence since the variable is local to each iteration * */ #include <omp.h> int a[100]; int b[100]; void foo() { int i; #pragma omp parallel for private (i) for (i = 0; i <= 99; i += 1) { int tmp; tmp = a[i] + i; b[i] = tmp...
GrB_Scalar_nvals.c
//------------------------------------------------------------------------------ // GrB_Scalar_nvals: number of entries in a sparse GrB_Scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License...
GB_binop__isge_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
main.c
#include <unistd.h> #include <omp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> int N_BUCKETS; struct Bucket { int* array; size_t n_elem; size_t max_elem; }; struct Bucket* make(size_t max){ struct Bucket* block_arr = malloc(sizeof(struct Bucket)); block_arr->array = malloc(size...
feature_group.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. */ #ifndef LIGHTGBM_FEATURE_GROUP_H_ #define LIGHTGBM_FEATURE_GROUP_H_ #include <LightGBM/bin.h> #include <LightGBM/meta.h> #include <LightGBM/utils...
for-18.c
/* { dg-do compile } */ /* { dg-options "-O -fopenmp -fdump-tree-ompexp" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ void foo (int *a, int i) { int j, k = 1, l = 30, m = 4; #pragma omp parallel for num_threads (3 * i) schedule (dynamic, i * 4) for (j = 0; j <= l; j++) a[j] = 1; #pra...
GB_binop__bxor_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-...
GB_unaryop__abs_int16_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...
QuadNode.h
/* * QuadNode.h * * Created on: 21.05.2014 * Author: Moritz v. Looz (moritz.looz-corswarem@kit.edu) */ #ifndef QUADNODE_H_ #define QUADNODE_H_ #include <vector> #include <algorithm> #include <functional> #include <assert.h> #include "../../auxiliary/Log.h" #include "../../auxiliary/Parallel.h" #include ".....
GB_unop__lnot_fp64_fp64.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...
convolutiondepthwise_3x3_int8.h
// BUG1989 is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2019 BUG1989. 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 of the License at // //...
computeGraph.c
#include "defs.h" double computeGraph(graph* G, graphSDG* SDGdata) { mcsim_skip_instrs_begin(); VERT_T* endV; LONG_T *degree, *numEdges, *pos, *pSums; WEIGHT_T* w; double elapsed_time; #ifdef _OPENMP omp_lock_t *vLock; LONG_T chunkSize; #endif elapsed_time = get_seconds(); #ifdef _OPENM...
voronoinoise.h
#pragma once #ifndef VORONOI_NOISE_H #define VORONOI_NOISE_H #include "noisecommon.h" #define DEFAULT_VORONOI_FREQUENCY 1.0 #define DEFAULT_VORONOI_DISPLACEMENT 1.0 #define DEFAULT_VORONOI_SEED 0 #define DEFAULT_VORONOI_ENABLE_DISTANCE true #define DEFAULT_VORONOI_POSITION_X 0.0 #define DEFAULT_VORONOI_POSITION_Y 0.0...
GB_unop__frexpx_fp32_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...
rose_v1_true_l2.c
/* * Outer loop: no dependence: * Inner loop: loop-carried dependence * * final dependence graph: * dep SgExprStatement:(a[i])[j] =(((a[i])[j - 1]) + 1); * SgExprStatement:(a[i])[j] =(((a[i])[j - 1]) + 1); * 2*2TRUE_DEP; commonlevel = 2 +precise CarryLevel = 1 * SgPntrArrRefExp:(a[i])[j] * SgP...