source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_unaryop__minv_int64_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
sumProductSparseC.c
#include <mex.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <omp.h> void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double* prediction = mxGetPr(prhs[0]); /* containts evaluated appearance models for all pixel in that BScan and all boundary models */ double* mu...
pi_omp_lock_4.c
/* This program will numerically compute the integral of 4/(1+x*x) from 0 to 1. The value of this integral is pi -- which is great since it gives us an easy way to check the answer. The is the original sequential program. It uses the timer from the OpenMP runtime library History: Writte...
looop.c
#include<stdio.h> #include<stdlib.h> #include<omp.h> #define TAM 64*127*5 #define ITERACOES_TESTE 100000 int main(){ int i,contador; long soma; int *vetor = calloc(TAM,sizeof(int)); if(vetor == NULL){ printf("Falha ao alocar memória"); return -1; } for(contador=0; contador < ITERACOES_TESTE; con...
DRB021-reductionmissing-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
gamma_index_ivfpq.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This faiss source code is licensed under the MIT license. * https://github.com/facebookresearch/faiss/blob/master/LICENSE * * * The works below are modified based on faiss: * 1. Replace the static batch indexing with real time indexing * 2. Add the fin...
rose_v1_shared.c
/* * dependence graph: */ #include <omp.h> void foo() { int i; int x; int a[100]; #pragma omp parallel for private (i) for (i = 0; i <= 99; i += 1) { a[i] = a[i] + 1; } } /* non loop carried anti dependence for array accesses : level =1 > 0 dep SgExprStatement:a[i] =((a[i]) + 1); SgExprStatemen...
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)...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
endif.c
/* * test the handling of #endif at the end of a parallel region * Extracted from BOTS * Liao 1/15/2009 * */ #include <stdio.h> #define FORCE_TIED_TASKS void find_queens (int size) { int total_count=0; #pragma omp parallel { #ifdef FORCE_TIED_TASKS #pragma omp atomic total_count += 1; #endif // printf...
DRACC_OMP_024_MxV_Missing_Enter_Data_yes.c
/* Matrix Vector multiplication with Matrix missing on Accelerator. Using the target enter data construct. */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #define C 512 int *a; int *b; int *c; int init(){ for(int i=0; i<C; i++){ for(int j=0; j<C; j++){ b[j+i*C]=1; } ...
Types.h
//===---------- Types.h - OpenMP types ---------------------------- 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 // //===---------------------------...
ThreadSafeVec.h
// // smarties // Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland. All rights reserved. // Distributed under the terms of the MIT license. // // Created by Guido Novati (novatig@ethz.ch). // #ifndef smarties_ThreadSafeVec_h #define smarties_ThreadSafeVec_h #include "../Settings/Definitions.h" #include <casser...
dataset.h
#ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/utils/random.h> #include <LightGBM/utils/text_reader.h> #include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/meta.h> #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <vector> #include <utility> #include <func...
target_data-4.c
/* { dg-do run } */ #include <stdlib.h> #define EPS 0.000001 const int MAX = 1800; void check (double *a, double *b, int N) { int i; for (i = 0; i < N; i++) if (a[i] - b[i] > EPS || b[i] - a[i] > EPS) abort (); } void init (double *a1, double *a2, int N) { double s = -1; int i; for (i = 0; i < ...
heatx.c
# include <stdlib.h> # include <stdio.h> # include <math.h> # include <float.h> # include <time.h> # include <omp.h> #define a(i,j,k) a[(k)*mxy+(j)*mx+(i)] #define anew(i,j,k) anew[(k)*mxy+(j)*mx+(i)] int main ( int argc, char *argv[] ) { double error ; double epsilon ; int i,j,k,istep; int nx,ny,nz,nstep,n...
pr34694.c
/* PR middle-end/34694 */ /* { dg-do compile } */ /* { dg-options "-O -fopenmp -Wall" } */ int i; void foo () { #pragma omp parallel { int j; /* { dg-message "note: 'j' was declared here" } */ i = j; /* { dg-warning "is used uninitialized" } */ } }
atomic_write_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 ...
Parallelizer.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You...
mypaint-tiled-surface.c
/* brushlib - The MyPaint Brush Library * Copyright (C) 2007-2014 Martin Renold <martinxyz@gmx.ch> et. al. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in al...
GB_assign_zombie1.c
//------------------------------------------------------------------------------ // GB_assign_zombie1: delete all entries in C(:,j) for GB_assign //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Lice...
agent_uid_map.h
// ----------------------------------------------------------------------------- // // Copyright (C) 2021 CERN & Newcastle University for the benefit of the // BioDynaMo collaboration. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compl...
wots.c
#include <openssl/evp.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> #include <gmp.h> typedef struct{ unsigned char value[EVP_MAX_MD_SIZE]; unsigned int len; } KeyBlock; /* Hash output */ typedef struct{ int w, n, t, t1, t2; ...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
master_taskloop_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -triple x86_64-unknown-unknown -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -triple x86_64-unknown-unknown -verify %s -Wuninitialized void xxx(int argc) { int x; // expected-note {{initialize the variable 'x' to silence this warning}} #pragma om...
GB_extract_vector_list.c
//------------------------------------------------------------------------------ // GB_extract_vector_list: extract vector indices for all entries in a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved....
GB_unaryop__ainv_uint8_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
GB_binop__minus_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_binop__ne_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...
c_print_results.c
/*****************************************************************/ /****** C _ P R I N T _ R E S U L T S ******/ /*****************************************************************/ #include <stdlib.h> #include <stdio.h> #include <omp.h> void c_print_results( char *name, c...
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) ...
sageInterface.h
#ifndef ROSE_SAGE_INTERFACE #define ROSE_SAGE_INTERFACE #include "sage3basic.hhh" #include <stdint.h> #include <utility> #include "rosePublicConfig.h" // for ROSE_BUILD_JAVA_LANGUAGE_SUPPORT #include "OmpAttribute.h" #if 0 // FMZ(07/07/2010): the argument "nextErrorCode" should be call-by-reference SgFile* determ...
rumi6r.c
/* * Date: 11 December 2015 * Contact: Thomas Peyrin - thomas.peyrin@gmail.com */ /* * Simulation of boomerang analysis for Skinny * Date: March 21, 2020 * Author: Hosein Hadipour * Contact: hsn.hadipour@gmail.com */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #in...
DenseMatrix.h
//================================================================================================= /*! // \file blaze/math/smp/openmp/DenseMatrix.h // \brief Header file for the OpenMP-based dense matrix SMP implementation // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is part of th...
GB_binop__copysign_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-...
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...
matmult.c
#include <stdio.h> #include <stdlib.h> #include "matmult_initialize.h" #ifndef MATRIX_SIZE #define MATRIX_SIZE 512 #endif #define NRA MATRIX_SIZE /* number of rows in matrix A */ #define NCA MATRIX_SIZE /* number of columns in matrix A */ #define NCB MATRIX_SIZE /* num...
merge_when_user_omp_pragma.c
int main() { int A[10][10]; int i,j; // This pragma use to lead to an invalid omp code because we don't detect that an omp pragma already exist #pragma omp parallel for for(i=0; i<10; i++) { for(j=0; j<10; j++) { A[i][j] =0; } } }
permutation_gen.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:...
GB_binop__lxor_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_subassign_02.c
//------------------------------------------------------------------------------ // GB_subassign_02: C(I,J) = A ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier: Apache-2...
initAtoms.c
/// \file /// Initialize the atom configuration. #include "initAtoms.h" #include <math.h> #include <assert.h> #include "constants.h" #include "decomposition.h" #include "parallel.h" #include "random.h" #include "linkCells.h" #include "timestep.h" #include "memUtils.h" #include "performanceTimers.h" static void comp...
parallel_priority_queue.h
/*************************************************************************** * include/stxxl/bits/containers/parallel_priority_queue.h * * Part of the STXXL. See http://stxxl.org * * Copyright (C) 2014-2015 Thomas Keh <thomas.keh@student.kit.edu> * Copyright (C) 2014-2015 Timo Bingmann <tb@panthema.net> * *...
sparselu.c
/**********************************************************************************************/ /* This program is part of the Barcelona OpenMP Tasks Suite */ /* Copyright (C) 2009 Barcelona Supercomputing Center - Centro Nacional de Supercomputacion */ /* Copyright (C) 2009 Univer...
CorotateFEMConstraintActuate.h
#ifndef __COROTATE_FEM_CONSTRAINT_ACTUATE_H__ #define __COROTATE_FEM_CONSTRAINT_ACTUATE_H__ #include "Constraint.h" #include "Tensor.h" #include <Eigen/Core> #include <Eigen/Sparse> #include <Eigen/Geometry> #include <Eigen/SVD> #include <Eigen/Eigenvalues> #include <iostream> namespace FEM { template <typename TinySc...
decorate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
msmGOptions.h
/* msmGOptions.h Emma Robinson, FMRIB Image Analysis Group Copyright (C) 2008 University of Oxford Some sections of code inspired by A. Petrovic. */ /* CCOPYRIGHT */ #if !defined(msmGOptions_h) #define msmGOptions_h #include <string> #include <iostream> #include <fstream> #include <stdlib.h> #inc...
bml_submatrix_ellsort_typed.c
#ifdef BML_USE_MAGMA #include "magma_v2.h" #endif #include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_logger.h" #include "../bml_submatrix.h" #include "../bml_types.h" #include "../dense/bml_allocate_dense.h" #include "bml_allocate_ellsort.h" #include "bml_submatrix_ellsort...
ZQ_FaceDatabaseMaker.h
#ifndef _ZQ_FACE_DATABASE_MAKER_H_ #define _ZQ_FACE_DATABASE_MAKER_H_ #pragma once #include <sstream> #include <direct.h> #include <windows.h> #include <io.h> #include <omp.h> #include <opencv2\opencv.hpp> #include "ZQ_FaceDetector.h" #include "ZQ_FaceRecognizer.h" #include "ZQ_FaceDatabase.h" #include "ZQ_FaceDatabase...
libperf.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2019. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015-2016. ALL RIGHTS RESERVED. * Copyright (C) ARM Ltd. 2017. AL...
dyn_sssp.h
#ifndef DYN_SSSP_H_ #define DYN_SSSP_H_ #include <limits> #include <vector> #include <algorithm> #include "traversal.h" #include "sliding_queue_dynamic.h" #include "../common/timer.h" #include "../common/pvector.h" #include <fstream> extern std::ofstream algF; /* Algorithm: Incremental SSSP and SSSP from scratch */...
residual_based_bdf_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS...
cOpenMP.c
// // cSerial.c // CISC372_Project // // Created by Zehe Luan on 11/27/21. // #include <math.h> #include <stdio.h> #include <float.h> #include <sys/time.h> #include <omp.h> int main() { struct timeval start, end; int digs = DECIMAL_DIG; long long precision = pow(2,31) - 1; double result = 0; ge...
GB_unaryop__lnot_uint64_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
force.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...
matrix.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
fmm.h
#ifndef fmm_h #define fmm_h #include <cstring> // std::memset #include <fstream> // std::ofstream #include <type_traits> // std::is_same #include "fmm_base.h" #include "intrinsics.h" #include "math_wrapper.h" namespace exafmm_t { template <typename T> class Fmm : public FmmBase<T> { public: /* pre...
sum.h
#pragma once #include <array> #include <vector> #include <omp.h> #include "_cuda.h" using namespace std; template <class T> T sum(T *x, int N) { T a = T(); for (int i=0; i<N; i++) a += x[i]; return a; } template <class T, size_t N> T sum(array<T, N>& x) { return sum(x.data(), x.size()); } template ...
contraction_tests.h
/****************************************************************************** * contraction_tests.h * * Source of VieCut. * ****************************************************************************** * Copyright (C) 2017 Alexander Noe <alexander.noe@univie.ac.at> * * Published under the MIT license in the ...
schur_eliminator_impl.h
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
scrypt_fmt.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2013 by Solar Designer * * Redistribution and use in source and binary forms, with or without * modification, are permitted. * * There's ABSOLUTELY NO WARRANTY, express or implied. */ #include <stdio.h> #include <string.h> #ifdef _OPE...
nest_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { //need to use an OpenMP construct so that OMPT will be initialized #pragma omp parallel num_threads(1) print_ids(0); omp_nest_lock_t nest_lock; printf("%" PRIu64 ": &nest_lock: %" PRIu64 "\...
rwpng.c
/*--------------------------------------------------------------------------- pngquant: RGBA -> RGBA-palette quantization program rwpng.c --------------------------------------------------------------------------- © 1998-2000 by Greg Roelofs. © 2009-2015 by Kornel Lesiński. All rights res...
a.39.1.c
/* { dg-do run } */ #include <stdio.h> #include <omp.h> void skip (int i) { } void work (int i) { } int main () { omp_lock_t lck; int id; omp_init_lock (&lck); #pragma omp parallel shared(lck) private(id) { id = omp_get_thread_num (); omp_set_lock (&lck); /* only one thread at a time can execute t...
mandel-omp-taskloop-Row.c
/* * Sequential Mandelbrot program * * This program computes and displays all or part of the Mandelbrot * set. By default, it examines all points in the complex plane * that have both real and imaginary parts between -2 and 2. * Command-line parameters allow zooming in on a specific part of * this range. ...
ex03.c
/* Copyright (c) 2019 CSC Training */ /* Copyright (c) 2021 ENCCS */ #include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif int main() { int num_devices = omp_get_num_devices(); printf("Number of available devices %d\n", num_devices); #pragma omp target { if (omp_is_initial_device()) { pri...
section_firstprivate.c
#include <stdio.h> #include "omp_testsuite.h" int check_section_firstprivate (FILE * logFile) { int sum = 7; int sum0 = 11; int known_sum; #pragma omp parallel { #pragma omp sections firstprivate(sum0) { #pragma omp section { #pragma omp critical { sum = sum + sum0; } /*end of critical */ ...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable 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) > (b) ? a : b) #...
transpose.c
/* Copyright (c) 2013, 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 of conditions and the following disclaimer...
elemwise_binary_op.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__ainv_int8_int8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
LookupTable.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/LookupTable.c" #else static void THNN_(LookupTable_resetCount)( THInteger_t *count_data, THIndexTensor *input) { ptrdiff_t i; THIndex_t *input_data = THIndexTensor_(data)(input); ptrdiff_t numel = THIndexTensor_(nElement)(input); for...
HYPRE_parcsr_pcg.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
force.h
#ifndef FORCE_H #define FORCE_H #include <functional> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <vector> #include "beam.h" #include "constants.h" using std::vector; enum class ForceFormula {PARKHOMCHUK, NONMAG_DERBENEV, NONMAG_MESHKOV, NONMAG_NUM1D, NONMAG_NUM3D, MESHKOV, DSM}; class Fric...
deconvolution_pack4.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 ...
libperf.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2019. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015-2016. ALL RIGHTS RESERVED. * Copyright (C) ARM Ltd. 2017. AL...
suma.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, const char * argv[]) { int n = 100; if (argc == 1) { printf("Use: %s <número de items>\n", argv[0]); exit(0); } else { n = atoi(argv[1]); } int suma = 0; int i; int numeros[n]; ...
dgesv.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/zgesv.c, normal z -> d, Fri Sep 28 17:38:05 2018 * **/ #include "plasma.h" #include "plasma_async.h" #incl...
pr70550-2.c
/* PR middle-end/70550 */ /* { dg-do compile } */ /* { dg-additional-options "-Wuninitialized" } */ void bar (int); void foo (void) { int i, j, k, l, m, n, o, p, q; #pragma omp task /* { dg-bogus "is used uninitialized in this function" } */ { i = 2; bar (i); } #pragma omp taskloop /* { dg-bog...
DRB090-static-local-orig-yes.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
cpl_imagelist_io-test.c
/* * This file is part of the ESO Common Pipeline Library * Copyright (C) 2001-2017 European Southern Observatory * * This program 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 2 of 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 ...
jacobi-ompacc-opt1.c
// An optimization on top of naive coding: // promoting data handling outside the while loop #include <stdio.h> #include <math.h> #ifdef _OPENMP #include <omp.h> #endif // Add timing support #include <sys/time.h> double time_stamp() { struct timeval t; double time; gettimeofday(&t, NULL); time = t.tv_sec + 1...
utils.h
#ifndef _UTILS_H_ #define _UTILS_H_ #include <glog/logging.h> #include <mkldnn.hpp> #include <iostream> #include "op_param.h" #include "omp.h" using namespace mkldnn; #define GET_PTR(t, p, offset) reinterpret_cast<t*>( reinterpret_cast<size_t>(p) +static_cast<size_t>(offset) ) memory::format get_desired_format(int c...
app.c
/** * Christina Giannoula * cgiannoula: christina.giann@gmail.com */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <dpu.h> #include <dpu_log.h> #include <unistd.h> #include <getopt.h> #include <assert.h> #include <omp.h> #include "../support/common.h" #include "../support/...
IJVector_parcsr.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...
phase_trans.c
/* This source file is part of the atmostracers library, which is released under the MIT license. Github repository: https://github.com/OpenNWP/atmostracers */ /* This file contains functions calculating everything related to phase transition rates. */ #include "../include/atmostracers.h" #include <math.h> #include <...
pi_par.c
/* This program will numerically compute the integral of 4/(1+x*x) from 0 to 1. The value of this integral is pi -- which is great since it gives us an easy way to check the answer. The program was parallelized using OpenMP by adding just four lines (1) A line to include omp.h -- the in...
otfft_avxdif16omp.h
/****************************************************************************** * OTFFT AVXDIF(Radix-16) of OpenMP Version 6.5 * * Copyright (c) 2015 OK Ojisan(Takuya OKAHISA) * Released under the MIT license * http://opensource.org/licenses/mit-license.php **********************************************************...
phantom_g6.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "omp.h" #include "avx_type.h" #include "gravity.h" #include "timeprof.h" #include "gp6util.h" static int flag_predict_j_particle; static PrdPosVel prdposvel[NPIPES]; static NewAccJrk newaccjrk[NPIPES]; static double acccorr = - 0.125; static double potc...
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 // //===---------------------------...
pbkdf2-hmac-md5_fmt_plug.c
/* * This software is Copyright (c) 2015 Dhiru and 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. */ #if FMT_EXTERNS_H extern struct fmt_main fmt_pbkdf2_hmac_md5; #elif FMT_R...
veccopy-ompt-target-map.c
#include <stdio.h> #include <omp.h> #include "callbacks.h" int main() { int N = 100000; int a[N]; int b[N]; int i; for (i=0; i<N; i++) a[i]=0; for (i=0; i<N; i++) b[i]=i; #pragma omp target parallel for { for (int j = 0; j< N; j++) a[j]=b[j]; } #pragma omp target teams distribu...
GB_binop__pow_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
GB_unop__ainv_uint8_uint8.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...
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 ...
kvstore_dist_server.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__identity_fp32_uint32.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...
add_vect.c
#include <stdio.h> #define N 100000 int main(int argc, char **argv) { int i; int a[N], b[N], c[N], d[N]; for (i=0; i < N; i++) { b[i] = 2; c[i] = 5; } #pragma omp parallel { #pragma omp for for (i = 0; i < N; i++) a[i] = b[i] + c[i]; #pragma omp for for (i = 0; i < N; i++) ...
3.race2.c
// RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s #include <omp.h> #define N 20 int main() { int A[N][N][N]; #pragma omp parallel for for (int i = 1; i < N; i++) for (int j = 1; j < N; j++) for (int k = 1; k < N; k++) A[i][j][k] = A[i - 1][j][k]; } // CHECK: Data Race detected // END