source
stringlengths
3
92
c
stringlengths
26
2.25M
t_cholmod_gpu.c
/* ========================================================================== */ /* === GPU/t_cholmod_gpu ==================================================== */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
gbdt.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_BOOSTING_GBDT_H_ #define LIGHTGBM_BOOSTING_GBDT_H_ #include <LightGBM/boosting.h> #include <LightGBM/objective_function.h> #include...
deconv_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...
GB_unop__identity_uint64_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
par_gsmg.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...
GB_binop__lor_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
pr81687-1.c
/* PR c/81687 */ /* { dg-do link } */ /* { dg-additional-options "-O2" } */ extern int printf (const char *, ...); int main () { #pragma omp parallel { lab1: printf ("lab1=%p\n", (void *)(&&lab1)); } lab2: #pragma omp parallel { lab3: printf ("lab2=%p\n", (void *)(&&lab2)); } printf ("lab...
Texture.h
#pragma once #include <algorithm> template<typename T> class Texture1D { private: T * const data; const float size; public: Texture1D() : data(NULL), size(0) {} Texture1D(const T *_data, const int _size) : data(new T[_size]), size(_size) { // #pragma omp parallel for for (int i = 0...
rwpng.c
/*--------------------------------------------------------------------------- pngquant: RGBA -> RGBA-palette quantization program rwpng.c --------------------------------------------------------------------------- © 1998-2000 by Greg Roelofs. © 2009-2015 by Kornel Lesiński. All rights res...
mixed_tentusscher_myo_epi_2004_S2_1.c
// Scenario 2 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S2_1.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_...
SE3P_direct.c
#include "SE_direct.h" #include <math.h> void SE3P_direct_real(double* restrict phi, const int* restrict idx, int nidx, const double* restrict x, const double* restrict q, int N, const ewald_opts opt) { double rvec[3]; double qn; double p, r; #ifdef _OPENMP #pragma omp par...
SceneGraphConverterOCC.h
/* -*-c++-*- IfcQuery www.ifcquery.com * MIT License Copyright (c) 2017 Fabian Gerold Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
GB_unop__erf_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...
image_random-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 may no...
jacobi7_5_save.c
#define max(a,b) (((a) < (b))? (b) : (a)) #define min(a,b) (((a) < (b))? (a) : (b)) #define _NB_2 1 #define _TH_1 2 #include <omp.h> #define _NB_1 1 #define Index3D(_nx,_ny,_i,_j,_k) ((_i)+_nx*((_j)+_ny*(_k))) void jacobi7(const int nx,const int ny,int nz,const double alpha,double* A0,const int timesteps,const double*...
lis_matrix_crs.c
/* Copyright (C) 2002-2012 The SSI Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
mainapp.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <windows.h> //This block of codes was made by M. Raihan Azhari// //------------------------------------------------ struct amalan{ //variabel amanalan ibadah harian int tahajud; int dhuha; int wajib; int tilawah; int tahfidz; struct amalan *nex...
taskdependmissing-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...
GrB_Matrix_wait.c
//------------------------------------------------------------------------------ // GrB_Matrix_wait: wait for a matrix to complete //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier:...
DRB099-targetparallelfor2-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...
gramschmidt.c
/** * gramschmidt.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@stud...
coordination.c
/* * Copyright (C) 2017 by Benedict Paten (benedictpaten@gmail.com) * * Released under the MIT license, see LICENSE.txt */ #include "margin.h" // OpenMP #if defined(_OPENMP) #include <omp.h> #define CELL_BUFFER_SIZE 1000 #endif /* * Functions to create a set of read partitioning HMMs that include a given input ...
Parallelizer.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
spamm_copy.c
/** @file */ #include "spamm.h" #include "spamm_types_private.h" #include <assert.h> #include <math.h> /** Copy a SpAMM chunk. \f$ A \leftarrow \beta B \f$. * * @param A Chunk A. * @param beta The scalar \f$ \beta \f$. * @param B Chunk B. * @param flop The flop count. * @param mop The memory operation count *...
utils.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 ...
matrixmultiply-ompacc2.c
/* Naive matrix-matrix multiplication(mmm) multiple GPUs, standard OpenMP 4.0 directives By C. Liao */ #include <stdio.h> #include <assert.h> #include <omp.h> #define N 1024 #define M 1024 #define K 1024 #define REAL float int i,j,k; REAL a[N][M],b[M][K],c[N][K], c2[N][K]; int init(); int mmm(); int mmm2(); int veri...
minimum_cut_helpers.h
/****************************************************************************** * minimum_cut_helpers.h * * Source of VieCut * ****************************************************************************** * Copyright (C) 2018 Alexander Noe <alexander.noe@univie.ac.at> * * Published under the MIT license in the...
GB_unop__atanh_fc64_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
convolution_sgemm_pack4to1.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_binop__isgt_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
trmm_x_csr_n_hi_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_CSR *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT...
GB_unop__ainv_uint64_uint64.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...
openmp.c
/* OMP Implementation Parralelising recBitonicSort, impBitonicSort */ #include <stdio.h> #include <time.h> #include <stdlib.h> #include <omp.h> #include <sys/time.h> //for real time #define MAX_THREADS 256 #define MIN_Q 12 #define MAX_Q 24 #define MIN_P 0 #define MAX_P 8 struct timeval startwtime, endwtime; double...
GB_unop__identity_bool_fp64.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...
reduction-clauseModificado2.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif int main(int argc, char **argv) { int i, n=20, a[n],suma=0; if(argc < 2) { fprintf(stderr,"Falta iteraciones\n"); exit(-1); } n = atoi(argv[1]); if (n>20) {n=20; printf("n=%d",n);} ...
pst_fmt_plug.c
/* PST cracker patch for JtR. Hacked together during July of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com> * * Optimizations and shift to pkzip CRC32 code done by JimF * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com> * and it is hereby released to the general public under the...
omp_fill_taskqueue.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run // RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=1 %libomp-run // REQUIRES: !abt && !icc #include<omp.h> #include<stdlib.h> #include<string.h> /** * Test the task throttling behavior of the runtime. * Unless OMP_NUM_THREADS is 1, the m...
shape.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
tsnakeslib.c
/* Standard Headers */ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <math.h> #include <float.h> #include <time.h> /* OpenMP Headers */ #include <omp.h> /* IDL Headers */ #include "idl_export.h" /* Custom Headers */ #include "tsnakeslib.h" static int global_it; IDL_VPTR evolve_snakes(int arg...
main.c
/* * Copyright (©) 2015-2016 Lucas Maugère, Thomas Mijieux * * 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 require...
run_bls.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 may not use ...
hecmw_partition.c
/***************************************************************************** * Copyright (c) 2019 FrontISTR Commons * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #define INAGAKI_PARTITIONER #include <stdio.h> #inc...
levelset_fluid_solver.h
/* ============================================================================== KratosPFEMApplication A library based on: Kratos A General Purpose Software for Multi-Physics Finite Element Analysis Version 1.0 (Released on march 05, 2007). Copyright 2007 Pooyan Dadvand, Riccardo Rossi pooyan@cimne.upc.edu rrossi@c...
declare_reduction_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s -Wuninitialized int temp; // expected-note 6 {{'temp' declared here}} #pragma omp declare reduction // expected-error {{expected '(' afte...
sptree.h
/* * * Copyright (c) 2014, Laurens van der Maaten (Delft University of Technology) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above ...
THTensorMath.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/THTensorMath.c" #else #ifdef _OPENMP #include <omp.h> #endif #define TH_OMP_OVERHEAD_THRESHOLD 100000 #ifdef _OPENMP #ifndef _WIN32 #define PRAGMA(P) _Pragma(#P) #else #define PRAGMA(P) __pragma(P) #endif #define TH_TENSOR_APPLY_CONTIG(TYPE, TENSOR, CODE) \ ...
openmp_wrapper.h
#ifndef LIGHTGBM_OPENMP_WRAPPER_H_ #define LIGHTGBM_OPENMP_WRAPPER_H_ #ifdef _OPENMP #include <omp.h> #include <exception> #include <stdexcept> #include <mutex> #include <vector> #include <memory> #include "log.h" class ThreadExceptionHelper { public: ThreadExceptionHelper() { ex_ptr_ = nullptr; } ~Threa...
nestedpar1.c
#include<omp.h> #include <stdio.h> void paroutput(char* s) { } int main(void) { #ifdef _OPENMP omp_set_nested(1); #endif #pragma omp parallel { #pragma omp parallel printf("before single.\n"); #pragma omp single { #pragma omp parallel printf("Inside single.\n"); } #pragma omp parallel pri...
section_private.c
#include <stdio.h> #include "omp_testsuite.h" int check_section_private (FILE * logFile) { int sum = 7; int sum0 = 0; int known_sum; int i; #pragma omp parallel { #pragma omp sections private(sum0,i) { #pragma omp section { sum0 = 0; for (i = 1; i < 400; i++) sum0 = sum0 + i; #pragma omp c...
pseudoprojector.c
#include "pseudoprojector.h" #include "utils.h" #include <complex.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <time.h> void vc_pseudoprojection(pswf_t *wf_ref, pswf_t *wf_proj, int BAND_NUM, double *results) { clock_t start = clock(); kpoint_t **k...
pr84341.c
/* PR c++/84341 */ /* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void foo (int i) { #pragma omp atomic i = &i + 1; /* { dg-error "invalid form of" } */ }
GB_binop__le_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:...
GB_binop__rdiv_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...
nqueens.c
/**********************************************************************************************/ /* This program is part of the Barcelona OpenMP Tasks Suite */ /* Copyright (C) 2009 Barcelona Supercomputing Center - Centro Nacional de Supercomputacion */ /* Copyright (C) 2009 Univer...
deconvolution_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 ...
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...
master-3.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ extern void bar(int); void foo (void) { #pragma omp master bar(0); } /* { dg-final { scan-tree-dump-times "omp_get_thread_num" 1 "ompexp" } } */
resize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
c3_fmt.c
/* * Generic crypt(3) support, as well as support for glibc's crypt_r(3) and * Solaris' MT-safe crypt(3C) with OpenMP parallelization. * * This file is part of John the Ripper password cracker, * Copyright (c) 2009-2013 by Solar Designer * * Redistribution and use in source and binary forms, with or without * m...
eigrp_fmt_plug.c
/* * Cracker for EIGRP (Cisco's proprietary routing protocol) MD5 + HMAC-SHA-256 authentication. * http://tools.ietf.org/html/draft-savage-eigrp-00 * * This is dedicated to Darya. You inspire me. * * This software is Copyright (c) 2014, Dhiru Kholia <dhiru [at] openwall.com>, * and it is hereby released to the g...
AI_model4.c
#include"AI.h" #include <omp.h> #include <time.h> #include <stdio.h> //#define CHECK_SCORE #define MAX_STEP 4 #define MAX_NODES_2_COMPUTE 4000000 #define MAX_TASK_SIZE 6 //This is for model4 int computed_nodes; //computed_task_size=-resized_x+8 int linear_rearrange(int score, float range, int minScore){ int co...
timer.h
/*************************************************************************** * include/stxxl/bits/common/timer.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2002, 2005 Roman Dementiev <dementiev@mpi-sb.mpg.de> * Copyright (C) 2007-2009 Andreas Beckmann <beckmann@cs.uni-frankfurt....
kmp_detach_tasks_t2.c
// RUN: %libomp-compile && env OMP_NUM_THREADS='3' %libomp-run // RUN: %libomp-compile && env OMP_NUM_THREADS='1' %libomp-run #include <stdio.h> #include <omp.h> #include "omp_my_sleep.h" // detached tied #define PTASK_FLAG_DETACHABLE 0x41 // OpenMP RTL interfaces typedef unsigned long long kmp_uint64; typedef long ...
scatter_int.c
// create a list of 64 numbers, and only sum the even ones #include <stdio.h> #include <stdlib.h> #define N 32000 #define SCALE 16 int main() { srand(time(NULL)); int *numbers = malloc(sizeof(int)*N); int *result1 = malloc(sizeof(int)*N); int *result2 = malloc(sizeof(int)*N); int *mask = malloc(si...
matvec_ompacc.c
#include "matvec.h" #include "homp.h" #if 0 /* v2: explicit distribution of both data and loop: * the a[0:n][0:n], and x[0:n] will be evenly distributed among the ndev devices, * scalars such as a and n will each have a mapped copy in all the devices, loop will also be evenly distributed */ void matvec_m...
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...
NLmean_propag1dir_sspacing3_tspacing4_sim12_acc12_neighbor5_tau0100.c
/* * compile: gcc -O3 -std=c99 -o [filename_out] -fopenmp [filename].c -lm -I/usr/include/netcdf-3/ -L/usr/lib64/ -lnetcdf -lnetcdf_c++ * in the terminal: export OMP_NUM_THREADS=3 */ #include<stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <netcdf.h> #include <omp.h> /* This is the name ...
Sync.c
/* Filename: Sync.c * Author: Mohammed Sourouri <mohamso@simula.no> * * Synchronous Multi-GPU code where the number of threads spawned * equals the number of GPUs. All memory transfers * are synchronous. This code corresponds to "OpenMP" results in Figure-8 in the * SC'14 paper. * * * Copyright [2014] [Moha...
bli_dotv_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...
p2_a.c
#include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> #include <omp.h> using namespace std; #define THREAD_NUM 10 #define PI 3.1415926535 struct Vector { double x, y, z; Vector(double _x, double _y, double _z) { x = _x; y = _y; z = _z; } }; double** ...
snobalp.h
/* ** NAME ** snobal.h ** ** DESCRIPTION ** Include file for the snobal library. */ #ifndef _SNOBAL_H_ #define _SNOBAL_H_ /* * default for snowcover's maximum liquid h2o content as volume * ratio: V_water/(V_snow - V_ice) */ #define DEFAULT_MAX_H2O_VOL 0.01 /* * default for maximum active (su...
8321.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...
divsufsort.c
/* * divsufsort.c for libdivsufsort-lite * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including wit...
IntSort.h
/* * IntSort.h * * Author: Manuel Penschuck (networkit@manuel.jetzt) */ #ifndef INTSORT_H_ #define INTSORT_H_ #include <limits> #include <array> #include <vector> #include <memory> #include <tuple> #include <algorithm> #include <type_traits> #include <cassert> #include <numeric> #include <omp.h> namespace intsor...
LAGraph_cc_fastsv5b.c
//------------------------------------------------------------------------------ // LAGraph_cc_fastsv5b: connected components //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2020 LAGraph Contributors. (see Contrib...
Metric.h
// // Created by Mamba on 2020/2/18. // // #define R_BUILD #ifndef SRC_METRICS_H #define SRC_METRICS_H #include "Data.h" #include "Algorithm.h" #include "model_fit.h" // #include "path.h" #include <vector> #include <random> #include <algorithm> #include "utilities.h" template <class T1, class T2, class T3, class T4> ...
declare_mapper_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s int temp; // expected-note {{'temp' declared here}} struct vec { // expected-note {{definition of 'struct vec' is not complete until the cl...
5690.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...
GB_unop__identity_uint32_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
nstream-alloc-target.c
/// /// Copyright (c) 2019, Intel Corporation /// /// Redistribution and use in source and binary forms, with or without /// modification, are permitted provided that the following conditions /// are met: /// /// * Redistributions of source code must retain the above copyright /// notice, this list of conditions ...
GB_unaryop__lnot_bool_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
single_copyprivate.c
#include <omp.h> #include "omp_testsuite.h" int check_single_copyprivate (FILE * logFile) { int result = 0; int nr_iterations = 0; int i; int j; #pragma omp parallel private(i,j) { for (i = 0; i < LOOPCOUNT; i++) { /* int thread; thread=omp_get_thread_num(); */ #pragma omp single...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "cuda.h" #include <stdio.h> #include <stdlib.h> #include <string.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { char *path; FILE *file = fopen(filename, "r"); if(!file) file_error(filename); list...
convolution_5x5_pack8_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 ...
fracstep_GLS_strategy.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Author Julio Marti. // #if !defined(KRATOS_GLS_S...
barrier-1.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-gimple" } */ void f1(void) { #pragma omp barrier } void f2(_Bool p) { if (p) { #pragma omp barrier } } /* { dg-final { scan-tree-dump-times "GOMP_barrier" 2 "gimple" } } */
InfomapGreedyCommon.h
/********************************************************************************** Infomap software package for multi-level network clustering Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall For more information, see <http://www.mapequation.org> This file is part of Infomap software package. Infomap s...
maybe.h
#ifndef _INC_MAYBE_H_ #define _INC_MAYBE_H_ #include <cstddef> #include <cstdint> #include <stdexcept> #include <functional> #include <vector> #include <tuple> #include "function_traits.h" #ifdef _OPENMP #include <omp.h> #endif namespace auxil { namespace maybe_details { #define _unused(x) ((void)(x)) class No...
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
shortcut_layer.c
#include "shortcut_layer.h" #include "convolutional_layer.h" #include "dark_cuda.h" #include "blas.h" #include "utils.h" #include "gemm.h" #include <stdio.h> #include <assert.h> layer make_shortcut_layer(int batch, int n, int *input_layers, int* input_sizes, int w, int h, int c, float **layers_output, float **laye...
sph_linked_list.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <sys/time.h> #include <inttypes.h> #include <omp.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_heapsort.h> #include "MZC3D64.h" #include "MZC2D64.h" #includ...
pi_loop_redux.c
/* * A program to compute the numerical value of pi in parallel * * Author: Matthew Cufari (with notes from Tim Mattson @ Intel) * Version: 1.0.0 * Date Created: Dec 18 2020 * */ #include <omp.h> #include <stdio.h> static long num_steps = 1000000; double step; int main(){ int i; double pi = 0; double sum =...
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...
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 // //===---------------------------...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
eavlDestinationTopologyGatherMapOp.h
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #ifndef EAVL_DESTINATION_TOPOLOGY_GATHER_MAP_OP_H #define EAVL_DESTINATION_TOPOLOGY_GATHER_MAP_OP_H #include "eavlCUDA.h" #include "eavlCellSet.h" #include "eavlCellSetExplicit.h" #include "eavlCellSetAllStructured.h" #include "eavlDataSet...
convolution_1x1.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 ...
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) #...
blackscholes.c
#include "bullmoose.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....
L2solverNMAp.c
/*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/ /* GRACE/GRAIL L2 solver (MPI, MKL, OMP modules) Version: June 2014 Copyright (c) 2014 Kun Shang (shang.34@osu.edu) All Right Reserved */ /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+--*/ #include <...