source
stringlengths
3
92
c
stringlengths
26
2.25M
ex_sections_par.c
/****************************************************************************** * FILE: omp_workshare2.c * DESCRIPTION: * OpenMP Example - Sections Work-sharing - C Version * In this example, the OpenMP SECTION directive is used to assign * different array operations to each thread that executes a SECTION. * AUT...
cpu.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...
OMP-Jacobi-2D-Naive-Parallel.test.c
#include <stdio.h> #include <omp.h> #include <time.h> #include <stdlib.h> //#include <unistd.h> #include <getopt.h> #include <stdbool.h> #include <ctype.h> #include <math.h> #include <assert.h> #include <stdbool.h> #include <ctype.h> bool initialized; int globalSeed; int cores; int FP_OPS_PER_ITERATION; // just used ...
solver_generic.c
/** * \file * \brief the generic integration driver for the CPU solvers * * \author Nicholas Curtis * \date 03/10/2015 * */ #include "header.h" #include "solver.h" #ifdef GENERATE_DOCS namespace generic { #endif /** * \brief Integration driver for the CPU integrators * \param[in] NUM The ...
GB_binop__first_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
uniform_grid_environment.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...
GB_unop__trunc_fp64_fp64.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...
convolution_3x3_pack16.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 ...
libgomp.h
/* Copyright (C) 2005-2018 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU Offloading and Multi Processing Library (libgomp). Libgomp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
tree-vect-data-refs.c
/* Data References Analysis and Manipulation Utilities for Vectorization. Copyright (C) 2003-2015 Free Software Foundation, Inc. Contributed by Dorit Naishlos <dorit@il.ibm.com> and Ira Rosen <irar@il.ibm.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the ...
nonnegcg.c
/* Non-negative conjugate gradient optimizer Minimizes a function subject to non-negativity constraints on all the variables, using a modified Polak-Ribiere-Polyak conjugate gradient method. Implementation is based on the paper: Li, C. (2013). A conjugate gradient type method for the nonnegative constraints opti...
code.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #define RESET "\033[0m" #define BOLDRED "\033[1m\033[31m" /* Bold Red */ #define PATH -1 #define NONE 0 #define UP 1 #define LEFT 2 #define DIAGONAL 3 void similarityScore(long long int i, long long int j, int* H, int* P, long long int* ma...
kmp_detach_tasks_t1.c
// RUN: %libomp-compile && env OMP_NUM_THREADS='3' %libomp-run // RUN: %libomp-compile && env OMP_NUM_THREADS='1' %libomp-run // REQUIRES: !abt #include <stdio.h> #include <omp.h> #include "omp_my_sleep.h" // detached untied #define PTASK_FLAG_DETACHABLE 0x40 // OpenMP RTL interfaces typedef unsigned long long kmp_u...
variable_bound_move_generator.h
/*****************************************************************************/ // Copyright (c) 2020-2021 Yuji KOGUMA // Released under the MIT license // https://opensource.org/licenses/mit-license.php /*****************************************************************************/ #ifndef PRINTEMPS_NEIGHBORHOOD_VARIA...
omp_loop_static.h
// -*- C++ -*- // Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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; eit...
temporal_method_utilities.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Suneth Warnakulasuriya (https://github.com/suneth...
dgetri.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/zgetri.c, normal z -> d, Fri Sep 28 17:38:06 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
convolutiondepthwise_5x5_pack4.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 ...
pi.c
/* * Copyright (C) 2j010 - 2015 Intel Corporation. All Rights Reserved. * * The source code contained or described herein and all * documents related to the source code ("Material") are owned by * Intel Corporation or its suppliers or licensors. Title to the * Material remains with Intel Corporation or its ...
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...
common.c
/**************************************************************************** * * * OpenMP MicroBenchmark Suite - Version 3.1 * * * * ...
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...
blake2sp-ref.c
/* BLAKE2 reference source code package - reference C implementations Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at your option. The terms of these licenses can be found at: - CC0 1.0 Univers...
blackscholes.c
// Copyright (c) 2007 Intel Corp. // Black-Scholes // Analytical method for calculating European Options // // // Reference Source: Options, Futures, and Other Derivatives, 3rd Edition, // Prentice // Hall, John C. Hull, #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #ifdef ENABLE_PARS...
sync.c
#include "pyactpol.h" #include <gsl/gsl_linalg.h> /* sync.c * * scan-synchronous mode fitting and removal. */ static int fit_poly(float *x, double *y, int n, int order, int samp, double *fit); static int fit_sine(double *t, double *y, int n, double f, double *fit, double *coe...
nbody-block.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "timer.h" #define CACHELINE 64 // size of cache line [bytes] #define SOFTENING 1e-9f typedef struct { float *x, *y, *z, *vx, *vy, *vz; } BodySystem; void randomizeBodies(float *data, int n) { for (int i = 0; i < n; i++) { data[i] = 2.0f * (rand(...
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> ...
residualbased_linear_strategy.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // // #if !defined(KRATOS_RESIDUA...
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...
mode_op.h
/* Copyright (c) 2021 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...
pqpmesh.h
#ifndef GCOP_PQPMESH_H #define GCOP_PQPMESH_H #include "PQP.h" #include <assert.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <iostream> #include <fstream> #include <vector> #include <tf/LinearMath/Transform.h> /** * Load a STL Mesh into PQP Model * Currently Uses tf but can be replaced by ...
convolution_1x1_int8.h
// SenseNets is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2018 SenseNets Technology Ltd. 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 of t...
example_07-StructOfArrays-CellLinkedList-InnerOmp-SIMD.c
/* * SPDX-License-Identifier: BSD-3-Clause * * example_07-StructOfArrays-CellLinkedList-InnerOmp-SIMD.c : * Example of SPH Density Calculation using * fast neighbor search the main density loop via * Cell Linked List method, Struct of Arrays (SoA) * data layout, OpenMP parallelization at...
expected_output.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <polybench.h> #include "gemm.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 */ /*gem...
tensor_cpu-inl.h
/*! * Copyright (c) 2014 by Contributors * \file tensor_cpu-inl.h * \brief implementation of CPU host code * \author Bing Xu, Tianqi Chen */ #ifndef MSHADOW_TENSOR_CPU_INL_H_ #define MSHADOW_TENSOR_CPU_INL_H_ #include <cstring> #include <functional> #include <utility> #include <vector> #include "./base.h" #includ...
tilecorr.h
void tilecorr() { int c0,c1,c2,c3,c5,c6,c7,c9,c11,c10,c4,c12; for( c1 = 1; c1 < N + floord(N - 2, 128); c1 += 1) #pragma omp parallel for schedule(dynamic, 1) for( c3 = max(0, -N + c1 + 1); c3 <= (c1 - 1) / 129; c3 += 1) for( c4 = 0; c4 <= 1; c4 += 1) { if (c4 == 1) { for( c9 = N - c1 + 129 * c3...
aalloc.c
#include "aalloc.h" fint salloc2_(const fnat m[static restrict 1], const fnat n[static restrict 1], float **const restrict A, fnat ldA[static restrict 1]) { if (A) *A = (float*)NULL; *ldA = 0u; if (!*m) return 0; if (!*n) return 0; const fnat k = *m & VSL_1; *ldA = (k ? (*m + (VSL - k)) : *m);...
fixed_size_vector.h
// ----------------------------------------------------------------------------- // // Copyright (C) 2021 CERN & University of Surrey 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...
rmse.c
/*************************************************************************/ /** File: rmse.c **/ /** Description: calculate root mean squared error of particular **/ /** clustering. **/ /** Author: Sang-Ha Lee **/ /** University of Virginia....
couple_waves.c
/* * couple_waves.c * * Couple 3 waves contained in C99 complex arrays. * */ #include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif #include "mytypes.h" #include "light.h" #include "pf3dbench.h" #include "util.h" #include "runparm.h" #include "pf3dbenchvars.h" void couple_z(rcomplex * restrict t0, rcomple...
current.c
/*--------------------------------------------------------------------------------- CURRENT.C -Calculate current from fluid variables -----------------------------------------------------------------------------------*/ #include "decs.h" double gFcon_calc(struct GridGeom *G, struct FluidState *S, int mu, int...
problem.p4.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
header.h
/*-------------------------------------------------------------------- c--------------------------------------------------------------------- c c header.h c c--------------------------------------------------------------------- c-------------------------------------------------------------------*/ /*---------------...
irbuilder_for_unsigned_static_chunked.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -no-opaque-pointers -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=45 -x c++ -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected...
paralelo.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <assert.h> #include <omp.h> #define NUM_THREADS 64 #define NUM_REP 100 void heap_sort(int *vet, int N); void cria_heap(int *vetor, int i, int f); int main() { int *vetor, menu, tamanho_vetor, sair = 0, aleatorio = 0; double tempo_medi...
ctrans.c
/* * Copyright (c) 2014, Brookhaven Science Associates, Brookhaven * National Laboratory. 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 t...
GB_binop__atan2_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-...
openmp.h
/** control OpenMP on the cmd line: set OMP_NUM_THREADS = 16 */ #pragma once #ifdef OPENMP_FOUND #include <omp.h> #include "sequentiell.h" #include "sse.h" #include "intrinsics_helper.h" namespace mandel { template<typename FLOAT_TYPE, typename RESULT_TYPE, typename PIXEL_TYPE = Pixel<FLOAT_TYPE>, typename TRAN...
normalize_ref.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...
cmontecarlo.c
#include <inttypes.h> #ifdef WITHOPENMP #include <omp.h> #endif #include "cmontecarlo.h" /** Look for a place to insert a value in an inversely sorted float array. * * @param x an inversely (largest to lowest) sorted float array * @param x_insert a value to insert * @param imin lower bound * @param imax upper bou...
bml_threshold_ellsort_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_parallel.h" #include "../bml_threshold.h" #include "../bml_types.h" #include "bml_allocate_ellsort.h" #include "bml_threshold_ellsort.h" #include "bml_types_ellsort.h" #include <complex.h> #include <math.h> #include <stdli...
mixedup_linear_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #if !defined(KRATOS_MIXEDUP_SO...
calcCondQB.c
#include <mex.h> #include <math.h> #include <stdlib.h> #include <time.h> #include <string.h> int min(int A, int B) { if (A < B) { return A; } else { return B; } } int max(int A, int B) { if (A > B) { return A; } else { return B; } } void mexFunction(int nlhs, mx...
test_SCF_lastD.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <omp.h> #include "TinyDFT.h" #include "TinyDFT_typedef.h" #include "H2ERI.h" #include "utils.h" // In H2Pack void TinyDFT_copy_shells_to_H2ERI(TinyDFT_p TinyDFT, H2ERI_p h2eri) { h2eri->natom ...
detector.c
#include "darknet.h" static int coco_ids[] = {1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,70,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90}; void train_detector(char *datacfg, cha...
app_main.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "bmp_interface.h" #include <omp.h> extern int __htc_get_unit_count(); extern int global_radius; int app_main(int argc, char **argv) { uint32_t bufsize = 1000; // Allocate target temp buffer. extern void *stencil_cp_alloc(size_t); u...
ab-totient-omp-14.c
// Distributed and parallel technologies, Andrew Beveridge, 03/03/2014 // To Compile: gcc -Wall -O -o ab-totient-omp -fopenmp ab-totient-omp.c // To Run / Time: /usr/bin/time -v ./ab-totient-omp range_start range_end #include <stdio.h> #include <omp.h> /* When input is a prime number, the totient is simply the prim...
DRB058-jacobikernel-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...
mesonfield_compute_impl.h
//Meson field computation code #ifndef _MESONFIELD_COMPUTE_IMPL #define _MESONFIELD_COMPUTE_IMPL //For all mode indices l_i and r_j, compute the meson field \sum_p l_i^\dagger(p,t) M(p,t) r_j(p,t) //It is assumed that A2AfieldL and A2AfieldR are Fourier transformed field containers //M(p,t) is a completely general m...
cpu_ctc.h
#pragma once #include <tuple> #include <cmath> #include <limits> #include <algorithm> #include <numeric> #if !defined(CTC_DISABLE_OMP) && !defined(APPLE) #include <omp.h> #endif #include "ctc_helper.h" template<typename ProbT> class CpuCTC { public: // Noncopyable CpuCTC(int alphabet_size, int minibatch, v...
DeclOpenMP.h
//===- DeclOpenMP.h - Classes for representing OpenMP directives -*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===--------------------------...
soxr.c
/* SoX Resampler Library Copyright (c) 2007-18 robs@users.sourceforge.net * Licence for this file: LGPL v2.1 See LICENCE for details. */ #include <math.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "soxr.h" #include "data-io.h" #include "internal.h" #if AVUTIL_FOUND #...
DRB014-outofbounds-orig-yes.c
// RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s /* 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@lln...
bmm_em.c
#include "bmm_em.h" #include "float.h" #include "Rinternals.h" #include "R.h" #include <omp.h> void free_bmm_em_result(bmm_em_result* x) { free(x->pis); for (int k = 0; k < x->K; k++) { free(x->protos[k]); } free(x->protos); free(x->cluster); } bmm_em_result em(Dataset* ds, int K, int max_iter, i...
fixed_size_vector.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...
bezier_post_utility.h
// // Project Name: Kratos // Last Modified by: $Author: hbui $ // Date: $Date: 2013-10-12 $ // Revision: $Revision: 1.0 $ // // #if !defined(KRATOS_BEZIER_POST_UTILITY_H_INCLUDED ) #define KRATOS_BEZIER_POST_UTILITY_H_INCLUDED // System includes #include <string> #include...
testing_dtrmm.c
/** * * @file testing_dtrmm.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Mathieu Faverge * @date 2010-11-15 * @generated d Tue Jan 7 11:45:19 2014 * **/ #include <std...
GB_binop__second_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
DRB096-doall2-taskloop-collapse-orig-no.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...
GB_unop__log1p_fc32_fc32.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...
DRB005-indirectaccess1-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...
cleaned_t_b_all.c
/** F.H.P.C. Assingment 2 @file cleaned_t_b_all_option_2.cc @brief All threads fill the array and perform the sum. @author Pietro Morichetti @date 17/12/2019 @version 1.1 */ #include <stdlib.h> #include <stdio.h> #include <omp.h> #define _GNU_SOURCE #define N 10000000 // size of the problem int main(...
graph_index.h
#ifndef YANNSA_GRAPH_INDEX_H #define YANNSA_GRAPH_INDEX_H #include "yannsa/base/type_definition.h" #include "yannsa/base/error_definition.h" #include "yannsa/base/constant_definition.h" #include "yannsa/util/sorted_array.h" #include "yannsa/util/parameter.h" #include "yannsa/util/logging.h" #include "yannsa/util/lock...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
push_relabel_segment.h
// // Created by Jan Groschaft on 2/1/19. // /* * Parallel implementation of push-relabel algorithm, divides the network into multiple segments. */ #ifndef MAXFLOW_GOLDBERG_CR_H #define MAXFLOW_GOLDBERG_CR_H #include "../../common_types.h" #include "../../data_structures/linked_list.h" #include "../../data_structu...
right_synch_p2p_dataflow.c
/* * This file is part of a small series of tutorial, * which aims to demonstrate key features of the GASPI * standard by means of small but expandable examples. * Conceptually the tutorial follows a MPI course * developed by EPCC and HLRS. * * Contact point for the MPI tutorial: * rabenseifner@...
pf3dbenchvars.h
#include "mytypes.h" /* Storage for these variables needs to be allocated ONCE on the host. In the file responsible for allocating storage, define __parm_init__. */ #ifdef __parm_init__ #define EXTERN #else #define EXTERN extern #endif #ifndef _PF3DBENCHVARS_H_ #ifdef OMP45 #pragma omp declare target #endif ...
GB_binop__first_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
par_relax.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) **************************************...
tentusscher_epi_2004_S2_2.c
#include <assert.h> #include <stdlib.h> #include "tentusscher_epi_2004_S2_2.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); 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...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
kdtree_index.h
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * * THE BSD LICENSE * * Redistribution an...
transposed_spmv.h
/* * Copyright 2014-2015 The University of Queensland * http://www.uq.edu.au * * 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 ...
device_ptr_update.c
// RUN: %libomptarget-compile-generic // RUN: env LIBOMPTARGET_DEBUG=1 %libomptarget-run-generic 2>&1 \ // RUN: | %fcheck-generic -check-prefix=DEBUG -check-prefix=CHECK // REQUIRES: libomptarget-debug #include <stdio.h> struct S { int *p; }; int main(void) { int A[10]; struct S s1; s1.p = A; // DEBUG: U...
DRB002-antidep1-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...
backprop.c
/* ****************************************************************** * HISTORY * 15-Oct-94 Jeff Shufelt (js), Carnegie Mellon University * Prepared for 15-681, Fall 1994. * Modified by Shuai Che ****************************************************************** */ #include <omp.h> #include <stdio.h>...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
optimizer.c
/* Copyright 2014-2018 The PySCF Developers. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requi...
spmspv.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
cwa_smd.h
#ifndef METHODS_CWA_SMD_H #define METHODS_CWA_SMD_H namespace method { namespace cwa_smd { namespace details { template<typename Function> auto expectation(const Function & function, const arma::mat & points, const arma::vec & weights, const arma::vec & scaling) { ...
pooling_2x2.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 ...
mat_mul_p4a_7000.c
/* * file for mat_mul.c */ #include "./mat_mul.h" #include "./size.h" void mat_mul(int *a, int *b, int *c); void mat_mul(int *a, int *b, int *c) { int i, j, k, t; #pragma omp parallel for private(j, t, k) for(i = 0; i <= 6999; i += 1) for(j = 0; j <= 6999; j += 1) { c[i*7000+j] = 0; for...
MzXMLHandler.h
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
densemat_cm.c
#define _XOPEN_SOURCE 500 #include "ghost/config.h" #include "ghost/types.h" #include "ghost/core.h" #include "ghost/datatransfers.h" #include "ghost/densemat_cm.h" #include "ghost/util.h" #include "ghost/locality.h" #include "ghost/context.h" #include "ghost/instr.h" #include "ghost/machine.h" #include "ghost/log.h" ...
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 // //===---------------------------...
cs-enforcer.c
int main() { int X; #pragma omp parallel { int i; #pragma omp sections { #pragma omp section X = X + 1; #pragma omp section X = X - 1; #pragma omp section for (i = 0; i < 10; i++) X++; } } }
mainRT.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #include "blake.h" #include "createRT.h" int main(int argc, char **argv) { size_t rainbow_size = (argc == 2) ? atoi(argv[1]) : RAINBOW_SIZE; rainbow_size = (rainbow_size > 0) ? rainbow_size : RAINBOW_SIZE; srand((unsigned) time(NULL...
convolution_1x1_pack8to4_int8.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 ...
atomic_write_codegen.c
// RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -target-cpu core2 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c -triple x86_64-apple-darwin10 -target-cpu core2 -emit-pch -o %t %s // RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c -tri...
fs_csr_executor.h
void fs_csr_executor (int n, int* rowPtr, int* colIdx, double* val, double *b, double *x, int levels, int *levelPtr, int *levelSet, int chunk){ for (int l = 0; l < levels; ++l) { int li=0; #pragma omp parallel for default(shared) private(li) schedule(auto) for ( li = levelPtr[l]; li < levelPtr[...