source
stringlengths
3
92
c
stringlengths
26
2.25M
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_1x1_pack8.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
DRB001-antidep1-orig-yes.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
GB_unaryop__lnot_int32_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
threading.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_UTILS_THREADING_H_ #define LIGHTGBM_UTILS_THREADING_H_ #include <LightGBM/meta.h> #include <LightGBM/utils/common.h> #include <L...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
cp-tree.h
/* Definitions for C++ parsing and type checking. Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. GCC is free software; you can redistribu...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
sw4.gold.h
#define tf (3.0/4) #define i6 (1.0/6) #define i144 (1.0/144) #define i12 (1.0/12) #define c1 (2.0/3) #define c2 (-(1.0/12)) #define a1 (1.0/31) void sw4_gold (double *uacc_in_0, double *uacc_in_1, double *uacc_in_2, double *u_in_0, double *u_in_1, double *u_in_2, double *mu_in, double *la_in, double *met_in_0, double ...
GB_unop__abs_uint8_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_binop__bxnor_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
hmacMD5_fmt_plug.c
/* * This software is Copyright (c) 2010 bartavelle, <bartavelle at bandecon.com> * and (c) magnum 2011-2015, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, are permitted. */ #if FMT_EXTERNS_H exter...
DenseVector.h
//================================================================================================= /*! // \file blaze/math/smp/openmp/DenseVector.h // \brief Header file for the OpenMP-based dense vector SMP implementation // // Copyright (C) 2013 Klaus Iglberger - All Rights Reserved // // This file is part of th...
1d.pluto-par.512.c
#include <stdio.h> #include <sys/time.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)) #define T TVAL #define N NVAL #define coeff1 0.5 #define coef...
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- 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 // //===---------------------------...
relic_core.c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2013 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
cg_precond_jacobi.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include "nb/memory_bot.h" #include "nb/solver_bot/sparse/sparse.h" #include "nb/solver_bot/sparse/solvers/cg_precond_jacobi.h" #include "../sparse_struct.h" int nb_sparse_solve_CG_precond_Jacobi (const nb_sparse_t *cons...
PoW.c
// Copyright (c) 2016-2018 The Ulord Core Foundation #include "PoW.h" #include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <assert.h> #ifndef MAC_OSX #include <omp.h> #endif #include "my_time.h" #include "common.h" #include "my_rand48_r.h" #include "oneWayFunction.h...
Example_target_defaultmap.1.c
/* * @@name: target_defaultmap.1.c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_5.0 */ #include <stdlib.h> #include <stdio.h> #define N 2 int main(){ typedef struct S_struct { int s; int A[N]; } S_struct_t; int s; //scalar int variable...
GB_unaryop__lnot_int8_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
8581.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/fdtd-2d/kernel.c' as parsed by frontend compiler rose void kernel_fdtd_2d(int tmax, int nx, int ny, double ex[1000 + 0][1200 + 0], double ey[1000 + 0][1200 + 0], doub...
opencl_keyring_fmt_plug.c
/* * This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net>, * Copyright (c) 2012 Dhiru Kholia <dhiru at openwall.com> and * Copyright (c) 2012-2014 magnum * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or witho...
neuralClasses.h
#pragma once #include <iostream> #include <fstream> #include <algorithm> #include <cassert> #include <cmath> #include <vector> #include <boost/unordered_map.hpp> #include <Eigen/Dense> #include "maybe_omp.h" #include "util.h" #include "graphClasses.h" #include "USCMatrix.h" // classes for various kinds of layers #i...
GB_binop__div_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
CALPHADConcSolverBinaryThreePhase.h
#ifndef included_CALPHADConcSolverBinaryThreePhase #define included_CALPHADConcSolverBinaryThreePhase #include "NewtonSolver.h" #include "datatypes.h" namespace Thermo4PFM { class CALPHADConcSolverBinaryThreePhase : public NewtonSolver<3, CALPHADConcSolverBinaryThreePhase, JacobianDataType> { public: #i...
DRB101-task-value-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...
sectionsModificado.c
#include <stdio.h> #include <omp.h> void funcA() { printf("En funcA: esta sección la ejecuta el thread %d\n", omp_get_thread_num()); } void funcB() { printf("En funcB: esta sección la ejecuta el thread %d\n", omp_get_thread_num()); } int main(int argc, char ** argv) { #pragma omp parallel sections { #prag...
DelayedUpdate.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2019 QMCPACK developers. // // File developed by: Ye Luo, yeluo@anl.gov, Arg...
ast-dump-openmp-begin-declare-variant_10.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify -ast-dump %s | FileCheck %s --check-prefix=C // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify -ast-dump %s -x c++| FileCheck %s --check-prefix=CXX // expected-no-diagnostics #ifdef __cplusplus #define CONST constexpr #else #defi...
nest_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { //need to use an OpenMP construct so that OMPT will be initalized #pragma omp parallel num_threads(1) print_ids(0); omp_nest_lock_t nest_lock; printf("%" PRIu64 ": &nest_lock: %lli\n", ompt...
iter_helper.h
#pragma once #include "util/graph/graph.h" #include "util/timer.h" #include "util/log/log.h" #include "util/search/search_util.h" #include "util/stat.h" #include "pkt_support_update_utils.h" #include "parallel_all_edge_cnc.h" #include "iter_stat_helper.h" #include "extern_variables.h" #define V_BUFF_SIZE (4096) #def...
metatron.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <omp.h> typedef struct { long long int re; long long int im; } com; typedef struct { com x; com y; } PO; typedef struct { unsigned int p; unsigned int e2; unsigned int e3; unsigned int xQ20; unsigned int xQ21;...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
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) ...
engalmod.c
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /** @file engalmod.c @brief c-routines for function calls from Fortran in an enhanced galmod environment This module contains two functions that provide a very specialised chisquare evaluation when comparing an observed cube with a c...
ctl_list.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__bset_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
mpi-openmp.c
#include <stdio.h> #include <mpi.h> #include <omp.h> #include <time.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #include <sys/time.h> #define MASTER 0 int pwork = 1; int cwork[8]; struct timeval startwtime, endwtime; double arr_time; FILE* out; int main(int argc, char** argv) { if (argc != 3)...
GB_dense_ewise3_noaccum_template.c
//------------------------------------------------------------------------------ // GB_dense_ewise3_noaccum_template: C = A+B where all 3 matrices are dense //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. /...
parallel_algebra.c
#include "parallel_algebra.h" DLL_EXPORT int padd(float * x, float * y, float * out, long size){ long i = 0; #pragma omp parallel for for (i=0; i < size; i++) { *(out + i ) = *(x + i) + *(y+i); } return 0; } DLL_EXPORT int psubtract(float * x, float * y, float * out, long size){ long...
par_csr_matop_device.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) **************************************...
shared_private.c
#include<stdio.h> #include<omp.h> #include<sys/time.h> #include<unistd.h> #define ARRAY_SIZE 1024768 int main(int argc, char *argv[]) { int i; int *a = (int *) malloc(sizeof(int) * ARRAY_SIZE); int *b = (int *) malloc(sizeof(int) * ARRAY_SIZE); int *c = (int *) malloc(sizeof(int) * ARRAY_SIZE); struct timeval t...
syrk_teams.c
/** * syrk.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@students.ic...
goertzel.c
#include "ltfat.h" #include "ltfat_types.h" #ifndef GGA_UNROLL # define GGA_UNROLL 8 #endif struct LTFAT_NAME(gga_plan_struct) { const LTFAT_REAL* cos_term; const LTFAT_COMPLEX* cc_term; const LTFAT_COMPLEX* cc2_term; const ltfatInt M; const ltfatInt L; }; struct LTFAT_NAME(chzt...
cpplex.c
/* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* CPP Library - lexical analysis. Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by Per Bothner, 1994-95. Based on CCCP program by Paul Rubin, June 1986 Adapted to ANSI C, Richard Stallman, Jan 1987...
helloworld.c
#include <stdio.h> #include <omp.h> void printHello(int threadID) { printf("Hello World! %d\n",threadID ); } int main() { #pragma omp parallel { int ID=omp_get_thread_num(); printHello(ID); } return 0; }
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) #...
memcpy.c
// ----------------------------------------------------------------------------- // // "CAPIPrecis" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- // ...
pnm.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
csr_matrix.h
#ifndef CSR_MATRIX_H_ #define CSR_MATRIX_H_ #include <cstddef> #include <vector> #include <string> #include "pigo.hpp" // for matrix input and malloc/free for shared pointers #include <omp.h> class MtxHeader { private: bool hasValue_; bool symmetric_; public: MtxHeader(std::string & f...
GB_binop__gt_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
cbench.c
//! cbench.c /* * Description: The main program file for the cbench project. */ #include "cbench.h" Sphere* spheres; //! Calculate whether a given ray intersects with any of the spheres //! present in this scene. /* * @param Ray given ray to check with * @param double top limit * @param int...
GB_binop__band_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_unop__identity_int64_uint64.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...
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 ...
DRB059-lastprivate-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...
symv_c_coo_u_hi_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/kernel_plain.h" #include "alphasparse/opt.h" #include "alphasparse/util.h" #include <string.h> #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t symv_coo_u_hi_omp(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *...
DRB050-functionparameter-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...
matrix_op-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
pr32468-1.c
/* PR libgomp/32468 */ /* { dg-do compile } */ /* { dg-options "-O2 -fopenmp -fdump-tree-ompexp" } */ extern int printf (const char *, ...); extern int omp_get_thread_num (void), omp_get_num_threads (void); extern int bar (void); extern int baz (const char *, ...); void f1 (void) { #pragma omp parallel { baz ("...
ast-dump-openmp-target-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 simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp target simd for (int i = 0; i < x; i++)...
multiple_variables_simple_omp.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> int main() { int* a = (int*)malloc(sizeof(int)); int* b = (int*)malloc(sizeof(int)); *a = 0; *b = 0; #pragma omp parallel { *a = 42; *b = *a; } printf("%d\n", *b); free(a); free(b); }
GB_binop__div_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
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...
GB_binop__plus_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
feature.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__band_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-...
logit_loss.h
/** * Copyright (c) 2015 by Contributors */ #ifndef DIFACTO_LOSS_LOGIT_LOSS_H_ #define DIFACTO_LOSS_LOGIT_LOSS_H_ #include <vector> #include <cmath> #include "difacto/base.h" #include "difacto/loss.h" #include "dmlc/data.h" #include "dmlc/omp.h" #include "common/spmv.h" namespace difacto { /** * \brief the logistic...
__clang_cuda_cmath.h
/*===---- __clang_cuda_cmath.h - Device-side CUDA cmath support ------------=== * * 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 * *===----------------------------...
shuffle_noduff_omp.c
/* shuffle_noduff_omp.c * * A clone of the official HDF5 shuffle filter, but with the Duff's device * replaced with a simple memory copy and OpenMP enabled. * * * Copyright (C) 2019 Dana Robinson <dana.e.robinson@gmail.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or w...
GB_unop__identity_fp64_int8.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...
reference.h
template<int R> void reference( float *__restrict in, float *__restrict out, int w, int h, float a_square, float variance_I, float variance_spatial) { #pragma omp parallel for collapse(2) for (int idx = 0; idx < w; idx++) for (int idy = 0; idy < h; idy++) { int id = idy*w + ...
DRB074-flush-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...
feast_condition_number_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS_...
omp_sum_strnum_tls.c
/* vim: set ts=4 sw=4: */ /* Filename : omp_sum_strnum_tls.c * Description : OpenMP TLS * Author : SunYoung Kim <sunyzero@gmail.com> * Notes : */ #define _XOPEN_SOURCE 600 #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <omp.h> #include "stdalsp.h" #define LEN...
ccsd_t.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...
task_early_fulfill.c
// RUN: %libomp-compile && env OMP_NUM_THREADS='3' \ // RUN: %libomp-run | %sort-threads | FileCheck %s // REQUIRES: ompt // Checked gcc 10.1 still does not support detach clause on task construct. // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10 // gcc 11 introduced detach clause, but gomp interfac...
omp_bug3.c
/****************************************************************************** * FILE: omp_bug3.c * DESCRIPTION: * Run time error * AUTHOR: Blaise Barney 01/09/04 * LAST REVISED: 06/28/05 ******************************************************************************/ #include <omp.h> #include <stdio.h> #include <st...
mclient.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> #include <netinet/tcp.h> #include <unistd.h> #include <strings.h> #include <string.h> #include <unistd.h> #include <libgen.h> #inclu...
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 <ex...
point_relax.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
priv.c
#include<stdio.h> #include<omp.h> int main() { int n; scanf("%d",&n); int thread_id = 0; #pragma omp parallel private(thread_id) { thread_id = omp_get_thread_num(); // Compulsory if we use private printf("%d\n", thread_id+n); if(thread_id == 0) { // Only master thread has th...
FunctorsOpenMP.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 // PURP...
YAKL_parallel_for_c.h
#pragma once #ifdef YAKL_ARCH_CUDA #include <nvtx3/nvToolsExt.h> #endif namespace c { template <class T> constexpr T fastmod(T a , T b) { return a < b ? a : a-b*(a/b); } class LBnd { public: int l, u, s; LBnd(int u) { this->l = 0; this->u = u-1; this->s = 1; } LBnd...
IPCComm.h
/*! @brief Flag for checking if this header has already been included. */ #ifndef YGGIPCCOMM_H_ #define YGGIPCCOMM_H_ // OpenSimRoot has a conflicting definition for 'msg' #ifdef USE_OSR_YGG #undef IPCINSTALLED #endif #ifdef IPCINSTALLED #include <fcntl.h> /* For O_* constants */ #include <sys/stat.h> ...
StmtOpenMP.h
//===- StmtOpenMP.h - Classes for 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 // //===---------------------------...
paralelo.c
/* - Jose Block - Francisco Rosal - Gian Luca Rivera Compilar: gcc -o secuencial secuencial.c Ejeutar: ./secuencial gcc -o secuencial secuencial.c && ./secuencial */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> int main(int argc, char* argv[]) { double t_in...
convolution_sgemm_packn_fp16s.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_bitmap_add_template.c
//------------------------------------------------------------------------------ // GB_bitmap_add_template: C = A+B, C<M>=A+B, and C<!M>=A+B, C bitmap //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
join.c
/* Copyright 2013-2015. The Regents of the University of California. * Copyright 2015. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2013, 2015 Martin Uecker <martin.uecker@med.uni-goettingen.de> * 2015 J...
heat_serial.c
# include <math.h> # include <stdlib.h> # include <stdio.h> # include <time.h> # include <omp.h> int main (int argc, char *argv[]){ double cpu_time ( ); void timestamp ( ); #pragma omp parallel { double cpu_time ( ); void timestamp ( ); { # define M 500 # define N 500 double ctime; double ...
GB_unaryop__ainv_bool_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
Matrix.h
#ifndef MATRIX_H # define MATRIX_H # include <iostream> # include <iomanip> # include <cstdio> # include <vector> # include <algorithm> # include <stdexcept> # include <iterator> # ifdef _OPENMP # include <omp.h> const uint32_t NUM_THREADS = omp_get_max_threads(); # endif template<class T=double> class Matrix { ...
GB_binop__rminus_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
lastprivate-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...
ConvolutionUnfold.h
#pragma once #include <string.h> #include <math.h> #include <algorithm> #include "General.h" #include "TensorRef.h" #include "Vector-inl.h" OPS_API int TS_Unfolded_Copy( TensorRef* finput, TensorRef* input, int kW, int kH, int dW, int dH, int padW, int padH, int nInputPlane, int inputWidth, int inputHeig...
DenseVector.h
//================================================================================================= /*! // \file blaze/math/smp/openmp/DenseVector.h // \brief Header file for the OpenMP-based dense vector SMP implementation // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part ...
Proyek_UAS.c
// Kelompok 5 //Anggota: //1. Ghulam Izzul Fuad - 2006534953 //2. M. Farhan Haniftyaji - 2006468711 //3. Valentinus - 2006468472 #include <stdio.h> #include <omp.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <conio.h> //define ASCII #define ENTER 13 #define BKSP 8 //define struct untuk meny...