source
stringlengths
3
92
c
stringlengths
26
2.25M
high.c
#include "high.h" #include "sicm_low.h" #include <fcntl.h> #include <numa.h> #include <semaphore.h> #include <stdlib.h> #include <sys/mman.h> #include <sys/stat.h> #include <stdio.h> #include "sicmimpl.h" struct suballoc_t { void* ptr; struct sicm_device* device; size_t sz; }; struct allocation_t { void* ptr;...
4848.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...
sink-2.c
/* { dg-do compile } */ void bar (int *); void foo () { int i,j; #pragma omp parallel for ordered(1) for (i=0; i < 100; ++i) { #pragma omp ordered depend(sink:i-1) bar(&i); #pragma omp ordered depend(source) } }
lstm_bwd.c
#include <libxsmm.h> #include <libxsmm_intrinsics_x86.h> #if defined(LIBXSMM_OFFLOAD_TARGET) # pragma offload_attribute(push,target(LIBXSMM_OFFLOAD_TARGET)) #endif #include <stdlib.h> #include <string.h> #include <stdio.h> #if defined(_OPENMP) # include <omp.h> #endif #include "lstm_bwd.h" #if defined(LIBXSMM_OFFLOAD_...
gpssim.c
#define _CRT_SECURE_NO_DEPRECATE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include <omp.h> #ifdef _WIN32 #include "getopt.h" #else #include <unistd.h> #endif #ifndef bool typedef int bool; #define true 1 #define false 0 #endif #define MAX_CHAR (100) #define MAX_...
joseph3d_back_tof_lm_2.c
/** * @file joseph3d_back_tof_lm_2.c */ #include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<math.h> #include<omp.h> #include "tof_utils.h" #include "ray_cube_intersection.h" /** @brief 3D listmode tof joseph back projector * * All threads back project in one image using openmp's atomic add. * * ...
particlefilter.c
/** * @file ex_particle_OPENMP_seq.c * @author Michael Trotter & Matt Goodrum * @brief Particle filter implementation in C/OpenMP */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <time.h> // RISC-V VECTOR Version by Cristóbal Ramírez Lazo, "...
main.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <omp.h> #define NDEBUG #ifndef NDEBUG #define DEBUG(cmd) cmd; #else #define DEBUG(cmd) ; #endif // Check if number is prime bool is_prime(int n) { DEBUG( int thread_id = omp_get_thread_num(); printf(...
test_vectorize.c
#include "Python.h" #ifndef CYTHON_RESTRICT #if defined(__GNUC__) #define CYTHON_RESTRICT __restrict__ #elif defined(_MSC_VER) #define CYTHON_RESTRICT __restrict #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L #define CYTHON_RESTRICT restrict #else #define CYTHON_RESTRICT #end...
MacroLegalizer.h
/** * @file MacroLegalizer.h * @author Tingyuan LIANG (tliang@connect.ust.hk) * @brief This header file contains the definitions of MacroLegalizer class and its internal modules and APIs which * map DSP/BRAM/CARRY macros to legal location * @version 0.1 * @date 2021-10-02 * * @copyright Copyright (c) 2021 Recon...
image-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % IIIII M M AAA GGGG EEEEE ...
mwac_utils.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> //#include <plot.h> #include "mwac_utils.h" #include "antenna_mapping.h" void fill_mapping_matrix() { extern map_t corr_mapping[NINPUT][NINPUT]; extern int pfb_output_to_input[NINPUT]; extern int single_pfb_mapping[64]; extern int npol; extern int nstation...
WinogradConv2D.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #define CL_USE_DEPRECATED_OPENCL_1_2_APIS #include <CL/cl.h> #include "../polybenchUtilFuncts.h" //define the error threshold for the results "not matching" #define PERCENT_DIFF_ERROR_THRESHOLD 1.05 #define MAX_SOURCE_S...
core_slantr.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/core_blas/core_zlantr.c, normal z -> s, Fri Sep 28 17:38:21 2018 * **/ #include <plasma_core_blas.h> #include "pla...
omp_fdtd-2d.c
#include "fdtd-2d.h" #include <omp.h> double bench_t_start, bench_t_end; static double rtclock(){ struct timeval Tp; int stat; stat = gettimeofday(&Tp, NULL); if(stat != 0) printf("Error return from gettimeofday: %d", stat); return (Tp.tv_sec + Tp.tv_usec * 1.0e-6); } void bench_timer_sta...
08_global_loop_atomic.c
/*THIS PROGRAM DOESN'T WORK PROPERLY*/ #include <stdio.h> #include <omp.h> #define MAX_ITS 10000 int main(){ int its_global, i; its_global = 0; #pragma omp parallel for for (i=0;i<MAX_ITS;++i){ /*The atomic section means that operations in this section cannot be interrupted by other threads. Only certain m...
file.c
/** * \file file.c * \brief nfdump file loading, handling and saving functions * * \author J.R.Versteegh <j.r.versteegh@orca-st.com> * * \copyright * (C) 2017 Jaap Versteegh. All rights reserved. * (C) 2017 SURFnet. All rights reserved. * \license * This software may be modified and distributed under the * t...
declare_simd_aarch64.c
// REQUIRES: aarch64-registered-target // -fopemp and -fopenmp-simd behavior are expected to be the same. // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -fopenmp -x c -emit-llvm %s -o - -femit-all-decls | FileCheck %s --check-prefix=AARCH64 // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-featu...
simulation.c
/* -------------------------------------------------------------------------- */ #include "io_binary.h" /* -------------------------------------------------------------------------- */ #include <math.h> #include <stdio.h> #include <stdlib.h> /* -------------------------------------------------------------------------- ...
alignblt.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 Lic...
cryptocontext.h
/** * @file cryptocontext.h -- Control for encryption operations. * @author TPOC: contact@palisade-crypto.org * * @section LICENSE * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)) * All rights reserved. * Redistribution and use in source and binary forms, with or without modificati...
debug_test_system.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2013, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and us...
general_basis_op.h
#ifndef _GENERAL_BASIS_OP_H #define _GENERAL_BASIS_OP_H #include <iostream> #include <complex> #include <algorithm> #include <limits> #include "general_basis_core.h" #include "numpy/ndarraytypes.h" #include "misc.h" #include "openmp.h" namespace basis_general { template<class I, class J, class K, class T,class P=...
test.c
#include <stdio.h> #define NUM_DIVS 1000000 #define NUM_ITS 100 double calc_pi() { double div_width = 1.0/NUM_DIVS; double curx = 0.0; double cury = 0.0; double sum = 0.0; int i = 0; #pragma omp parallel for private(curx, cury) reduction(+: sum) for(i = 0; i < NUM_DIVS; i++) { curx = ((double)i + 0.5) * div...
rose_regression01.c
/* * Contributed by Jeff Keasler * * Liao 2/10/2010 * */ #include "omp.h" typedef double real8; void foo(real8 *a,real8 *b,real8 *c,real8 *d,int len) { int icol; int jrow; int l; for (l = 0; l <= len - 1; l += 1) { int l8 = l * 8; real8 e = d[l * 3 + 0]; real8 f = d[l * 3 + 1]; real8 g = d...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__isne_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
zboxloop.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...
measure.c
#include <string.h> #include <mpi.h> #include "ScaleME.h" #include "precision.h" #include "measure.h" #include "fsgreen.h" #include "integrate.h" #include "mlfma.h" #include "util.h" /* Evaluate a directivity pattern cos(theta) exp(-a sin(theta)**2), in which * theta is the angle between a focal axis d and r = (o...
declare_simd_aarch64_sve.c
// REQUIRES: aarch64-registered-target // -fopemp and -fopenmp-simd behavior are expected to be the same // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +sve \ // RUN: -fopenmp -x c -emit-llvm %s -o - -femit-all-decls | FileCheck %s // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +sve \ // ...
closed_bug2.c
#include <stdio.h> #include "assert.h" #include <unistd.h> #define NZ 10 #define NA 9 #pragma omp declare target int colstat[NZ]; #pragma omp end declare target int main(){ colstat[0]=-1; #pragma omp target map(alloc:colstat[0:NZ]) { colstat[1] = 1111; } #pragma omp target map(alloc:colstat[:0]) { cols...
vector.c
#include "vector.h" void do_nothing(void *v){ } vector_t *vector_dot_prod(vector_t *v1, vector_t *v2, void *(*foo)(void *, void *)){ if( v1->size != v2->size){ return NULL;} vector_t *v3 = vector_init(VECTOR_VARIABLE_SIZE, v1->size); int i; for(i=0;i<v1->size;i++){ vector_soft_put(v3,foo(vector_get(v1,i),vect...
mpm_boundary_rotation_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Bodhinanda Chandra // #ifndef KRATOS_MPM_BOUND...
GB_binop__gt_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-...
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 Universal :...
data.h
/*! * Copyright (c) 2015 by Contributors * \file data.h * \brief The input data structure of xgboost. * \author Tianqi Chen */ #ifndef XGBOOST_DATA_H_ #define XGBOOST_DATA_H_ #include <dmlc/base.h> #include <dmlc/data.h> #include <rabit/rabit.h> #include <cstring> #include <memory> #include <numeric> #include <al...
libperf.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015-2016. ALL RIGHTS RESERVED. * Copyright (C) ARM Ltd. 2017. AL...
McBuilder.h
#pragma once #include <algorithm> #include "../../../DataStructures/RAPTOR/Data.h" #include "../../../Helpers/MultiThreading.h" #include "../../../Helpers/Timer.h" #include "../../../Helpers/Console/Progress.h" #include "McShortcutSearch.h" namespace RAPTOR::ULTRA { template<bool DEBUG = false, bool USE_TIEBREAKIN...
kmp_dispatch_buf_range.c
// RUN: %libomp-compile // RUN: env KMP_DISP_NUM_BUFFERS=0 %libomp-run 2>&1 | FileCheck --check-prefix=SMALL %s // RUN: env KMP_DISP_NUM_BUFFERS=4097 %libomp-run 2>&1 | FileCheck --check-prefix=LARGE %s // SMALL: OMP: Warning // SMALL-SAME: KMP_DISP_NUM_BUFFERS // SMALL-SAME: too small // LARGE: OMP: Warning // LARGE-S...
bitmap.h
/*! * Copyright 2014 by Contributors * \file bitmap.h * \brief a simple implement of bitmap * NOTE: bitmap is only threadsafe per word access, remember this when using bitmap * \author Tianqi Chen */ #ifndef XGBOOST_COMMON_BITMAP_H_ #define XGBOOST_COMMON_BITMAP_H_ #include "dmlc/omp.h" #include <vector> names...
analyze.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % AAA N N AAA L Y Y ZZZZZ EEEEE ...
2D_example.c
/* To compile this program on Linux, try: make CFLAGS='-std=c99 -Wall' example_2D To run: ./example_2D; echo $? It should print 0 if OK. You can even compile it to run on multicore SMP for free with make CFLAGS='-std=c99 -fopenmp -Wall' example_2D To verify there are really some clone() system...
17_primes-par3.c
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(int argc, char **argv) { // quantos numeros primos entre 1 e N ? unsigned long n = 99999; unsigned long aux = 2; unsigned long primes = 0; #pragma omp parallel for firstprivate(aux) reduction(+:primes) schedule(guided) for (unsigned long i = ...
GB_unop__identity_fp32_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...
convolution_7x7.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 ...
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 // //===---------------------------...
convolution_packnto1_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 ...
FullyDistVec.h
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.6 -------------------------------------------------*/ /* date: 6/15/2017 ---------------------------------------------*/ /* authors: Ariful Azad, Aydin Buluc --------------...
triangleCount.c
// ----------------------------------------------------------------------------- // // "00_AccelGraph" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- ...
ParFriends.h
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.6 -------------------------------------------------*/ /* date: 6/15/2017 ---------------------------------------------*/ /* authors: Ariful Azad, Aydin Buluc --------------...
GB_binop__land_bool.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_binop__pair_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-...
stream.c
/*-----------------------------------------------------------------------*/ /* Program: STREAM */ /* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */ /* Original code developed by John D. McCalpin */ /* Programm...
DenseAffine.h
// -------------------------------------------------------------------------- // Binary Brain -- binary neural net framework // // Copyright (C) 2018 by Ryuji Fuchikami // https://github.com/ryuz // ryuji.fuch...
GrB_getVersion.c
//------------------------------------------------------------------------------ // GrB_getVersion: get the version number of the GraphBLAS C API standard //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // ...
GB_ewise_slice.c
//------------------------------------------------------------------------------ // GB_ewise_slice: slice the entries and vectors for an ewise operation //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SP...
GB_unaryop__ainv_fp64_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
convolution_3x3_pack1to4.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 ...
quantum.h
#pragma once #include <global.h> #include <randomutil.h> #include <mathutil.h> #include <testutil.h> #include <iomanip> #include "state_manipulator.h" ns_easyquantum #define TO_STRING_CASE(gatetype) case GateType::gatetype: #define TO_STRING_DAG if (dag) {ss<<"dag ";} /* gate type definition */ enum class GateType ...
VerletClusterLists.h
/** * @file VerletClusterLists.h * @author nguyen * @date 14.10.18 */ #pragma once #include <cmath> #include "autopas/cells/FullParticleCell.h" #include "autopas/containers/CompatibleTraversals.h" #include "autopas/containers/ParticleContainer.h" #include "autopas/containers/verletClusterLists/VerletClusterMaths....
GB_unop__log_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...
mxnet_op.h
/*! * Copyright (c) 2017 by Contributors * \file mxnet_op.h * \brief * \author Junyuan Xie */ #ifndef MXNET_OPERATOR_MXNET_OP_H_ #define MXNET_OPERATOR_MXNET_OP_H_ #include <mxnet/base.h> #include <algorithm> namespace mxnet { namespace op { namespace mxnet_op { #ifdef __CUDA_ARCH__ __constant__ const float PI = ...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_5x5.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 ...
ft.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - FT This benchmark is an OpenMP C version of the NPB FT code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
aln_run.c
#include "tldevel.h" #include "tlrng.h" #ifdef HAVE_OPENMP #include <omp.h> #endif #include "msa.h" #include "alignment_parameters.h" #include "aln_task.h" #include "aln_struct.h" #include "aln_mem.h" #include "aln_setup.h" #include "aln_controller.h" #define ALN_RUN_IMPORT #include "aln_run.h" ...
GB_binop__pair_bool.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
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) ...
binarytrees.gcc-3.c
// The Computer Language Benchmarks Game // http://benchmarksgame.alioth.debian.org/ // // Contributed by Jeremy Zerfas // Based on the C++ program from Jon Harrop, Alex Mizrahi, and Bruno Coutinho. // *reset* // This controls the width of lines that are output by this program. #define MAXIMUM_LINE_WIDTH 60 #include...
GI.h
#include <parse.h> #include <unordered_set> #define SELF_GRAVITY #define FLAG_GI #ifdef PARTICLE_SIMULATOR_TWO_DIMENSION #error #endif std::unordered_set <unsigned int> create_removal_list (const unsigned int lowest_index, const unsigned int highest_index,const unsigned int number_of_removed_items){ std::unord...
mask_image_from_size.h
// Copyright 2017 Joan Puigcerver #ifndef NNUTILS_CPU_MASK_IMAGE_FROM_SIZE_H_ #define NNUTILS_CPU_MASK_IMAGE_FROM_SIZE_H_ #include <cassert> #ifdef __cplusplus namespace nnutils { namespace cpu { template <typename T, typename Int> void mask_image_from_size(const Int N, const Int C, const Int H, const Int W, ...
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)...
DRB097-target-teams-distribute-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...
kClistDens.c
/* Info: Feel free to use these lines as you wish. This program iterates over all k-cliques. It find a k(1+eps) approximation of the kclique densest. It is highly scallable. To compile: "gcc kClistDens.c -O9 -o kClistDens -fopenmp". To execute: "./kClistDens p k eps edgelist.txt". "edgelist.txt" should contain the gr...
EmbeddingBag.h
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
image-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % IIIII M M AAA GGGG EEEEE ...
trace.c
/* * trace.c - This file contains the functions for firing primary rays * and handling subsequent calculations * * $Id: trace.c,v 1.107 2004/05/28 15:23:34 johns Exp $ */ #include "machine.h" #include "types.h" #include "macros.h" #include "vector.h" #include "shade.h" #include "camera.h" #include "u...
omptough.c
#include <pthread.h> #include <stdlib.h> #include <malloc.h> #include <unistd.h> #include <stdio.h> #include <omp.h> #include "papi_test.h" #define NITER (100000) int main( int argc, char* argv[] ) { int i; int ret; int nthreads; int *evtset; int *ctrcode; nthreads = omp_get_max_threads(); evtset = (...
GB_AxB_colscale_template.c
//------------------------------------------------------------------------------ // GB_AxB_colscale_template: C=A*D where D is a square diagonal matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPD...
ast-dump-openmp-taskloop-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 taskloop simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp taskloop simd for (int i = 0; i < x; ...
LAGraph_pagerank3c.c
//------------------------------------------------------------------------------ // LAGraph_pagerank3c: pagerank using a real semiring //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2019 LAGraph Contributors. (se...
kernel.c
#include "SimpleMOC-kernel_header.h" void run_kernel( Input * I, Source * S, Table * table) { // Enter Parallel Region #pragma omp parallel default(none) shared(I, S, table) { #ifdef OPENMP int thread = omp_get_thread_num(); #else int thread = 0; #endif // Create Thread Local Random Seed unsigned int...
target_exit_data_map_messages.c
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s -Wuninitialized // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - -x c++ %s -Wuninitialized // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp-simd -ferror-limit 10...
GB_binop__bor_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
MorseSmaleComplex3D.h
/// \ingroup base /// \class ttk::MorseSmaleComplex3D:: /// \author Guillaume Favelier <guillaume.favelier@lip6.fr> /// \author Julien Tierny <julien.tierny@lip6.fr> /// \date February 2017. /// /// \brief TTK %morseSmaleComplex3D processing package. /// /// %MorseSmaleComplex3D is a TTK processing package that takes a...
metadirective.c
#define N 100 #include <stdio.h> int main() { int errors = 0; int v1[N], v2[N], v3[N]; for(int i=0; i<N; i++){ v1[i]=(i+1); v2[i]=-(i+1); } #pragma omp target map(to:v1,v2) map(from:v3) device(0) #pragma omp metadirective \ when( device={arch("amdgcn")}: teams loop) \ ...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__second_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-...
Matrix.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
GB_unaryop__identity_int8_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...
truedepsingleelement-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...
serial_tree_learner.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_TREELEARNER_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #include <LightGBM/dataset.h> #include <Ligh...
workspace.h
#ifndef Workspace_H #define Workspace_H #include "logger.h" #include "matrix.h" #include "Printer.h" namespace puma { class Workspace { public: // --- Start Constructors --- // Workspace(long x, long y, long z, short val, double voxelLength) { log = new puma::Logger(); ...
GxB_Type_name.c
//------------------------------------------------------------------------------ // GxB_Type_name: return the name of a type //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apach...
trmm.c
/** * 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 */ /* trmm.c: this file is part of PolyBench/C */ #include <stdio.h> #include <unistd.h> #include <string.h> #include...
o10glogon_fmt_plug.c
/* * This software was written by JimF jfoug AT cox dot net * in 2016. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (c) 2016 JimF ...
GB_binop__pow_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DRB048-firstprivate-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...
TSDFVoxelGridImpl.h
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...