source
stringlengths
3
92
c
stringlengths
26
2.25M
kernel_parallel.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
globalsums.c
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include <omp.h> double do_sum_novec(double *var, long ncells); double do_sum(double *var, long ncells); double do_kahan_sum(double *var, long ncells); double do_serial_sum_fog_v(double *var, long ncells); double do_serial_sum_fog_v8(double *va...
2Dfold.c
/* * minimum free energy * RNA secondary structure with * basepair distance d_1 to reference structure 1 and distance d_2 to reference structure 2 * */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> #include...
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 // //===---------------------------...
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 // //===---------------------------...
entrega-malloc-batch.c
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <omp.h> #include "ctimer.h" void add (int A[], int B[], int C[], int N) { int i, carry, sum; carry = 0; for (i=0; i<N; i++) { sum = A[i] + B[i] + carry; if (sum >= 10) { carry = 1; sum -= 10; } else carry = 0; C[i] = sum; } ...
ninja_filter.c
/* NINJA-OPS: NINJA Is Not Just Another - OTU Picking Solution Short-read filtering, processing, and denoising program. http://ninja-ops.ninja This program performs filtering of the input reads by various means. Compilation information (GCC): Ascribes to std=gnu99 multi-platform. Use -fopenmp ...
AUC-openmp.c
// Program: AUC-openmp // Author: Jason Regina // Date: 12 November 2015 // Description: This program approximates pi using the Riemann Sum method #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <math.h> #include <omp.h> // This function returns a y-value on a unit circle // centered at the origi...
DRB047-doallchar-orig-no.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
fib.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...
owl_slicing_basic_impl_omp.h
/* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2019 Liang Wang <liang.wang@cl.cam.ac.uk> */ #ifdef OWL_ENABLE_TEMPLATE // Level 1 optimisation void FUNCTION (c, slice_1) (struct slice_pair *p) { TYPE *x = (TYPE *) p->x; TYPE *y = (TYPE *) p->y; int d = p->dim - 1; int n = p->n[...
Stmt.h
//===- Stmt.h - Classes for representing statements -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
threading_utils.h
/*! * Copyright 2015-2019 by Contributors * \file common.h * \brief Threading utilities */ #ifndef XGBOOST_COMMON_THREADING_UTILS_H_ #define XGBOOST_COMMON_THREADING_UTILS_H_ #include <dmlc/common.h> #include <dmlc/omp.h> #include <algorithm> #include <limits> #include <type_traits> // std::is_signed #include <v...
DRB044-adi-tile-no.c
/** * adi.c: This file is part of the PolyBench/C 3.2 test suite. * Alternating Direction Implicit solver with tiling and nested SIMD. * * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://polybench.sourceforge.net * License: /LICENSE.OSU.txt */ #include "omprace.h" #include <omp.h> ...
GB_unaryop__abs_bool_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
test.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 <asse...
lloyd_parallel_partitioner.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Carlos A. Roig // #if !defined(KRATOS_LLOYD_PARA...
Example_private.2.c
/* * @@name: private.2c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success */ int a; void g(int k) { a = k; /* Accessed in the region but outside of the construct; * therefore unspecified whether original or private list * item is modified. */ } void f(int n) { int a = 0; ...
convert_ell_x_coo.c
#include "alphasparse/format.h" #include <stdlib.h> #include <alphasparse/opt.h> #include <alphasparse/util.h> #include <memory.h> #include <stdio.h> static void print_coo_s(const spmat_coo_s_t *mat) { printf("nnz:%d, cols:%d, rows:%d\n", mat->nnz, mat->cols, mat->rows); for (ALPHA_INT i = 0; i < mat->nnz; i++...
pregpu.h
#ifndef pregpu_h #define pregpu_h #include <omp.h> static size_t keysDevcSize = 0; // Size of offsets for rangeHost static size_t rangeDevcSize = 0; // Size of offsets for sourceHost static size_t sourceDevcSize = 0; // Size o...
GB_unaryop__abs_bool_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_binop__div_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
schedule.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <unistd.h> #include <time.h> struct timespec start, end; void time_start(); double time_end(); int extra_work(int n); int main(int argc, char *argv[]) { const int NX = 1000000; int nx, low, high, bias; if (argc > 1) { nx = atoi(argv[1]); } else ...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
linalg_naive.h
/* * Copyright (c) 2018-2020, NVIDIA CORPORATION. * * 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...
sieveOfErastotenes.c
/* Adaptado de: https://ideone.com/JU5CfV e https://github.com/stbrumme/eratosthenes --- Medição do tempo usando clock Erastothenes Sequencial: 5761455 / Tempo: 2.04s Erastothenes Paralelo: 5761455 / Tempo: 1.07s Speed up: 1.9 --- Medição do tempo usando comando time Erastothenes Sequencial: 1,95s user 0,03s sys...
GB_unop__one_int32_int32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
rawSHA1_fmt_plug.c
/* * This software is Copyright (c) 2004 bartavelle, <simon at banquise.net>, 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. * * Optimised set_key() and reduced binary size by magnum, 2012 ...
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)...
deprecate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_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 ...
extra_data.c
// // Created by sachetto on 01/10/17. // #include "../monodomain/config/extra_data_config.h" #include "../libraries_common/config_helpers.h" SET_EXTRA_DATA(set_extra_data_for_fibrosis_sphere) { uint32_t num_active_cells = the_grid->num_active_cells; *extra_data_size = sizeof(float)*(num_active_cells+1); ...
GB_unaryop__identity_uint64_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...
gt_mm.c
/* * PROJECT: GEM-Tools library * FILE: gt_mm.c * DATE: 01/02/2013 * AUTHOR(S): Santiago Marco-Sola <santiagomsola@gmail.com> * DESCRIPTION: * Memory Manager provides memory allocation functions. Different types of memory are supported. * - UnitMemory * Allocate relative small chunks of memory rel...
openmp_wrapper.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_OPENMP_WRAPPER_H_ #define LIGHTGBM_OPENMP_WRAPPER_H_ #ifdef _OPENMP #include <LightGBM/utils/log.h> #include <omp.h> #include <e...
decorate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
LAGraphX_bc_batch3.c
//------------------------------------------------------------------------------ // LAGraphX_bc_batch: Brandes' algorithm for computing betweeness centrality //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2019 LAGraph...
test.c
#include <stdio.h> #include "../utilities/check.h" #define N 100 int main() { check_offloading(); int a[N], aa[N]; int i, error = 0; // initialize for(i=0; i<N; i++) aa[i] = a[i] = -1; // offload #pragma omp target map(tofrom: a[0:100]) { int k, n; #pragma omp simd private(n) fo...
simulation.c
#include "rsbench.h" //////////////////////////////////////////////////////////////////////////////////// // BASELINE FUNCTIONS //////////////////////////////////////////////////////////////////////////////////// // All "baseline" code is at the top of this file. The baseline code is a simple // implementation of the ...
SeparableFilter.h
/* Copyright 2007 Niels Martin Hansen 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 License, or (at your option) any later version. This program is...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
deikstra.c
/* ============================================================================ Name : deikstra.c Author : qwinpin Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #include <t...
omp_hash_map.h
#ifndef OMP_HASH_MAP_H_ #define OMP_HASH_MAP_H_ #include <array> #include <functional> #include <memory> #include <vector> #include "omp.h" // A high performance concurrent hash map based on OpenMP. template <class K, class V, class H = std::hash<K>> class omp_hash_map { public: omp_hash_map(); ~omp_hash_map();...
convolution_sgemm_pack4to1_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_binop__iseq_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-...
task_target_device_codegen.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[ .].+[.|,]" --prefix-filecheck-ir-name _ // RUN: %clang_cc1 -no-opaque-pointers -ver...
local_pcon_basis_core.h
#ifndef _LOCAL_PCON_BASIS_CORE_OP_H #define _LOCAL_PCON_BASIS_CORE_OP_H #include <complex> #include "general_basis_core.h" #include "numpy/ndarraytypes.h" template<class I> I inline local_pcon_map_bits(I s,const int map[],const int N){ I ss = 0; for(int i=2*N;i>=0;i--){ int j = map[i]; ss ^= ( j<0 ? ((s&1)^1)<<...
ranksort.c
#include <stdio.h> #include <time.h> #include <stdlib.h> #include <time.h> #include <omp.h> void print_array(int* array, int n) { for (int i = 0; i < n; i++) printf("%d ", array[i]); printf("\n"); } int* fisher_yates_shuffle(int* random_array, int n) { int last_index = n; while(last_index-->1)...
fill_nr_3c.c
/* * Author: Qiming Sun <osirpt.sun@gmail.com> */ #include <stdlib.h> #include "config.h" #include "cint.h" #define NCTRMAX 72 static void dcopy_s1(double *out, double *in, int comp, int ni, int nij, int nijk, int di, int dj, int dk) { const size_t dij = di * dj; int ...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__identity_uint16_int16.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...
trmv_x_csr_u_hi.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t trmv_x_csr_u_hi_omp(const ALPHA_Number alpha, const ALPHA_SPMAT_CSR *A, const ALPHA_Number *x, const ...
primitives.h
#pragma once #include <vector> #include <cstdint> #include <omp.h> #include "local_buffer.h" #include "../timer.h" using namespace std; #define CACHE_LINE_ENTRY (16) #define LOCAL_BUDGET (8*1024*1024) template<typename T> void MemSetOMP(T *arr, int val, size_t size) { size_t tid = omp_get_thread_num(); si...
shmem_ctx.c
/* * Copyright (c) 2017 Intel Corporation. All rights reserved. * This software is available to you under the BSD license below: * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * - Redi...
lis_matrix_bsc.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...
signalMachine.c
#include <getopt.h> #include <string.h> #include "signalMachineUtils.h" #include "pairwiseAligner.h" #include "fasta_handler.h" #define ESTIMATE_PARAMS 1 #define ASSIGNMENT_THRESHOLD 0.1 typedef enum { full = 0, variantCaller = 1, assignments = 2, both = 3 } OutputFormat; void usage() { fprintf(...
fci_contract.c
/* * Full CI */ #include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include <assert.h> //#include <omp.h> #include "config.h" #include "vhf/fblas.h" #include "np_helper/np_helper.h" #include "fci.h" // for (16e,16o) ~ 11 MB buffer = 120 * 12870 * 8 #define STRB_BLKSIZE 112 /* * CPU ti...
test.c
#include <stdio.h> #include <omp.h> #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;}) #define ZERO(X) ZERO_ARRAY(N, X) int main(void) { check_offloading(); double A[N], B[N], C[N], D[N], E[N...
dynwave.c
//----------------------------------------------------------------------------- // dynwave.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/20/14 (5.1.001) // 03/28/14 (5.1.002) // 09/15/14 (5.1.007) // 03/19/15 (5.1.008) // 08/01/16 (5.1.011...
GB_unaryop__ainv_fp32_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
zraster.c
#include "../include/GL/gl.h" #include "../include/zbuffer.h" #include "msghandling.h" #include "zgl.h" static void gl_vertex_transform_raster(GLVertex* v) { GLContext* c = gl_get_context(); { /* no eye coordinates needed, no normal */ /* NOTE: W = 1 is assumed */ GLfloat* m = &c->matrix_model_projection.m[0]...
polybench.c
/** * polybench.c: This file is part of the PolyBench/C 3.2 test suite. * * * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://polybench.sourceforge.net */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <time.h> #include <s...
eigrp_fmt_plug.c
/* * Cracker for EIGRP (Cisco's proprietary routing protocol) MD5 + HMAC-SHA-256 authentication. * http://tools.ietf.org/html/draft-savage-eigrp-00 * * This is dedicated to Darya. You inspire me. * * This software is Copyright (c) 2014, Dhiru Kholia <dhiru [at] openwall.com>, * and it is hereby released to the g...
omp_init_lock.c
// RUN: %libomp-compile-and-run // REQUIRES: dummy #include "omp_testsuite.h" #include <stdio.h> // This should be slightly less than KMP_I_LOCK_CHUNK, which is 1024 #define LOCKS_PER_ITER 1000 #define ITERATIONS (REPETITIONS + 1) // This tests concurrently using locks on one thread while initializing new // ones on ...
main.c
// 2D lid-driven Cavity flow with explicit, central-difference projection method // See Ferziger Computational Methods for Fluid Dynamics, section 7.3.2 // Travis Burrows #include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> // Simulation Parameters #define N 25 // Number of po...
zboxloop.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) **************************************...
GB_unop__log1p_fc64_fc64.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...
bli_axpyv_bgq_int.c
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redist...
path-mpi.c
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <unistd.h> #include <mpi.h> #include "mt19937p.h" #ifdef _OPENMP #include <omp.h> #else #include <sys/time.h> #endif //ldoc on /** * # The basic recurrence * * At the heart of the method is the following basic...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
GB_binop__bor_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-...
oyranos_alpha.c
/** @file oyranos_alpha.c * * Oyranos is an open source Color Management System * * @par Copyright: * 2004-2012 (C) Kai-Uwe Behrmann * * @brief object APIs * @author Kai-Uwe Behrmann <ku.b@gmx.de> * @par License: * new BSD <http://www.opensource.org/licenses/BSD-3-Clause> * ...
IteratorTestHelper.h
/** * @file IteratorTestHelper.h * @author F. Gratl * @date 05.03.21 */ #pragma once #include <gtest/gtest.h> #include <array> #include <vector> #include "autopas/options/IteratorBehavior.h" #include "autopas/utils/ArrayMath.h" #include "autopas/utils/WrapOpenMP.h" #include "autopas/utils/inBox.h" #include "tes...
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...
GraphReconstructor.h
// // Copyright (C) 2015 Yahoo Japan Corporation // // 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 la...
opencl_sxc_fmt_plug.c
/* * Modified by Dhiru Kholia <dhiru at openwall.com> for Keychain format. * * This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net> * 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, ar...
GeneralMatrixMatrix.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 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 c...
mufunc_object.c
/* * Python Universal Functions Object -- Math for all types, plus fast * arrays math * * Full description * * This supports mathematical (and Boolean) functions on arrays and other python * objects. Math on large arrays of basic C types is rather efficient. * * Travis E. Oliphant 2005, 2006 oliphant@ee.byu....
GB_binop__remainder_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
solver.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> #include "litiv/3rdparty/ofdis/fdf/image.h" #include "litiv/3rdparty/ofdis/fdf/solver.h" #include "litiv/utils/defines.hpp" // only used here for compiler flags #if defined(_MSC_VER) #include <intrin.h> #else //(!defined(_MSC_VER)) #includ...
rnn_impl.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 ...
kmeanCPM_paralelo.c
#include <stdlib.h> #include <stdio.h> #define N 600000 //muestras #define G 200 //centroides long V[N]; long R[G]; int A[G]; void kmean(int fN, int fK, long fV[], long fR[], int fA[]) { int i, j, min, iter = 0; long dif, t; long fS[G]; int fD[N]; do { #pragma omp parallel for schedule(dynamic, 50000) fo...
primitives_inl.h
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. 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 copyright * notice,...
ep.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - EP This benchmark is an OpenMP C version of the NPB EP code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
pr35244.c
/* PR c++/35244 */ /* { dg-do compile } */ /* { dg-require-effective-target tls } */ /* { dg-options "-fopenmp" } */ int v1; typedef struct A A; typedef int i; #pragma omp threadprivate (i) /* { dg-error "expected identifier before" } */ #pragma omp threadprivate (A) /* { dg-error "expected identifier before" } */ #pr...
bfs_dijkstra.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "ompdist/utils.h" #include "ompdist/vector.h" #include "ompdist/graph.h" #include "ompdist/graph_gen.h" #include "ompdist/msr.h" #include "config.h" #define START 1 #define JOIN 2 int ROOT; typedef struct { int parent_label; int phase_discov...
q_rhashmap_mk_tid.c
/* * Copyright (c) 2019 Ramesh Subramonian <subramonian@gmail.com> * All rights reserved. * * Use is subject to license terms, as specified in the LICENSE file. */ //------------------------------------------------------ #include "q_rhashmap_common.h" #include "q_rhashmap_mk_tid.h" /* Ideally, we want to distrib...
parallel-1.c
// { dg-do compile } void foo() { int i; #pragma omp parallel { #pragma omp parallel { #pragma omp parallel { i++; } } } }
IJMatrix_parcsr.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) **************************************...
GB_unaryop__lnot_uint16_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...
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
BiCGStab.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #include <mkl_blas.h> #include <mpi.h> #include <hb_io.h> #include <vector> #include "reloj.h" #include "ScalarVectors.h" #include "SparseProduct.h" #include "ToolsMPI.h" #include "matrix.h" #include "common.h" #include "...
GB_unop__isfinite_bool_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
stepwise_tangent.h
#ifndef __MIXTURE_MODEL_OPT_STEPWISE_TANGENT_H #define __MIXTURE_MODEL_OPT_STEPWISE_TANGENT_H #include <vector> #include <functional> #include <numeric> #include <cassert> #include <atomic> #include <algorithm> #include <iomanip> #include <iostream> #include <fstream> #include <string> #include <boost/thread.hpp> #i...
declare7.c
/* Example of the inbranch and notinbranch clauses on the declare simd directive The inbranch clause tells the compiler to generate a SIMD variant of the function do mult() that must be called conditionally within a SIMD loop. The notinbranch clause on the declaration of the do pow() function tell...
SOCRSStorage.h
// // Created by iskakoff on 28/07/16. // #ifndef HUBBARD_SOCRSSTORAGE_H #define HUBBARD_SOCRSSTORAGE_H #include <vector> #include <iomanip> #ifdef _OPENMP #include <omp.h> #endif #include "Storage.h" namespace EDLib { namespace Storage { template<class ModelType> class SOCRSStorage : public Storage < typ...
3.taskloop.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include "omp.h" /* Q1: Execute the program several times and make sure you are able */ /* to explain when each thread in the threads team is actually */ /* contributing to the execution of work (tasks) generated in the */ /* taskloop. ...
DRB072-taskdep1-orig-no.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
simd-15.c
/* { dg-do run } */ /* { dg-additional-options "-msse2" { target sse2_runtime } } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ static inline void foo (int *b, int *i, int *j, int x) { *b = *b + x + (*i - *i) + (*j - *j); } int main () { int i, j, b, c = 0; i = 4; j = 4; b = 7; #pragma omp...