source
stringlengths
3
92
c
stringlengths
26
2.25M
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__ainv_uint32_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...
GB_binop__isne_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
omp_combinado.c
/****************************************************************************** * OpenMP Example - Combined Parallel Loop Work-sharing - C/C++ Version * FILE: omp_workshare3.c * DESCRIPTION: * This example attempts to show use of the parallel for construct. However * it will generate errors at compile time. Try t...
Matrix.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
omp-spawn-n-tasks-in-explicit-task-with-yield.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> int main(int argc, char *argv[]) { if(argc == 1 || argc >= 4) { fprintf(stderr, "Usage: %s nTasks [yield (default:1)]\n", argv[0]); exit(EXIT_FAILURE); } int nTasks = atoi(argv[1]); boo...
lulesh.c
/* This is a Version 2.0 MPI + Open{ACC,MP} Beta implementation of LULESH Copyright (c) 2010-2013. Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory. LLNL-CODE-461231 All rights reserved. This file is part of LU...
trmm_x_dia_u_lo_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *...
GB_binop__first_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
rawSHA256_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2010 by Solar Designer * based on rawMD4_fmt.c code, with trivial changes by groszek. * * Understands hex hashes as well as Cisco "type 4" base64. * * Rewritten Spring 2013, JimF. SSE code added and released with the following terms: * ...
rng.c
/** * @file rng.c * @author Michael Trotter & Matt Goodrum * @brief Uniform and Normal RNG Implemented in OpenMP */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> #include <limits.h> #define PI acos(-1) /** @var M value for Linear Congruential Generator (LCG...
GB_unop__identity_fp32_int64.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...
VolumetricMaxUnpooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricMaxUnpooling.c" #else static void nn_(VolumetricMaxUnpooling_updateOutput_frame)(real *input_p, real *output_p, real *ind_p, long nslices, ...
util.h
#pragma once #include <dirent.h> #include <sys/stat.h> #include <omp.h> #include "type.h" #include "new_func.h" #include "wtime.h" off_t fsize(const string& fname) { struct stat st; if (0 == stat(fname.c_str(), &st)) { return st.st_size; } perror("stat issue"); return -1L; } off_t fsize(in...
deltapq_create_approx_tree.h
#include "pq.h" #include "create_tree.h" #include <algorithm> #include <pthread.h> #include <sys/time.h> #include <unistd.h> #include <cmath> #include <vector> #include <string> #include <fstream> #include <string.h> #include <iostream> #include <assert.h> #include <algorithm> #include <inttypes.h> ...
bicg.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...
residual_based_bdf_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS...
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...
multires.c
/* * $Id: multires.c 40693 2011-09-29 15:28:22Z mont29 $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 (...
TemporalReflectionPadding.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/TemporalReflectionPadding.c" #else static void THNN_(TemporalReflectionPadding_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, ...
mxnet_op.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
eigenvalue.h
//! \file eigenvalue.h //! \brief Data/functions related to k-eigenvalue calculations #ifndef OPENMC_EIGENVALUE_H #define OPENMC_EIGENVALUE_H #include <array> #include <cstdint> // for int64_t #include <vector> #include "xtensor/xtensor.hpp" #include "openmc/particle.h" namespace openmc { //======================...
openmp.h
// -*- C++ -*- #ifndef GRAPHGRIND_BACKEND_OPENMP_H #define GRAPHGRIND_BACKEND_OPENMP_H #include "config.h" #include "graptor/partitioner.h" #include "graptor/legacy/parallel.h" #include "graptor/utils.h" #include <iostream> #include <fstream> #include <stdlib.h> #include <assert.h> #include <unistd.h> #include <sched...
kernels.h
void compute_probs( const double* __restrict alphas, const double* __restrict rands, double* __restrict probs, int n, int K, int M, int threads, int blocks) { #pragma omp target teams distribute parallel for \ num_teams(blocks) thread_limit(threads) for (int i = 0; i < n; i++) { double maxval;...
comm.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
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-...
GB_unop__log2_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...
pi2_worksharing.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> void Usage(char *prog_name); /* * worksharing */ int main(int argc, char *argv[]) { long long n, i; double factor; double sum = 0.0; if (argc != 2) Usage(argv[0]); n = strtoll(argv[1], NULL, 10); if (n < 1) ...
rt.c
/******************************************************************************* * RT-Flux-PIHM is a finite volume based, reactive transport module that operates * on top of the hydrological land surface processes described by Flux-PIHM. * RT-Flux-PIHM tracks the transportation and reaction in a given watershed. It * u...
sstruct_matrix.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
Builder.h
/********************************************************************************** Copyright (c) 2020 Tobias Zündorf MIT License 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 rest...
VolumetricMaxPooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricMaxPooling.c" #else static void nn_(VolumetricMaxPooling_updateOutput_frame)( real *input_p, real *output_p, real *indz_p, long nslices, long itime, long iwidth, long iheight, long otime, long owidth, long oheight, int kT, int kW, int kH, int d...
threading_std.h
#include <cassert> #include <cstddef> #include <future> #include <type_traits> #include <vector> #include "thread_count.h" #ifndef THREADING_STD_LAUNCH #define THREADING_STD_LAUNCH async // async or deferred #endif namespace threading_common { class split {}; class auto_partitioner {}; // class static_partitioner; ...
TimeCluster.h
/****************************************************************************** ** Copyright (c) 2015, Intel Corporation ** ** All rights reserved. ** ** ** ...
sum.c
/* * Assignment 2 (CSE436) * Kazumi Malhan * 06/08/2016 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <sys/timeb.h> /* read timer in second */ double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (double) tm.millitm / ...
pr78899.c
/* PR tree-optimization/78899 */ /* { dg-do compile } */ /* { dg-options "-Ofast -fopenmp-simd -mavx2 -mno-avx512f" } */ #define N 1024 #define M 4 int p1[N], p2[N], p3[N], c[N]; void foo (int n) { int i, k; for (k = 0; k < n / M; k++) { #pragma omp simd for (i = 0; i < M; i++) if (c[k * M + i]) ...
pointer2Array2.c
// array types from a parameter list have to be converted to corresponding pointer types // to avoid segmentation fault. // Kernel is extracted from cg of npb2.3 omp c benchmarks. static int colidx[100][100]; static void makea (int colidx[100][100]) { int i,j; #pragma omp parallel for private(i,j) for (i = 1; i <=...
trsm_x_coo_n_hi_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT m = A-...
fdtd-2d.pluto.par.l2tile.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <math.h> #define tmax T #define nx N #define ny N double ex[nx][ny +1]; double ey[nx +1][ny]; double hz[nx][ny]; void init_arrays() { int i, j; for (i=0; i<nx+1; i++) { for (j=0; j<ny; j++) { ey[i][j] = 0; } ...
cp-tree.h
/* Definitions for C++ parsing and type checking. Copyright (C) 1987-2015 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
GB_binop__div_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-...
for-4.c
/* { dg-options "-std=gnu99 -fopenmp" } */ extern void abort (void); #define M(x, y, z) O(x, y, z) #define O(x, y, z) x ## _ ## y ## _ ## z #define F taskloop #define G taskloop #define S #define N(x) M(x, G, normal) #include "for-2.h" #undef S #undef N #undef F #undef G #define F taskloop simd #define G taskloop_s...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
main.c
/**************************************************** * Luis Humberto Sanchez Vaca * A01638029 * * Program to calcule area under the curve * by with trapezoidal rule using OpenMP * Ex. sin(x) from 0 to 1 * * To compile: * gcc -omp main.c -o main -lm ************************************************...
Stmt.h
//===- Stmt.h - Classes for representing statements -------------*- 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 // //===---------------------------...
mmc.c
/******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007, 2008 Gregory Bard <bard@fordham.edu> * Copyright (C) 2008 Martin Albrecht <M.R.Albrecht@rhul.ac.uk> * * Distributed under the terms of the GNU General Public License (G...
for-4.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(dynamic) for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOMP_loop_...
mysql_netauth_fmt_plug.c
/* Cracker for MySQL network authentication hashes. Hacked together * during May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and ...
GB_binop__div_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
tinyexr.h
/* Copyright (c) 2014 - 2015, Syoyo Fujita 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 t...
task_hello.c
//===-- task_hello.c - Example for the "task" construct -----------*- C -*-===// // // Part of the LOMP 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 // //===---------------------------...
expected_output.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> //--------------------------------------------------------------------- // program BT //--------------------------------------------------------------------- //---------- // Class S: //---------- //---------- // Class W: ...
kmp_stats.h
#ifndef KMP_STATS_H #define KMP_STATS_H /** @file kmp_stats.h * Functions for collecting statistics. */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license...
update_ops_matrix_diagonal_multi.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "constant.h" #include "update_ops.h" #include "utility.h" #ifdef _OPENMP #include <omp.h> #endif #ifdef _MSC_VER #include <intrin.h> #else #include <x86intrin.h> #endif void multi_qubit_diagonal_matrix_gate(const UINT* target_qu...
Optimizer.h
/* * Optimizer.h * * Created by Guido Novati on 30.10.18. * Copyright 2018 ETH Zurich. All rights reserved. * */ #pragma once #include <fstream> #include "Network.h" struct MomentumSGD { const Real eta; const Real normalization; // 1/batchSize const Real beta; const Real lambda; MomentumSGD(const ...
naive.h
#ifndef NEIGHBORSEARCHNAIVE_H_ #define NEIGHBORSEARCHNAIVE_H_ #include "utils/pointcloud.h" #include "utils/vector.h" namespace dive { double radius_of_influence = 1e-2; template <size_t N, typename PointCloudT> void NeighborSearchNaive(PointCloudT& pcloud) { // naive neighborsearch algorithm #pragma omp parallel ...
convolutiondepthwise_3x3_int8.h
// BUG1989 is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2019 BUG1989. 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 the License at // //...
DRB108-atomic-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...
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...
GcodeLayerThreader.h
/** Copyright (C) 2017 Ultimaker - Released under terms of the AGPLv3 License */ #ifndef GCODE_LAYER_THREADER_H #define GCODE_LAYER_THREADER_H #include <queue> // priority_queue #include <functional> // function #include <thread> // sleep #include <chrono> // milliseconds #include "utils/logoutput.h" #include "utils/...
ringBuffer.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <omp.h> #include "ringBuffer.h" static uint32_t uppow2(uint32_t v) { v--; v |= v >> 1; v |= v >> 2; v |= v >> 4; v |= v >> 8; v |= v >> 16; v++; return v; } ringBuffer* rb_create(size_t len, size_t ...
cmat.c
/* * Cheap maxtrix library for C * * Copyright (C) 2019 Hiroshi Kuwagata <kgt9221@gmail.com> */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #include "cmat.h" #define DEFAULT_ERROR __LINE__ #define DEFAULT_CUTOFF 1e-10 #define GROW(n) (...
sudoku-omp.c
//////////////////////////////////////////////////////////// //// Includes //////////////////////////////////////////////////////////// #include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <math.h> //////////////////////////////////////////////////////////// //// Stru...
GB_unop__identity_int32_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
tile_nb.c
#include <stdlib.h> #include "tile_nb.h" void tile_nb(float* l,int m,int n,float*output){ #pragma omp parallel { float* tmp2 = (float*) calloc(1,(66) * (64) * sizeof (float)); #pragma omp for for (int H34 = 0; H34 < (((n - (1 + 0)) - (1)) / (64)); H34++) { for (int H46 = 0; H46 < ((((m - (1 + 0)) - (1 + 0))) ...
gen_matrices.c
/** * Copyright (c) 2016, Kevin Lewi * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISC...
total.h
#pragma once #include <gms/common/types.h> #include <cassert> namespace GMS::TriangleCount::Par { template<class SGraph> size_t count_total(const SGraph &graph) { size_t n = graph.num_nodes(); size_t total = 0; #pragma omp parallel for schedule(static, 17) reduction(+:total) for (NodeId u = 0; u < n; ++u...
gsrb.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
core_clanhe.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_zlanhe.c, normal z -> c, Fri Sep 28 17:38:21 2018 * **/ #include <plasma_core_blas.h> #include "pla...
convolution_sgemm_int8.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 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 ...
interpolation_p2.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
GB_binop__rminus_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:...
GB_unop__identity_uint16_int16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
GB_AxB_dot2.c
//------------------------------------------------------------------------------ // GB_AxB_dot2: compute C=A'*B or C<!M>=A'*B in parallel, in place //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
GB_unop__exp_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...
GB_unop__identity_fp64_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
rose_accumulateForce.c
#include "omp.h" void AccumulateForce(int *idxBound,int *idxList,int len,double *tmp,double *force) { #pragma omp parallel for private (jj) firstprivate (len) for (register int ii = 0; ii <= len - 1; ii += 1) { int count = idxBound[ii + 1] - idxBound[ii]; int *list = &idxList[idxBound[ii]]; double su...
matmul.c
#include <stdlib.h> #include <sys/time.h> #include <stdio.h> //#define _OPENACCM #ifdef _OPENACCM #include <openacc.h> #endif #if OMP == 1 #include <omp.h> #endif #ifdef __cplusplus #define restrict __restrict__ #endif #ifndef _N_ #define _N_ 512 #endif #ifndef HOST_MEM_ALIGNMENT #define HOST_MEM_ALIGNMENT 0 #endif ...
omp_thread_limit.c
// RUN: %libomp-compile && env OMP_THREAD_LIMIT=4 %libomp-run 4 // RUN: %libomp-compile && env OMP_THREAD_LIMIT=7 %libomp-run 7 // // OMP_THREAD_LIMIT=N should imply that no more than N threads are active in // a contention group #include <stdio.h> #include <string.h> #include <limits.h> #include "omp_testsuite.h" int...
convolution_winograd_transform_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 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 ...
openmp_wrapper.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_OPENMP_WRAPPER_H_ #define LIGHTGBM_OPENMP_WRAPPER_H_ #ifdef _OPENMP #include <LightGBM/utils/log.h> #include <omp.h> #include <e...
GB_unop__identity_int64_uint32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
diag.c
/****************************************************************************** * * * DIAG.C * * * ...
cpu_bound.c
/* * Copyright (c) 2009, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #include <stdlib.h>...
task_untied.c
/* * the task-generation loop is put into a untied task * So when the thread running task-generation loop get preempted to * conduct the generated tasks, * the other threads can resume the task-generation task, which * is not tied to the original thread. */ #include <stdio.h> #include <omp.h> #define LARGE_NUMBE...
taskwait.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7 #include "callback.h" #include <omp.h> int main() { int x = 0; #pragma omp parallel num_threads(2) { #pragma omp master { #pragma omp task { x++; } #...
FFVMC.h
#ifndef FFVMC3D_H #define FFVMC3D_H #include <vector> #include <fstream> #include <sstream> #include <iostream> #include <sys/stat.h> #include "BCMTools.h" #include "BlockManager.h" #include "Scalar3D.h" #include "BCMOctree.h" #include "Partition.h" typedef struct _Vertex { double x; double y; double z; double v...
GB_unop__cosh_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...
countpairs_s_mu_mocks_impl_double.c
/* This file is auto-generated from countpairs_s_mu_mocks_impl.c.src */ #ifndef DOUBLE_PREC #define DOUBLE_PREC #endif // # -*- mode: c -*- /* File: countpairs_s_mu_mocks_impl.c.src */ /* This file is a part of the Corrfunc package Copyright (C) 2015-- Manodeep Sinha (manodeep@gmail.com) License: MIT LICENSE. See...
GB_unop__identity_fc32_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...
binbased_projection.h
// KRATOS __ __ _____ ____ _ _ ___ _ _ ____ // | \/ | ____/ ___|| | | |_ _| \ | |/ ___| // | |\/| | _| \___ \| |_| || || \| | | _ // | | | | |___ ___) | _ || || |\ | |_| | // |_| |_|_____|____/|_| |_|___|_| \_|\____| APPLICATION // // License: BSD License // ...
main.c
#include "../comms.h" #include "../mesh.h" #include "../params.h" #include "../profiler.h" #include "../shared_data.h" #include "neutral_interface.h" #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MPI #include "mpi.h" #endif void plot_particle_density(NeutralData*...
pre_processing_dodg.h
#pragma once #include <future> #include "pre_processing.h" #include "util/stat.h" #include "util/util.h" bool RankLT(int du, int dv, int u, int v) { // assert(u != v); return du < dv || ((du == dv) && (u < v)); } template<typename T, typename OFF> void ConvertEdgeListToDODGCSR(OFF num_edges, pair<T, T> *&edge...
DRB037-truedepseconddimension-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...
ops.h
#pragma once #ifndef OPS_H_ #define OPS_H_ #include <op_boilerplate.h> #include <array/DataTypeUtils.h> #include <helpers/shape.h> #include <vector> #include <Environment.h> #include <loops/summarystatsreduce.h> #define MIN 1e-12 #define MAX_FLOAT 1e37 #define MIN_FLOAT 1e-37 #define MAX_INT 2147483647 #define MIN_CU...
DelayedUpdate.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2019 QMCPACK developers. // // File developed by: Ye Luo, yeluo@anl.gov, Arg...
GB_unop__identity_int32_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...
diagsm_x_coo_u_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT num_th...