source
stringlengths
3
92
c
stringlengths
26
2.25M
GeneralBlockPanelKernel.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen 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...
NeighborhoodGraph.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef _SPTAG_COMMON_NG_H_ #define _SPTAG_COMMON_NG_H_ #include "../VectorIndex.h" #include "CommonUtils.h" #include "Dataset.h" #include "FineGrainedLock.h" #include "QueryResultSet.h" #include <chrono> #if defined(GP...
isometries.c
#include "fasttransforms.h" #include "ftinternal.h" static inline void compute_givens(double x, double y, double * c, double * s, double * r) { * r = hypot(x, y); if (* r <= M_FLT_MIN) { * c = 1.0; * s = 0.0; } else { * c = x / * r; * s = y / * r; } } ft_ZYZR ft_cre...
GB_unaryop__abs_uint16_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...
generator_spgemm_csr_asparse.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
cq_fmt_plug.c
/* * This software is Copyright (c) Peter Kasza <peter.kasza at itinsight.hu>, * 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 permitted. */ #if FMT_EXTERNS_H extern struct fmt_main fmt_cq; #elif...
mixed_tentusscher_myo_epi_2004_S3_11.c
// Scenario 3 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt + Rc) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S3_11.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_o...
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 ...
3d25pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
GB_unop__identity_int8_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...
test.c
#include <stdio.h> #include <omp.h> #include <time.h> #include <sys/time.h> #include <unistd.h> #include "buzz.h" #define THREADCOUNT 100 #define GOLD 30 #define BLACK THREADCOUNT-GOLD #define THREADPOOL 5 #define TIMEOUT 10 // in us #define ACTIVITY 5 // in us buzz_t GTLOCK; void thread(){ struct timeval t1,t2; ...
atomic-13.c
/* PR middle-end/45423 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-gimple -g0 -O2 -Wno-deprecated" } */ /* atomicvar should never be referenced in between the barrier and following #pragma omp atomic_load. */ /* { dg-final { scan-tree-dump-not "barrier\[^#\]*atomicvar" "gimple" } } */ /* { dg-s...
DeclOpenMP.h
//===- DeclOpenMP.h - Classes for representing OpenMP directives -*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
YAKL_parallel_for_c.h
#pragma once #ifdef YAKL_ARCH_CUDA #include <nvtx3/nvToolsExt.h> #endif namespace c { template <class T> constexpr T fastmod(T a , T b) { return a < b ? a : a-b*(a/b); } /////////////////////////////////////////////////////////// // LBnd: Loop Bound -- Describes the bounds of one loop ///////////...
convolution_1x1_pack8to4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
Normals.h
/* License Information * * Copyright (C) ONERA, The French Aerospace Lab * Author: Alexandre BOULCH * * 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 restriction, includin...
reduce.h
#include <dll.h> //#include <string> #include <sharedmem.h> #include <stdio.h> #include <shape.h> #include <op.h> #include <omp.h> #include <templatemath.h> #include <helper_cuda.h> #include <nd4jmalloc.h> #include <pairwise_util.h> #pragma once #ifdef __CUDACC__ #include <cuda.h> #include <cuda_runtime.h> #endif #ifde...
lulc.c
#include <stdio.h> #include "gdal.h" #include <omp.h> /* 0 Processed Good Quality 1 Processed but look at other QA information 2 Not Processed Due to cloud effect 3 Not Processed Due to other effects */ void usage() { printf( "-----------------------------------------\n"); printf( "--Modis Processing chain--Se...
GB_binop__times_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GxB_Scalar_wait.c
//------------------------------------------------------------------------------ // GxB_Scalar_wait: wait for a scalar to complete //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier:...
GB_binop__isne_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-...
Layer_Im2Mat.h
/* * Layers.h * rl * * Created by Guido Novati on 11.02.16. * Copyright 2016 ETH Zurich. All rights reserved. * */ #pragma once #include "Layers.h" // Im2MatLayer gets as input an image of sizes InX * InY * InC // and prepares the output for convolution with a filter of size KnY * KnX * KnC // and output a...
Q2_Solution_Batch.h
#pragma once #include <queue> #include <algorithm> #include <cassert> #include <numeric> #include <memory> #include <set> #include "utils.h" #include "load.h" #include "Q2_Solution.h" class Q2_Solution_Batch : public Q2_Solution { protected: static std::vector<uint64_t> convert_score_type_to_comment_id(const ...
Interp1PrimSecondOrderCentralChar.c
/*! @file Interp1PrimSecondOrderCentralChar.c @author Debojyoti Ghosh @brief Characteristic-based second order central scheme */ #include <stdio.h> #include <stdlib.h> #include <basic.h> #include <arrayfunctions.h> #include <mathfunctions.h> #include <interpolation.h> #include <mpivars.h> #include <hypar.h> #...
IF97_Region3bw.c
// Copyright Martin Lord 2014-2015. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // IAPWS-IF97 Region 3 Backwards Equations: low temperature supercritical region /* *****************...
Parallelizer.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
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) >...
pool_layer.c
#include "pool_layer.h" pool_layer* pool_alloc(int chan, int in_w, int in_h, int f_size, int stride, int padd) { pool_layer *layer = aalloc(sizeof(*layer)); layer->stride = stride; layer->f_size = f_size; layer->padd = padd; layer->chan = chan; layer->in_w = in_w; layer->in_h = in_h; ...
GB_unaryop__abs_uint32_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
newtonpf.h
/* * newtonpf.cuh * * Created on: 23/09/2015 * Author: Igor M. Araújo */ #ifndef NEWTONPF_CUH_ #define NEWTONPF_CUH_ #include <Eigen/SparseLU> #include "util/quicksort.h" #include "util/timer.h" using namespace std; using namespace Eigen; __host__ double mkl_checkConvergence( Bus* buses, unsigned int...
Cone.h
#ifndef CONE_HEADER #define CONE_HEADER #ifdef DOPARALLEL #include <omp.h> #endif #include "basic.h" #include "PointCloud.h" #include <GfxTL/HyperplaneCoordinateSystem.h> #include <stdexcept> #include <ostream> #include <istream> #include <stdio.h> #include <MiscLib/NoShrinkVector.h> #include "LevMarLSWeig...
GB_unop__identity_fp64_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
target-6.c
#include <omp.h> #include <stdlib.h> int main () { omp_set_dynamic (0); omp_set_nested (1); if (omp_in_parallel ()) abort (); #pragma omp parallel num_threads (3) if (omp_get_thread_num () == 2) { if (!omp_in_parallel ()) abort (); #pragma omp parallel num_threads (3) if (omp_get_thread_n...
dataCostD.h
void interp3xyz(float* datai,float* data,float* datax,float* datay,int len1,int len2){ //x-interp for(int k=0;k<len1;k++){ for(int j=0;j<len2;j++){ int j2=(j+1)/2; if(j%2==1){ for(int i=0;i<len1;i++){ datax[i+j*len1+k*len1*len2]=data[i+j2*len1+...
image.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/image.c" #else #undef MAX #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) ) #undef MIN #define MIN(a,b) ( ((a)<(b)) ? (a) : (b) ) #undef TAPI #define TAPI __declspec(dllimport) #ifndef M_PI #define M_PI 3.14159265358979323846 #endif static void image_(Main_op_va...
centroid_blind.h
/* Multi-view Image Restoration "Multi-view Image Restoration From Plenoptic Raw Images" Shan Xu, Zhi-Liang Zhou and Nicholas Devaney In Asian Conference on Computer Vision 2014 Emerging Topics In Image Restoration and Enhancement workshop Author: Shan Xu <xushan2011@gmail.com> Copyright (C) 2...
rose_v1_c99loop.c
/* Contributed by Jeff Keasler Liao, 10/22/2009 */ #include <omp.h> int main(int argc,char *argv[]) { double a[20][20]; for (int i = 0; i <= 18; i += 1) { #pragma omp parallel for for (int j = 0; j <= 19; j += 1) { a[i][j] += a[i + 1][j]; } } return 0; } // with shadow i and j void foo(int...
flip_op.h
/* Copyright (c) 2020 PaddlePaddle Authors. 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 by applicable law or...
lfmm3d_fin.c
#include "stdlib.h" #include "stdio.h" #include "math.h" #include "lfmm3d_c.h" #include "complex.h" #include "cprini.h" #include <omp.h> #include <string.h> #include <sys/time.h> double get_wtime_sec() { double sec; struct timeval tv; gettimeofday(&tv, NULL); sec = tv.tv_sec + (double) tv.tv_usec / 10...
burton_mesh.h
/*~--------------------------------------------------------------------------~* * Copyright (c) 2016 Los Alamos National Laboratory, LLC * All rights reserved *~--------------------------------------------------------------------------~*/ //////////////////////////////////////////////////////////////////////////////...
residual_based_implicit_time_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS...
GB_binop__copysign_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-...
cvsAdvDiff_bnd_omp.c
/* ----------------------------------------------------------------- * Programmer(s): Daniel Reynolds and Ting Yan @ SMU * Based on cvsAdvDiff_bnd.c and parallelized with OpenMP * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2019, Lawrence Li...
GB_unop__ceil_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_unop__ainv_uint16_uint16.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...
main.c
#include "modules/api.h" #include "core/core.h" #define STB_DXT_IMPLEMENTATION #include "stb_dxt.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <zlib.h> void modify_roi_in( dt_graph_t *graph, dt_module_t *mod) { dt_roi_t *r = &mod->connector[0].roi; r->scale =...
parallel_utilities.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // Denis Demidov...
pool_ut.h
// Copyright (c) 2019 PaddlePaddle Authors. 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...
work.c
#define PY_SSIZE_T_CLEAN #include <Python.h> #include <time.h> #ifdef HAVE_CL_CL_H #include <CL/cl.h> #elif HAVE_OPENCL_OPENCL_H #include <OpenCL/opencl.h> #else #include <omp.h> #include "blake2.h" #endif #if defined(HAVE_CL_CL_H) || defined(HAVE_OPENCL_OPENCL_H) // this is the variable opencl_program in nano-node/...
ros_msg_translator.h
/****************************************************************************** * Copyright 2020 RoboSense All rights reserved. * Suteng Innovation Technology Co., Ltd. www.robosense.ai * This software is provided to you directly by RoboSense and might * only be used to access RoboSense LiDAR. Any compilation, * ...
subCycleStrongCubatureVolumeHex3D.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus 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 restriction, including without limitation t...
1.c
#include <math.h> #include <omp.h> #include <stdio.h> // 1 thread = 47.3 ms ± 2.0 ms // 2 thread = 66.5 ms ± 6.3 ms // 4 thread = 39.5 ms ± 2.2 ms // 8 thread = 41.8 ms ± 2.0 ms int main() { int result[1] = {0}; #pragma omp parallel for schedule(dynamic, 1) for (int i = 0; i < 1000000; i++) { ...
SharedHeap.h
#ifndef SHARED_HEAP_H_ #define SHARED_HEAP_H_ #include <assert.h> #include "CommonParallel.h" #ifdef __UPC__ #include <upc.h> #elif defined _OPENMP #include <omp.h> #elif defined USE_MPI #include <mpi.h> #else #warn "No parallelism has been chosen at compile time... did you want OpenMP (cc -fopenmp), MPI (mp...
debug_test_system.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2015, Knut Reinert, FU Berlin // Copyright (c) 2013 NVIDIA Corporation // All rig...
rom_residuals_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: RAUL BRAVO // #if !defined( ROM_RESIDUALS_UTI...
nbody.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "timer.h" #define SOFTENING 1e-9f typedef struct { float x, y, z, vx, vy, vz; } Particle; void randomizeBodies(float *data, int n) { for (int i = 0; i < n; i++) { data[i] = 2.0f * (rand() / (float)RAND_MAX) - 1.0f; } } void bodyForce(Particle...
Sections.c
/** This Program uses Sections Construct with Private, FirstPrivate, LastPrivate, Reductions and Nowait. * Sai Suraj * 07/09/2021 **/ #include <stdio.h> #include <stdlib.h> #include <omp.h> void function1() { for (int i = 0; i <= 4; i++) { printf("\n Hello world!"); printf("\nSection 1 i...
native_template.c
// This is the default template for C. #include <stdbool.h> #include <stdint.h> #include <math.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #ifndef M_E #define M_E 2.718281828459045235360 #endif #define RANDOM_EPSILON (0.5 / 4294967296) #define MCSAMPLES %(mcsamples)s #define DEGREES_OF_FREEDO...
fio.h
#include <string.h> #include <stdlib.h> #include <byteswap.h> #include <omp.h> namespace fun3d { const unsigned int THRESHOLD = 100; template<typename T> T __bswap(T val) { /* unsigned int */ if(sizeof(T) == 4) return(__bswap_32((unsigned int)val)); else { T val_; const size_t sz =...
summary.c
/* perf-libs-tools Copyright 2017-21 Arm Limited. All rights reserved. */ #include "summary.h" #ifdef _OPENMP #include <omp.h> #endif /* Global variables */ struct timespec armpl_progstart; armpl_lnkdlst_t *listHead = NULL; /* Global variables for identifying top-level call */ int toplevel_glo...
encfs_fmt_plug.c
/* EncFS cracker patch for JtR. Hacked together during July of 2012 * by Dhiru Kholia <dhiru at openwall.com> * * This software is Copyright (c) 2011, 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...
LJFunctor.h
/** * @file LJFunctor.h * * @date 17 Jan 2018 * @author tchipevn */ #pragma once #include <array> #include "ParticlePropertiesLibrary.h" #include "autopas/iterators/SingleCellIterator.h" #include "autopas/pairwiseFunctors/Functor.h" #include "autopas/utils/AlignedAllocator.h" #include "autopas/utils/ArrayMath.h...
common.h
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_UTILS_COMMON_H_ #define LIGHTGBM_UTILS_COMMON_H_ #if ((defined(sun) || defined(__sun)) && (defined(__SVR4) || defined(__svr4__))) #...
dis-err.c
#include <omp.h> #include <stdio.h> /* for(i=4;i<100;i++){ a[i] = b[i-2] + 1; c[i] = b[i-1] + f[i]; b[i] = a[i-1] + 2; d[i] = d[i+1] + b[i-1]; } */ #define Iter 100000 int a[Iter],b[Iter],c[Iter],d[Iter],f[Iter]; int a1[Iter],b1[Iter],c1[Iter],d1[Iter...
add_omp.c
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
l7_push_setup.c
/* * Copyright (c) 2011-2019, Triad National Security, LLC. * All rights Reserved. * * CLAMR -- LA-CC-11-094 * * Copyright 2011-2019. Triad National Security, LLC. This software was produced * under U.S. Government contract 89233218CNA000001 for Los Alamos National * Laboratory (LANL), which is operated...
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 ...
convolutiondepthwise_5x5_pack8_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 ...
rom_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // ...
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 <rabit/rabit.h> #include <xgboost/base.h> #include <xgboost/span.h> #include <xgboos...
GB_unop__identity_int32_uint64.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...
dgemvN_save.c
#define max(a,b) (((a) < (b))? (b) : (a)) #define min(a,b) (((a) < (b))? (a) : (b)) #include <omp.h> void dgemvN(const int M,const int N,const double alpha,const double* A,const int lda,const double* X,const int incX,const double beta,double* Y,const int incY) { int i;int j; int i_bk_1; int i_bk_2; int j_b...
omp_for_schedule_static_3.c
<ompts:test> <ompts:testdescription>Test which checks the static option of the omp for schedule directive considering the specifications for the chunk distribution of several loop regions is the same as specified in the Open MP standard version 3.0.</ompts:testdescription> <ompts:ompversion>3.0</ompts:ompversion> <ompt...
Consumer.c
#include <stdio.h> #include <stdlib.h> int mutex = 1; int full = 0; int empty = 10, x = 0; void producer() { --mutex; ++full; --empty; x++; printf("\nProducer produces " "item %d", x); ++mutex; } void consumer() { --mutex; --full; ++empty; print...
nmf_pgd.c
/* Generated by Cython 0.29.14 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "language": "c", "name": "gensim.models.nmf_pgd", "sources": [ "gensim/models/nmf_pgd.pyx" ] }, "module_name": "gensim.models.nmf_pgd" } END: Cython Metadata */ #...
GB_unop__ainv_uint64_uint64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_binop__first_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-...
targc-generic.c
#include <omp.h> #include <stdio.h> int main (){ #define N 1024 double x_d[N]; for (size_t i = 0; i < N; ++i) x_d[i] = -1; printf("x_d = %p\n",x_d); #pragma omp target { int lower = 0; printf("hello\n"); x_d[1] = 1; } printf("x_d[1] = %f\n", x_d[1]); return 0; }
genome.c
/* ============================================================================= * * genome.c * * ============================================================================= * * Copyright (C) Stanford University, 2006. All Rights Reserved. * Author: Chi Cao Minh * * =========================================...
elemwise_binary_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 ...
ftensor.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "base.h" #include "sort.h" #include "io.h" #include "matrix.h" #include "ftensor.h" #include "tile.h" #include "util.h" /**************...
3D.ref.c
#include <sys/time.h> #include <time.h> #include <stdio.h> static unsigned long long current_time_ns() { #ifdef __MACH__ clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), c...
threshold.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
GB_unop__round_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
sumavectores.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> main(int argc, char **argv) { int i, n=20, a[n], suma=0; if(argc < 2) { fprintf(stderr,"\nFalta iteraciones\n"); exit(-1); } n = atoi(argv[1]); if (n>20) n=20; for (i=0; i<n; i++) a[i] = i; // Las variables fuera de omp parallel son compartidas #pr...
DRB094-doall2-ordered-orig-no.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
hierarchical_sne_inl.h
/* * * Copyright (c) 2014, Nicola Pezzotti (Delft 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: * 1. Redistributions of source code must retain the above ...
r_direct_o1.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 requi...
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)...
psgetrf.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/compute/pzgetrf.c, normal z -> s, Fri Sep 28 17:38:11 2018 * **/ #include "plasma_async.h" #include "plasma_contex...
Cone.h
#ifndef CONE_HEADER #define CONE_HEADER #ifdef DOPARALLEL #include <omp.h> #endif #include "basic.h" #include "PointCloud.h" #include <GfxTL/HyperplaneCoordinateSystem.h> #include <stdexcept> #include <ostream> #include <istream> #include <stdio.h> #if !defined(_WIN32) && !defined(WIN32) #include <unistd.h> #endif #inc...
lotus5_fmt_plug.c
//original work by Jeff Fay //some optimisations by bartavelle at bandecon.com /* OpenMP support and further optimizations (including some code rewrites) * by Solar Designer */ #if FMT_EXTERNS_H extern struct fmt_main fmt_lotus5; #elif FMT_REGISTERS_H john_register_one(&fmt_lotus5); #else #include <stdio.h> #include...
affinity.c
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <math.h> #define LEN 10000000 int main(int argc, char** argv) { int rank, size; int provided; double *input, *output; double t0, t1; MPI_Init_thread(&argc, &argv, 0, &provided); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_CO...
node-core.h
#ifndef ARGOS_NODE_CORE #define ARGOS_NODE_CORE #include <iostream> #include <sstream> #include <boost/lexical_cast.hpp> #include "array.h" #include "argos.h" #include "blas-wrapper.h" namespace argos { namespace role { class ArrayLabelInput: public virtual Role { public: virtual Arra...
pdlange.c
/** * * @file pdlange.c * * PLASMA auxiliary routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author Emmanuel Agullo * @author Mathieu Faverge * @date 2010-11-15 * @generated d Tue Jan 7 11:45:11 201...
expected_output.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <polybench.h> #include "syr2k.h" /** * This version is stamped on May 10, 2016 * * Contact: * Louis-Noel Pouchet <pouchet.ohio-state.edu> * Tomofumi Yuki <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /*sy...
truedeplinear-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...
convolution_3x3_pack8_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 ...