source
stringlengths
3
92
c
stringlengths
26
2.25M
DRB111-linearmissing-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
mvt.c
/** * mvt.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....
GB_unaryop__identity_uint8_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...
jacobi-ompacc-opt2.c
// Liao, 7/9/2014, add collapse() inside jacobi() #include <stdio.h> #include <math.h> #include <assert.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif // Add timing support #include <sys/time.h> double time_stamp() { struct timeval t; double time; gettimeofday(&t,(struct timezone*)NUL...
omp_task_if.c
<ompts:test> <ompts:testdescription>Test the if clause of the omp task directive. The idea of the test is to generate a task in a single region and pause it immediately. The parent thread now shall set a counter variable which the paused task shall evaluate when woken up.</ompts:testdescription> <ompts:ompversion>3.0</...
_phonopy.c
/* Copyright (C) 2011 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 abo...
GB_unop__ceil_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
colormap.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
statistic.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
mergesort.c
#include <assert.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define BENCHMARK(name, block)\ do {\ clock_t t1, t2;\ t1 = clock();\ {\ block\ }\ t2 = clock();\ int duration_ms = (((double)t2 - t1) / CLOCKS_PER_SEC) * 1000;\ printf("%s - duration: %d...
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
GB_reduce_to_scalar_template.c
//------------------------------------------------------------------------------ // GB_reduce_to_scalar_template: s=reduce(A), reduce a matrix to a scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // ...
fac_setup2.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...
density.c
#include "density.h" #include "linalg.h" #include "utils.h" #include <complex.h> #include <math.h> #include <mkl.h> #include <mkl_types.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define PI 3.14159265359 // THE FOLLOWING TWO FUNCTIONS ARE NOT YET IMPLEMENTED /* double* ncl_ae_state_d...
configurator.c
/* Simple tool to create config.h. * Would be much easier with ccan modules, but deliberately standalone. * * Copyright 2011 Rusty Russell <rusty@rustcorp.com.au>. MIT license. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
reduction_plus_1.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> int main() { int result = 0; #pragma omp parallel reduction(+:result) { int rank = omp_get_thread_num(); result += rank; } printf("Result: %d\n", result); }
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...
10_alt.c
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <omp.h> #include <time.h> #define N 500000 #define MAX_ITER 30 /* Написать программу, вычисляющую количество простых чисел в диапазоне от 2 до N. Ускорить ее с помощью OpenMP. */ main(){ bool prime_cand[N]; float full_time = 0.; int pri...
histogram-openmp.c
#ifndef _HISTOGRAM_H #define _HISTOGRAM_H #include"histogram.h" #endif void openmp_histogram(int *data, int *parallel_hist, int data_size, int hist_size, int num_thread){ int bucketSize = RANGE / hist_size; omp_set_num_threads(num_thread); #pragma omp parallel shared(parallel_hist, bucketSize, data_size, hist...
GB_binop__cmplx_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
3d7pt_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) #...
image.c
/*! *********************************************************************** * \file image.c * * \brief * Decode a Slice * * \author * Main contributors (see contributors.h for copyright, address and affiliation details) * - Inge Lille-Langoy <inge.lille-langoy@telenor.com> *...
libgomp.h
/* Copyright (C) 2005-2020 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU Offloading and Multi Processing Library (libgomp). Libgomp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
compression.h
/* * compression.h * * Created on: Oct 28, 2013 * Author: lemire */ #ifndef COMPRESSION_H_ #define COMPRESSION_H_ #include "bpacking.h" #include "util.h" /** * Compresses "length" values from "in" to "out" and return a pointer to the end of the compressed stream. * The format is "number of values, minimal...
convolution_3x3_int8.h
// SenseNets is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2018 SenseNets Technology Ltd. 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 of t...
GB_binop__minus_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-...
resize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
broadcast_reduce_customized-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
deletedCode.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once // Abstract base class for different Matrix representations /*template<class T> class Matrix { protected: word_id_t _vocab_size; // Size of the vocabulary doc_id_t _num_docs; // Number of documents size_t ...
drivers.c
// Driver routines for the harmonic polynomial connection problem. #include "fasttransforms.h" #include "ftinternal.h" static void chebyshev_normalization_2d(double * A, const int N, const int M) { for (int i = 0; i < N; i++) A[i] *= M_SQRT1_2; for (int j = 0; j < M; j++) { A[j*N] *= M_SQRT1_2...
conv_dw_kernel_int8_arm.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
cmat_mul.c
#include "cmat_mul.h" #define CALL(func, prompt) for (int t = 0; t < times - 1; t++) MatDelete(func(mat1, mat2)); \ ans = func(mat1, mat2); \ printf("Calling "prompt" %d times: (%lu*%lu)x(%lu*%lu) >>> ", \ ...
DRB059-lastprivate-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...
GB_unaryop__lnot_uint8_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
ast-dump-openmp-for-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 for simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp for simd for (int i = 0; i < x; i++) f...
memspeed.c
/* cc memspeed.c cpuidc.c -lm -lrt -O3 -o memspeedIL gcc memspeed.c cpuidc.c -lm -lrt -O3 -march=armv6 -mfloat-abi=hard -mfpu=vfp -o memspeedPiA6 #define version "32 Bit Version 4" Compile time Raspberry Pi - 9 seconds+ gcc memspeed.c cpuidc.c -lm -lrt -O3 -mcpu=cortex-a7 -mfloat-abi=hard -mfpu=neon-vfpv4...
swater2D-omp.c
/* * shwater2d solves the two dimensional shallow water equations * using the Lax-Friedrich's scheme */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <math.h> //#include <omp.h> #include <sys/time.h> #define cell_size 3 #define xstart 0.0 #define ystart 0.0 #define xend 4.0 #...
FeatureUtils.h
#pragma once #include <cmath> #include <vector> #include <utility> // std::pair #include <tuple> // std::tuple #include <memory> // std::unique_ptr #include "SpidrAnalysisParameters.h" #include <Eigen/Dense> /*! Normalizes all values in vec wrt to normVal * Basically normedVec[i] = vec[i] / normVal * * \param ...
cpd_omp.c
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
graph.h
#ifndef _ODPS_GRAPH_ #define _ODPS_GRAPH_ #include <memory> #include <vector> #include <map> #include <iostream> #include <fstream> #include <omp.h> #include <cstddef> #include "graph_tool.h" namespace apsara { namespace odps { namespace graph { namespace query { template<typename VType> class Graph { public: G...
3503.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...
yescrypt-opt.c
/*- * Copyright 2009 Colin Percival * Copyright 2013,2014 Alexander Peslyak * 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 copy...
GB_binop__lxor_uint16.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__div_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-...
dropout-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
GB_binop__iseq_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
BPMaximumMatching.h
#ifndef BP_MAXIMUM_MATCHING_H #define BP_MAXIMUM_MATCHING_H #include "CombBLAS/CombBLAS.h" #include <mpi.h> #include <sys/time.h> #include <iostream> #include <functional> #include <algorithm> #include <vector> #include <string> #include <sstream> #include "MatchingDefs.h" namespace combblas { /** * Create a boolea...
libgomp-test.c
/* * This file is part of MXE. * See index.html for further information. */ #include <omp.h> #include <stdio.h> int main(int argc, char *argv[]) { (void)argc; (void)argv; omp_set_num_threads(4); #pragma omp parallel fprintf(stderr, "Hello from thread %d, nthreads %d\n", omp_get_th...
GB_unaryop__identity_bool_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...
ompTri.c
/* This code is part of this project: Donato E, Ouyang M, * Peguero-Isalguez C. Triangle counting with a multi-core computer. * Proceedings of IEEE High Performance Extreme Computing Conference * (HPEC), 2018, 1-7. * * Copyright (c) 2018 Ming Ouyang * * Permission is hereby granted, free of charge, to any perso...
openmp_thread_num1.c
///TAFFO_TEST_ARGS -fopenmp #include <omp.h> #include <stdio.h> #define NUM_THREADS 4 int main(void) { float container[NUM_THREADS] __attribute__((annotate("target('container') scalar(range(0,1) final)"))); int i; #pragma omp parallel num_threads(NUM_THREADS) { float x __attribute__((annotate("target('x') ...
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...
GB_unop__identity_fp32_int8.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...
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...
elim.c
/*! * \file elim.c * \author Jun Yoshida * \copyright (c) Jun Yoshida 2019 * The project is released under BSD3 License. */ #include "elim.h" #include <stdlib.h> #include <omp.h> #include "common.h" #include "elementary.h" /* Debug #include <stdio.h> #define DEBUG_MSG fprintf(stderr,...
CG_MPI.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #include <mkl_blas.h> #include <mpi.h> #include <hb_io.h> #include <vector> #include "reloj.h" #include "ScalarVectors.h" #include "SparseProduct.h" #include "ToolsMPI.h" #include "matrix.h" #include "common.h" #include "...
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) #...
3964.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...
blas_server_omp.c
/*********************************************************************/ /* Copyright 2009, 2010 The University of Texas at Austin. */ /* All rights reserved. */ /* */ /* Redistribution and use in sou...
ast-dump-openmp-task.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -fopenmp-version=50 -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s typedef unsigned long omp_event_handle_t; void test() { omp_event_handle_t evt; #pragma omp task detach(evt) ; } // CHECK: TranslationUnitDecl {...
PointCloud.h
#ifndef POINTCLOUD_H #define POINTCLOUD_H #include <iostream> #include <memory> #include <thread> #include <cstdio> #include <vector> #include <cstdlib> #include <ctime> #include <cmath> #include <string> #include <Eigen/Core> #include <omp.h> #include "utility.h" #include "kdtree.h" namespace PPP{ namespace geometr...
dpado.202001060737.multiple_rounds_for_memory.h
// // Created by Zhen Peng on 1/6/20. // #ifndef PADO_DPADO_H #define PADO_DPADO_H #include <vector> //#include <unordered_map> #include <map> #include <algorithm> #include <iostream> #include <limits.h> //#include <xmmintrin.h> #include <immintrin.h> #include <bitset> #include <math.h> #include <fstream> #include <o...
libomp_interface.h
// This file does not contain any code; it just contains additional text and formatting // for doxygen. //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illin...
singleMaster.c
#include <stdio.h> #include <omp.h> int main() { int n = 9, i, a; int b[n]; int t[n]; for (i=0; i<n; i++) b[i] = -3; #pragma omp parallel { #pragma omp master { printf("Introduce valor de inicialización a: "); scanf("%d", &a ); printf("Single ejecutada por el thread %d\n",...
newImageIdeaOMP.c
#include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <omp.h> #include "ppm.h" #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b)) // Image from: // http://7-themes.com/6971875-funny-flowers-pictures.html typedef struct { float red,green,blue; } AccuratePixel...
graph_generator.h
/* Copyright (C) 2009-2010 The Trustees of Indiana University. */ /* */ /* Use, modification and distribution is subject to the Boost Software */ /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */ /* http:...
GB_unop__asinh_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
t_cholmod_gpu.c
/* ========================================================================== */ /* === GPU/t_cholmod_gpu ==================================================== */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
GB_unaryop__abs_int32_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...
omptests2.c
/// This could create a conflicting .omp_offloading.entry void test_comp_unit_2(const int niters, double* a) { #pragma omp target for(int ii = 0; ii < niters; ++ii) a[ii] *= 2.0; }
imginputfileconn.h
/** * DeepDetect * Copyright (c) 2014 Emmanuel Benazera * Author: Emmanuel Benazera <beniz@droidnik.fr> * * This file is part of deepdetect. * * deepdetect is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software F...
bli_gemm_ref.c
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redist...
convolution_sgemm_pack8_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 ...
masterSingle.c
#include <omp.h> int main (void) { int a,b; #pragma omp parallel { #pragma omp master a=a+1; #pragma omp single b=b+1; } return 0; }
cpotrf.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/compute/zpotrf.c, normal z -> c, Fri Sep 28 17:38:02 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
omp_nest_lock.c
#include <stdio.h> #include <omp.h> #include "omp_testsuite.h" int check_omp_nest_lock (FILE * logFile) { omp_nest_lock_t lck; int nr_threads_in_single = 0; int result = 0; int nr_iterations = 0; int i; omp_init_nest_lock (&lck); #pragma omp parallel shared(lck) { #pragma omp for for (i = 0; i < LO...
paint.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
ams.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) **************************************...
mpi_comm.c
#include "../include/mpi_comm.h" // compute start and end of each small block // [start, end) int compute_start(int rank, int prosCount, int size) { int blockSize = size/prosCount, margin = size%prosCount; return (blockSize + 1) * rank - Max(rank - margin, 0); } int compute_end(int rank, int prosCount, int si...
Example_tasking.10.c
/* * @@name: tasking.10c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_3.0 */ #include <omp.h> void work() { omp_lock_t lock; omp_init_lock(&lock); #pragma omp parallel { int i; #pragma omp for for (i = 0; i < 100; i++) { #pragma omp task {...
colorspace.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
task-two.c
/* * task-two.c -- Archer testcase */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // // See tools/archer/LICENSE.txt for details. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===...
ch_ompss.c
#include "ch_common.h" #include "../extrae.h" #include "../timing.h" //#ifdef _OMPSS //#warning "Compiling for OMPSS" //#endif //TODO: adjust wait() for timing static int depth; #pragma omp threadprivate(depth) static int comm_round_sentinel; // <-- used to limit parallel communication tasks void cholesky_mpi(cons...
GB_binop__fmod_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_dense_subassign_05d_template.c
//------------------------------------------------------------------------------ // GB_dense_subassign_05d_template: C<M> = x where C is as-if-full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
gimple-pretty-print.c
/* Pretty formatting of GIMPLE statements and expressions. Copyright (C) 2001-2017 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> and Diego Novillo <dnovillo@google.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms o...
isx.c
/* Copyright (c) 2015, 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 discla...
advection.c
#include "../../comms.h" #include "../../shared.h" #include "hale.h" #include <float.h> #include <math.h> // Performs a remap and some scattering of the subcell values void advection_phase(UnstructuredMesh* umesh, HaleData* hale_data) { // Advects mass and energy through the subcell faces using swept edge approx ...
ParallelOpenMP.h
#pragma once #include <ATen/ATen.h> #include <cstddef> #include <exception> #ifdef _OPENMP #define INTRA_OP_PARALLEL #include <omp.h> #endif namespace at { template <class F> inline void parallel_for( const int64_t begin, const int64_t end, const int64_t grain_size, const F& f) {...
bitshuffle_core.c
/* * Bitshuffle - Filter for improving compression of typed binary data. * * Author: Kiyoshi Masui <kiyo@physics.ubc.ca> * Website: http://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #include "bitshuffle_core.h" #include "bitshu...
conv_kernel_mips.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
GB_binop__isge_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...
setsketch.h
#ifndef D2_SETSKETCH_H___H__ #define D2_SETSKETCH_H___H__ #include <stdexcept> #include <cassert> #include "aesctr/wy.h" #include <queue> #include "sketch/div.h" #include <unordered_map> #include <memory> #include "sketch/fy.h" #include "sketch/count_eq.h" #include "sketch/macros.h" #include "sketch/hash.h" #include "s...
laplace_acc-omp.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #ifndef _JUSTOMP_ #include "functions_acc.h" #endif #ifndef _JUSTACC_ #include "functions_omp.h" #endif // grid size #define GRIDY 2048 #define GRIDX 2048 #if defined (_UPDATE_INTERNAL_) || (_ALL_INTERNAL_) #ifndef _PGI_ ...
GB_kroner.c
//------------------------------------------------------------------------------ // GB_kroner: Kronecker product, C = kron (A,B) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com S...
sylcount_nthreads.c
#ifdef _OPENMP #include <omp.h> #endif #include "include/common.h" #include "include/RNACI.h" static inline int num_threads() { int n = 0; #ifdef _OPENMP int nth, tl; #pragma omp parallel { nth = omp_get_num_threads(); tl = omp_get_thread_limit(); } n = SYLCOUNT_MIN(nth, tl); #else n = 1;...
yolov2_forward_network_quantized.c
#include "additionally.h" // some definitions from: im2col.h, blas.h, list.h, utils.h, activations.h, tree.h, layer.h, network.h // softmax_layer.h, reorg_layer.h, route_layer.h, region_layer.h, maxpool_layer.h, convolutional_layer.h #define GEMMCONV //#define SSE41 //#undef AVX #define W_MAX_VAL (256/2 - 1) /...
luks_fmt_plug.c
/* luks.c * * hashkill - a hash cracking tool * Copyright (C) 2010 Milen Rangelov <gat3way@gat3way.eu> * * This software is Copyright (c) 2013 Dhiru Kholia <dhiru at openwall.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
sp_matrix.h
#ifndef SP_MATRIX_H #define SP_MATRIX_H #include <fstream> #ifdef WINDOWS #include <string> #else #include <cstring> #endif #include "../declare_structures.h" /// Sparse Matrix class, CSC format template<typename floating_type, typename I> class SpMatrix { friend class Matrix<floating_type>; friend class S...
zgbtrs.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 ...