source
stringlengths
3
92
c
stringlengths
26
2.25M
info.c
// RUN: %libomptarget-compile-nvptx64-nvidia-cuda -gline-tables-only && env LIBOMPTARGET_INFO=63 %libomptarget-run-nvptx64-nvidia-cuda 2>&1 | %fcheck-nvptx64-nvidia-cuda -allow-empty -check-prefix=INFO // REQUIRES: nvptx64-nvidia-cuda #include <stdio.h> #include <omp.h> #define N 64 #pragma omp declare target int gl...
parallel_for_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp parallel for simd'}} #pragma omp parallel for simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp parallel for simd'}} #pragma omp parallel for simd foo void test_no_clause() { int ...
GB_unop__identity_fc64_uint32.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_int64_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
MeshRefiner.h
/** * @file * This file is part of SeisSol. * * @author Sebastian Rettenberger (sebastian.rettenberger AT tum.de, http://www5.in.tum.de/wiki/index.php/Sebastian_Rettenberger) * * @section LICENSE * Copyright (c) 2015, SeisSol Group * All rights reserved. * * Redistribution and use in source and binary forms, ...
DRACC_OMP_020_Counter_wrong_lock_simd_Inter_yes.c
/* Concurrent access on a counter with the wrong lock, by utilising OpenMP Lock Routines and simd. Atomicity Violation. Two locks are used to ensure that addition and substraction cannot be interrupted by themselfes on other teams. Although they are able to interrupt eachother leading to a wrong result. Inter Region. ...
MatrixMul.c
#include "../include/MatrixOp.h" // reference implementation without any optimization; struct Matrix * testMul(struct Matrix *mata, struct Matrix *matb) { struct Matrix *resMat = NULL; if(mata->n != matb->m) { return resMat; } else { resMat = new_mat(mata->m, matb->n, 1); } for(int...
GB_binop__pair_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
join.c
/* Copyright 2013-2015. The Regents of the University of California. * Copyright 2015. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2013, 2015 Martin Uecker <martin.uecker@med.uni-goettingen.de> * 2015 J...
conv4.c
#include <stdlib.h> #include "conv4.h" void conv4(int m,int n,float* c,float*output){ #pragma omp parallel for for (int H3 = 0; H3 < n; H3++) { if (0 <= H3 - (2) && H3 - (2) < m) { output[H3] = c[H3 - (2)]; } } }
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...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
sparse.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <assert.h> #include "nb/math_bot.h" #include "nb/memory_bot.h" #include "nb/container_bot.h" #include "nb/solver_bot.h" #include "sparse_struct.h" #define POW2(a) ((a)*(a)) static void verify_graph(const nb_gra...
GB_binop__gt_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
trmm.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...
insitu_multithread_tracer.h
// ========================================================================== // // Copyright (c) 2017-2018 The University of Texas at Austin. // // All rights reserved. // // ...
image.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/image.c" #else #undef MAX #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) ) #undef MIN #define MIN(a,b) ( ((a)<(b)) ? (a) : (b) ) #undef TAPI #define TAPI __declspec(dllimport) #ifndef M_PI #define M_PI 3.14159265358979323846 #endif static void image_(Main_op_va...
convolution_packn_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_unop__tan_fp32_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...
lsh_index.h
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * * THE BSD LICENSE * * Redistribution an...
hypre_hopscotch_hash.h
/*BHEADER********************************************************************** * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * Written by Ulrike Yang (yang11@llnl.gov) et al. CODE-LLNL-738-322. * This file is part of AMG. See files READ...
YAKL_mem_transfers.h
#pragma once template <class T> inline void memcpy_host_to_host(T *dst , T *src , index_t elems) { for (index_t i=0; i<elems; i++) { dst[i] = src[i]; } } template <class T> inline void memcpy_device_to_host(T *dst , T *src , index_t elems) { #ifdef YAKL_ARCH_CUDA cudaMemcpyAsync(dst,src,elem...
Dependency.c
#include <math.h> #include <omp.h> #include <string.h> void a(int **a, int b) { for (int i = 0; i < 4; ++i) { for (int j = 1; j < 4; ++j) { a[i + 2][j - 1] = b * a[i][j] + 4; } } } void a_sol(int **a, int b) { int **a2; memcpy(a2, a, sizeof(a)); #pragma omp parallel for ...
template-for-new-benchmark.c
/** * template.c: This file is part of the PolyBench/C 3.2 test suite. * * * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://polybench.sourceforge.net * License: /LICENSE.OSU.txt */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench c...
pi_instrumented.c
/*****************************************************************************\ * ANALYSIS PERFORMANCE TOOLS * * Extrae * * Instrumentation package for parallel applications * **...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- 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_binop__bxnor_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-...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
sobel-omp.c
#include <unistd.h> #include <sys/mman.h> #include <sys/wait.h> #include <string.h> #include <omp.h> #include "lib/neryimg.h" #include "lib/utils.h" int main(int argc, char **argv){ unsigned int tid, i, j; // Checks number of arguments. if (argc != 3) fail("usage: ./sobel-omp <input ppm> <output ppm>"); ...
target_parallel_for_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for'}} #pragma omp target parallel for // expected-error@+1 {{unexpected OpenMP directive '#pr...
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) #...
gol.h
#ifndef GoL_H #define GoL_H #include <stdlib.h> #include <unistd.h> #ifdef _OPENMP #include <omp.h> // Enable OpenMP support #endif #ifdef GoL_MPI #include <mpi.h> // Enable MPI support #endif // Custom includes #include "../../include/globals.h" #include "../../include/utils/log.h" #include "../../include/utils/f...
GB_unaryop__lnot_fp32_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
setup.c
/*! \file \brief Functions that deal with setting up the matrices \date Started 3/9/2015 \author George Karypis with contributions by Xia Ning, Athanasios N. Nikolakopoulos, Zeren Shui and Mohit Sharma. \author Copyright 2019, Regents of the University of Minnesota */ #include "slimlib.h" /************************...
data.h
/*! * Copyright (c) 2015 by Contributors * \file data.h * \brief The input data structure of xgboost. * \author Tianqi Chen */ #ifndef XGBOOST_DATA_H_ #define XGBOOST_DATA_H_ #include <dmlc/base.h> #include <dmlc/data.h> #include <dmlc/serializer.h> #include <rabit/rabit.h> #include <xgboost/base.h> #include <xgb...
GB_unop__identity_uint8_int32.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...
ast-dump-openmp-target-parallel.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test() { #pragma omp target parallel ; } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-ope...
TemporalReplicationPadding.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/TemporalReplicationPadding.c" #else static void THNN_(TemporalReplicationPadding_updateOutput_frame)( real *input_p, real *output_p, long nslices, long iwidth, long owidth, int pad_l, int pad_r) { int iStartX = fmax(0, -pad_l); int oStartX = fmax(0...
sllg.c
#include "clib.h" /* * n is the spin number * eta is the random number array */ void llg_rhs_dw_c(double *restrict m, double *restrict h, double *restrict dm, double *restrict T, double *restrict alpha, double *restrict mu_s_inv, int *restrict pins, double *restrict eta, int n, double gamma, double d...
GB_unop__identity_int16_int8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
omp_printf.c
/* Simple OpenMP test program that calls printf() from a parallel section. */ #include <assert.h> // assert() #include <omp.h> #include <stdio.h> #include <stdlib.h> // atoi() #include <unistd.h> // getopt() static void usage(const char* const exe) { fprintf(stderr, "Usage: %s [-h] [-i <n>] [-q] [-t<n>...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
diagsv_x_sky_n.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #include <memory.h> #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_SKY *A, const ALPHA_Number *x, ALPHA_Number *y) { ALPHA_Number diag[A->rows]; memset(diag...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "opencl.h" #include <stdio.h> #include <stdlib.h> #include <string.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; #define class temp #define new new_temp list *get_paths(char *filename) { if (filename) filename[strcspn(filename, "\n\r")] = 0; ...
omp6.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 // TODO: if [ %llvmver -ge 9 ]; then %clang -fopenmp -std=c11 -fno-vectori...
aula2809_nested.c
#include <stdio.h> void report_num_threads(int level) { #pragma omp single { printf("Level %d: number of threads in the team - %d\n",level,omp_get_num_threads()); } } int main(int argc, char const *argv[]) { omp_set_dynamic(0); omp_set_nested(1); #pragma omp parallel num_threads(2) { report_num_...
GB_subassign_19.c
//------------------------------------------------------------------------------ // GB_subassign_19: C(I,J)<!M,repl> += scalar ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Ident...
gm_bfs_template.h
#ifndef GM_BFS_TEMPLATE_H #define GM_BFS_TEMPLATE_H #include <omp.h> #include <string.h> #include <map> #include <set> #include "gm_graph.h" #include "gm_atomic_wrapper.h" #include "gm_bitmap.h" // todo: consideration for non small-world graph template<typename level_t, bool use_multithread, bool has_...
mutation.h
void mutation(Chromo *population, int prob, int N, int inicio, int fin) { int aux, i, p1 = 0, p2 = 0; #pragma omp for for (i = inicio; i < fin; i++) { srand(time(NULL)); if (rand() % (101) <= prob) { do { p1 = rand() % (N + 1); ...
clang-282491-3.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #define N 100 typedef struct myvec{ size_t len; double *data; } myvec_t; void init(myvec_t *s); int main(){ myvec_t s; s.data = (double *)calloc(N,sizeof(double)); s.len = N; #pragma omp target map(s, s.data[:s.len]) init(&s); ...
convolution_1x1_pack8to4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
fFDMEX.c
#include "mex.h" #ifdef __GNU__ #include <omp.h> #endif #ifndef MAXCORES #define MAXCORES 1 #endif void mexFunction(int nlhs, mxArray *left[], int nrhs, const mxArray *right[]) { /* Declare variables */ mwSize nD, NP=1, NV=1, NS=1, NT=1, RT=1; const mwSize *sz; mxClassID precision; ...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__identity_fp32_int16.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_unaryop__ainv_bool_uint32.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_binop__le_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_unop__asin_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
CometMatrix.h
// This file os part of FVM // Copyright (c) 2012 FVM Authors // See LICENSE file for terms. #ifndef _COMETMATRIX_H_ #define _COMETMATRIX_H_ #include "MatrixJML.h" #include "Array.h" #include "ArrayBase.h" #include "NumType.h" #include "SquareMatrixESBGK.h" #include <omp.h> template<class T> class CometMatrix : publ...
GB_binop__bget_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
3d25pt.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-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
core_dsymm.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_zsymm.c, normal z -> d, Fri Sep 28 17:38:23 2018 * **/ #include <plasma_core_blas.h> #include "plas...
oskar_cross_correlate_point_time_smearing_omp.c
/* * Copyright (c) 2013-2015, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this ...
displacement_lagrangemultiplier_mixed_frictional_contact_criteria.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
async_target-1.c
/* { dg-do run } */ /* { dg-additional-options "-DCHUNKSZ=5000" { target { ! run_expensive_tests } } } */ /* { dg-additional-options "-DCHUNKSZ=1000" { target run_expensive_tests } } */ #include <stdlib.h> #define EPS 0.00001 #define N 100000 float Y[N]; float Z[N]; #pragma omp declare target float F (float a) { ...
HGEMM_gen.h
#include <iostream> #include <math.h> #include <float.h> #include <assert.h> #include <string.h> #include <stdio.h> #include <stdint.h> #include <cholUtils.h> #ifndef HALIDE_ATTRIBUTE_ALIGN #ifdef _MSC_VER #define HALIDE_ATTRIBUTE_ALIGN(x) __declspec(align(x)) #else #define HALIDE_ATTRIBUTE_ALIGN(x) __attri...
jacobi-task-dep.c
# include "poisson.h" /* #pragma omp task depend version of SWEEP. */ void sweep (int nx, int ny, double dx, double dy, double *f_, int itold, int itnew, double *u_, double *unew_, int block_size) { int i; int it; int j; double (*f)[nx][ny] = (double (*)[nx][ny])f_; double (*u)[nx][ny] = (d...
blackscholes.c
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this sof...
pjs.c
#include "pjs.h" #include "jstrat.h" unsigned *pjs(const long id, const unsigned n, unsigned stp[static restrict 1]) { jstrat_common js; (void)memset(&js, 0, sizeof(js)); unsigned *st = (unsigned*)NULL; integer *arr = (integer*)NULL; *stp = 0u; if (n <= 1u) goto theEnd; switch (id) { case PJS_ME...
lis_solver.c
/* Copyright (C) 2002-2012 The SSI Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of condition...
renderer.h
#pragma once #include "frame_buffer.h" #include "scene.h" #include "camera.h" #include "utils.h" color shade(const Ray& ray, Scene& scene, size_t depth) { if (depth <= 0 ){ return color(0.0); } Hit hit; if (scene.get_hit(ray, 0.001, Inf, hit)) { color attenuation; Ray scattere...
GB_unop__identity_int32_fp32.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...
testrun_gen.h
#pragma once #include "ukr.h" #include "omp.h" #include "transpose_avx512.h" #include "transpose.h" #include "ukr7x2vCnnb1f512x7y7c512r3s3.h" #include "ukr7x2vGemmb1f512x7y7c512r3s3AS.h" #include "ukr0x2vGemmb1f512x7y7c512r3s3.h" void testrun(float* A ,float*B, float*C, float*oriB ){ #pragma omp parallel num_threads(18...
segment.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
master.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt // GCC generates code that does not call the runtime for the master construct // XFAIL: gcc #include "callback.h" #include <omp.h> int main() { int x = 0; #pragma omp parallel num_threads(2) { #pragma omp master { print_fuzzy_address(1); ...
dgemm.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 di...
stencil_opt1.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "malloc2D.h" #include "timer.h" #define SWAP_PTR(xnew,xold,xtmp) (xtmp=xnew, xnew=xold, xold=xtmp) int main(int argc, char *argv[]) { #pragma omp parallel #pragma omp master printf("Running with %d thread(s)\n",omp_get_num_threads()); s...
types.h
/* * types.h * Francesco Conti <f.conti@unibo.it> * * Copyright (C) 2015 ETH Zurich, University of Bologna * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #ifndef TYPES_H #define TYPES_H #ifdef CCN_X86 #in...
read_hdf5.c
#include "read_file.h" #include "libast.h" #include <stdint.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <ctype.h> #include "hdf5.h" static int read_col(hid_t group_id, char const *pos, real **data, hsize_t *num) { const int ndims = 1;//H5Sget_simple_extent_ndims(data_space); hsize_...
deconvolution_3x3.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
example_2D.c
/* To compile this program on Linux, try: make CFLAGS='-std=c99 -Wall' example_2D To run: ./example_2D; echo $? It should print 0 if OK. You can even compile it to run on multicore SMP for free with make CFLAGS='-std=c99 -fopenmp -Wall' example_2D To verify there are really some clone() system...
rose_taskgroup.c
static void *xomp_critical_user_; #include <omp.h> #include <stdio.h> #include <unistd.h> #include "libxomp.h" static void OUT__1__9934__(void *__out_argv); int main(argc,argv) int argc; char **argv; { int status = 0; XOMP_init(argc,argv); XOMP_parallel_start(OUT__1__9934__,0,1,0,"/home/awang15/Projects/rexdev/...
cg.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - CG This benchmark is an OpenMP C version of the NPB CG code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by NA...
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...
zlook_ahead_update.c
/************************************************************************/ /*! @file * \brief Look-ahead update of the Schur complement. * * <pre> * -- Distributed SuperLU routine (version 4.0) -- * Lawrence Berkeley National Lab, Univ. of California Berkeley. * August 15, 2014 * */ #ifdef ISORT while (j < nu...
FastMultipoleMethod.h
/* Copyright (c) 2005-2016, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Aboria. Redistribution and use in source and binary forms...
GB_binop__pair_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-...
ast-dump-openmp-target-simd.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp target simd for (int i = 0; i < x; i++)...
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-...
2DConvolution.c
/** * 2DConvolution.c: The original file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <math.h> #include <omp.h> #includ...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__identity_uint64_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_unop__log2_fc32_fc32.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...
bli_dotv_bgq_int.c
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
construction.h
/* An Experimental Study on Hub Labeling based Shortest Path Algorithms [Experiments and Analyses] Authors: Ye Li, Leong Hou U, Man Lung Yiu, Ngai Meng Kou Contact: yb47438@umac.mo Affiliation: University of Macau The MIT License (MIT) Copyright (c) 2016 University of Macau Permission is hereby granted, free of cha...
util.h
#ifndef _C_UTIL_ #define _C_UTIL_ #include <CL/sycl.hpp> #include <dpct/dpct.hpp> //#include <omp.h> //------------------------------------------------------------------- //--initialize array with maximum limit //------------------------------------------------------------------- template<typename datatype> void fill(d...
GB_unaryop__lnot_bool_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...
race64.c
#include <ctype.h> #include <errno.h> #include <stdio.h> #include <string.h> #define VERSION "1.0.0" #define GROUPS_PER_LINE 19 // 1 group = 3 octets, 4 base64 digits #define LINES_PER_BLOCK (1 << 14) // tweaked experimentally #if __clang__ # define UNROLL _Pragma("unroll") #else # define UNROLL #endi...
GB_queue_remove.c
//------------------------------------------------------------------------------ // GB_queue_remove: remove a matrix from the matrix queue //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2018, All Rights Reserved. // http://suitespar...