source
stringlengths
3
92
c
stringlengths
26
2.25M
biology_module_op.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICENSE file distrib...
linalg.c
/* * linalg.c * Francesco Conti <f.conti@unibo.it> * * Copyright (C) 2015 ETH Zurich, University of Bologna * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include "linalg.h" #ifdef IPC_CONV16 #include "per...
reorder.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include "ParTI.h" #include "sptensor.h" /*Interface to everything in this file is orderit(.., ..)*/ /*function declarations*/ void sptLexiOrderPerMode(sptSparseTensor * tsr, sptIndex mode, sptIndex ** orgIds, int tk); void sptBFSLike(spt...
convolution_1x1.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 ...
fir_testing3.c
// // max_01.c // // // /usr/local/bin/gcc-8 -fopenmp -std=c11 -march=native -O3 -ffast-math -o fir_testing2.app fir_testing2.c // ./fir_testing2.app // gcc -std=c11 -mavx -mfma -O3 -ffast-math -o fir_testing2.app fir_testing2.c // gcc -std=c11 -march=native -O3 -ffast-math -o fir_testing2.app fir_testing2.c...
trsm_x_csr_n_hi_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_CSR *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT m = A-...
exactNNN.h
#pragma once #include<vector> #include<list> #include<unordered_map> #include"util.h" #include"graph.h" #include"pQueue.h" #include<omp.h> using namespace std; typedef vector<float> Point; Graph createNNN(const vector<Point>& points, unsigned int numNN, bool l2 = true){ unsigned int numVecs = points.size(); i...
FasterLookup.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "src/FasterLookup.c" #else // add two vectors static inline void nn_(FasterLookup_addVec)( real *res, real alpha, real *vec, int dim) { int i; int m = dim - 3; for (i = 0; i < m; i += 4) { res[i] += alpha * vec[i]; res[i+1] += alpha * vec[i+1]; res[i+...
a12.c
#define N 100000000 #define MAX 4 int a[N],b[N],ind[N]; long long s=0; main() { int i; /* inicialitzacio, no en paral.lel */ for(i=0;i<N;i++) { a[i]=1; b[i]=2; ind[i]=i%MAX; } #pragma omp parallel for schedule(static,1) for (i=0;i<N;i++) b[ind[i]] += a[i]; for (i=0;i<MAX;i++) { printf("Valor %d, de b %d \n",...
operators.h
/* Project Name : OpenMEEG © INRIA and ENPC (contributors: Geoffray ADDE, Maureen CLERC, Alexandre GRAMFORT, Renaud KERIVEN, Jan KYBIC, Perrine LANDREAU, Théodore PAPADOPOULO, Emmanuel OLIVI Maureen.Clerc.AT.inria.fr, keriven.AT.certis.enpc.fr, kybic.AT.fel.cvut.cz, papadop.AT.inria.fr) The OpenMEEG software is a C++...
logger.h
#ifndef KISS_LOG_H #define KISS_LOG_H #include <iostream> namespace kiss { enum eLogLevel { LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG }; class Logger { static std::ostream *stream; static eLogLevel level; public: Logger(eLogLevel level); ~Logger(); static std::ostream &getLogStream()...
pr88203-3.c
/* PR c++/88203 */ /* { dg-do compile } */ /* { dg-additional-options "-std=c99" { target c } } */ /* { dg-additional-options "-std=c++11" { target c++ } } */ void foo (const char *); #pragma omp declare target to (foo) void f1 (void) { #pragma omp parallel for lastprivate (__func__) /* { dg-error "'__func__' is pr...
Mymedfilt1.c
/* * File: Mymedfilt1.c * * MATLAB Coder version : 3.0 * C/C++ source code generated on : 15-Nov-2015 19:51:15 */ /* Include Files */ #include "rt_nonfinite.h" #include "yaapt.h" #include "Mymedfilt1.h" #include "yaapt_emxutil.h" #include "median.h" /* Function Definitions */ /* * Arguments : em...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
irbuilder_nested_parallel_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // RUN: %clang_cc1 -verify -fopenmp -fopenmp-enable-irbuilder -x c++ -emit-llvm %s -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -o - | FileCheck --check-prefixes=CHECK %s // RUN: %clang_cc1 -fopenmp -fopenmp-enable-irbuilder -...
learnreg.h
#ifndef _LEARNREG_H // Include guard #define _LEARNREG_H #include <iostream> // cout,cerr,etc. #include <stdio.h> // printf, etc. #include <stdexcept> // Standard exceptions #include <omp.h> // Eigen #include <Eigen/Dense> #include <Eigen/SparseCore> #include "utils.h" typedef Eigen::VectorXd VecType; typedef Eigen...
DefaultComm.h
#include <CommBase.h> /*! @brief Flag for checking if this header has already been included. */ #ifndef YGGDEFAULTCOMM_H_ #define YGGDEFAULTCOMM_H_ // IPC Comm #ifdef IPCDEF #include <IPCComm.h> static comm_type _default_comm = IPC_COMM; #define new_default_address new_ipc_address #define init_default_comm init_ipc_c...
triplet.c
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* These codes were originally parts of spglib, but only develped */ /* and used for phono3py. Therefore these were moved from spglib to */ /* phono3py. This file is part of phonopy. */ /* Redistribution and use in source and binary forms, with or witho...
exercise2.c
/* * BSD 2-Clause License * * Copyright (c) 2020, Alessandro Capotondi * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyri...
deconvolution_pack4to1.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 ...
target_parallel_for_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for'}} #pragma omp target parallel for // expected-error@+1 {{unexpected OpenMP directive '#pr...
fastsphere.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <complex.h> #include <math.h> #include <omp.h> #include "fastsphere.h" #include "config.h" #include "init.h" #include "util.h" #include "scatmat.h" #include "farfield.h" #include "spreflect.h" #include "ptsrc.h" #ifndef _OPENMP ...
simd-13.c
/* { dg-do run } */ /* { dg-additional-options "-msse2" { target sse2_runtime } } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ int main () { int k = 0, i, s = 0; #pragma omp parallel for simd linear(k : 3) reduction(+: s) schedule (static, 16) for (i = 0; i < 128; i++) { k = k + 3;...
schur_eliminator_impl.h
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2010, 2011, 2012 Google Inc. All rights reserved. // http://code.google.com/p/ceres-solver/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // ...
oyranos_cmm_lcm2.c
/** @file oyranos_cmm_lcm2.c * * Oyranos is an open source Color Management System * * @par Copyright: * 2007-2017 (C) Kai-Uwe Behrmann * * @brief littleCMS CMM module for Oyranos * @author Kai-Uwe Behrmann <ku.b@gmx.de> * @par License: * new BSD <http://www.opensource.org/lic...
ocp_nlp_common.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...
distort.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
divsufsort.c
/* * divsufsort.c for libdivsufsort-lite * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * 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 wit...
select_ci.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...
atomic_read_codegen.c
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -target-cpu core2 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -include-pch %t ...
host_varfn_function.c
#include <stdio.h> #include <omp.h> #include <hostrpc.h> // This user variable function returns a uint so declare function // as hostrpc_varfn_uint_t . hostrpc_varfn_uint_t my3argfn; hostrpc_varfn_double_t mydoublefn; // This is an arbitrary 3 arg function uint my3argfn(void * fnptr, ...) { va_list args; va_st...
GB_binop__le_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...
convolution_pack4to8.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 ...
morn_wave_FFT.c
/* Copyright (C) 2019-2020 JingWeiZhangHuai <jingweizhanghuai@163.com> Licensed under the Apache License, Version 2.0; 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 in wri...
net_md5_fmt_plug.c
/* Cracker for RIPv2 MD5 authentication hashes. * * This software is Copyright (c) 2013, 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, are permitted. * * ...
quad.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <string.h> #define num_threads 12 #define MASK 11 unsigned char *gray(unsigned char *img, int ancho, int alto, int n); unsigned char *shift(unsigned char *img, int ancho, int alto, int n); unsigned char *blur(unsigned char *img, int ancho, int alto, int ...
convolution_pack1ton.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 ...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "dark_cuda.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define NUMCHARS 37 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { char *path; FILE *file = fopen(filename, "r"); if(!file) file...
GB_unaryop__ainv_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...
3d25pt_var.c
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * 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) >...
NM_chi2dist.c
#include "mex.h" //#include "chi2double.h" #include <stdio.h> #include <float.h> /* We calculate calculate chi2=(a-b)**2/(a+b+FLT_MIN) to avoid division-by-zero: If a+b != 0, then (a+b+FLT_MIN)==(a+b) and nothing changed. If a+b == 0, then the numerator is 0 as well, and we don't divide by 0. */ // Using compiler...
expected_output.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <polybench.h> #include "atax.h" /** * This version is stamped on May 10, 2016 * * Contact: * Louis-Noel Pouchet <pouchet.ohio-state.edu> * Tomofumi Yuki <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /*ata...
GrB_Matrix_serializeSize.c
//------------------------------------------------------------------------------ // GrB_Matrix_serializeSize: return an upper bound on the blob size //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-L...
lrthresh.c
/* Copyright 2015. The Regents of the University of California. * Copyright 2015. Tao Zhang and Joseph Cheng. * 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: * 2014-2015 Frank Ong <frankong@...
microkernels.h
#ifndef MICROKERNELS_H_ #define MICROKERNELS_H_ static void kernel_o2_b0(const double* A, const double* B, double* C) { #ifdef __AVX512F__ __asm__ __volatile__("movq %0, %%rdi\n\t" "movq %1, %%rsi\n\t" "movq %2, %%rdx\n\t" "movq $0, %%r12\n\t" ...
GB_unaryop__ainv_int64_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...
treetrav_par.c
#include "aux.h" void treetrav_par(int n, int *data, int *left, int *right){ int i, l, r; /* Loop over all the nodes. ATTENTION: nodes are number in post-order: all the nodes in a subtree are numbered consecutively and thus each node in the tree has a higher index than all of its descendants. This ...
Scan.h
/* This file is part of the implementation for the technical paper Field-Aligned Online Surface Reconstruction Nico Schertler, Marco Tarini, Wenzel Jakob, Misha Kazhdan, Stefan Gumhold, Daniele Panozzo ACM TOG 36, 4, July 2017 (Proceedings of SIGGRAPH 2017) Use of this source code is granted via a BSD-style l...
par_gsmg.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...
GB_unop__identity_fc64_uint64.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_binop__bor_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...
GB_unop__atanh_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://...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- 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 // //===---------------------------...
st_naive_down.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...
GB_unop__identity_int8_uint16.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...
nested_serialized.c
// RUN: %libomp-compile-and-run | FileCheck %s // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { omp_set_nested(0); #pragma omp parallel num_threads(4) { print_ids(0); print_ids(1); #pragma omp ...
ej2.c
#include <stdio.h> #include <math.h> #include <float.h> #include <stdlib.h> #include <omp.h> #include "ctimer.h" main(int argc, char**argv) { ////// PRODUCTO MATRIZ-VECTOR x=A*b ////// // DECLARACION DE VARIABLES // // DECLARACION DE VARIABLES // double t1,t2,tucpu,tscpu; const long int M= 1048576; ...
omp_dtrsm_batch.c
/** * @file omp_dtrsm_batch.c * * @brief BBLAS omp_dtrsm_batch double routine. * * BBLAS is a software package provided by Univ. of Manchester, * Univ. of Tennessee. * * @version 1.0.0 * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date 2016-02-20 * **/ #ifndef ...
test.c
#include <stdio.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (1024*3) #define INIT() INIT_LOOP(N, {C[i] = 1; D[i] = i; E[i] = -i+1;}) #define ZERO(X) ZERO_ARRAY(N, X) #define DUMP_SUCCESS9() { \ ...
jac_solv_parfor.c
/* ** PROGRAM: jacobi Solver .. parallel For version ** ** PURPOSE: This program will explore use of a jacobi iterative ** method to solve a system of linear equations (Ax= b). ** ** Here is the basic idea behind the method. Rewrite ** the matrix A as a Lower Triangular (L), u...
simd_metadata.c
// RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86 // RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -target-feature +avx -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86-AVX // RUN: %clang_cc1 -fopenmp -trip...
matconv.c
#include "matrix.h" /** \brief Converts a matrix to an integer vector * * \param[in] A Input matrix * \param[in] v Vector to store the result * \return Output vector * */ INT_VECTOR mat_2int_vec(MATRIX A) { int m, n, i, j, l; INT_VECTOR v; m = MatCol(A); n = MatRow(A); l = m*n; if((v = ...
nested_lwt.c
// RUN: %libomp-compile-and-run | FileCheck %s // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s // REQUIRES: ompt // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7 #include "callback.h" #include <omp.h> #include <unistd.h> int main() { omp_set_nested(1); int condition = 0; #pragma ...
pzgbtrf.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include "plasma_types.h" #in...
convolution_2x2_pack8.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 ...
Layer_Linear.h
/* * Layers.h * * Created by Guido Novati on 29.10.18. * Copyright 2018 ETH Zurich. All rights reserved. * */ #pragma once #include "Layers.h" template<int nOutputs, int nInputs> struct LinearLayer: public Layer { Params* allocate_params() const override { // Allocate params: weight of size nInputs*nOu...
ext_sweep.c
#include <stdlib.h> #include "ext_sweep.h" #include "ext_macros.h" #include "ext_kernels.h" #include "ext_problem.h" #include "ext_profiler.h" // Compute the order of the sweep for the first octant void compute_sweep_order(int** num_cells, cell** cells) { unsigned int nplanes = ichunk + ny + nz - 2; *num_cell...
tree.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_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/dataset.h> #include <LightGBM/meta.h> #include <string> #include <map> #includ...
main1.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #include <string.h> int number_of_threads; void crout0(double **A, double **L, double **U, int n) { int i, j, k; double sum = 0; for (i = 0; i < n; i++) { U[i][i] = 1; } for (j = 0; j < n; j++) { printf("j : %d\n",j); ...
drupal7_fmt_plug.c
/* * Drupal 7 phpass variant using SHA-512 and hashes cut at 258 bits. * * 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. * * These are 8 by...
GB_binop__bxor_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-...
vanillaAlign.c
#include <getopt.h> #include "pairwiseAlignment.h" #include "pairwiseAligner.h" #include "emissionMatrix.h" #include "stateMachine.h" #include "nanopore.h" #include "continuousHmm.h" void usage() { fprintf(stderr, "vanillaAlign binary, meant to be used through the signalAlign program.\n"); fprintf(stderr, "Se...
task_late_fulfill.c
// RUN: %libomp-compile && env OMP_NUM_THREADS='3' \ // RUN: %libomp-run | %sort-threads | FileCheck %s // REQUIRES: ompt // Checked gcc 10.1 still does not support detach clause on task construct. // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10 // gcc 11 introduced detach clause, but gomp interfac...
main_seqval.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:...
fec.c
#include<stdio.h> #include "gdal.h" #include<omp.h> void usage() { printf( "-----------------------------------------\n"); printf( "--Modis Processing chain--OpenMP code----\n"); printf( "-----------------------------------------\n"); printf( "./fc inEmis31 inEmis32 outFC\n"); printf( "---------------------------...
Tree.h
#pragma once #include <parallel/algorithm> #include "Node.h" #include "wtime.h" #if 0 #define SLOW #endif struct Tree { typedef boundary<float> Boundary; Particle::Vector tree; Boundary BBox; /* bounding box */ std::vector<Node *> leafArray; struct cmp_particle_key { bool operator() (const Particle &a,...
utils.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 ...
estimate_time_step.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // // Main authors: Kazem Kamran // Jordi Rubio // #if !defined(KRATOS_ESTIMATE_TIME_ST...
declare_variant_messages.c
// RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp -x c -std=c99 -fms-extensions -Wno-pragma-pack %s // RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp-simd -x c -std=c99 -fms-extensions -Wno-pragma-pack %s #pragma omp declare // expected-error {{expected an OpenMP directive}} int foo(void); #pra...
test_mkl.h
#include <iostream> #include <stdint.h> #include <mkl_vsl.h> void mkl_rng(double *ran, const int n, const int method, const int brng) { const double a = 0.0, b = 1.0; uint32_t iseed = 13579; int errcode; VSLStreamStatePtr stream; errcode = vslNewStream(&stream, brng, iseed); if (errcode != VSL...
jacobi-block-task.cuda.c
#include "hclib.h" #ifdef __cplusplus #include "hclib_cpp.h" #include "hclib_system.h" #ifdef __CUDACC__ #include "hclib_cuda.h" #endif #endif # include "poisson.h" /* #pragma omp task/taskwait version of SWEEP. */ void sweep (int nx, int ny, double dx, double dy, double *f_, int itold, int itnew, double *...
tensor_cpu-inl.h
/*! * Copyright (c) 2014 by Contributors * \file tensor_cpu-inl.h * \brief implementation of CPU host code * \author Bing Xu, Tianqi Chen */ #ifndef MSHADOW_TENSOR_CPU_INL_H_ #define MSHADOW_TENSOR_CPU_INL_H_ #include <cstring> #include <functional> #include <utility> #include <vector> #include "./base.h" #includ...
convolution_1x1.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 ...
nco_rgr.c
/* $Header$ */ /* Purpose: NCO regridding utilities */ /* Copyright (C) 2015--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 LICENSE file */ #inc...
parallel_reduction_messages.c
// RUN: %clang_cc1 -verify -fopenmp -fopenmp-version=50 -ferror-limit 150 -o - %s int incomplete[]; void test(int *p) { int a; #pragma omp parallel reduction( // expected-error {{expected identifier}} expected-error {{expected ')'}} expected-warning {{missing ':' after reduction identifier - ignoring}} expected-not...
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...
run_encap_decap.c
/* 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 may not use ...
GB_binop__pow_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "dark_cuda.h" #include "box.h" #include <stdio.h> #include <stdlib.h> #include <string.h> extern int check_mistakes; #define NUMCHARS 37 pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { char *path; FILE *fi...
GB_binop__times_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:...
shape.h
/* * shape.h * * Created on: Dec 28, 2015 * Author: agibsonccc */ #ifndef SHAPE_H_ #define SHAPE_H_ #include <cstring> #include <cstdio> #include "../dll.h" #include "../nd4jmalloc.h" #include "../templatemath.h" #include "../helpers/logger.h" #include "../pointercast.h" #include "../cnpy/cnpy.h" #include ...
ligra_preprocessor.h
// This code is part of the project "Ligra: A Lightweight Graph Processing // Framework for Shared Memory", presented at Principles and Practice of // Parallel Programming, 2013. // Copyright (c) 2013 Julian Shun and Guy Blelloch // // Permission is hereby granted, free of charge, to any person obtaining a // copy of ...
ompsimpletest.c
#include <nautilus/nautilus.h> #include <nautilus/shell.h> #include <nautilus/libccompat.h> #define ERROR(fmt, args...) ERROR_PRINT("ompstest: " fmt, ##args) #define DEBUG(fmt, args...) DEBUG_PRINT("ompstest: " fmt, ##args) #define INFO(fmt, args...) INFO_PRINT("ompstest: " fmt, ##args) static int handle_test (char *...
task_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" int test_task_tied_scheduling() { int i, vals[6]; memset(vals, 0, sizeof(int) * 6); timeout_barrier_t barrier; timeout_barrier_init(&barrier); #pragma omp parallel num_...
sp.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - SP This benchmark is an OpenMP C version of the NPB SP code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
HYPRE_struct_int.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...
ctl_list.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * 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 Li...
GB_unaryop__lnot_fp32_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
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...
GB_unaryop__lnot_int16_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...