source
stringlengths
3
92
c
stringlengths
26
2.25M
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
dataset.h
#ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/utils/random.h> #include <LightGBM/utils/text_reader.h> #include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/meta.h> #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <vector> #include <utility> #include <func...
reduce_mean.h
// // Copyright (c) 2017 XiaoMi All rights reserved. // #ifndef MACE_KERNELS_REDUCE_MEAN_H_ #define MACE_KERNELS_REDUCE_MEAN_H_ #if defined(MACE_ENABLE_NEON) && defined(__aarch64__) #include <arm_neon.h> #endif #include <algorithm> #include <memory> #include <vector> #include "mace/core/future.h" #include "mace/core...
DRB061-matrixvector1-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...
omp_for_schedule_runtime.c
// RUN: %libomp-compile // RUN: env OMP_SCHEDULE=static %libomp-run 1 0 // RUN: env OMP_SCHEDULE=static,10 %libomp-run 1 10 // RUN: env OMP_SCHEDULE=dynamic %libomp-run 2 1 // RUN: env OMP_SCHEDULE=dynamic,11 %libomp-run 2 11 // RUN: env OMP_SCHEDULE=guided %libomp-run 3 1 // RUN: env OMP_SCHEDULE=guided,12 %libomp-run...
3d25pt_var.c
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable 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) >...
elect_energy_vec.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <immintrin.h> #include <limits.h> int main(int argc, char **argv) { struct timespec ts_start, ts_end; int size = 60; int n_charges = size*size*size; float scale=0.5; float *charge, *x, *y, *z; int i,j,k...
utils.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 ...
relulayer.h
#ifndef RELULAYER_H #define RELULAYER_H #include "vol.h" #include "layer.h" #include "utils.h" #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/map.hpp> #include <boost/serialization/utility.hpp> #include <ios...
GB_unop__log1p_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...
opencl_strip_fmt_plug.c
/* STRIP Password Manager cracker patch for JtR. Hacked together during * September of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net> * and it is hereby released to the general public under the following terms: * Redistribution and use i...
t_initialize.c
//-----------------------BEGIN NOTICE -- DO NOT EDIT----------------------- // NASA Goddard Space Flight Center // Land Information System Framework (LISF) // Version 7.3 // // Copyright (c) 2020 United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. // All...
GI.h
#include "parse.h" #define SELF_GRAVITY #define FLAG_GI #ifdef PARTICLE_SIMULATOR_TWO_DIMENSION #error #endif template <class Ptcl> class GI : public Problem<Ptcl>{ public: static const double END_TIME; static void setupIC(PS::ParticleSystem<Ptcl>& sph_system, system_t& sysinfo, PS::DomainInfo& dinfo){ const doub...
GB_binop__islt_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
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...
parallel_reduction_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s int incomplete[]; void test() { #pragma omp parallel reduction(+ : incomplete) // expected-error {{a reduction list item with incomplete type 'int []'}} ; } // complete to suppress an additional warning, but it's too late for pragmas int incomplete[3];
GB_unaryop__ainv_fp64_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...
activations.c
#include "activations.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_activation_string(ACTIVATION a) { switch(a){ case LOGISTIC: return "logistic"; case LOGGY: return "loggy"; case RELU: return "relu"; c...
segment.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
RobustPoseOptimization.h
/** * Copyright (c) 2021 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "saiga/core/util/Range.h" #include "saiga/core/util/Thread/omp.h" #include "saiga/vision/VisionTypes.h" #include "saiga/vision/kernels/BA.h" #include "saiga/vision/kernels/Ro...
ast-dump-openmp-teams.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test() { #pragma omp target #pragma omp teams ; } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
matrix_op-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 ...
PReLU.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/PReLU.c" #else void THNN_(PReLU_updateOutput)( THNNState *state, THTensor *input, THTensor *output, THTensor *weight) { THTensor_(resizeAs)(output, input); int64_t nOutputPlane = THTensor_(numel)(weight); if (nOutpu...
7630.c
// this source is derived from CHILL AST originally from file '/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c' as parsed by frontend compiler rose void kernel_fdtd_2d(int tmax, int nx, int ny, double ex[1000 + 0][1200 + 0], double ey[1000 + 0][1200 + 0], doub...
GB_unop__identity_int32_uint16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
omp_avoid_false_sharing2.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #define NUM_THREADS 4 #define ITER_LOOP 400000000 struct sheep { int cnt; } __attribute__((aligned(64))); /* 64바이트 캐시 라인에 정렬한 구조체 선언 */ struct sheep cnt_sheep[NUM_THREADS]; int count_sheep(int); int main() { int i; #ifdef _OPENM...
program_evaluator.h
// Ceres Solver - A fast non-linear least squares minimizer // Copyright 2015 Google Inc. All rights reserved. // http://ceres-solver.org/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of so...
stream_mmap.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...
GB_unaryop__ainv_bool_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
resample_utils.h
/* Copyright 2020 - 2021 MONAI Consortium Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
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 <cstring> #include <memory> #include <numeric> #include <algorithm> #include <string...
GB_resize.c
//------------------------------------------------------------------------------ // GB_resize: change the size of a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apache-...
par_lr_interp.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) **************************************...
mandelbrot.c
/* gcc mandelbrot.c -o mandelbrot -lm -Ofast -fopenmp */ /* Draws a Mandelbrot into out.ppm. Mostly I'm just playing with OpenMP. */ #include <complex.h> #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv) { size_t width = 1920, height = 1080; unsigned char *block = malloc(width ...
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...
GB_unaryop__abs_int16_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
ompbubble.c
// C program for implementation of Bubble sort #include <stdio.h> #include <stdlib.h> #include <time.h> #include <time.h> #include<omp.h> #include<openacc.h> clock_t start, end,start1,end1; double cpu_time_used,timeu; void swap(int *xp, int *yp) { int temp = *xp; *xp = *yp; *yp = temp; } void bubbleSort(int ar...
nested.c
// RUN: %compile-run-and-check #include <omp.h> #include <stdio.h> const int MaxThreads = 1024; const int NumThreads = 64; int main(int argc, char *argv[]) { int inParallel = -1, numThreads = -1, threadNum = -1; int check1[MaxThreads]; int check2[MaxThreads]; for (int i = 0; i < MaxThreads; i++) { check1...
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...
mpi_room_assignment.c
/* The following C code implements the room-assignment problem * Written By : Sai Suraj(21560) and Suvam Tamang(21561) * MTCS - 103(P) Mini - Project */ ///////////////////////////////////////////////////////////////////// ALL THE HEADER FILES /////////////////////////////////////////////////////////////////////...
workshare1.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #define CHUNKSIZE 10 #define N 100 int main (int argc, char *argv[]) { int nthreads, tid, 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 shared(a,b,c,n...
omp_taskwait.c
<ompts:test> <ompts:testdescription>Test which checks the omp taskwait directive. First we generate a set of tasks, which set the elements of an array to a specific value. Then we do a taskwait and check if all tasks finished meaning all array elements contain the right value. Then we generate a second set setting the ...
omp_for_schedule_static_3.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" #define CFSMAX_SIZE 1000 #define MAX_TIME 0.01 #ifdef SLEEPTIME #undef SLEEPTIME #define SLEEPTIME 0.0005 #endif #define VERBOSE 0 int test_omp_for_schedule_static_3() { int threads; int i...
distort.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convdw3x3s2_sse.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 ...
GB_unaryop__minv_int32_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
for_schedule_guided.c
/* * Test for guided scheduling * Ensure threads get chunks interleavely first * Then judge the chunk sizes are decreasing until to a stable value * Modifed by Chunhua Liao * For example, 100 iteration on 2 threads, chunksize 7 * one line for each dispatch, 0/1 means thread id *0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
mxUpdateWDWetDryState.c
#include "../../@SWEAbstract2d/private/mxSWE2d.h" NdgRegionType getCellWDType(const int Np, const double hmin, double *h, double *z) { NdgRegionType type = NdgRegionWet; // initialize to wet element int wetNodeNum = 0; bool partialWetFlood = true; for (int n = 0; n < Np; n++) { ...
mass_sum.c
#include "mass_sum.h" #define REAL_CELL 1 double mass_sum(int ncells, int* restrict celltype, double* restrict H, double* restrict dx, double* restrict dy){ double summer = 0.0; #pragma omp simd reduction(+:summer) for (int ic=0; ic<ncells ; ic++) { if (celltype[ic] == REAL_CELL) { ...
palshop_fmt_plug.c
/* This format is reverse engineered from InsidePro Hash Manager! * * This software is Copyright (c) 2016, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, * are ...
queue.h
// -*- C++ -*- // Copyright (C) 2007-2016 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 3...
omp_for_schedule_static_3.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <stdlib.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" #define CFSMAX_SIZE 1000 #define MAX_TIME 0.01 #ifdef SLEEPTIME #undef SLEEPTIME #define SLEEPTIME 0.0005 #endif #define VERBOSE 0 int test_omp_for_schedule_static_3() { int threads; int i...
RelativeNeighborhoodGraph.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef _SPTAG_COMMON_RNG_H_ #define _SPTAG_COMMON_RNG_H_ #include "NeighborhoodGraph.h" namespace SPTAG { namespace COMMON { class RelativeNeighborhoodGraph: public NeighborhoodGraph { pub...
dertransp_parallel.c
/* Inputs: prhs[0] = dA/dx corresponding to a matrix A of size (nrow x ncol) * prhs[1] = nrow of matrix A * Outputs: plhs[0] = dA'/dx corresponding to transposed matrix A' * Method: This is just a row permutation of dA/dx * * by SeHyoun Ahn, Aug 2016 */ #include <omp.h> #include "mex.h" #include <stdlib....
fem_2d.h
#include <taichi/common/util.h> #include <taichi/math.h> #include <taichi/system/timer.h> #include <taichi/common/dict.h> #include <taichi/system/profiler.h> TC_NAMESPACE_BEGIN template <int dim> constexpr int ke_size() { return pow<dim>(2) * dim; } class Material { public: float64 E; // Young's modulus ...
tree-vectorizer.h
/* Vectorizer Copyright (C) 2003-2015 Free Software Foundation, Inc. Contributed by Dorit Naishlos <dorit@il.ibm.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 the Free Software Foundation; either ve...
DarthTon.h
#ifndef DARTHTON_H #define DARTHTON_H // Boyer-Moore-Horspool with wildcards implementation inline LPVOID Search( uint8_t* pPattern, size_t patternSize, uint8_t wildcard, uint8_t* pScanPos, size_t scanSize ) { size_t bad_char_skip[UCHAR_MAX + 1]; uint8_t* scanEnd = pScanPos + scanSize - patternSize; size_t...
shortpe.h
#ifndef SHORTPE_H #define SHORTPE_H #include <iostream> #include <fstream> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> #include <boost/graph/connected_components.hpp> #include <boost/container/flat_set.hpp> #include <boost/unordered_map.hpp> #include <boost/program_options/cmdline.h...
rxmesh_static.h
#pragma once #include <assert.h> #include <fstream> #include <memory> #include <cuda_profiler_api.h> #include "rxmesh/attribute.h" #include "rxmesh/handle.h" #include "rxmesh/kernels/for_each.cuh" #include "rxmesh/launch_box.h" #include "rxmesh/rxmesh.h" #include "rxmesh/types.h" #include "rxmesh/util/log.h" #includ...
array.c
#include <assert.h> #include <malloc.h> #include <stdlib.h> #include "actpol/array.h" #include "actpol/astro.h" #include "actpol/math.h" #include "actpol/state.h" #include "actpol/vec3.h" #include "actpol/util.h" #include "debug.h" void actpol_detector_to_focalplane_rotation(double focalplane_x, double focalplane_y...
GB_binop__plus_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
pi_omp_atomic.c
/* * Compute pi by approximating the area under the curve f(x) = 4 / (1 + x*x) * between 0 and 1. * * Parallel version using OpenMP */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <omp.h> /* OpenMP */ #if _EXTRAE_ #include "extrae_user_events.h" // Extrae Constants #define PROGRAM 100...
surfmorph.h
#ifndef SURFMORPH_H #define SURFMORPH_H #include "surfmorph_codegen.h" #include <Eigen/Core> #include <Eigen/Geometry> #include <Eigen/LU> #include <Eigen/Sparse> #include <Eigen/SparseCholesky> #include <Eigen/SVD> #include <cmath> #include <stdexcept> #include <unordered_map> #include <utility> #include <vector> ...
centroid.h
#ifndef MINOCORE_CLUSTERING_CENTROID_H__ #define MINOCORE_CLUSTERING_CENTROID_H__ #include "minicore/util/blaze_adaptor.h" #include "minicore/util/csc.h" #include "minicore/dist.h" #include "minicore/optim/kmedian.h" namespace minicore { namespace clustering { using blaze::unchecked; enum CentroidPol { FULL_WEIG...
ten_tusscher_2004_epi_S2_3.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S2_3.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:...
pooling_3x3.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
st_naive_mask.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> /* multiprocessor support */ //#include "../PaulSwissPNG/png/mypng.h" #include "mypng.h" /***********************************************************************/ double* SteepestTangent(const uint8 *Image, const size_t N...
prox.c
// A Splitting Method for Optimal Control // by Brendan O'Donoghue, George Stathopoulos and Stephen Boyd // =========================================================== // code to perform prox step for robust state estimation example #include <stdio.h> #include "../../src/osc.h" #include "prox.h" #include <stdlib.h>...
ztrsm.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 ...
kvstore_dist_server.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 ...
ssd.c
#define _POSIX_C_SOURCE 200809L #include <fcntl.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #define PIO #define FLUSH #define ELAPSED(TS,TE,TT) \ do { ...
bfs_dijkstra.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "ompdist/utils.h" #include "ompdist/vector.h" #include "ompdist/graph.h" #include "ompdist/graph_gen.h" #include "ompdist/msr.h" #include "config.h" #define START 1 #define JOIN 2 int ROOT; typedef struct { int parent_label; int phase_discov...
close_manual.c
// RUN: %libomptarget-compile-run-and-check-generic #include <omp.h> #include <stdio.h> // --------------------------------------------------------------------------- // Various definitions copied from OpenMP RTL extern void __tgt_register_requires(int64_t); extern void __tgt_target_data_begin(int64_t device_id, in...
module_bl_mynn_mym_condensation_impl.h
#ifndef __MODULE_BL_MYNN_MYM_CONDENSATION_IMPL_H__ #define __MODULE_BL_MYNN_MYM_CONDENSATION_IMPL_H__ #ifndef MODULE_BL_MYNN_MYM_CONDENSATION_IMPL_VERSION_MAJOR #define MODULE_BL_MYNN_MYM_CONDENSATION_IMPL_VERSION_MAJOR 1 #endif #ifndef MODULE_BL_MYNN_MYM_CONDENSATION_IMPL_VERSION_MINOR #define MODULE_BL_MY...
errorAbs.h
#pragma once #include <cmath> #include <array> #include <vector> #include <algorithm> #include "_cuda.h" #include "ceilDiv.h" #include "sum.h" using namespace std; // Finds absolute error between 2 vectors (arrays). template <class T> T errorAbs(T *x, T *y, int N) { T a = T(); for (int i=0; i<N; i++) a += ...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_1x1_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_unaryop__identity_bool_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_unaryop__minv_int64_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
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)...
image-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % IIIII M M AAA GGGG EEEEE ...
QLA_D3_M_veq_M_times_pM.c
/**************** QLA_D3_M_veq_M_times_pM.c ********************/ #include <stdio.h> #include <qla_config.h> #include <qla_types.h> #include <qla_random.h> #include <qla_cmath.h> #include <qla_d3.h> #include <math.h> static void start_slice(){ __asm__ __volatile__ (""); } static void end_slice(){ __asm__ __volat...
window.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * 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 Lic...
ctl_scroll.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * 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 Lic...
libperf_int.h
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2016. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifndef LIBPERF_INT_H_ #define LIBPERF_INT_H_ #include <tools/p...
hello.c
#include <stdio.h> int main(void) { #pragma omp parallel printf("Hello, world.\n"); return 0; }
GB_unaryop__lnot_fp32_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
sp.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - SP This benchmark is an OpenMP C version of the NPB SP code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
parallel_priority_queue.h
/*************************************************************************** * include/stxxl/bits/containers/parallel_priority_queue.h * * Part of the STXXL. See http://stxxl.org * * Copyright (C) 2014-2015 Thomas Keh <thomas.keh@student.kit.edu> * Copyright (C) 2014-2015 Timo Bingmann <tb@panthema.net> * *...
convolution_3x3_pack4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
ark_analytic_nonlin_ompdev.c
/*----------------------------------------------------------------- * Programmer(s): Shelby Lockhart @ LLNL *--------------------------------------------------------------- * This code is based on the serial code found in * ark_analytic_nonlin.c developed by Daniel R. Reynolds *------------------------------------...
mscash2_fmt_plug.c
/* MSCASH2 patch for John the Ripper written by S3nf in 2010, 2011 * a slow but working version * * Cracking Domain Cached Credentials for modern Windows operating systems, supporting: * - Windows Vista * - Windows 7 * - Windows Server 2008 * * This software was written by S3nf in 2010, 2011. No cop...
GB_unaryop__lnot_int64_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
budgeted-train.c
/* ============================================================================ Author : Roberto Diaz Morales ============================================================================ Copyright (c) 2016 Roberto Díaz Morales Permission is hereby granted, free of charge, to any person obtaining a copy of ...
restrictpointer2-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...
ipbwt_rmi.h
/************************************************************************************* MIT License Copyright (c) 2020 Intel Labs 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 restrictio...
right_synch_p2p_dataflow.c
/* * This file is part of a small series of tutorial, * which aims to demonstrate key features of the GASPI * standard by means of small but expandable examples. * Conceptually the tutorial follows a MPI course * developed by EPCC and HLRS. * * Contact point for the MPI tutorial: * rabenseifner@...
mat_mul_simd_1000.c
/* * file for mat_mul.c */ #include "./mat_mul.h" #include "./size.h" void mat_mul(int *a, int *b, int *c); void mat_mul(int *a, int *b, int *c) { int i, j, k, t; #pragma omp simd private(j, t, k) for(i = 0; i <= 999; i += 1) for(j = 0; j <= 999; j += 1) { c[i*1000+j] = 0; for(k = 0; k ...