source
stringlengths
3
92
c
stringlengths
26
2.25M
csr_matvec_oomp.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) **************************************...
UpdateCombinedNeighboursWorklet.h
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
GB_unaryop__ainv_int8_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
atomic_messages.c
// RUN: %clang_cc1 -verify=expected,omp45 -fopenmp -fopenmp-version=45 -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -DOMP51 -verify=expected,omp50,omp51 -fopenmp -fopenmp-version=51 -ferror-limit 100 %s -Wuninitialized /...
feature_group.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_FEATURE_GROUP_H_ #define LIGHTGBM_FEATURE_GROUP_H_ #include <LightGBM/bin.h> #include <LightGBM/meta.h> #include <LightGBM/utils/ra...
matrix_arithmetic.h
/*************************************************************************** * include/stxxl/bits/containers/matrix_arithmetic.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2010-2011 Raoul Steffen <R-Steffen@gmx.de> * * Distributed under the Boost Software License, Version 1.0. ...
activations.c
#include "activations.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_activation_string(ACTIVATION a) { switch(a){ case LOGISTIC: return "logistic"; case LOGGY: return "loggy"; case RELU: return "relu"; c...
paint.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
SparseDenseProduct.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2015 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...
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) ...
GB_unop__identity_int32_int16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
convolutiondepthwise_5x5.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2018 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__islt_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...
7132.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
DarthTon.h
#ifndef DARTHTON_H #define DARTHTON_H // Boyer-Moore-Horspool with wildcards implementation void FillShiftTable( const uint8_t* pPattern, size_t patternSize, uint8_t wildcard, size_t* bad_char_skip ) { size_t idx = 0; size_t last = patternSize - 1; // Get last wildcard position for (idx = last; idx > ...
ParallelOpenMP.h
#pragma once #include <atomic> #include <cstddef> #include <exception> #ifdef _OPENMP #define INTRA_OP_PARALLEL #include <omp.h> #endif namespace at { #ifdef _OPENMP namespace internal { template <typename F> inline void invoke_parallel( int64_t begin, int64_t end, int64_t grain_size, const F& f) {...
parallel_linearSys_pipeline.c
#include <stdio.h> #include <omp.h> #include <stdlib.h> #include <string.h> #include <time.h> void printMatrix(double** matrix, int n, FILE *fp) { if (fp != NULL) { for (int i = 0; i < n; i++) { for (int j = 0; j < n+1; j++) { fprintf(fp, "%f, ",matrix[i][j]); } ...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
ast-dump-openmp-teams-distribute-parallel-for-simd.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target #pragma omp teams distribute parallel for simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp...
scene.h
// // Created by xiaoc on 2018/10/8. // #ifndef PATH_TRACER_SCENE_H #define PATH_TRACER_SCENE_H #include <vector> #include <exception> #include <iostream> #include "renderobject.h" #include "util.h" #include "lib/rand48/erand48.h" #include "fmt/format.h" #include "lib/lodepng/lodepng.h" #include "kdtree.h" class Pa...
GB_unaryop__minv_int16_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...
GB_unaryop__ainv_int32_int16.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__lor_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...
api_calls.c
// RUN: %libomp-compile && env OMP_PLACES=cores %libomp-run | FileCheck %s // REQUIRES: ompt, linux #include "callback.h" #include <omp.h> #define __USE_GNU #include <sched.h> #undef __USE_GNU void print_list(char* function_name, int list[]) { printf("%" PRIu64 ": %s(0)=(%d", ompt_get_thread_data()->value, function_...
genetic.c
#include <time.h> #include <float.h> #include <stdio.h> #include <limits.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define TARGET 81 #define POPULATION 200 #define KEEPSIZE 4 #define BREEDSIZE 10 #define REGENSIZE 5 #define SCALE 10 #define DX(i) ((int)((0x0489a621UL >> (4 * (i...
for.c
#include <stdio.h> #include <omp.h> int main() { omp_set_num_threads(4); /* The code below represents how to use for loop without the for directive */ int i = 0; // 4 threads will be created // ID : 0 will execute i=0-2 // ID : 1 will execute i=3-5 // ID : 2 will execute i=6-8 // ID : 3 will exec...
fig4.3-parallel-region.c
/* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 2009 Sun Microsystems, Inc. All rights reserved. The contents of this file are subject to the terms of the BSD License("BSD")(the "License"). You can obtain a copy of the License at: http://www.opensparc.net/pubs/t1/licenses/BSD+_Lice...
convolution_1x1_pack8to4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 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 ...
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) #...
backprop.c
/* ****************************************************************** * HISTORY * 15-Oct-94 Jeff Shufelt (js), Carnegie Mellon University * Prepared for 15-681, Fall 1994. * Modified by Shuai Che ****************************************************************** */ #ifdef OPEN #include <omp.h> #endif ...
GB_unaryop__abs_bool_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
783.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <...
dataset.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_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <LightGBM/meta.h> ...
core_histogram.h
#pragma once #include "util/serialization/pretty_print.h" #include "util.h" #include <cassert> #include <vector> template<typename T> void core_val_histogram(int n, T &core, bool is_print = false, int num_bins = 5) { assert(num_bins >= 1); // core-value histogram int max_core_val = 0; vector<int32_t>...
task_barrier.c
//===-- task_barrier.c - Example for tasks and "barrier"s ---------*- C -*-===// // // Part of the LOMP 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 // //===---------------------------...
02_loop_decompose_1.c
#include <stdio.h> #include <omp.h> #define MAX_ITS 10000 int main() { int nproc, i, sum; nproc = omp_get_max_threads(); int its_per_proc[nproc]; for (i = 0; i< nproc; ++i){ its_per_proc[i] = 0; } #pragma omp parallel #pragma omp for for (i = 0; i< MAX_ITS; ++i){ its_per_proc[omp_get_thread_num(...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__lnot_int32_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
protocol.h
#ifndef __PROTOCOL_H_ #define __PROTOCOL_H_ #include "gwasiter.h" #include "mpc.h" #include "util.h" #include <vector> #include <NTL/mat_ZZ_p.h> #include <NTL/mat_ZZ.h> #include <NTL/ZZ.h> #include <NTL/BasicThreadPool.h> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <chrono>...
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
ZQ_CNN_MTCNN.h
#ifndef _ZQ_CNN_MTCNN_H_ #define _ZQ_CNN_MTCNN_H_ #pragma once #include "ZQ_CNN_Net.h" #include "ZQ_CNN_BBoxUtils.h" #include <omp.h> namespace ZQ { class ZQ_CNN_MTCNN { public: using string = std::string; ZQ_CNN_MTCNN() { min_size = 60; thresh[0] = 0.6; thresh[1] = 0.7; thresh[2] = 0.7; nms_thr...
test.c
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <math.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (957*3) #define ZERO(X) ZERO_ARRAY(N, X) #define INIT() { \ INIT_LOOP(N, { \ ...
residualbased_newton_raphson_strategy.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #if !defined(KRATOS_RESIDUALB...
nodal_two_step_v_p_strategy_for_FSI.h
// // Project Name: KratosPFEMFluidDynamicsApplication $ // Last modified by: $Author: AFranci $ // Date: $Date: June 2018 $ // Revision: $Revision: 0.0 $ // // #ifndef KRATOS_NODAL_TWO_STEP_V_P_STRATEGY_FOR_FSI_H #defi...
GB_binop__pow_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
make_superphotons.c
/****************************************************************************** * * * MAKE_SUPERPHOTONS.C * * * ...
viscosity_kernel_c.c
/*Crown Copyright 2012 AWE. * * This file is part of CloverLeaf. * * CloverLeaf is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your option) * any later version. * * Clo...
GB_memset.c
//------------------------------------------------------------------------------ // GB_memset: parallel memset //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 //-----...
expected_output.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <polybench.h> #include "deriche.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 */ /*...
DRACC_OMP_036_SAXPY_without_Task_Dependency_yes.c
/* SAXPY without dependencies between the addition and multiplication task. */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #define C 20000 float a; float x[C]; float y[C]; int init(){ for(int i=0; i<C; i++){ a=5; x[i]=0; y[i]=3; } return 0; } int saxpy(){ ...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
morn_tensor.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...
7949.c
// this source is derived from CHILL AST originally from file '/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c' as parsed by frontend compiler rose void kernel_heat_3d(int tsteps, int n, double A[120 + 0][120 + 0][120 + 0], double B[120 + 0][120 + 0][120 + 0])...
ntlmv1_mschapv2_fmt_plug.c
/* * Previous files MSCHAPv2_fmt_plug.c and NETNTLM_fmt_plug.c now merged into * this one file, sharing functions. * * NETNTLM_fmt.c -- NTLM Challenge/Response * Written by JoMo-Kun <jmk at foofus.net> in 2007 * and placed in the public domain. * * This algorithm is designed for performing brute-force cracking ...
GB_binop__pair_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-...
brickcompare.h
/** * @file * @brief Compare content from bricks with arrays */ #ifndef BRICK_BRICKCOMPARE_H #define BRICK_BRICKCOMPARE_H #include <iostream> #include <cmath> #include "bricksetup.h" #include "cmpconst.h" extern bool compareBrick_b; ///< Thread-private comparison accumulator #pragma omp threadprivate(compare...
mixed_tentusscher_myo_epi_2004.c
#include <stdio.h> #include "mixed_tentusscher_myo_epi_2004.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } SET_ODE_INITIAL_CONDITIONS_CPU(set_model_initial_conditions_cpu) { log_...
pmv-OpenMP-reduction.c
// Compilar con -O2 y -fopenmp #include <stdlib.h> #include <stdio.h> #include <omp.h> int main(int argc, char** argv){ int i, j, f, c; double t1, t2, total; srand(time(NULL)); //Leer argumento de entrada (no de componentes del vector) if (argc<2){ printf("Falta tamaño de matriz y vector\n"); exit(-1); } ...
mish_kernel_arm.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 ma...
pruned_landmark_labeling.h
#ifndef PRUNED_LANDMARK_LABELING_H_ #define PRUNED_LANDMARK_LABELING_H_ #include <malloc.h> #include <stdint.h> #include <xmmintrin.h> #include <sys/time.h> #include <climits> #include <iostream> #include <sstream> #include <string> #include <vector> #include <stack> #include <queue> #include <set> #include <algorith...
convolutiondepthwise_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 ...
viter.c
/* © 2011-2015 by Kornel Lesiński. This file is part of libimagequant. libimagequant is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. libim...
ccl_massfunc.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_interp.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_errno.h> #include "ccl.h" /*----- ROUTINE: dc_NakamuraSuto ----- INPUT: cosmology, scale factor TASK: Computes the peak threshold: d...
kernels.h
#ifndef _CUBIC_BSPLINE_PREFILTER_KERNEL_H_ #define _CUBIC_BSPLINE_PREFILTER_KERNEL_H_ // The code below is based on the work of Philippe Thevenaz. // See <http://bigwww.epfl.ch/thevenaz/interpolation/> #define POLE (sqrtf(3.0f)-2.0f) //pole for cubic b-spline typedef unsigned int uint; typedef unsigned char uchar;...
GB_unop__cimag_fp32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
residual_based_adjoint_static_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: // #if !defined(KRATOS_RESIDUAL_BASED_ADJOINT_STATI...
Random-Search.c
/* Author: Makarios Christakis Description: Parallel implementation of the random search algorithm for the travelling salesman problem. For the parameters below the algorithm converged to: Final total distance: 489587.66 Timed using time() on a 7th gen i7, Ubuntu 18.04 machine we get: real 1m34,568s user 1m...
openmp_exemplo.c
/****************************************************************************** * FILE: mm.c * DESCRIPTION: * Matrix Multiply - C Version * Modified from Blaise Barney OpenMP code. ******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <omp.h>...
SoaDistanceTableAB.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Jeongnim ...
GB_unop__minv_fp32_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
GB_unaryop__ainv_int16_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...
9494.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <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) **************************************...
facedist.c
/* Generated by Cython 0.24 */ #define PY_SSIZE_T_CLEAN #include "Python.h" #ifndef Py_PYTHON_H #error Python headers needed to compile C extensions, please install development version of Python. #elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000) #error Cython re...
integrate.c
/* * integrate.c: Example of numerical integration in OpenMP. * * (C) 2015 Mikhail Kurnosov <mkurnosov@gmail.com> */ #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> const double PI = 3.14159265358979323846; const double a = -4.0; const double b = 4.0; const int nsteps = 40000000; doub...
integral_loop.c
#include<stdio.h> #include<omp.h> static long num_steps = 100000; double step; int main(){ int i; double x, pi, sum = 0.0, init_time, finish_time; step = 1.0 / (double)num_steps; init_time = omp_get_wtime(); #pragma omp parallel for reduction(+: sum, x) for (i=0; i<num_steps; i++){ x = (i+0.5)*step; sum =...
FGP_dTV_core.c
/* This work is part of the Core Imaging Library developed by Visual Analytics and Imaging System Group of the Science Technology Facilities Council, STFC Copyright 2017 Daniil Kazantsev Copyright 2017 Srikanth Nagella, Edoardo Pasca Licensed under the Apache License, Version 2.0 (the "License"); you may not use this...
builder.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef BUILDER_H_ #define BUILDER_H_ #include <algorithm> #include <parallel/algorithm> #include <cinttypes> #include <fstream> #include <functional> #include <type_traits> #include <utility> #include ...
GB_binop__minus_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
level2.c
#include <stdlib.h> #include "blas.h" #include "../bib.h" #include "../cdefs.h" #define BLOCKSIZE 8 // TODO check cache line explicitly // Copy lower triangle to upper static inline void symmetrize(const len_t n, double *restrict x) { // #pragma omp parallel for default(none) shared(x) schedule(dynamic, 1) if(n>...
ext.c
#include <openssl/sha.h> #include <openssl/md5.h> #include "ruby.h" #include <stdint.h> #include <assert.h> #include <stdlib.h> #include <mm_malloc.h> struct search_condition { unsigned char (*hash)(const unsigned char *d, size_t n, unsigned char *md); size_t md_len; unsigned char * restrict mask; unsigned cha...
MedianFilt_core.c
/* This works has been developed at Diamond Light Source Ltd. * * Copyright 2020 Daniil Kazantsev * * 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 ...
GB_binop__lxor_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...
opmphm.c
/** * @file * * @brief The Order Preserving Minimal Perfect Hash Map C benchmark. * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ // ==== DEFINE SECTION ==== #define _GNU_SOURCE #define KDBRAND_BENCHMARK // allows the seed injection into Elektra // uncomment to use OPENMP and set USE...
dnnl_common.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 ...
statistic.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
openmp.c
/* * x86_64-apple-darwin13.4.0-clang -isystem ${CONDA_PREFIX}/include * -fopenmp * openmp.c -o bin/openmp * */ #include <omp.h> #include <stdio.h> int main() { int nthreads = omp_get_max_threads(); printf("Maximum number of threads is %i\n", o...
GB_binop__bshift_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-...
atomic-3.c
int foo (int x) { int v; #pragma omp atomic read v= x; #pragma omp atomic capture v= x--; return v; } int main (void) { int a, b, c; #pragma omp parallel { #pragma omp atomic write a=1; #pragma omp atomic update a++; } return 0; }
multind.c
/* Copyright 2013-2015 The Regents of the University of California. * Copyright 2016-2020. Uecker Lab. University Medical Center Göttingen. * Copyright 2017. Intel Corporation. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: ...
generator_spgemm_csr_asparse.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
devoir5.c
/////////////////////////////// 8INF854 - ARCHITECTURES PARRALLELES - DEVOIR #5 //////////////////////////////////////// //////////////////////////////// recherche cycle hamitonien - Corentin RAOULT ////////////////////////////////////////// #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #...
box_coder_op.h
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag...
GB_unaryop__lnot_uint16_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...
rom_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // ...
generator_gemm_common.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
pixel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
core_zttmqr.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> c d s * **/ #include <plasma_core_blas.h> #include "plasma_types.h" #include "plasma_internal.h" #include "core_lapack.h" #include <omp.h> /*************...