source
stringlengths
3
92
original_c
stringlengths
26
2.25M
no_omp_formatted
stringlengths
0
2.25M
omp_formatted
stringlengths
0
2.25M
elemwise_binary_op.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 ...
/*! * \file elemwise_binary_op.h * \brief Function definition of elementwise binary operators */ #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_OP_H_ #define MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_OP_H_ #include <mxnet/operator_util.h> #include <mxnet/op_attr_types.h> #include <vector> #include <string> #include <u...
/*! * \file elemwise_binary_op.h * \brief Function definition of elementwise binary operators */ #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_OP_H_ #define MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_OP_H_ #include <mxnet/operator_util.h> #include <mxnet/op_attr_types.h> #include <vector> #include <string> #include <u...
pf_fold.c
/* * partiton function for single RNA secondary structures * * Simplified interfaces and backward compatibility * wrappers * * Ivo L Hofacker + Ronny Lorenz * Vienna RNA package */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /*####...
/* * partiton function for single RNA secondary structures * * Simplified interfaces and backward compatibility wrappers * * Ivo L Hofacker + Ronny Lorenz Vienna RNA package */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* ########################################### */ /* # deprecated functions below ...
/* * partiton function for single RNA secondary structures * * Simplified interfaces and backward compatibility wrappers * * Ivo L Hofacker + Ronny Lorenz Vienna RNA package */ #ifdef HAVE_CONFIG_H #include "config.h" #endif /* ########################################### */ /* # deprecated functions below ...
GB_binop__rdiv_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...
//------------------------------------------------------------------------------ // 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: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
tree-vectorizer.h
/* Vectorizer Copyright (C) 2003-2019 Free Software Foundation, Inc. Contributed by Dorit Naishlos <dorit@il.ibm.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either ve...
#ifndef GCC_TREE_VECTORIZER_H #define GCC_TREE_VECTORIZER_H typedef struct _stmt_vec_info *stmt_vec_info; #include "tree-data-ref.h" #include "tree-hash-traits.h" #include "target.h" /* Used for naming of new temporaries. */ enum vect_var_kind { vect_simple_var, vect_pointer_var, vect_scalar_var, ...
#ifndef GCC_TREE_VECTORIZER_H #define GCC_TREE_VECTORIZER_H typedef struct _stmt_vec_info *stmt_vec_info; #include "tree-data-ref.h" #include "tree-hash-traits.h" #include "target.h" /* Used for naming of new temporaries. */ enum vect_var_kind { vect_simple_var, vect_pointer_var, vect_scalar_var, ...
ztrsm.c
#include "blas.h" #include "error.h" #include <stdio.h> #include "handle.h" #include "config.h" #include "ztrsm.fatbin.c" static inline size_t min(size_t a, size_t b) { return (a < b) ? a : b; } static inline size_t max(size_t a, size_t b) { return (a > b) ? a : b; } static inline CUresult cuMemcpyHtoD2DAsync(CUdevic...
#include "blas.h" #include "error.h" #include <stdio.h> #include "handle.h" #include "config.h" #include "ztrsm.fatbin.c" static inline size_t min(size_t a, size_t b) { return (a < b) ? a : b; } static inline size_t max(size_t a, size_t b) { return (a > b) ? a : b; } static inline CUresult cuMemcpyHtoD2DAs...
#include "blas.h" #include "error.h" #include <stdio.h> #include "handle.h" #include "config.h" #include "ztrsm.fatbin.c" static inline size_t min(size_t a, size_t b) { return (a < b) ? a : b; } static inline size_t max(size_t a, size_t b) { return (a > b) ? a : b; } static inline CUresult cuMemcpyHtoD2DAs...
binStruct.h
#ifndef binStruct_h #define binStruct_h #include "../../baseFunctions/fpBaseNode.h" #include "../../baseFunctions/MWC.h" #include "obsIndexAndClassVec.h" #include "zipClassAndValue.h" #include "processingNodeBin.h" #include <vector> #include <assert.h> namespace fp{ template <typename T, typename Q> class binStruc...
#ifndef binStruct_h #define binStruct_h #include "../../baseFunctions/fpBaseNode.h" #include "../../baseFunctions/MWC.h" #include "obsIndexAndClassVec.h" #include "zipClassAndValue.h" #include "processingNodeBin.h" #include <vector> #include <assert.h> namespace fp{ template <typename T, typename Q> class binStruc...
#ifndef binStruct_h #define binStruct_h #include "../../baseFunctions/fpBaseNode.h" #include "../../baseFunctions/MWC.h" #include "obsIndexAndClassVec.h" #include "zipClassAndValue.h" #include "processingNodeBin.h" #include <vector> #include <assert.h> namespace fp{ template <typename T, typename Q> class binStruc...
particle_levelset_utilities.h
/* ============================================================================== KratosTestApplication A library based on: Kratos A General Purpose Software for Multi-Physics Finite Element Analysis Version 1.0 (Released on march 05, 2007). Copyright 2010 Pooyan Dadvand, Riccardo Rossi pooyan@cimne.upc.edu rrossi@cim...
// // Project Name: Kratos // Last Modified by: $Author: rrossi $ // Date: $Date: 2007-03-06 10:30:31 $ // Revision: $Revision: 1.2 $ // // #if !defined(KRATOS_PARTICLE_LEVELSET_UTILITIES_INCLUDED ) #define KRATOS_PARTICLE_LEVELSET_UTILITIES_INCLUDED // System include...
// // Project Name: Kratos // Last Modified by: $Author: rrossi $ // Date: $Date: 2007-03-06 10:30:31 $ // Revision: $Revision: 1.2 $ // // #if !defined(KRATOS_PARTICLE_LEVELSET_UTILITIES_INCLUDED ) #define KRATOS_PARTICLE_LEVELSET_UTILITIES_INCLUDED // System include...
hypre_merge_sort.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) **************************************...
#include "_hypre_utilities.h" #include "hypre_hopscotch_hash.h" #include "../seq_mv/HYPRE_seq_mv.h" //#define DBG_MERGE_SORT #ifdef DBG_MERGE_SORT #include <algorithm> #include <unordered_map> #endif #define SWAP(T, a, b) do { T tmp = a; a = b; b = tmp; } while (0) /* union of two sorted (in ascending order) array ...
#include "_hypre_utilities.h" #include "hypre_hopscotch_hash.h" #include "../seq_mv/HYPRE_seq_mv.h" //#define DBG_MERGE_SORT #ifdef DBG_MERGE_SORT #include <algorithm> #include <unordered_map> #endif #define SWAP(T, a, b) do { T tmp = a; a = b; b = tmp; } while (0) /* union of two sorted (in ascending order) array ...
par_mgr.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) **************************************...
/****************************************************************************** * * Two-grid system solver * *****************************************************************************/ #include "_hypre_parcsr_ls.h" #include "par_amg.h" #include "par_mgr.h" #ifdef HYPRE_USING_DSUPERLU #include "dsuperlu.h" #e...
/****************************************************************************** * * Two-grid system solver * *****************************************************************************/ #include "_hypre_parcsr_ls.h" #include "par_amg.h" #include "par_mgr.h" #ifdef HYPRE_USING_DSUPERLU #include "dsuperlu.h" #e...
GB_binop__isge_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
omp_pause_resource.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_pause_resource() { int fails, nthreads, my_dev; fails = 0; nthreads = 0; my_dev = omp_get_initial_device(); #pragma omp parallel #pragma omp single nthreads = omp_get_num_threads(); if (omp_pause_resource(omp_paus...
// RUN:%libomp - compile - and - run #include <stdio.h> #include "omp_testsuite.h" int test_omp_pause_resource() { int fails, nthreads, my_dev; fails = 0; nthreads = 0; my_dev = omp_get_initial_device(); nthreads = omp_get_num_threads(); if (omp_pause_resource(omp_pause_soft, my_dev)) ...
// RUN:%libomp - compile - and - run #include <stdio.h> #include "omp_testsuite.h" int test_omp_pause_resource() { int fails, nthreads, my_dev; fails = 0; nthreads = 0; my_dev = omp_get_initial_device(); #pragma omp parallel #pragma omp single nthreads = omp_get_num_threads(); if (omp_pause...
fibo_openmp.c
#include <stdio.h> #include <math.h> /***** Begin *****/ long long fiboArry[100]; unsigned long long fibo(int n){ return 1/sqrt(5) * (pow((1+sqrt(5))/2, n) - pow((1-sqrt(5))/2, n)); } int main() { int i; int n; // long long temp1 = 1; // long long temp2 = 1; // long long next_fibo; scanf("%...
#include <stdio.h> #include <math.h> /***** Begin *****/ long long fiboArry[100]; unsigned long long fibo(int n) { return 1 / sqrt(5) * (pow((1 + sqrt(5)) / 2, n) - pow((1 - sqrt(5)) / 2, n)); } int main() { int i; int n; //long long temp1 = 1; //long long temp2 = 1; //long long next_fibo; ...
#include <stdio.h> #include <math.h> /***** Begin *****/ long long fiboArry[100]; unsigned long long fibo(int n) { return 1 / sqrt(5) * (pow((1 + sqrt(5)) / 2, n) - pow((1 - sqrt(5)) / 2, n)); } int main() { int i; int n; //long long temp1 = 1; //long long temp2 = 1; //long long next_fibo; ...
io_and_allocation.h
#ifndef IO_AND_ALLOCATION #define IO_AND_ALLOCATION #include <iostream> #include <string> #include <sstream> #include <fstream> #include <vector> #include <bitset> #include <ctime> #include <algorithm> #include <numeric> #include <random> #include <cmath> // log2 //#include <omp.h> #include "config.h" #include "help...
#ifndef IO_AND_ALLOCATION #define IO_AND_ALLOCATION #include <iostream> #include <string> #include <sstream> #include <fstream> #include <vector> #include <bitset> #include <ctime> #include <algorithm> #include <numeric> #include <random> #include <cmath> // log2 // #include <omp.h> #include "config.h" #include "hel...
#ifndef IO_AND_ALLOCATION #define IO_AND_ALLOCATION #include <iostream> #include <string> #include <sstream> #include <fstream> #include <vector> #include <bitset> #include <ctime> #include <algorithm> #include <numeric> #include <random> #include <cmath> // log2 // #include <omp.h> #include "config.h" #include "hel...
decorate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/cache-view.h" #include "MagickCore/color-private.h" #include "MagickCore/colorspace-private.h" #include "MagickCore/composite.h" #include "MagickCore/decorate.h" #include "MagickCore/exception.h" #include "MagickCore/exception-privat...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/cache-view.h" #include "MagickCore/color-private.h" #include "MagickCore/colorspace-private.h" #include "MagickCore/composite.h" #include "MagickCore/decorate.h" #include "MagickCore/exception.h" #include "MagickCore/exception-privat...
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...
#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...
#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...
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
GB_unaryop__identity_int8_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...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
omp_dr.h
/* * OpenMP + dag_recorder */ /* this file provides macros with which users can easily turn on/off dag recorder for your OpenMP task parallel programs. provided macros are: (i) pragma_omp_task(option, statement) (ii) pragma_omp_taskc(option, callable) (iii) pragma_omp_taskwait they are r...
/* * OpenMP + dag_recorder */ /* * this file provides macros with which users can easily turn on/off dag * recorder for your OpenMP task parallel programs. * * provided macros are: * * (i) pragma_omp_task(option, statement) (ii) pragma_omp_taskc(option, * callable) (iii) pragma_omp_taskwait * * they are ...
/* * OpenMP + dag_recorder */ /* * this file provides macros with which users can easily turn on/off dag * recorder for your OpenMP task parallel programs. * * provided macros are: * * (i) pragma_omp_task(option, statement) (ii) pragma_omp_taskc(option, * callable) (iii) pragma_omp_taskwait * * they are ...
statistical_analysis.c
#include<stdio.h> #include<omp.h> #include<math.h> #define INT_MAX 9999999 #define INT_MIN -999999 int main() { int n; scanf("%d", &n); int marks[n]; for(int i=0; i<n; i++) { scanf("%d", (marks+i)); } int max = INT_MIN; int min = INT_MAX; int sum = 0; #pragma omp parallel for shared(marks) reduction (+:sum...
#include<stdio.h> #include<omp.h> #include<math.h> #define INT_MAX 9999999 #define INT_MIN -999999 int main() { int n; scanf("%d", &n); int marks[n]; for (int i = 0; i < n; i++) { scanf("%d", (marks + i)); } int max = INT_MIN; int min = INT_MAX; int sum = 0; for (int i ...
#include<stdio.h> #include<omp.h> #include<math.h> #define INT_MAX 9999999 #define INT_MIN -999999 int main() { int n; scanf("%d", &n); int marks[n]; for (int i = 0; i < n; i++) { scanf("%d", (marks + i)); } int max = INT_MIN; int min = INT_MAX; int sum = 0; #pragma omp par...
decorate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* * Include declarations. */ #include "magick/studio.h" #include "magick/cache-view.h" #include "magick/channel.h" #include "magick/color-private.h" #include "magick/colorspace-private.h" #include "magick/composite.h" #include "magick/decorate.h" #include "magick/exception.h" #include "magick/exception-private.h"...
/* * Include declarations. */ #include "magick/studio.h" #include "magick/cache-view.h" #include "magick/channel.h" #include "magick/color-private.h" #include "magick/colorspace-private.h" #include "magick/composite.h" #include "magick/decorate.h" #include "magick/exception.h" #include "magick/exception-private.h"...
GB_unop__identity_uint64_fc64.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_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
//------------------------------------------------------------------------------ // 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__times_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-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
debug_so8_acoustic.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict data; int *size; in...
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict data; int *size; ...
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict data; int *size; ...
dsdd.c
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file src/backends/openmp/blrm/dsdd.c * @version 1.3.0 * @au...
#include "common.h" #include "starsh.h" int starsh_blrm__dsdd_omp(STARSH_blrm ** matrix, STARSH_blrf * format, int maxrank, double tol, int onfly) //!Approximate each tile by divide - and - conquer SVD(GESDD function). /* * ! @param[out] matrix: Address of pointer to @ref STARSH_blrm object. ...
#include "common.h" #include "starsh.h" int starsh_blrm__dsdd_omp(STARSH_blrm ** matrix, STARSH_blrf * format, int maxrank, double tol, int onfly) //!Approximate each tile by divide - and - conquer SVD(GESDD function). /* * ! @param[out] matrix: Address of pointer to @ref STARSH_blrm object. ...
Searching.202007281116.only_gather_top_m.profile.h
// // Created by Zhen Peng on 7/28/2020. // #ifndef BATCH_SEARCHING_SEARCHING_H #define BATCH_SEARCHING_SEARCHING_H #include <vector> #include <boost/dynamic_bitset.hpp> //#include <boost/sort/sort.hpp> #include <iostream> #include <fstream> #include <unordered_map> #include <immintrin.h> #include <cstring> #include ...
// // Created by Zhen Peng on 7/28/2020. // #ifndef BATCH_SEARCHING_SEARCHING_H #define BATCH_SEARCHING_SEARCHING_H #include <vector> #include <boost/dynamic_bitset.hpp> //#include <boost/sort/sort.hpp> #include <iostream> #include <fstream> #include <unordered_map> #include <immintrin.h> #include <cstring> #include ...
// // Created by Zhen Peng on 7/28/2020. // #ifndef BATCH_SEARCHING_SEARCHING_H #define BATCH_SEARCHING_SEARCHING_H #include <vector> #include <boost/dynamic_bitset.hpp> //#include <boost/sort/sort.hpp> #include <iostream> #include <fstream> #include <unordered_map> #include <immintrin.h> #include <cstring> #include ...
SSBOStreamer.h
/* * SSBOStreamer.h * * Copyright (C) 2018 by VISUS (Universitaet Stuttgart) * Alle Rechte vorbehalten. */ #ifndef MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #define MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */ #include "v...
#ifndef MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #define MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */ #include "vislib/graphics/gl/IncludeAllGL.h" #include "vislib/graphics/gl/GLSLShader.h" #inc...
#ifndef MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #define MEGAMOLCORE_SSBOSTREAMER_H_INCLUDED #if (defined(_MSC_VER) && (_MSC_VER > 1000)) #pragma once #endif /* (defined(_MSC_VER) && (_MSC_VER > 1000)) */ #include "vislib/graphics/gl/IncludeAllGL.h" #include "vislib/graphics/gl/GLSLShader.h" #inc...
9717.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 */ #define EXTRALARGE_DATASET #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench co...
#define EXTRALARGE_DATASET #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <polybench.h> /* Include benchmark-specific header. */ /* Default data type is double, default size is 4000. */ #include "correlation.h" /* Array initialization. ...
#define EXTRALARGE_DATASET #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <polybench.h> /* Include benchmark-specific header. */ /* Default data type is double, default size is 4000. */ #include "correlation.h" /* Array initialization. ...
GB_binop__rminus_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
loop_multiple_variables_omp.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main() { int* a = (int*)malloc(sizeof(int)*4); int* b = (int*)malloc(sizeof(int)*4); a[0] = 0; a[1] = 1; a[2] = 2; a[3] = 3; #pragma omp parallel for { for(int i = 0; i < 4; i++) { b[i] = a[i]; ...
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main() { int *a = (int *)malloc(sizeof(int) * 4); int *b = (int *)malloc(sizeof(int) * 4); a[0] = 0; a[1] = 1; a[2] = 2; a[3] = 3; for (int i = 0; i < 4; i++) { b[i] = a[i]; } printf("[%d,%d,%d,%d]\n", b[0],...
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main() { int *a = (int *)malloc(sizeof(int) * 4); int *b = (int *)malloc(sizeof(int) * 4); a[0] = 0; a[1] = 1; a[2] = 2; a[3] = 3; #pragma omp parallel for { for (int i = 0; i < 4; i++) { b[i] = a[i];...
cross_correlate_2d.c
// MIT License // // Copyright (c) 2021 Florian // // 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 rights // to use, copy, modify, mer...
// MIT License // // Copyright (c) 2021 Florian // // 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 rights // to use, copy, modify, mer...
// MIT License // // Copyright (c) 2021 Florian // // 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 rights // to use, copy, modify, mer...
GB_unaryop__lnot_uint16_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
scratch.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> static void fun() { int tid; tid = omp_get_thread_num(); printf("Hi from thread %d\n", tid); } int main (int argc, char *argv[]) { #pragma omp parallel { fun(); } /* All threads join master thread, barrier and disband */ retu...
#include <omp.h> #include <stdio.h> #include <stdlib.h> static void fun() { int tid; tid = omp_get_thread_num(); printf("Hi from thread %d\n", tid); } int main(int argc, char *argv[]) { fun(); /* All threads join master thread, barrier and disband */ return 0; }
#include <omp.h> #include <stdio.h> #include <stdlib.h> static void fun() { int tid; tid = omp_get_thread_num(); printf("Hi from thread %d\n", tid); } int main(int argc, char *argv[]) { #pragma omp parallel { fun(); } /* All threads join master thread, barri...
Tutorial.h
//================================================================================================= /*! // \file blaze/Tutorial.h // \brief Tutorial of the Blaze library // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part of the Blaze library. You can redistribute it and/or m...
//================================================================================================= /* * ! // \file blaze/Tutorial.h // \brief Tutorial of the Blaze library // * // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // * This file is part of the Blaze library. You can redistribute it...
//================================================================================================= /* * ! // \file blaze/Tutorial.h // \brief Tutorial of the Blaze library // * // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // * This file is part of the Blaze library. You can redistribute it...
par_csr_matvec.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...
/****************************************************************************** * * Matvec functions for hypre_CSRMatrix class. * *****************************************************************************/ #include "_hypre_parcsr_mv.h" #include <assert.h> /*#ifdef HYPRE_USING_GPU extern "C" { void PackOnDevic...
/****************************************************************************** * * Matvec functions for hypre_CSRMatrix class. * *****************************************************************************/ #include "_hypre_parcsr_mv.h" #include <assert.h> /*#ifdef HYPRE_USING_GPU extern "C" { void PackOnDevic...
irbuilder_unroll_partial_factor_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
GB_unaryop__identity_fp32_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_bitmap_assign_C_template.c
//------------------------------------------------------------------------------ // GB_bitmap_assign_C_template: iterate over a bitmap matrix C //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Licens...
//------------------------------------------------------------------------------ // GB_bitmap_assign_C_template: iterate over a bitmap matrix C //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Licens...
//------------------------------------------------------------------------------ // GB_bitmap_assign_C_template: iterate over a bitmap matrix C //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Licens...
m2.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;...
#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;...
#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;...
test.c
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <math.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (957*3) #define ZERO(X) ZERO_ARRAY(N, X) #define INIT() { \ INIT_LOOP(N, { \ ...
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <math.h> #include <omp.h> #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (957*3) #define ZERO(X) ZERO_ARRAY(N, X) #define INIT() { \ INIT_LOOP(N, { \ Ad[i] = 1 << 16; \ Bd[i] = i << 16; \ Cd...
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <math.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (957*3) #define ZERO(X) ZERO_ARRAY(N, X) #define INIT() { \ INIT_LOOP(N, { \ ...
extract_image_patches.h
/* Copyright 2018 The Blueoil Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
#ifndef DLK_FUNC_EXTRACT_IMAGE_PATCHES #define DLK_FUNC_EXTRACT_IMAGE_PATCHES #include <algorithm> #include "global.h" #include "tensor_view.h" #include "time_measurement.h" #include "pack_input_to_qwords.h" #include <limits.h> #ifdef USE_NEON #include <arm_neon.h> #endif template < typename T > void func_Extract...
#ifndef DLK_FUNC_EXTRACT_IMAGE_PATCHES #define DLK_FUNC_EXTRACT_IMAGE_PATCHES #include <algorithm> #include "global.h" #include "tensor_view.h" #include "time_measurement.h" #include "pack_input_to_qwords.h" #include <limits.h> #ifdef USE_NEON #include <arm_neon.h> #endif template < typename T > void func_Extract...
vectors.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "timer.h" int g_matrix_n, g_matrix_m, g_num_threads; typedef struct matrix_t { int** values; int* row_size; } matrix_t; void print_matrix(matrix_t*); /* Sum each row of the provided matrix, using the row_size to determine how many items ar...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "timer.h" int g_matrix_n, g_matrix_m, g_num_threads; typedef struct matrix_t { int **values; int *row_size; } matrix_t; void print_matrix(matrix_t *); /* * Sum each row of the provided matrix, using the row_size to determine how * many...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "timer.h" int g_matrix_n, g_matrix_m, g_num_threads; typedef struct matrix_t { int **values; int *row_size; } matrix_t; void print_matrix(matrix_t *); /* * Sum each row of the provided matrix, using the row_size to determine how * many...
merge_when_user_omp_pragma.c
int main() { int A[10][10]; int i,j; // This pragma use to lead to an invalid omp code because we don't detect that an omp pragma already exist #pragma omp parallel for for(i=0; i<10; i++) { for(j=0; j<10; j++) { A[i][j] =0; } } }
int main() { int A[10][10]; int i,j; // This pragma use to lead to an invalid omp code because we don't detect that an omp pragma already exist for(i=0; i<10; i++) { for(j=0; j<10; j++) { A[i][j] =0; } } }
int main() { int A[10][10]; int i,j; // This pragma use to lead to an invalid omp code because we don't detect that an omp pragma already exist #pragma omp parallel for for(i=0; i<10; i++) { for(j=0; j<10; j++) { A[i][j] =0; } } }
GB_binop__rdiv_uint64.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_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
main_omp.c
// // main_serial.cc // Non-parallelized version of Mandelbrot set calculation // Created by Joshua Wallace on 2/12/15. // #include <stdio.h> #include <stdlib.h> #include <complex.h> #include <omp.h> /*The following function computes z_{n+1} given z_n and the real and imaginary component of c*/ double complex ne...
// // main_serial.cc // Non-parallelized version of Mandelbrot set calculation // Created by Joshua Wallace on 2/12/15. // #include <stdio.h> #include <stdlib.h> #include <complex.h> #include <omp.h> /*The following function computes z_{n+1} given z_n and the real and imaginary component of c*/ double complex ne...
// // main_serial.cc // Non-parallelized version of Mandelbrot set calculation // Created by Joshua Wallace on 2/12/15. // #include <stdio.h> #include <stdlib.h> #include <complex.h> #include <omp.h> /*The following function computes z_{n+1} given z_n and the real and imaginary component of c*/ double complex ne...
ejercicio7.c
/*Para compilar usar (-lrt: real time library): gcc -O2 Sumavectores.c -o SumaVectores -lrt Para ejecutar use: SumaVectores longitud */ #include <stdlib.h> #include <stdio.h> #include <omp.h> #include <time.h> #define PRINTF_ALL //Sólo puede estar definida una de las tres constantes VECTOR_ (sólo uno de los ... //tre...
/*Para compilar usar (-lrt: real time library): gcc -O2 Sumavectores.c -o SumaVectores -lrt Para ejecutar use: SumaVectores longitud */ #include <stdlib.h> #include <stdio.h> #include <omp.h> #include <time.h> #define PRINTF_ALL //Sólo puede estar definida una de las tres constantes VECTOR_ (sólo uno de los ... //tre...
/*Para compilar usar (-lrt: real time library): gcc -O2 Sumavectores.c -o SumaVectores -lrt Para ejecutar use: SumaVectores longitud */ #include <stdlib.h> #include <stdio.h> #include <omp.h> #include <time.h> #define PRINTF_ALL //Sólo puede estar definida una de las tres constantes VECTOR_ (sólo uno de los ... //tre...
BaseFunc.h
bool IsPolarized(double &Polarization) { if (Polarization==-1.){return false;} else {return true;} } void PolarizationTerm(uint ThetaLength, double * ThetaPtr, double * CosTerm, double * SinTerm, bool & Polarized) { if (P...
bool IsPolarized(double &Polarization) { if (Polarization == -1.) { return false; } else { return true; } } void PolarizationTerm(uint ThetaLength, double *ThetaPtr, double *CosTerm, double *SinTerm, bool & Pol...
bool IsPolarized(double &Polarization) { if (Polarization == -1.) { return false; } else { return true; } } void PolarizationTerm(uint ThetaLength, double *ThetaPtr, double *CosTerm, double *SinTerm, bool & Pol...
guess.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #define _DISP 0 void disp(int * num1){ #ifndef _DISP printf( "num: %d %d %d %d\n",num1[0],num1[1],num1[2],num1[3]); #endif } inline void num2p(int seqn, int * nump){ //数字转为数组,并用指针传出 int i; for(i=0; i<4; i++) nump[i]=0; i=3; while(seqn){...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #define _DISP 0 void disp(int * num1){ #ifndef _DISP printf( "num: %d %d %d %d\n",num1[0],num1[1],num1[2],num1[3]); #endif } inline void num2p(int seqn, int * nump){ //数字转为数组,并用指针传出 int i; for(i=0; i<4; i++) nump[i]=0; i=3; while(seqn){...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #define _DISP 0 void disp(int * num1){ #ifndef _DISP printf( "num: %d %d %d %d\n",num1[0],num1[1],num1[2],num1[3]); #endif } inline void num2p(int seqn, int * nump){ //数字转为数组,并用指针传出 int i; for(i=0; i<4; i++) nump[i]=0; i=3; while(seqn){...
no_loop_1.c
#include <stdio.h> #include <omp.h> #pragma omp declare target int foo(int i) { return i+1; } #pragma omp end declare target int main() { int N = 100000; int a[N]; int b[N]; int i; for (i=0; i<N; i++) b[i]=i; for (i=0; i<N; i++) a[i]=0; int j; #pragma omp target teams distribute parallel fo...
#include <stdio.h> #include <omp.h> int foo(int i) { return i + 1; } int main() { int N = 100000; int a[N]; int b[N]; int i; for (i = 0; i < N; i++) b[i] = i; for (i = 0; i < N; i++) a[i] = 0; int j; for (j = 0; j < N; j++) a[j] = b[j]; for (int k...
#include <stdio.h> #include <omp.h> #pragma omp declare target int foo(int i) { return i + 1; } #pragma omp end declare target int main() { int N = 100000; int a[N]; int b[N]; int i; for (i = 0; i < N; i++) b[i] = i; for (i = 0; i < N; i++) a[i] = 0; int j; #pra...
GB_unop__identity_uint8_int16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
fastmarching_tree.h
//last change: by PHC, 2013-02-13. adjust memory allocation to make it more robust /***************************************************************** * file : fastmarching_tree.h, Hang Xiao, Jan 18, 2012 * * fastmarching_tree * fastmarching_tracing * * ***********************************************************...
// last change:by PHC, 2013 - 02 - 13. adjust memory allocation to make it more robust /***************************************************************** * file : fastmarching_tree.h, Hang Xiao, Jan 18, 2012 * * fastmarching_tree * fastmarching_tracing * * *******************************************************...
// last change:by PHC, 2013 - 02 - 13. adjust memory allocation to make it more robust /***************************************************************** * file : fastmarching_tree.h, Hang Xiao, Jan 18, 2012 * * fastmarching_tree * fastmarching_tracing * * *******************************************************...
bspline_create.c
///////////////////////////////////////////////////////////////////////////// // einspline: a library for creating and evaluating B-splines // // Copyright (C) 2007 Kenneth P. Esler, Jr. // // // // This...
///////////////////////////////////////////////////////////////////////////// // einspline: a library for creating and evaluating B-splines // // Copyright (C) 2007 Kenneth P. Esler, Jr. // // // // This...
///////////////////////////////////////////////////////////////////////////// // einspline: a library for creating and evaluating B-splines // // Copyright (C) 2007 Kenneth P. Esler, Jr. // // // // This...
simpar-omp.c
/** * @file simpar.c * @authors: Filipe Marques, Luís Fonseca * @date 29 Abr 2019 * @brief Header Parallellized implementation of simpar.h containing the particle simulation functions's source and main. */ #include "simpar.h" #include "omp.h" cell_t ** dummy; void usg_err() { printf("\t[-] usage : ./simpar ...
/** * @file simpar.c * @authors: Filipe Marques, Luís Fonseca * @date 29 Abr 2019 * @brief Header Parallellized implementation of simpar.h containing the particle simulation functions's source and main. */ #include "simpar.h" #include "omp.h" cell_t **dummy; void usg_err() { printf("\t[-] usage : ./simpar ...
/** * @file simpar.c * @authors: Filipe Marques, Luís Fonseca * @date 29 Abr 2019 * @brief Header Parallellized implementation of simpar.h containing the particle simulation functions's source and main. */ #include "simpar.h" #include "omp.h" cell_t **dummy; void usg_err() { printf("\t[-] usage : ./simpar ...
CPUMatrixTensorImpl.h
// Move some files out of CPUMatrixImpl.h to prevent compiler crash on out-of-heap #include "CPUMatrix.h" #include "TensorOps.h" namespace Microsoft { namespace MSR { namespace CNTK { // ======================================================================= // TensorView support // =================================...
// Move some files out of CPUMatrixImpl.h to prevent compiler crash on out-of-heap #include "CPUMatrix.h" #include "TensorOps.h" namespace Microsoft { namespace MSR { namespace CNTK { // ======================================================================= // TensorView support // =================================...
// Move some files out of CPUMatrixImpl.h to prevent compiler crash on out-of-heap #include "CPUMatrix.h" #include "TensorOps.h" namespace Microsoft { namespace MSR { namespace CNTK { // ======================================================================= // TensorView support // =================================...
GB_binop__ldexp_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-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
comm.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 ...
/** * Copyright (c) 2015 by Contributors */ #ifndef MXNET_KVSTORE_COMM_H_ #define MXNET_KVSTORE_COMM_H_ #include <dmlc/omp.h> #include <string> #include <algorithm> #include <utility> #include <limits> #include <vector> #include <tuple> #include <thread> #include "mxnet/ndarray.h" #include "gradient_compression.h" ...
/** * Copyright (c) 2015 by Contributors */ #ifndef MXNET_KVSTORE_COMM_H_ #define MXNET_KVSTORE_COMM_H_ #include <dmlc/omp.h> #include <string> #include <algorithm> #include <utility> #include <limits> #include <vector> #include <tuple> #include <thread> #include "mxnet/ndarray.h" #include "gradient_compression.h" ...
shared-clause.c
#include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif int main() { int i, n = 7; int a[n]; for (i=0; i<n; i++) a[i] = i+1; #pragma omp parallel for shared(a) default(none) for (i=0; i<n; i++) a[i] += i; printf("Después de parallel for:\n"); for (i=0; i<n; i++) printf("a[%d...
#include <stdio.h> int main() { int i, n = 7; int a[n]; for (i = 0; i < n; i++) a[i] = i + 1; for (i = 0; i < n; i++) a[i] += i; printf("Después de parallel for:\n"); for (i = 0; i < n; i++) printf("a[%d] = %d\n", i, a[i]); }
#include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif int main() { int i, n = 7; int a[n]; for (i = 0; i < n; i++) a[i] = i + 1; #pragma omp parallel for shared(a) default(none) for (i = 0; i < n; i++) a[i] += i; printf("Después de parallel for:\n"); for (i = 0; i < n; ...
q2.c
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "common.h" const i32 REPEAT_COUNT = 512; const i32 ARRAY_SIZE = 8192; const i32 RECURSION_SIZE_LIMIT = 32; const i32 FILE_ARRAY_SIZE = 100000; i32* get_random_array(i32 size) { i32* arr = malloc(sizeof(i32) * size); for (i32 i ...
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "common.h" const i32 REPEAT_COUNT = 512; const i32 ARRAY_SIZE = 8192; const i32 RECURSION_SIZE_LIMIT = 32; const i32 FILE_ARRAY_SIZE = 100000; i32* get_random_array(i32 size) { i32* arr = malloc(sizeof(i32) * size); for (i32 i ...
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "common.h" const i32 REPEAT_COUNT = 512; const i32 ARRAY_SIZE = 8192; const i32 RECURSION_SIZE_LIMIT = 32; const i32 FILE_ARRAY_SIZE = 100000; i32* get_random_array(i32 size) { i32* arr = malloc(sizeof(i32) * size); for (i32 i ...
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* * Include declarations. */ #include "magick/studio.h" #include "magick/cache-private.h" #include "magick/channel.h" #include "magick/color-private.h" #include "magick/colorspace-private.h" #include "magick/composite-private.h" #include "magick/exception-private.h" #include "magick/enhance.h" #include "magick/im...
/* * Include declarations. */ #include "magick/studio.h" #include "magick/cache-private.h" #include "magick/channel.h" #include "magick/color-private.h" #include "magick/colorspace-private.h" #include "magick/composite-private.h" #include "magick/exception-private.h" #include "magick/enhance.h" #include "magick/im...
j3d27pt.c
#define BENCH_DIM 3 #define BENCH_FPP 54 #define BENCH_RAD 1 #include "common.h" double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool scop) { double start_time = sb_time(), end_time = 0.0; int dimsize = compsize + BENCH_RAD * 2; SB_TYPE (*A)[dimsize][dimsize][dimsize] = (SB_TYPE (*)[dimsize][...
#define BENCH_DIM 3 #define BENCH_FPP 54 #define BENCH_RAD 1 #include "common.h" double kernel_stencil(SB_TYPE * A1, int compsize, int timestep, bool scop) { double start_time = sb_time(), end_time = 0.0; int dimsize = compsize + BENCH_RAD * 2; SB_TYPE(*A)[dimsize][dimsize][dimsize] = (SB_TYPE(*)...
#define BENCH_DIM 3 #define BENCH_FPP 54 #define BENCH_RAD 1 #include "common.h" double kernel_stencil(SB_TYPE * A1, int compsize, int timestep, bool scop) { double start_time = sb_time(), end_time = 0.0; int dimsize = compsize + BENCH_RAD * 2; SB_TYPE(*A)[dimsize][dimsize][dimsize] = (SB_TYPE(*)...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/annotate.h" #include "MagickCore/artifact.h" #include "MagickCore/blob.h" #include "MagickCore/cache.h" #include "MagickCore/cache-private.h" #include "MagickCore/cache-view.h" #include "MagickCore/channel.h" #include "MagickCore/col...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/annotate.h" #include "MagickCore/artifact.h" #include "MagickCore/blob.h" #include "MagickCore/cache.h" #include "MagickCore/cache-private.h" #include "MagickCore/cache-view.h" #include "MagickCore/channel.h" #include "MagickCore/col...
openmp_utils.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #ifndef KRATOS_OPENMP_UTILS_H...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #ifndef KRATOS_OPENMP_UTILS_H...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #ifndef KRATOS_OPENMP_UTILS_H...
residualbased_predictorcorrector_velocity_bossak_scheme_turbulent.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // #if !defined...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // #if !defined...
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // #if !defined...
46a_so12_itt.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "ittnotify.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict ...
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "ittnotify.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restric...
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "ittnotify.h" #include "xmmintrin.h" #include "pmmintrin.h" #include <stdio.h> #include "omp.h" #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restric...
streamingbc.c
#include <omp.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include <unistd.h> #include "stinger.h" #include "streamingbc.h" #include "streamingbc_aux.h" #include "timer.h" bcForest * streamingBCCreateForestExact(int64_t NV) { return Creat...
#include <omp.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include <unistd.h> #include "stinger.h" #include "streamingbc.h" #include "streamingbc_aux.h" #include "timer.h" bcForest * streamingBCCreateForestExact(int64_t NV) { return Creat...
#include <omp.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include <unistd.h> #include "stinger.h" #include "streamingbc.h" #include "streamingbc_aux.h" #include "timer.h" bcForest * streamingBCCreateForestExact(int64_t NV) { return Creat...
GB_binop__isne_uint32.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: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
core_cgeqrt.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_zgeqrt.c, normal z -> c, Fri Sep 28 17:38:20 2018 * **/ #include <plasma_core_blas.h> #include "pla...
/** * * @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_zgeqrt.c, normal z -> c, Fri Sep 28 17:38:20 2018 * **/ #include <plasma_core_blas.h> #include "pla...
/** * * @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_zgeqrt.c, normal z -> c, Fri Sep 28 17:38:20 2018 * **/ #include <plasma_core_blas.h> #include "pla...
GB_unaryop__minv_uint16_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...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
krb5pa-sha1_fmt_plug.c
/* * Kerberos 5 "PA ENC TIMESTAMP" by magnum (modified by Dhiru) * * Pcap file -> input file: * 1. tshark -r capture.pcapng -T pdml > ~/capture.pdml * 2. krbng2john.py ~/capture.pdml > krb5.in * 3. Run john on krb5.in * * http://www.ietf.org/rfc/rfc4757.txt * http://www.securiteam.com/windowsntfocus/5BP0H0A6K...
#if FMT_EXTERNS_H extern struct fmt_main fmt_krb5pa; #elif FMT_REGISTERS_H john_register_one(&fmt_krb5pa); #else #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include "arch.h" #include "misc.h" #include "formats.h" #include "options.h" #include "common.h" #include "unicode.h" #includ...
#if FMT_EXTERNS_H extern struct fmt_main fmt_krb5pa; #elif FMT_REGISTERS_H john_register_one(&fmt_krb5pa); #else #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #ifdef _OPENMP static int omp_t = 1; #include <omp.h> #ifndef OMP_SCALE #define OMP_SCALE 64 #endif #endif #incl...
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) ...
/* * 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) ...
/* * 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) ...
DenseMatrix.h
/* * DenseMatrix.h * * Created on: Nov 25, 2015 * Author: Michael Wegner (michael.wegner@student.kit.edu) */ #ifndef NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #define NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #include "../Globals.h" #include "Vector.h" #include <cassert> #include <vector> namespace NetworKit {...
/* * DenseMatrix.h * * Created on: Nov 25, 2015 Author: Michael Wegner * (michael.wegner@student.kit.edu) */ #ifndef NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #define NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #include "../Globals.h" #include "Vector.h" #include <cassert> #include <vector> namespace NetworKit { ...
/* * DenseMatrix.h * * Created on: Nov 25, 2015 Author: Michael Wegner * (michael.wegner@student.kit.edu) */ #ifndef NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #define NETWORKIT_CPP_ALGEBRAIC_DENSEMATRIX_H_ #include "../Globals.h" #include "Vector.h" #include <cassert> #include <vector> namespace NetworKit { ...
comms.h
/* //@HEADER // ***************************************************************************** // // HPCGraph: Graph Computation on High Performance Computing Systems // Copyright (2016) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government r...
#ifndef _COMMS_H_ #define _COMMS_H_ #include <mpi.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include "dist_graph.h" #include "util.h" extern int procid, nprocs; extern bool verbose, debug, debug2, verify, output; #define MAX_SEND_SIZE 268435456 #define THRE...
#ifndef _COMMS_H_ #define _COMMS_H_ #include <mpi.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include "dist_graph.h" #include "util.h" extern int procid, nprocs; extern bool verbose, debug, debug2, verify, output; #define MAX_SEND_SIZE 268435456 #define THRE...
Merge.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define SWAP(a,b) {tt=(a); (a)=(b); (b)=tt;} void Merge(int *a1,int n1, int *a2,int n2, int *r) { int i1,i2,i; for (i1=0, i2=0, i=0;i1<n1&&i2<n2;) if (a1[i1]<a2[i2])r[i++]=a1[i1++]; else r[i++]=a2[i2++]; while(i1<n1) r[i++]=a1[i1++]; w...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define SWAP(a,b) {tt=(a); (a)=(b); (b)=tt;} void Merge(int *a1, int n1, int *a2, int n2, int *r) { int i1, i2, i; for (i1 = 0, i2 = 0, i = 0; i1 < n1 && i2 < n2;) if (a1[i1] < a2[i2]) r[i++] = a1[i1++]; e...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define SWAP(a,b) {tt=(a); (a)=(b); (b)=tt;} void Merge(int *a1, int n1, int *a2, int n2, int *r) { int i1, i2, i; for (i1 = 0, i2 = 0, i = 0; i1 < n1 && i2 < n2;) if (a1[i1] < a2[i2]) r[i++] = a1[i1++]; e...
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...
#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...
#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...
struct_innerprod.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...
/****************************************************************************** * * Structured inner product routine * *****************************************************************************/ #include "_hypre_struct_mv.h" /*-------------------------------------------------------------------------- * hypr...
/****************************************************************************** * * Structured inner product routine * *****************************************************************************/ #include "_hypre_struct_mv.h" /*-------------------------------------------------------------------------- * hypr...
irbuilder_unroll_partial_factor_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
hermv_c_coo_u_lo.c
#include <string.h> #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <stdio.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_Number beta, ALPHA_Nu...
#include <string.h> #include "alphasparse/opt.h" #include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <stdio.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_Number beta, ALPHA_Number *y) { const ALPHA_INT m = A->rows;...
#include <string.h> #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <stdio.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_Number beta, ALPHA_Nu...
Example_simple_lock.1.c
/* * @@name: simple_lock.1c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success */ #include <stdio.h> #include <omp.h> void skip(int i) {} void work(int i) {} int main() { omp_lock_t lck; int id; omp_init_lock(&lck); #pragma omp parallel shared(lck) private(id) { id = omp_get_thread_num...
/* * @@name: simple_lock.1c @@type: C @@compilable: yes @@linkable: yes * @@expect: success */ #include <stdio.h> #include <omp.h> void skip(int i) { } void work(int i) { } int main() { omp_lock_t lck; int id; omp_init_lock(&lck); id = omp_get_thread_num(); omp_set_lock(&lck); /* only one...
/* * @@name: simple_lock.1c @@type: C @@compilable: yes @@linkable: yes * @@expect: success */ #include <stdio.h> #include <omp.h> void skip(int i) { } void work(int i) { } int main() { omp_lock_t lck; int id; omp_init_lock(&lck); #pragma omp parallel shared(lck) private(id) { id = omp_ge...
pi-omp1.c
/* * BSD 2-Clause License * * Copyright (c) 2020, Alessandro Capotondi * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyri...
/** * @file exercise7.c * @author Alessandro Capotondi * @date 27 Mar 2020 * @brief Exercise 8 * * Pi calculation * @see https://dolly.fim.unimore.it/2019/course/view.php?id=152 */ #include <stdio.h> #include <omp.h> #include "utils.h" /** * @brief EX 8- Pi Calculation * * This program computes pi as *...
/** * @file exercise7.c * @author Alessandro Capotondi * @date 27 Mar 2020 * @brief Exercise 8 * * Pi calculation * @see https://dolly.fim.unimore.it/2019/course/view.php?id=152 */ #include <stdio.h> #include <omp.h> #include "utils.h" /** * @brief EX 8- Pi Calculation * * This program computes pi as *...
GB_binop__lt_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...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
hybrid-hello.c
#include <stdio.h> #include <mpi.h> #include <omp.h> int main(int argc, char *argv[]) { int my_id, omp_rank; int provided, required=MPI_THREAD_FUNNELED; MPI_Init_thread(&argc, &argv, required, &provided); MPI_Comm_rank(MPI_COMM_WORLD, &my_id); #pragma omp parallel private(omp_rank) { omp_...
#include <stdio.h> #include <mpi.h> #include <omp.h> int main(int argc, char *argv[]) { int my_id, omp_rank; int provided, required = MPI_THREAD_FUNNELED; MPI_Init_thread(&argc, &argv, required, &provided); MPI_Comm_rank(MPI_COMM_WORLD, &my_id); omp_rank = omp_get_thread_num(); printf("I'm th...
#include <stdio.h> #include <mpi.h> #include <omp.h> int main(int argc, char *argv[]) { int my_id, omp_rank; int provided, required = MPI_THREAD_FUNNELED; MPI_Init_thread(&argc, &argv, required, &provided); MPI_Comm_rank(MPI_COMM_WORLD, &my_id); #pragma omp parallel private(omp_rank) { o...
stream.c
/*-----------------------------------------------------------------------*/ /* Program: Stream */ /* Revision: $Id: stream.c,v 5.9 2009/04/11 16:35:00 mccalpin Exp $ */ /* Original code developed by John D. McCalpin */ /* Programmers: John ...
/*-----------------------------------------------------------------------*/ /* License: */ /* 1. You are free to use this program and/or to redistribute */ /* this program. */ /* 2. You are free t...
/*-----------------------------------------------------------------------*/ /* License: */ /* 1. You are free to use this program and/or to redistribute */ /* this program. */ /* 2. You are free t...
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. ...
/*-------------------------------------------------------------------- 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. ...
/*-------------------------------------------------------------------- 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. ...
pwsafe_fmt_plug.c
/* Password Safe and Password Gorilla cracker patch for JtR. Hacked together * during May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * Optimization patch during January of 2013 by Brian Wallace <brian.wallace9809 at gmail.com>. * * This software is Copyright (c) 2012-2013 * Dhiru Kholia <dhiru.kholia ...
#if FMT_EXTERNS_H extern struct fmt_main fmt_pwsafe; #elif FMT_REGISTERS_H john_register_one(&fmt_pwsafe); #else #include <string.h> #include <assert.h> #include <errno.h> #include "arch.h" // #undef SIMD_COEF_32 #include "sha2.h" #include "misc.h" #include "common.h" #include "formats.h" #include "params.h" #i...
#if FMT_EXTERNS_H extern struct fmt_main fmt_pwsafe; #elif FMT_REGISTERS_H john_register_one(&fmt_pwsafe); #else #include <string.h> #include <assert.h> #include <errno.h> #include "arch.h" // #undef SIMD_COEF_32 #include "sha2.h" #include "misc.h" #include "common.h" #include "formats.h" #include "params.h" #i...
calcium_sparks_old.c
#include <math.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "mpi.h" #include "hdf5.h" #include <sys/stat.h> //#define DEBUG_TEST #define DB_PF 0 #define MAX_LINE_LENGTH 80 //#define __PAPI__ #ifdef __PAPI__ #include <papi.h> #endif typedef int(*COND...
#include <math.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "mpi.h" #include "hdf5.h" #include <sys/stat.h> //#define DEBUG_TEST #define DB_PF 0 #define MAX_LINE_LENGTH 80 //#define __PAPI__ #ifdef __PAPI__ #include <papi.h> #endif typedef int(*COND...
#include <math.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include "mpi.h" #include "hdf5.h" #include <sys/stat.h> //#define DEBUG_TEST #define DB_PF 0 #define MAX_LINE_LENGTH 80 //#define __PAPI__ #ifdef __PAPI__ #include <papi.h> #endif typedef int(*COND...
serial_teams.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt // UNSUPPORTED: gcc #include "callback.h" int main() { #pragma omp target teams num_teams(2) thread_limit(1) #pragma omp parallel num_threads(1) { printf("In teams parallel\n"); } return 0; } // CHECK: 0: NULL_POINTER=[[NULL:.*$]] /...
// RUN:%libomp - compile - and - run | %sort - threads | FileCheck % s // REQUIRES:ompt // UNSUPPORTED:gcc #include "callback.h" int main() { printf("In teams parallel\n"); return 0; } //CHECK: 0: NULL_POINTER =[[NULL:.* $]] // CHECK - NOT: 0:parallel_data initially not null // CHECK - NOT: 0:task_data initi...
// RUN:%libomp - compile - and - run | %sort - threads | FileCheck % s // REQUIRES:ompt // UNSUPPORTED:gcc #include "callback.h" int main() { #pragma omp target teams num_teams(2) thread_limit(1) #pragma omp parallel num_threads(1) { printf("In teams parallel\n"); } return 0; } //CHECK: 0: NULL_P...
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 // //===---------------------------...
//===--- 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 // //===---------------------------...
//===--- 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 // //===---------------------------...
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...
//------------------------------------------------------------------------------ // 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_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
macro-2.c
// { dg-do compile } #define p parallel #define s(x) shared(x##1, x##2) #define d(x) default(x) void bar(int, int, int, int); void foo(void) { int a1, a2, b1, b2; #pragma omp p s(a) s(b) d(none) bar(a1, a2, b1, b2); }
// { dg-do compile } #define p parallel #define s(x) shared(x##1, x##2) #define d(x) default(x) void bar(int, int, int, int); void foo(void) { int a1, a2, b1, b2; bar(a1, a2, b1, b2); }
// { dg-do compile } #define p parallel #define s(x) shared(x##1, x##2) #define d(x) default(x) void bar(int, int, int, int); void foo(void) { int a1, a2, b1, b2; #pragma omp p s(a) s(b) d(none) bar(a1, a2, b1, b2); }
ccl_utils.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" /* ------- ROUTINE: ccl_linear spacing ------ INPUTS: [xmin,xmax] of the interval to be divided in N bins OUTPUT: bin edges in range [xmin,xmax] */ double * ccl_linear_spacing(double xmin, double xmax, int N) { do...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" /* ------- ROUTINE: ccl_linear spacing ------ INPUTS: [xmin,xmax] of the interval to be divided in N bins OUTPUT: bin edges in range [xmin,xmax] */ double * ccl_linear_spacing(double xmin, double xmax, int N) { do...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <gsl/gsl_errno.h> #include "ccl.h" /* ------- ROUTINE: ccl_linear spacing ------ INPUTS: [xmin,xmax] of the interval to be divided in N bins OUTPUT: bin edges in range [xmin,xmax] */ double * ccl_linear_spacing(double xmin, double xmax, int N) { do...
generator.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <random> #include "graph.h" #include "pvector.h" #include "util.h" /* GAP Benchmark Suite Class: Generato...
// Copyright(c) 2015, The Regents of the University of California(Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <random> #include "graph.h" #include "pvector.h" #include "util.h" /* * GAP Benchmark Suite Cla...
// Copyright(c) 2015, The Regents of the University of California(Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <random> #include "graph.h" #include "pvector.h" #include "util.h" /* * GAP Benchmark Suite Cla...
thread_scale.c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * See COPYRIGHT in top-level directory. */ #define _GNU_SOURCE #include <stdio.h> #include <omp.h> #include <sched.h> #include <unistd.h> #include <pthread.h> #include "zmtest_abslock.h" #define TEST_NITER (1<<22) #define WARMUP_ITER 128 #define CA...
#define _GNU_SOURCE #include <stdio.h> #include <omp.h> #include <sched.h> #include <unistd.h> #include <pthread.h> #include "zmtest_abslock.h" #define TEST_NITER (1<<22) #define WARMUP_ITER 128 #define CACHELINE_SZ 64 #define ARRAY_LEN 10 char cache_lines[CACHELINE_SZ * ARRAY_LEN] = {0}; #if ARRAY_LEN == 10 int i...
#define _GNU_SOURCE #include <stdio.h> #include <omp.h> #include <sched.h> #include <unistd.h> #include <pthread.h> #include "zmtest_abslock.h" #define TEST_NITER (1<<22) #define WARMUP_ITER 128 #define CACHELINE_SZ 64 #define ARRAY_LEN 10 char cache_lines[CACHELINE_SZ * ARRAY_LEN] = {0}; #if ARRAY_LEN == 10 int i...
wgs64.c
#include <stdio.h> #include <omp.h> int n =64; int main(void) { int fail = 0; int a = -1; // #if 1 #pragma omp target { //nothing } #endif #pragma omp target teams distribute thread_limit(64) for (int k =0; k < n; k++) { // nothing } printf("Succeeded\n"); return fail; }
#include <stdio.h> #include <omp.h> int n = 64; int main(void) { int fail = 0; int a = -1; // #if 1 //nothing #endif for (int k = 0; k < n; k++) { //nothing } printf("Succeeded\n"); return fail; }
#include <stdio.h> #include <omp.h> int n = 64; int main(void) { int fail = 0; int a = -1; // #if 1 #pragma omp target { //nothing } #endif #pragma omp target teams distribute thread_limit(64) for (int k = 0; k < n; k++) { //nothing } printf("Succeeded\n"); ...
ellipticBuildJacobi.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus 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 limitatio...
#include "elliptic.h" void BuildLocalIpdgBBDiagTri2D(elliptic_t* elliptic, mesh_t *mesh, dfloat lambda, dfloat *MS, dlong eM, dfloat *A); void BuildLocalIpdgDiagTri2D (elliptic_t* elliptic, mesh_t *mesh, dfloat lambda, dfloat *MS, dlong eM, dfloat *A); void BuildLocalIpdgDiagQuad2D(elliptic_t* elliptic, mesh_t *mesh...
#include "elliptic.h" void BuildLocalIpdgBBDiagTri2D(elliptic_t* elliptic, mesh_t *mesh, dfloat lambda, dfloat *MS, dlong eM, dfloat *A); void BuildLocalIpdgDiagTri2D (elliptic_t* elliptic, mesh_t *mesh, dfloat lambda, dfloat *MS, dlong eM, dfloat *A); void BuildLocalIpdgDiagQuad2D(elliptic_t* elliptic, mesh_t *mesh...
integral_omp_sync.c
// Author: Fabio Rodrigues Pereira // E-mail: fabior@uio.no // compiling & running // clang -Xpreprocessor -fopenmp integral_omp_sync.c -lomp // ./a.out // SPMD technique *video9 #include <stdlib.h> // rand, malloc, calloc and free. #include <stdio.h> // printf #include <math.h> #include <time.h> #include <omp.h> ...
// Author: Fabio Rodrigues Pereira // E-mail: fabior@uio.no // compiling & running // clang -Xpreprocessor -fopenmp integral_omp_sync.c -lomp // ./a.out // SPMD technique *video9 #include <stdlib.h> // rand, malloc, calloc and free. #include <stdio.h> // printf #include <math.h> #include <time.h> #include <omp.h> ...
// Author: Fabio Rodrigues Pereira // E-mail: fabior@uio.no // compiling & running // clang -Xpreprocessor -fopenmp integral_omp_sync.c -lomp // ./a.out // SPMD technique *video9 #include <stdlib.h> // rand, malloc, calloc and free. #include <stdio.h> // printf #include <math.h> #include <time.h> #include <omp.h> ...
GB_unaryop__abs_int64_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
linear.c
//IN method. //Linear transformation (weights only, no biases) of Ni inputs to No outputs. //Input X has Ni neurons and output Y has No neurons. //The vecs of length Ni are always contiguous in memory, such that: //If col-major: Y[:,l] = W' * X[:,l] //where: //X has size Ni x L //Y has size No x L //W has size Ni x ...
//IN method. //Linear transformation (weights only, no biases) of Ni inputs to No outputs. //Input X has Ni neurons and output Y has No neurons. //The vecs of length Ni are always contiguous in memory, such that: //If col-major: Y[:,l] = W' * X[:,l] //where: //X has size Ni x L //Y has size No x L //W has size Ni x ...
//IN method. //Linear transformation (weights only, no biases) of Ni inputs to No outputs. //Input X has Ni neurons and output Y has No neurons. //The vecs of length Ni are always contiguous in memory, such that: //If col-major: Y[:,l] = W' * X[:,l] //where: //X has size Ni x L //Y has size No x L //W has size Ni x ...
raytracer.h
#pragma once #include "resource.h" #include <linalg.h> #include <memory> #include <omp.h> #include <random> #include <time.h> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction) : position(position) { this->direction = normalize(direction); } float3 po...
#pragma once #include "resource.h" #include <linalg.h> #include <memory> #include <omp.h> #include <random> #include <time.h> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction):position(position) { this->direction = norma...
#pragma once #include "resource.h" #include <linalg.h> #include <memory> #include <omp.h> #include <random> #include <time.h> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction):position(position) { this->direction = norma...
matrix.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/blob.h" #include "MagickCore/blob-private.h" #include "MagickCore/cache.h" #include "MagickCore/exception.h" #include "MagickCore/exception-private.h" #include "MagickCore/image-private.h" #include "MagickCore/matrix.h" #include "Mag...
/* * Include declarations. */ #include "MagickCore/studio.h" #include "MagickCore/blob.h" #include "MagickCore/blob-private.h" #include "MagickCore/cache.h" #include "MagickCore/exception.h" #include "MagickCore/exception-private.h" #include "MagickCore/image-private.h" #include "MagickCore/matrix.h" #include "Mag...
generator_spgemm_csr_asparse.c
/****************************************************************************** ** Copyright (c) 2015-2019, Intel Corporation ** ** All rights reserved. ** ** ** ...
/* Alexander Heinecke (Intel Corp.) ******************************************************************************/ #include "generator_spgemm_csr_asparse.h" #include "generator_common.h" #include "libxsmm_main.h" #if defined(LIBXSMM_OFFLOAD_TARGET) # pragma offload_attribute(push,target(LIBXSMM_OFFLOAD_TARGET)) #end...
/* * Alexander Heinecke (Intel Corp.) **************************************************************************** */ #include "generator_spgemm_csr_asparse.h" #include "generator_common.h" #include "libxsmm_main.h" #if defined(LIBXSMM_OFFLOAD_TARGET) #pragma offload_attribute(push,target(LIBXSMM_OFFLOAD_TARGET)) #...
rhs.c
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB SP code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB SP code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB SP code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...