source
stringlengths
3
92
c
stringlengths
26
2.25M
TimeCluster.h
/****************************************************************************** ** Copyright (c) 2015, Intel Corporation ** ** All rights reserved. ** ** ** ...
mtxio.c
#include "mtxio.h" #ifdef FNCAT #error FNCAT already defined #else /* !FNCAT */ #define FNCAT(nn,bn,ex) \ char nn[strlen(bn) + strlen(ex) + 2u]; \ strcat(strcat(strcpy(nn, bn), "."), ex) #endif /* ?FNCAT */ int open_ro_(const char bn[static restrict 1], const char ex[static restrict 1]) { FNC...
single_producer.c
//===-- single_producer.c - Example with for a single producer ---*- 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 // //===---------------------------...
matrix_mul_OMP.c
//usage, $ ./exec < matrix.csv > matrix_out.csv #include<omp.h> #include<stdio.h> #include<stdlib.h> #include<time.h> const int CHUNK = 10; void print_matrix(float *mat, int rows, int cols) { int i, j; printf("%d, %d\n", rows, cols); for (i = 0; i < rows; i++) { for (j = 0; j < cols; j++) printf("%f, ...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DigraphTemplate.h
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2015) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
generated-funcs-regex.c
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fopenmp %s -emit-llvm -o - | FileCheck %s void __test_offloading_42_abcdef_bar_l123(); void use(int); void foo(int a) { #pragma omp target use(a); __test_offloading_42_abcdef_bar_l123(); int somevar_abc123_; }
acado_integrator.c
/* * This file was auto-generated using the ACADO Toolkit. * * While ACADO Toolkit is free software released under the terms of * the GNU Lesser General Public License (LGPL), the generated code * as such remains the property of the user who used ACADO Toolkit * to generate this code. In partic...
abstract_pivot_column.h
/* Copyright 2013 IST Austria Contributed by: Ulrich Bauer, Michael Kerber, Jan Reininghaus This file is part of PHAT. PHAT 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 vers...
GB_dense_subassign_25_template.c
//------------------------------------------------------------------------------ // GB_dense_subassign_25_template: C<M> = A where C is empty and A is dense //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. /...
statistic.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
QuadNodeCartesianEuclid.h
/* * QuadNodePolarEuclid.h * * Created on: 21.05.2014 * Author: Moritz v. Looz (moritz.looz-corswarem@kit.edu) * * Note: This is similar enough to QuadNode.h that one could merge these two classes. */ #ifndef QUADNODECARTESIANEUCLID_H_ #define QUADNODECARTESIANEUCLID_H_ #include <vector> #include <algor...
chan_demo3.c
#include <stdint.h> #include <stdio.h> #define data_t int64_t #define prefix int64 #include <chan.h> #undef prefix #undef data_t void produce_and_sum(chan_int64_t *ch1, chan_int64_t *ch2, chan_int64_t *ch3, int64_t n) { int64_t idx = 1; int64_t total = 0; int64_t x; while(true) { if (idx <= n) { if...
collision.h
#ifndef ANOMTRANS_COLLISION_H #define ANOMTRANS_COLLISION_H #include <cassert> #include <cstddef> #include <stdexcept> #include <type_traits> #include <limits> #include <cmath> #include <vector> #include <tuple> #include <utility> #include <petscksp.h> #include "util/constants.h" #include "util/util.h" #include "grid_...
PeptideIndexing.h
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
ten_tusscher_2004_epi_S2_14.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S2_14.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } //TODO...
omp_parallel_firstprivate.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include "omp_testsuite.h" //static int sum1 = 789; int test_omp_parallel_firstprivate() { int sum, num_threads,sum1; int known_sum; sum = 0; sum1=7; num_threads = 0; #pragma omp parallel firstprivate(sum1) { /*printf("sum1=%d\...
movestm.c
/* Solve XY-Stokes+Continuity equations by vX,vY,P mixed arbitrary order Finite Difference method */ void viterateomp(int m0) { /* Counters */ long int m1,m2,m3,m1min,m1max,m2min,m2max,mcmax,mcmax0,mcmax1,dm1,dm2,ccc=0; double vxmin,vxmax,vymin,vymax,minvx,maxvx,minvy,maxvy,mindx,pmpa,minnu,maxnu,minpr,maxpr,mukoef,...
GB_binop__lor_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-...
bicubic.h
#ifndef batoid_bicubic_h #define batoid_bicubic_h #include "surface.h" #include "table.h" namespace batoid { #if defined(BATOID_GPU) #pragma omp declare target #endif class Bicubic : public Surface { public: Bicubic(const Table* table); ~Bicubic(); virtual const Surf...
r_numint.c
/* Copyright 2014-2018 The PySCF Developers. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required ...
box3d3r.c
#define BENCH_DIM 3 #define BENCH_FPP 685 #define BENCH_RAD 3 #include "common.h" double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool scop) { double start_time = sb_time(), end_time = 0.0; int dimsize = compsize + BENCH_RAD * 2; SB_TYPE (*A)[dimsize][dimsize][dimsize] = (SB_TYPE (*)[dimsize]...
tstfft.c
/* -*- mode: C; tab-width: 2; indent-tabs-mode: nil; fill-column: 79; coding: iso-latin-1-unix -*- */ /* tstfft.c */ #include <hpcc.h> #include "hpccfft.h" static int TestFFT1(HPCC_Params *params, int doIO, FILE *outFile, double *UGflops, int *Un, int *Ufailure) { fftw_complex *in, *out; fftw_plan p; hpcc_fft...
GB_binop__minus_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
graph.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GRAPH_H_ #define GRAPH_H_ #include <algorithm> #include <cinttypes> #include <cstddef> #include <iostream> #include <type_traits> #include <assert.h> #include <cstring> #include "pvector.h" #in...
example_render_shading.c
#include "rasterizer.h" #include "world.h" #include <stdio.h> int main() { const int w = 1000; const int h = 1000; // define camera Camera *camera = CameraPerspectiveProjection(V(2, 0, 0), V(0, 0, 0), V(0, 1, 0), w, h, 0.1, 1000, 60); // define material like gold const Material goldMaterial = (Material)...
convolution_1x1.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 ...
scheduled-clauseModificado5.c
/* * sheduled-clause.c * * Created on: 28/04/2014 * Author: Carlos de la Torre */ #include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif int main(int argc, char **argv) { int i, n = 200, chunk, hebras = 1, a[n], suma = 0; if (argc < 4) { if ...
_hypre_utilities.h
/*** DO NOT EDIT THIS FILE DIRECTLY (use 'headers' to generate) ***/ #ifndef hypre_UTILITIES_HEADER #define hypre_UTILITIES_HEADER #include "HYPRE_utilities.h" #ifdef HYPRE_USING_OPENMP #include <omp.h> #endif #ifdef __cplusplus extern "C" { #endif /****************************************************************...
general_basis_rep.h
#ifndef _GENERAL_BASIS_REP_H #define _GENERAL_BASIS_REP_H #include <complex> #include <limits> #include <iostream> #include "general_basis_core.h" #include "numpy/ndarraytypes.h" #include "misc.h" #include "openmp.h" namespace basis_general { template<class I,class J> int general_normalization(general_basis_core<I> ...
mixed_tentusscher_myo_epi_2004_S2_15.c
// Scenario 2 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S2_15.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode...
kernel.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
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)...
vec_add.c
/* parallel for Directive Example */ #include <omp.h> #define N 1000 #define CHUNKSIZE 100 main(int argc, char *argv[]) { int i, chunk; float a[N], b[N], c[N]; /* Some initializations */ for (i=0; i < N; i++) a[i] = b[i] = i * 1.0; chunk = CHUNKSIZE; #pragma omp parallel for \ sh...
GB_binop__ge_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-...
barrier.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #define omp_get_num_threads() 1 #endif int main() { int tid; time_t t1,t2; #pragma omp parallel private(tid,t1,t2) { tid = omp_get_thread_num(); if (tid...
GB_unaryop__identity_int64_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
convolution_pack4to1.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 ...
GB_binop__gt_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-...
nonlinear.c
/* * nonlinear.c * * Code generation for function 'nonlinear' * */ /* Include files */ #include "rt_nonfinite.h" #include "yaapt.h" #include "nonlinear.h" #include "Myhanning.h" #include "yaapt_emxutil.h" #include "eml_int_forloop_overflow_check.h" #include "filter.h" #include "scalexpAlloc.h" #include "Myfir1.h"...
variable.c
/***************************************************************************** * * Elmer, A Finite Element Software for Multiphysical Problems * * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland * * This library is free software; you can redistribute it and/or * modify it under the term...
5386.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...
GI.h
#include <parse.h> #include <unordered_set> #define SELF_GRAVITY #define FLAG_GI #ifdef PARTICLE_SIMULATOR_TWO_DIMENSION #error #endif std::unordered_set <unsigned int> create_removal_list (const unsigned int lowest_index, const unsigned int highest_index,const unsigned int number_of_removed_items){ std::unord...
GB_binop__max_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:...
omp_kmeans.c
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* File: kmeans_clustering.c (OpenMP version) */ /* Description: Implementation of simple k-means clustering algorithm */ /* This program takes an array of N data objects, each with */ ...
GB_unaryop__identity_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...
zero_omp.c
/* * File: zero_omp.c * Author: Philip Mucci * mucci@cs.utk.edu * Mods: Nils Smeds * smeds@pdc.kth.se * Anders Nilsson * anni@pdc.kth.se */ /* This file performs the following test: start, stop and timer functionality for 2 slave OMP threads - It attempts to use the foll...
qgaussian.h
#ifndef XFIELDS_QGAUSSIAN #define XFIELDS_QGAUSSIAN /*gpufun*/ double LongitudinalProfileQGaussian_line_density_scalar( LongitudinalProfileQGaussianData prof, double z){ const double number_of_particles = LongitudinalProfileQGaussianData_get_number_of_particles(prof); const double q = LongitudinalPr...
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 ...
learner.c
#include <stdlib.h> #include <stdbool.h> #include <sys/mman.h> #include <stdio.h> #include <stdint.h> #include "../corpus/corpus_io.h" #include "../tagger/tags.h" #include "../lib/hashmap.h" #include "learner.h" #include "../rules/rules.h" #include "../util/dynamic_array.h" #include "../tagger/tagger.h" #include "../di...
SpatialAdaptiveMaxPooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/SpatialAdaptiveMaxPooling.c" #else static void THNN_(SpatialAdaptiveMaxPooling_updateOutput_frame)( real *input_p, real *output_p, THIndex_t *indx_p, THIndex_t *indy_p, int64_t nslices, int64_t iwidth, ...
test_example.c
#pragma omp greg int omp_get_num_threads(); int omp_get_thread_num(); void genericForHeader(); void foo(); void bar(); int a, b, c; int main(int argc, char** argv) { int d[10], e, f; #pragma omp parallel for private(a, d) firstprivate(b, c) default(shared) ordered for(int iterator=0; iterator...
test.c
#include <stdlib.h> #include <stdio.h> #include "../utilities/check.h" #define PRINT(_args...) //#define PRINT(_args...) printf(_args) #define N 64 #define TRY_TASK 1 #define TASK_COMPUTE 1 int main () { int a[N], aa[N]; int b[N], bb[N]; int c[N], cc[N]; int d[N], dd[N]; int e[N], ee[N]; int i, errors;...
GB_binop__times_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_unop__floor_fp32_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
ofmo-calc-frag.c
/** * @file ofmo-calc-frag.c * @brief フラグメント電子状態計算関係の関数を記述したファイル * * 2中心クーロン積分の計算を積分タイプごとに分割して * 計算するようにした。 * * 4中心クーロン相互作用項を、最後の1つを除いて、worker=0でも * 計算させるようにした * * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #ifdef USE_MPI #include <mpi.h> #else #inclu...
2DConvolution.c
/** * 2DConvolution.c: This 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 <stdio.h> #include <stdlib.h> #include <t...
feature.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
bitmap.h
/*! * Copyright 2014 by Contributors * \file bitmap.h * \brief a simple implement of bitmap * NOTE: bitmap is only threadsafe per word access, remember this when using bitmap * \author Tianqi Chen */ #ifndef XGBOOST_UTILS_BITMAP_H_ #define XGBOOST_UTILS_BITMAP_H_ #include <vector> #include "./utils.h" #include ...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__trunc_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://...
for-1.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fshow-column" } */ void baz (int); void foo (int j, int k) { int i; /* Valid loops. */ #pragma omp for for (i = 0; i < 10; i++) baz (i); #pragma omp for for (i = j; i <= 10; i+=4) baz (i); #pragma omp for for (i = j; i > 0; i = i - 1) ...
GB_binop__bxor_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-...
nested_thread_num.c
// RUN: %libomp-compile-and-run | FileCheck %s // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s // REQUIRES: ompt // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7 #define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN #include "callback.h" #include <omp.h> #include <unistd.h> int main() { int ...
Booster.h
/*! @file Booster.h @author David Hirvonen @brief Internal declaration of the XGBoost C++ interface class. \copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved. \license{This project is released under the 3 Clause BSD License.} */ #ifndef __drishti_ml_Booster_h__ #define __drishti_ml_Booster...
GB_unaryop__abs_uint64_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...
simd_metadata.c
// RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86 // RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -target-feature +avx -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86-AVX // RUN: %clang_cc1 -fopenmp -trip...
omp_task_firstprivate.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <math.h> #include "omp_testsuite.h" int test_omp_task_firstprivate() { int i; int sum = 1234; int known_sum; int result = 0; /* counts the wrong sums from tasks */ known_sum = 1234 + (LOOPCOUNT * (LOOPCOUNT + 1)) / 2; #pragma omp parallel { ...
DataVectorOps.h
/***************************************************************************** * * Copyright (c) 2003-2020 by The University of Queensland * http://www.uq.edu.au * * Primary Business: Queensland, Australia * Licensed under the Apache License, version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 * * Development unt...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
barrier.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #define omp_get_num_threads() 1 #endif int main() { int tid; time_t t1,t2; #pragma omp parallel private(tid,t1,t2) { tid = omp_get_thread_num(); if (tid...
jump.c
#include "MPKMC.h" int KMCUniteIndexes(int ncluster, int ids0[], int ids1[], int ids2[]) { int i, j; int count = ncluster; for (i = 0; i < ncluster; i++) { ids2[i] = ids0[i]; } count = i; for (j = 0; j < ncluster; j++) { for (i = 0; i < ncluster; i++) { if (ids1[j] == ids0[i]) break; } if (i == ncl...
spacetime_kernel.h
/* Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of Technology 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 copyr...
GB_unop__erfc_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...
GB_subref_template.c
//------------------------------------------------------------------------------ // GB_subref_template: C = A(I,J), or C = pattern (A(I,J)) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitespa...
callback.h
#ifndef _BSD_SOURCE #define _BSD_SOURCE #endif #define _DEFAULT_SOURCE #include <stdio.h> #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif #include <inttypes.h> #include <omp.h> #include <omp-tools.h> #include "ompt-signal.h" // Used to detect architecture #include "../../src/kmp_platform.h" static co...
stream.c
/*-----------------------------------------------------------------------*/ /* Program: STREAM */ /* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */ /* Original code developed by John D. McCalpin */ /* Programm...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DeclOpenMP.h
//===- DeclOpenMP.h - Classes for representing OpenMP directives -*- 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__iseq_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-...
morn_tensor.c
/* Copyright (C) 2019-2020 JingWeiZhangHuai <jingweizhanghuai@163.com> Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
bml_scale_ellpack_typed.c
#include "../../typed.h" #include "../../macros.h" #include "../blas.h" #include "../bml_allocate.h" #include "../bml_logger.h" #include "../bml_parallel.h" #include "../bml_scale.h" #include "../bml_types.h" #include "bml_allocate_ellpack.h" #include "bml_copy_ellpack.h" #include "bml_scale_ellpack.h" #include "bml_ty...
fabio_c.c
/* Contains the IO routines for fabio module */ #include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <float.h> #include <limits.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #define FILE_MODE ( S_IRUSR | S_IWUS...
images.h
/* This file is part of the MMA Library - https://gitlab.inria.fr/dloiseau/multipers - which is released under MIT. * See file LICENSE for full license details. * Author(s): David Loiseaux * * Copyright (C) 2021 Inria * * Modification(s): * - 2022/03 Hannah Schreiber: Integration of the...
loop_multiple_variables_omp.c
// RUN: ${CATO_ROOT}/src/scripts/cexecute_pass.py %s -o %t // RUN: diff <(mpirun -np 4 %t) %s.reference_output #include <stdio.h> #include <stdlib.h> #include <omp.h> int main() { int* a = (int*)malloc(sizeof(int)*4); int* b = (int*)malloc(sizeof(int)*4); a[0] = 0; a[1] = 1; a[2] = 2; a[3] = 3...
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 <xgboost/base.h> #include <xgboost/span.h> #include <xg...
nco_ply_lst.c
/* $Header$ */ /* Purpose: Functions that manipulate lists of polygons */ /* Copyright (C) 2018--present Charlie Zender This file is part of NCO, the netCDF Operators. NCO is free software. You may redistribute and/or modify NCO under the terms of the 3-Clause BSD License with exceptions described in the LI...
GB_binop__isgt_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...
hcb_basis_core.h
#ifndef _HCB_BASIS_CORE_H #define _HCB_BASIS_CORE_H #include <complex> #include <vector> #include <iostream> #include "general_basis_core.h" #include "numpy/ndarraytypes.h" #include "benes_perm.h" #include "openmp.h" namespace basis_general { template<class I> I inline hcb_map_bits(I s,const int map[],const int N){ ...
softmax-inl.h
/*! * Copyright (c) 2017 by Contributors * \file softmax-inl.h * \brief */ #ifndef MXNET_OPERATOR_NN_SOFTMAX_INL_H_ #define MXNET_OPERATOR_NN_SOFTMAX_INL_H_ #include <vector> #include "../mxnet_op.h" #include "../operator_common.h" #include "../tensor/broadcast_reduce_op.h" namespace mxnet { namespace op { namesp...
GB_unop__identity_uint32_int32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
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...
triangleCount.c
// ----------------------------------------------------------------------------- // // "00_AccelGraph" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- ...
GB_binop__islt_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
integral_omp_for.c
// Author: Fabio Rodrigues Pereira // E-mail: fabior@uio.no // compiling & running // clang -Xpreprocessor -fopenmp integral_omp_for.c -lomp // ./a.out // SPMD technique *video11&12 #include <stdlib.h> // rand, malloc, calloc and free. #include <stdio.h> // printf #include <math.h> #include <time.h> #include <omp.h...
GB_binop__gt_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-...
aln_run.c
#include "tldevel.h" #include "tlrng.h" #ifdef HAVE_OPENMP #include <omp.h> #endif #include "msa.h" #include "alignment_parameters.h" #include "aln_task.h" #include "aln_struct.h" #include "aln_mem.h" #include "aln_setup.h" #include "aln_controller.h" #define ALN_RUN_IMPORT #include "aln_run.h" ...
task.c
/* Copyright (C) 2007-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...
main.c
//=============================================================================================================================================================================================================== //===========================================================================================================...
Fig_4.10_crit.c
// sample compile command: "gcc -fopenmp -c Fig_4.10_crit.c" to generate *.o object file #include <stdio.h> #include <omp.h> int main() { float res = 0.0; int niters = 1000;; #pragma omp parallel { float B; int i, id, nthrds; id = omp_get_thread_num(); nthrds = omp_get_num_threads(...