source
stringlengths
3
92
c
stringlengths
26
2.25M
st_mask.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include "mypng.h" /** * A transform finding the gradient of the steepest tangent, upwards or downwards, at each pixel. * <p> * CODER WARNING: Many of the internal methods use the square of the slope. */ double* inGrey ; int ful...
edgebased_levelset_substep.h
// Kratos Multi-Physics // // Copyright (c) 2015, Pooyan Dadvand, Riccardo Rossi, CIMNE (International Center for Numerical Methods in Engineering) // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
GB_unop__identity_fc32_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
comm.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 ...
GB_unop__isnan_bool_fp32.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...
dropout_op.h
/* Copyright (c) 2016 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 by applicable law or...
vec_add_sections.c
/* sections Directive Example */ #include <omp.h> #define N 1000 main(int argc, char *argv[]) { int i; float a[N], b[N], c[N], d[N]; /* Some initializations */ for (i=0; i < N; i++) { a[i] = i * 1.5; b[i] = i + 22.35; } #pragma omp parallel shared(a,b,c,d) private(i) { #...
calib.c
/* Copyright 2013-2016. The Regents of the University of California. * Copyright 2016. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2012-2016 Martin Uecker <martin.uecker@med.uni-goettingen.de> * 2013 Dar...
for-7.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(nonmonotonic:runtime) for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOMP_loop_nonmonotonic_runtime_start" 1 "ompexp" } } */ /* { dg-...
raytracer.h
#pragma once #include "resource.h" #include <linalg.h> #include <memory> #include <omp.h> #include <random> #include <time.h> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction) : position(position) { this->direction = normalize(direction); } float3 p...
speed_omp.c
#include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <err.h> #include <omp.h> #include <assert.h> #include "feslite.h" #include "cycleclock.h" /* Measure raw multi-threaded-thread speed of all kernels in the library */ int n = 32; int T = -1; void bench_kernel(int kernel) { const...
grav_hy.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <sys/stat.h> #include "data_util_bin.c" #include <stddef.h> #include <omp.h> #include <mpi.h> #define STEP 10 #define DT 1.0f #define G 1.0f #define REP(i,n) for(i=0;i<n;++i) int nodeSize; int nodeRank; int fileSize; char* fileHeade...
nr_incore.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...
softmax-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 ...
cg.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - CG This benchmark is an OpenMP C version of the NPB CG code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
icd.c
/* version 6.0, P.Jin 07/13/2012 */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sched.h> #include <omp.h> #include <sys/time.h> #include <time.h> /* for ctime */ #include "allocate.h" #include "data.h" #include "proj.h" #include "prepro.h" #include "solve.h" #include "io.h" ...
reset_field_kernel_c.c
/*Crown Copyright 2012 AWE. * * This file is part of CloverLeaf. * * CloverLeaf 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 of the License, or (at your option) * any later version. * * Clo...
CSRMatrix.h
/* * CSRMatrix.h * * Created on: May 6, 2015 * Author: Michael Wegner (michael.wegner@student.kit.edu) */ #ifndef CSRMATRIX_H_ #define CSRMATRIX_H_ #include <vector> #include "../Globals.h" #include "AlgebraicGlobals.h" #include "Vector.h" #include "../graph/Graph.h" #include "../algebraic/SparseAccumulato...
cpd_omp.c
/* This file is part of ParTI!. ParTI! 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 3 of the License, or (at your option) any later version. ParTI! is distributed...
convolution_1x1_pack8_fp16.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 ...
ast-dump-openmp-teams-distribute-parallel-for-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 parallel for simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp...
Reduce.h
// -------------------------------------------------------------------------- // Binary Brain -- binary neural net framework // // Copyright (C) 2018-2019 by Ryuji Fuchikami // https://github.com/ryuz // ryuji.fuchikami@nift...
GB_binop__ge_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_binop__plus_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-...
lecuyer.h
/* * random number generator interface * L'Ecuyer, Mathematics of Computation, 65, pp 203-213 (96) */ /* Copyright (c) 2005, The Regents of the University of California. * All rights reserved. * This file is part of yorick (http://yorick.sourceforge.net). * Read the accompanying LICENSE file for details. */ /* ...
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...
symmetry.c
/* Copyright (C) 2008 Atsushi Togo */ /* All rights reserved. */ /* This file is part of spglib. */ /* 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 abov...
ex2.c
#include <stdlib.h> #include <omp.h> #include <stdio.h> #include <math.h> #define N 1000 #define CHUNKSIZE 4 int * scan(int * num, int len); int main(int argc, char *argv[]) { int i=0; int read; int k = 0; printf("Enter the number k to set the length of the array(len=2^k):\n"); scanf("%d", &read); k=read; printf("Ok, ...
plot.h
#ifndef OPENMC_PLOT_H #define OPENMC_PLOT_H #include <unordered_map> #include <sstream> #include "pugixml.hpp" #include "xtensor/xarray.hpp" #include "hdf5.h" #include "openmc/position.h" #include "openmc/constants.h" #include "openmc/cell.h" #include "openmc/geometry.h" #include "openmc/particle.h" #include "openmc...
colorspace.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DRB040-truedepsingleelement-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__ainv_uint8_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...
cpu_bound.c
/* * Copyright (c) 2009, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <stdl...
13.c
#include<stdio.h> #include<stdlib.h> #include<omp.h> int main() { int i, j, N, NoOfthreads, total_threads; printf("Enter number of threads: "); scanf("%d", &NoOfthreads); printf("Matrix size: "); scanf("%d", &N); if ((NoOfthreads!=1) && (NoOfthreads!=2) && (NoOfthreads!=4) && (NoOfthreads!=8) ...
GB_unaryop__identity_bool_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...
DRB020-privatemissing-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...
tr_db.c
/* * Copyright (©) 2015-2016 Lucas Maugère, Thomas Mijieux * * 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 require...
graph.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GRAPH_H_ #define GRAPH_H_ #include <algorithm> #include <cinttypes> #include <cstddef> #include <iostream> #include <type_traits> #include "pvector.h" #include "util.h" /* GAP Benchmark Suite...
ParallelWorkDistributor_omp.h
#pragma once #include <thread> #include <mutex> #include <condition_variable> #include <functional> #include <omp.h> namespace sqaod_internal { class ParallelWorkDistributor_omp { public: ParallelWorkDistributor_omp() { } ~ParallelWorkDistributor_omp() { } void initialize(int nWorkers) { ...
reduction_shared_array.c
#include <omp.h> #include <stdio.h> #define ITERS 4096 int main() { #pragma omp target { int globalized[256]; #pragma omp parallel for for (int i = 0; i < 256; i++) { globalized[i] = 0; } #pragma omp parallel for reduction(+:globalized) for (int i = 0; i < ITERS; i++) { global...
crew.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include <math.h> #include <omp.h> #define modul(x) ((x) < 0 ? -(x) : (x)) #define max(a, b) ((a) > (b) ? (a) : (b)) #define eps 1e-10 int N, P; double *A; double *B; double *C; double *D; double *v; // functie care genereaza un numar ran...
GB_unaryop__abs_uint64_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...
dragonfly4_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * based on rawSHA256_fmt.c code * * This software is Copyright (c) 2012 magnum, 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...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
optQCCAvgVals.c
#include <mex.h> #include <math.h> #include <stdlib.h> #include <time.h> #include <string.h> /* q_c.singleton = optQCMFC(condQB,prediction,Sigma_c,mu_c,c_c,mu_a_b,numColumnsPred,numColumnsShape,columnsPredShapeVec,columnsPredShapeFactorVec); * */ int min(int A, int B) { if (A < B) { return A; } else { return B...
atomic-4.c
/* { dg-do compile } */ int a[4]; int *p; struct S { int x; int y[4]; } s; int *bar(void); void f1(void) { #pragma omp atomic a[4] += 1; #pragma omp atomic *p += 1; #pragma omp atomic s.x += 1; #pragma omp atomic s.y[*p] += 1; #pragma omp atomic s.y[*p] *= 42; #pragma omp atomic *b...
for-7.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(static) ordered for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOM...
kernel_tti_so4.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include "omp.h" struct dataobj { void *restrict data; int *size; int *npsize; int *dsize; int *hsize; int *hofs; int *oofs; }; struct profiler { double section0; ...
GB_binop__ne_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...
pvector.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef PVECTOR_H_ #define PVECTOR_H_ #include <algorithm> #include <cassert> /* GAP Benchmark Suite Class: pvector Author: Scott Beamer Vector class with ability to not initialize or do initialize ...
Query2.h
#pragma once #include "utils.h" #include "Query.h" #include "SmallestElementsContainer.h" #include <queue> #include <algorithm> #include <cassert> #include <numeric> #include <memory> #include <set> #include <cstdio> #include <utility> class Query2 : public Query<int, std::string> { int top_k_limit; std::str...
communication.h
/*! @brief Flag for checking if this header has already been included. */ #ifndef YGGCOMMUNICATION_H_ #define YGGCOMMUNICATION_H_ #include "../tools.h" #include "../datatypes/datatypes.h" #include "CommBase.h" #include "IPCComm.h" #include "ZMQComm.h" #include "ServerComm.h" #include "ClientComm.h" #include "AsciiFile...
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) ...
if-clause.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv) { int i, n=20, tid; int a[n],suma=0,sumalocal; if(argc < 2) { fprintf(stderr,"[ERROR]-Falta iteraciones\n"); exit(-1); } n = atoi(argv[1]); if (n>20) n=20; for (i=0; i<n; i++) { a[i] = i; ...
GB_binop__bxor_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
GB_iso_expand.c
//------------------------------------------------------------------------------ // GB_iso_expand: expand a scalar into an entire array //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identi...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GroupDegree.h
/* * GroupDegree.h * * Created on: 20.04.2018 * Author: Eugenio Angriman */ #ifndef GROUPDEGREE_H_ #define GROUPDEGREE_H_ #include <omp.h> #include "../auxiliary/BucketPQ.h" #include "../base/Algorithm.h" #include "../graph/Graph.h" namespace NetworKit { /** * @ingroup centrality */ class GroupDegree ...
actividad1-parallel.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "ctimer.h" #include <omp.h> int main( int argc, char *argv[] ) { int v, i; double suma; if( argc<2 ) { printf("Usage: %s n_vectores [tam_max] \n",argv[0]); return 1; } int n_vectores; sscanf(argv[1],"%d",&n_vectores); int tam_m...
pooling_3x3.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 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 ...
krb5pa-md5_fmt_plug.c
/* * Kerberos 5 etype 23 "PA ENC TIMESTAMP" by magnum * * Previously called mskrb5 because I had the idea it was Micro$oft specific. * * Pcap file -> input file: * 1. tshark -r capture.pcapng -T pdml > ~/capture.pdml * 2. krbng2john.py ~/capture.pdml > krb5.in * 3. Run john on krb5.in * * PA_DATA_ENC_TIMESTA...
reduction-clause-Modificado7.c
/* $ gcc -fopenmp -O2 reduction-clause.c -o reduction-clause */ #include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif main(int argc, char **argv) { int i, n=20, a[n],suma=10; if(argc < 2) { fprintf(stderr,"Falta iteraciones\n"); exit(-1); } n ...
implied_volatility_newton.c
// // implied_volatility_newton.c // // // Created by Domenico Natella on 10/25/16. // #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <string.h> #include <mpi.h> #include <omp.h> #define SIZE 110 #define MAX_ITERATIONS 1000000 struct option{ double V_market[SIZE][2]; d...
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...
bitshuffle_core.c
/* * Bitshuffle - Filter for improving compression of typed binary data. * * Author: Kiyoshi Masui <kiyo@physics.ubc.ca> * Website: http://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #include "bitshuffle_core.h" #include "bitshu...
reduction.c
// OpenMP Reduction Example // Inclusions #include <omp.h> #include <stdio.h> #include <stdlib.h> // Main int main( int argc, char** argv ) { int *a = malloc( 25 * sizeof( int ) ); // Array of Values int i = 0; // Loop Index int n = 25; ...
CALPHADFreeEnergyFunctionsBinary3Ph2Sl.h
#ifndef included_CALPHADFreeEnergyFunctionsBinary3Ph2Sl #define included_CALPHADFreeEnergyFunctionsBinary3Ph2Sl #include "CALPHADSpeciesPhaseGibbsEnergy.h" #include "InterpolationType.h" #include "Phases.h" #include "datatypes.h" #include "functions.h" #include <boost/property_tree/ptree.hpp> #include <cassert> #inc...
StmtOpenMP.h
//===- StmtOpenMP.h - Classes for 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 // //===---------------------------...
GB_unop__exp_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...
GB_unop__identity_bool_int8.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...
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 <limits> #include <string> #include <algorithm> #include <chrono>...
pgpsda_fmt_plug.c
/* * Format for brute-forcing PGP SDAs (self-decrypting archives). * * This software is Copyright (c) 2017, 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, *...
declare_mapper_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s int temp; // expected-note {{'temp' declared here}} struct vec { // expected-note {{definition of 'struct vec' is not complete until the cl...
Data.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* * Data.c * * Some routines that examine the data * * 2006: Public Domain: Wesley Ebisuzaki * 1/2007 cleanup M. Schwarb * */ extern int decode, latlon; extern double *lat...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
REAL.c
/**************************************************************************** *REAL - Rapid Earthquake Association and Location * *What you need: * 1. Traveltime table for P or/and S waves (dist,dep,P arrival,S arrival ...) * 2. Station information (stlo,stla,net,sta,chan,elev) * 3. Picks at each station and ...
GB_unop__sqrt_fc64_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
bricksetup.h
/** * @file * @brief Brick iterator and setup code */ #ifndef BRICK_SETUP_H #define BRICK_SETUP_H #include <vector> #include <typeinfo> #include <initializer_list> #include <algorithm> #include "brick.h" struct RunningTag { }; struct StopTag { }; template<unsigned select> struct TagSelect { static constexpr Ru...
GB_binop__minus_uint16.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_matvec_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...
func_2v.c
void func_2v(float* in, float* out, unsigned n){ unsigned i; #pragma omp target teams distribute parallel for map(to: in[0:n]) map(from: out[0:n]) for(i=0; i<n; ++i){ out[i]=in[i]/2; } }
GB_unop__atan_fp64_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...
detector.c
#include "darknet.h" static int coco_ids[] = {1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,70,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90}; void train_detector(char *datacfg, cha...
pdamax.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/compute/pdzamax.c, normal z -> d, Fri Sep 28 17:38:10 2018 * **/ #include "plasma_async.h" #include "plasma_contex...
example_10-StructOfArrays-CellLinkedList-OuterLoop-SymmetricalLoadBalancing.c
/* * SPDX-License-Identifier: BSD-3-Clause * * example_10-StructOfArrays-CellLinkedList-OuterLoop-SymmetricalLoadBalancing.c : * Example of SPH Density Calculation using * fast neighbor search the main density loop via * Cell Linked List method, Struct of Arrays (SoA) * data layout, Open...
deconvolution_pack8.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 ...
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 // //===---------------------------...
GB_unaryop__abs_fp64_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
cdist.c
/* Generated by Cython 0.29.22 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "extra_compile_args": [ "-fopenmp" ], "extra_link_args": [ "-fopenmp" ], "name": "alignment.cdist", "sources": [ "alignment/cdist.p...
GB_reduce_build_template.c
//------------------------------------------------------------------------------ // GB_build_template: T=build(S), and assemble any duplicate tuples //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-L...
ocp_nlp_sqp.c
/* * Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, * Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, * Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, * Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl * * This file is part o...
sw3d_tstile.h
void sw_tstile(){ printf("- traco tstile [1x16x16x16] - \n\n"); int c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c11,c10,c12,c13,c14,c15; // spaces 3, 1x16x16x16 for( c0 = 0; c0 < N + floord(N - 1, 8); c0 += 1) #pragma omp parallel for schedule(dynamic, 1) shared(c0,N) private(c1,c2,c3,c4,c5,c6,c7,c8,c9,c11,c10,c12,c13,c14,c15)...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
distributiongenerator.h
/** * @file distributiongenerator.h This code provides basic structure for distribution generators. This should be inherited by all other distribution generators. * @author TPOC: contact@palisade-crypto.org * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redi...
GB_unaryop__abs_uint64_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...
2018-private-origin-no.c
// Declared in a scope inside the construct: private by default #include <stdlib.h> #include <stdio.h> int main(int argc, char* argv[]) { int i; int len=100; int a[100]; for (i=0;i<len;i++) a[i]=i; #pragma omp parallel for for (i=0;i<len;i++) { int tmp =a[i]+i; a[i] = tmp; } printf("a[50]...
pbc.c
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
Cmfd.h
/** * @file Cmfd.h * @brief The Cmfd class. * @date October 14, 2013 * @author Sam Shaner, MIT, Course 22 (shaner@mit.edu) */ #ifndef CMFD_H_ #define CMFD_H_ #ifdef __cplusplus #define _USE_MATH_DEFINES #ifdef SWIG #include "Python.h" #endif #include "log.h" #include "constants.h" #include "Universe.h" #include ...
inputParallelFor.c
#include <stdio.h> #ifdef _OPENMP #include "omp.h" #endif static long num_steps=10000000; double step; int main() { int i; double x,pi, sum=0.0; step=1.0/(double)num_steps; #pragma omp parallel for reduction (+:sum) private (x) for(i=1;i<=num_steps;i++) { x=(i-0.5)*step; sum=sum+ 4.0/(1.0+x*x); } pi=...
Builder.h
/********************************************************************************** Copyright (c) 2019 Tobias Zündorf MIT License 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 rest...