source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_binop__ldexp_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-...
app.c
/** * Christina Giannoula * cgiannoula: christina.giann@gmail.com */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <dpu.h> #include <dpu_log.h> #include <unistd.h> #include <getopt.h> #include <assert.h> #include <math.h> #include <omp.h> #include "../support/common.h" #i...
7709.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...
ckdeg.c
/* Maximilien Danisch and Qinna Wang January 2015 http://bit.ly/maxdan94 maximilien.danisch@telecom-paristech.fr Info: Feel free to use these lines as you wish. This program computes the k-clique degrees of each node in the graph (that is the number of k-cliques the node belongs to). To compile: "gcc ckdeg.c -O9 -o c...
merge_openmp.h
// merge sequences [xs,xe) and [ys,ye) to output [zs,zs+(xe-xs)+(ye-ys)) void parallel_merge( T* xs, T* xe, T* ys, T* ye, T* zs ) { const size_t MERGE_CUT_OFF = 2000; if( xe-xs + ye-ys <= MERGE_CUT_OFF ) { serial_merge(xs,xe,ys,ye,zs); } else { T *xm, *ym; if( xe-xs < ye-ys )...
c-omp.c
/* This file contains routines to construct OpenACC and OpenMP constructs, called from parsing in the C and C++ front ends. Copyright (C) 2005-2015 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>, Diego Novillo <dnovillo@redhat.com>. This file is part of GCC. GCC is free...
GB_unop__identity_uint32_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
GB_unaryop__abs_int64_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
test_arrow_utf8.c
// Amazon FPGA Hardware Development Kit // // Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. // // Licensed under the Amazon Software License (the "License"). You may not use // this file except in compliance with the License. A copy of the License is // located at // // http://aws.amazon.co...
exponentialRashba.h
/*************************************************************************** * Copyright (C) 2014 by Florian Goth * * fgoth@wthp095 * * * * All rights reserved. * * ...
GB_binop__band_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
JointWMF.h
/***************************************************************/ /* * Distribution code Version 1.1 -- 09/21/2014 by Qi Zhang Copyright 2014, The Chinese University of Hong Kong. * * The Code is created based on the method described in the following paper * [1] "100+ Times Faster Weighted Median Filter"...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #...
Cone.h
#ifndef CONE_HEADER #define CONE_HEADER #ifdef DOPARALLEL #include <omp.h> #endif #include "basic.h" #include "PointCloud.h" #include <GfxTL/HyperplaneCoordinateSystem.h> #include <stdexcept> #include <ostream> #include <istream> #include <stdio.h> #if !defined(_WIN32) && !defined(WIN32) #include <unistd.h> #endif #inc...
GB_unaryop__ainv_uint16_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_split_full_template.c
//------------------------------------------------------------------------------ // GB_split_full_template: split a full matrix into a full tile //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Licen...
raw_wrapper.c
/* * Copyright (c) 2017, Marcel Heing-Becker, University of Hamburg * * 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 u...
GB_binop__isge_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...
grib_bits_fast_big_endian_omp.c
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
sgemv.c
/*********************************************************************/ /* Copyright 2009, 2010 The University of Texas at Austin. */ /* All rights reserved. */ /* */ /* Redistribution and use in sou...
reduc_map_prob.c
#include <stdio.h> #include <stdlib.h> #define N 5000000 int main(){ double *B, *C; B = (double*)malloc(sizeof(double) * N); C = (double*)malloc(sizeof(double) * N); for(int i = 0; i < N; i++){ B[i] = 1.0; C[i] = 1.0; } double sum = 0; #pragma omp target data map(to:B[0:N], C[0:N]) #prag...
Sqrt.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/Sqrt.c" #else void THNN_(Sqrt_updateOutput)( THNNState *state, THTensor *input, THTensor *output, accreal eps_) { THTensor_(resizeAs)(output, input); THTensor_(sqrt)(output, input); } void THNN_(Sqrt_updateGradInput)(...
sparselu.c
/**********************************************************************************************/ /* This program is part of the Barcelona OpenMP Tasks Suite */ /* Copyright (C) 2009 Barcelona Supercomputing Center - Centro Nacional de Supercomputacion */ /* Copyright (C) 2009 Univer...
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
ellipticSchwarzSolverHex3D.c
extern "C" void preFDM(const dlong& Nelements, const pfloat* __restrict__ u, pfloat* __restrict__ work1) { #define getIdx(k,j,i,e) ((k)*p_Nq_e*p_Nq_e+(j)*p_Nq_e+(i)+(e)*p_Nq_e*p_Nq_e*p_Nq_e) #define getIdx2(k,j,i,e) ((k-1)*p_Nq*p_Nq+(j-1)*p_Nq+(i-1)+(e)*p_Nq*p_Nq*p_Nq) #def...
tinyexr.h
#ifndef TINYEXR_H_ #define TINYEXR_H_ /* Copyright (c) 2014 - 2020, Syoyo Fujita and many contributors. 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 th...
mmap_send.c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> #include <string.h> int main() { int threads = 16; int msg_size = 2048*64; size_t size = threads * msg_size; int fd = open("/tmp/testmmap", O_RDWR | O_CREAT, S_IRUSR | S_...
GB_binop__isgt_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
ChainCollectionLearner.h
/** * @file ChainCollectionLearner.h * @brief header file of the CRF chain model learner * * .. invisible: * _ _ _____ _ _____ _____ * * | | | | ___| | | ___/ ___| * * | | | | |__ | | | |__ \ `--. * * | | | | __|| | | __| `--. \ * * \ \_/ / |___| |___| |___/\__/ / * * ...
declare8.c
/* Example of multiple declare simd directives for a function Multiple SIMD versions of the function are generated. The invocation of a specific version of the function is determined by where it is called. */ #pragma omp declare simd linear(pixel) uniform(mask) inbranch #pragma omp declare simd linear(...
GB_unop__bnot_int32_int32.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...
sse.h
/* SPDX-License-Identifier: MIT * * 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, merge, publish, ...
helloworld.c
#include <stdio.h> #include <omp.h> int main(void) { int isHost = 1; #pragma omp target map(tofrom: isHost) { isHost = omp_is_initial_device(); printf("Hello world. %d\n", 100); for (int i =0; i<5; i++) { printf("Hello world. iteration %d\n", i); } } printf("Target region executed on th...
ccode_c.c
// ----------------------------------------------------------------------- // Copyright 2019 Centrum Wiskunde & Informatica, Amsterdam // Author: Daniel M. Pelt // Contact: D.M.Pelt@cwi.nl // Website: http://dmpelt.github.io/foam_ct_phantom/ // License: MIT // This file is part of foam_ct_phantom, a Python package fo...
hello.c
#include <stdio.h> #if defined (_OPENMP) #include <omp.h> #endif int main(int argc, char *argv[]) { int myrank=0; int mysize=1; #if defined (_OPENMP) #pragma omp parallel default(shared) private(myrank, mysize) { mysize = omp_get_num_threads(); myrank = omp_get_thread_num(); #endif printf("Hello fro...
papi_perf.h
#ifndef __PAPI_PERF_H__ #define __PAPI_PERF_H__ #include <mpi.h> #include <cassert> #include <pthread.h> //Only on systems with PAPI installed #ifdef PAPI #include <papi.h> #include <omp.h> #include <cstdio> #endif void init_papi() { #ifdef PAPI //Must call before PAPI_thread_init ...
2mm.c
/** * 2mm.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@students.ic....
coloring_barenboim.h
#ifndef COLORING_BARENBOIM_H_ #define COLORING_BARENBOIM_H_ #include "coloring_common_barenboim_elkin.h" namespace GMS::Coloring { template <class CGraph> std::size_t one_shot_coloring(const CGraph &g, const VN &nodes_to_color, VC &coloring, VVC &palettes, VRS selectors, VC &chosen_colo...
ark_brusselator1D_omp.c
/*--------------------------------------------------------------- * Programmer(s): Daniel R. Reynolds @ SMU *--------------------------------------------------------------- * LLNS/SMU Copyright Start * Copyright (c) 2015, Southern Methodist University and * Lawrence Livermore National Security * * This work was...
omp2.c
// note not doing O0 below as to ensure we get tbaa // TODO: %clang -fopenmp -std=c11 -fno-vectorize -fno-unroll-loops -O1 -disable-llvm-optzns %s -S -emit-llvm -o - | %opt - %loadEnzyme -enzyme -S | %clang -fopenmp -x ir - -o %s.out && %s.out // RUN: if [ %llvmver -ge 9 ]; then %clang -fopenmp -std=c11 -fno-vectoriz...
kiss_fft.c
/* Copyright (c) 2003-2010, Mark Borgerding 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 copyright notice, this list of conditions and the ...
triad.c
/******************************************************************************* * Copyright 2021 UChicago Argonne, LLC. * (c.f. AUTHORS, LICENSE) * * This file is part of the NRM Benchmarks project. * For more info, see https://github.com/anlsys/nrm-benchmarks * * SPDX-License-Identifier: BSD-3-Clause ********...
HDAA_fmt_plug.c
/* HTTP Digest access authentication patch for john * * Written by Romain Raboin. OMP and intrinsics support by magnum * * This software is Copyright (c) 2008 Romain Raboin - romain.raboin at * gmail.com, and Copyright (c) 2012 magnum and it is hereby released to * the general public under the following terms: ...
equation_groupnorm.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
HybridAdoptorBase.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Ye Luo, y...
GB_binop__rminus_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-...
perftest.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * Copyright (C) ARM Ltd. 2017-2021. A...
algo.h
/** * Copyright 2021 Huawei Technologies Co., Ltd * * 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...
pr66133.c
/* PR middle-end/66133 */ /* { dg-do run } */ #include <stdlib.h> #include <unistd.h> volatile int x; __attribute__((noinline)) void foo (void) { if (x == 0) { #pragma omp task { usleep (2000); exit (0); } } else abort (); } int main () { #pragma omp parallel num_threads (2) { ...
GB_binop__eq_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__times_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
ClientComm.h
/*! @brief Flag for checking if this header has already been included. */ #ifndef YGGCLIENTCOMM_H_ #define YGGCLIENTCOMM_H_ #include <../tools.h> #include <CommBase.h> #include <DefaultComm.h> #include "../datatypes/datatypes.h" #ifdef __cplusplus /* If this is a C++ compiler, use C linkage */ extern "C" { #endif //...
tmp_par.c
#include <stdio.h> #include <omp.h> // #include <omp.h> // #include <stdio.h> // #include <stdlib.h> int main(int argc, char** argv){ double valor = 0; // double passo; // passo = 1.0/(double)2147480000; #pragma omp parallel for shared(count) reduction(+:valor) for(int count=0; count < 2147480000; count++){ valor =...
image.h
#pragma once #include <vector> #include <cmath> #include <map> #include <string> #include <algorithm> #include <omp.h> #include "CImg.h" #undef max #undef min typedef double Float; enum class ColorMode {GRAY, LUMIANCE, R, G, B, AVG}; struct Image { // Image() {} Image(int w, int h, Float default_val = 0):W(w), H...
simdsort.h
// // // simdsort.h // // // Copyright 2020- J. Makino all rights resesrved. // // sort with avx2 (etc) #include <stdbool.h> #include <assert.h> #include <time.h> #if defined(AVX2) || defined(AVX512) #include <x86intrin.h> #endif #if defined(SVE) #ifdef __ARM_FEATURE_SVE #include <arm_sve.h> #endif /* __ARM_FEATUR...
TNV_core.c
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2017 Daniil Kazantsev * Copyright 2017 Srikanth Nagella, Edoardo Pasca * * Licensed under the Apache License, Version 2.0 (the "License")...
par_relax_more.c
/****************************************************************************** * * a few more relaxation schemes: Chebychev, FCF-Jacobi, CG - * these do not go through the CF interface (hypre_BoomerAMGRelaxIF) * *****************************************************************************/ #include "_hypre_p...
files.c
/***************************************************************************** * * Elmer, A Finite Element Software for Multiphysical Problems * * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland * * This library is free software; you can redistribute it and/or * modify it under the term...
convolution_3x3_pack8to1.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 ...
fntext.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <time.h> #include <string.h> #include <assert.h> #include <omp.h> #define EM_RANGE (0.01) typedef float floatx; struct model_t { floatx *em, *w, *b; int64_t em_dim, vocab_num, category_num; }; struct dataset_t { int64_t...
multiply.h
#pragma once #include "intgemm/intgemm_config.h" #include "interleave.h" #include "intrinsics.h" #include "vec_traits.h" #include "callbacks.h" namespace intgemm { INTGEMM_SSE2 static inline dvector_t<CPUType::SSE2, int> PermuteSummer(__m128i pack0123, __m128i pack4567) { // No op for 128 bits: already reduced ful...
analyze.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % AAA N N AAA L Y Y ZZZZZ EEEEE ...
omp_fib.c
#include <stdio.h> #include <omp.h> // Compile with "gcc -O3 -fopenmp benchmarks/fibonacci/omp_fib.c" // and "clang -O3 -fopenmp benchmarks/fibonacci/omp_fib.c" // GCC will be very slow due to their OpenMP implementation // using a global task queue which will be a huge contention point. // Clang uses work-stealing wi...
GB_unop__log10_fc64_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
bcnn_maxpool_layer.c
/* * Copyright (c) 2016-present Jean-Noel Braun. * * 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, m...
mkldnn_common.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 ...
SpatialMaxUnpooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/SpatialMaxUnpooling.c" #else static void THNN_(SpatialMaxUnpooling_updateOutput_frame)(real *input_p, real *output_p, THIndex_t *ind_p, int nslices, ...
implicit_blender.c
/* * This program 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 version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
interpolate_op.h
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. 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...
vsll.c
#include<Python.h> #include<numpy/arrayobject.h> #include<math.h> #include<omp.h> #define IND(a,i) *((double *)(a->data+i*a->strides[0])) static PyObject *vsll(PyObject *self, PyObject *args, PyObject *keywds); static PyObject *vsll(PyObject *self, PyObject *args, PyObject *keywds) { PyObject *etc, *seq, *temp_seq...
ep.c
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB EP code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...
iftODISF.c
/*****************************************************************************\ * iftODISF.c * * AUTHOR : Felipe Belem * DATE : 2021-06-15 * LICENSE : MIT License * EMAIL : felipe.belem@ic.unicamp.br \*****************************************************************************/ #include "iftODISF.h" /**********...
mesh.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "utils.h" void set_num_threads(int num_threads) { if (num_threads>0) omp_set_num_threads(num_threads); } int get_num_threads() { //Calculate number of threads int num_threads=0; #pragma omp parallel { #pragma omp atomic num_threads++; } ...
hermv_c_csc_u_hi.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <memory.h> #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t hermv_csc_u_hi_unroll(const ALPHA_Number alpha, const ALPHA_SPMAT_CSC *A, const ALPHA_Number *x, ...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__lt_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
p2p.c
/* Copyright (c) 2013, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer...
GB_unop__cimag_fp32_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...
GB_unop__identity_bool_fp32.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_binop__first_bool.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
zgeadd.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
a2a_impl.h
//Implementations of methods in a2a.h template<typename VWtype> inline double VW_Mbyte_size(const A2AArg &_args, const typename VWtype::FieldInputParamType &field_setup_params){ typedef typename VWtype::DilutionType DilutionType; typedef typename VWtype::FermionFieldType FermionFieldType; DilutionType dil(_args)...
inneronly1-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...
color_transform.c
#include <stdlib.h> #include "private/imcore_private.h" #undef RGB struct color_t RGB(uint8_t r, uint8_t g, uint8_t b) { // create a color member struct color_t colorCode; // fill it with the given values colorCode.red = r; colorCode.green = g; colorCode.blue = b; // return the color ...
looptc.c
void deinterleave(char *page, char *transposed, const int ntabs, const int nchannels, const int ntimes, const int padded_size) { int tab; for (tab = 0; tab < ntabs; tab++) { int time; #pragma omp parallel for for (time = 0; time < ntimes; time++) { int channel; for (channel = 0; channel < ncha...
matmul_simd.c
/* * Square matrix multiplication * A[N][N] * B[N][N] = C[N][N] * */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/timeb.h> #include <string.h> #include <time.h> #include <omp.h> #define N 512 // read timer in second double read_timer() { struct timeb tm; ftime(&tm); return (d...
depthwise_convolution_3x3.c
/* * Copyright (C) 2016-2022 T-Head Semiconductor Co., Ltd. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 * * www.apache....
grid_astar.h
/* * Copyright (c) 2014-2020, the neonavigation authors * 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 copyright * not...
test.c
#include <stdio.h> #include <unistd.h> #include "omp.h" int main() { #pragma omp parallel { printf("Hello Thread!\n"); printf("Thread %d of %d\n", omp_get_thread_num(), omp_get_num_threads()); } write(0, "Hello, Kernel!\n", 15); printf("Hello World!\n"); return 0; }
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- 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_unaryop__minv_int64_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
core_zgemm.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> c d s * **/ #include <plasma_core_blas.h> #include "plasma_types.h" #include "core_lapack.h" /************************************************************...
7248.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...
re_comp.h
/*! * This file is part of GPBoost a C++ library for combining * boosting with Gaussian process and mixed effects models * * Copyright (c) 2020 Fabio Sigrist. All rights reserved. * * Licensed under the Apache License Version 2.0. See LICENSE file in the project root for license information. */ #ifndef GPB_RE_COMP_H_ #...
covariance.c
/** * covariance.c: This file was adapted from PolyBench/GPU 1.0 test * suite to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@stud...
GB_unaryop__ainv_int64_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
symmetrize.h
#ifndef __COOP_NAIVE_SYMMETRIZE_H__ #define __COOP_NAIVE_SYMMETRIZE_H__ static inline void symmetrize_naive(const int n, double *restrict x) { #pragma omp parallel for default(none) shared(x) schedule(dynamic, 1) if(n>OMP_MIN_SIZE) for (int j=0; j<n; j++) { const int nj = n*j; for (int i=j+1; i<n; i...
rnn_impl.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 ...
GB_unaryop__lnot_bool_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
mkl_util.h
/* Copyright 2017 The TensorFlow 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 a...