source
stringlengths
3
92
c
stringlengths
26
2.25M
_detection.c
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include <Python.h> #include <numpy/arrayobject.h> #include <math.h> #ifdef __INTEL_COMPILER #include <mkl_cblas.h> #else #include <cblas.h> #define kmp_set_blocktime(k) #endif static inline int min (int a, int b) { return a < b ? a : b; } static inline int max (int...
utils.c
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include "utils.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES #endif #include <math.h> #include <assert.h> #include <float.h> #include <limits.h> #include "darkunistd.h" #ifdef WIN32 #include "gettimeofday...
GB_unop__identity_uint64_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
conv_kernel_rv64.c
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
interpolate_op.h
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. 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...
Stencil_par3.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "malloc2D.h" #include "timer.h" int main(int argc, char *argv[]) { struct timespec tstart_cpu, tstop_cpu; double cpu_time; int imax=2002, jmax = 2002; int niter=1000, nburst=100; double** restrict x = malloc2D(jmax, imax); dou...
hello-2.c
/* By C. Liao */ #include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif void foo(int * i) { *i =2; } int main(void) { int i=0; #pragma omp parallel default(shared) private(i) { #ifdef _OPENMP i=omp_get_thread_num(); #endif foo (&i); printf("Hello,world! I am thread %d\n",i); i++; } retur...
Pstd.h
#pragma once #include "Constants.h" #include "FieldSolver.h" #include "Grid.h" #include "Vectors.h" #include "PmlPstd.h" namespace pfc { class PSTD : public SpectralFieldSolver<PSTDGridType> { public: PSTD(PSTDGrid * grid, double dt); void updateFields(); void updateHalfB(); ...
gdal_sebal_eta_new.c
#include <stdio.h> #include <omp.h> #include "gdal.h" #include "sebal_eta.h" void usage() { printf( "-----------------------------------------\n"); printf( "--Modis Processing chain--OpenMP code----\n"); printf( "-----------------------------------------\n"); printf( "./eta inNDVI inAlbedo\n"); printf(...
fourier.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
AtomicOperations.h
// Copyright (c) 2004-2022 Tomáš Oberhuber et al. // // This file is part of TNL - Template Numerical Library (https://tnl-project.org/) // // SPDX-License-Identifier: MIT // Implemented by: Tomas Oberhuber, Jakub Klinkovsky #pragma once #ifdef HAVE_CUDA #include <cuda.h> #endif #include <TNL/Devices/Sequential.h...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
sink-3.c
/* { dg-do compile } */ /* { dg-options "-fopenmp" } */ /* Test that we can handle multiple undeclared sink variables gracefully. */ void bar (int *); void foo () { int i,j; #pragma omp parallel for ordered(1) for (i=0; i < 100; ++i) { #pragma omp ordered depend(sink:poo-1,paa+1) /* { dg-error "poo.*decl...
GB_unop__log1p_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...
joseph3d_back_tof_sino_2.c
/** * @file joseph3d_back_tof_sino_2.c */ #include<stdio.h> #include<stdlib.h> #include<stdint.h> #include<math.h> #include<omp.h> #include "tof_utils.h" #include "ray_cube_intersection.h" void joseph3d_back_tof_sino_2(const float *xstart, const float *xend, ...
make_superphotons.c
/****************************************************************************** * * * MAKE_SUPERPHOTONS.C * * * ...
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 ...
bml_setters_ellpack_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_introspection.h" #include "../bml_types.h" #include "bml_setters_ellpack.h" #include "bml_types_ellpack.h" #include <complex.h> #include <math.h> #include <stdio.h> #include <stdlib.h> /** Set element i,j asuming there's no resetting of any element o...
Scalar3DUpdater3.h
/// /// @file Scalar3DUpdater3.h /// @brief スカラデータクラス仮想セルアップデータ /// #ifndef SCALAR_3D_UPDATER3_H #define SCALAR_3D_UPDATER3_H #include "BCMTools.h" #include "VCUpdater.h" #include "Scalar3D.h" #include "real.h" #ifdef BCMT_NAMESPACE namespace BCMT_NAMESPACE { #endif /// スカラデータクラス仮想セルアップデータ. /// /// @note 通信と補間...
debug_test_system.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2012, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and us...
linear_tree_learner.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_TREELEARNER_LINEAR_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_LINEAR_TREE_LEARNER_H_ #include <string> #include <cmath> #include ...
GB_binop__isgt_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
omp_simd_private_reduction.c
//Variable examples of using simd directives void foo (int n, double *a, double* b) { for (int i=0; i<n; i++) a[i]=b[i]; } void foo2 (int n, double *a, double* b) { for (int i=0; i<n; i++) a[i]=b[i]; } void foo3 (int n, double *a, double* b) { int j=0; for (int i=0; i<n; i++,j++) { a[i]=b[i]+j; ...
rules.h
/* * Copyright (c) 2018 * Markus Goetz * * This software may be modified and distributed under the terms of MIT-style license. * * Description: Cluster remapping rules * * Maintainer: m.goetz * * Email: markus.goetz@kit.edu */ #ifndef RULES_H #define RULES_H #include <omp.h> #include <unordered_map> #include "consta...
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__first_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-...
func_3v.c
void func_3v(float* in, float* out, unsigned n){ unsigned i; #pragma omp target teams distribute parallel for map(to: in[0:n]) map(from: out[0:n]) for(i=0; i<n; ++i){ out[i]=in[i]+in[i]; } }
transpose.c
/* Copyright (c) 2013, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer...
convolution_3x3_pack8to1_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 ...
2356.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...
TinyDFT_typedef.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <libgen.h> #include <float.h> #include <time.h> #include <omp.h> #ifdef USE_LIBXC #include <xc.h> #endif #include "libCMS.h" #include "utils.h" #include "TinyDFT_typedef.h" #include "build_HF_mat.h" #include "bui...
GB_binop__lt_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
GB_unaryop__lnot_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...
sevnlog.h
// // Created by Giuliano on 29/11/19. // Header to store logging functions and definitions (mostly for debug) // #ifndef SEVN_SEVNLOG_H #define SEVN_SEVNLOG_H #include <string> #include <sstream> #include <omp.h> #include <iostream> #include "errhand.h" //TODO Remove this and correctly use SevnLogging //GI291119: ...
openbsdsoftraid_fmt_plug.c
/* * Copyright (c) 2014 Thiébaud Weksteen <thiebaud at weksteen dot fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later v...
smul.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...
saber_conv_1x1.h
/* Copyright (c) 2018 Anakin Authors, Inc. 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 app...
fs_csr_inspector.h
#include<vector> #include <cassert> #include<set> // Makes an edge inside dependence graph inline void connect(int v, int w, std::vector<std::vector<int>> &DAG){ DAG[v].push_back( w ); } /* ****** Inspector for level set parallelization of Forward Solve CSC's outer most loop */ void fs_csr_inspector(int n, int...
otfft_sixstepsq.h
// Copyright (c) 2015, OK おじさん(岡久卓也) // Copyright (c) 2015, OK Ojisan(Takuya OKAHISA) // Copyright (c) 2017 to the present, DEWETRON GmbH // OTFFT Implementation Version 9.5 // based on Stockham FFT algorithm // from OK Ojisan(Takuya OKAHISA), source: http://www.moon.sannet.ne.jp/okahisa/stockham/stockham.html #pragma...
pvm-OpenMP-filas.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif main(int argc, char **argv) { int N = atoi(argv[1]); int i,j; int m[N][N]; int v1[N],v2[N]; double start,end,elapsed; if(argc < 2) { fprintf(stderr,"Faltan argumentos\n"); exit(-1...
unit-tests.c
#define _XOPEN_SOURCE 700 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <CUnit/CUnit.h> #include <CUnit/Basic.h> #include "../include/encryptor.h" #include "../include/fs.h" #include "../include/keygen.h" int init_suite(void) { return 0; } int clean_suite(void) { return 0; } /** * encr...
zungqr.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 ...
task-dependency.c
/* * task-dependency.c -- Archer testcase */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // // See tools/archer/LICENSE.txt for details. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ...
GB_unop__acosh_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...
mkl_quantized_conv_ops.h
/* Copyright 2015 The TensorFlow 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 a...
quicksort.h
// -*- C++ -*- // Copyright (C) 2007-2021 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...
for-10.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(runtime) ordered for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOMP_loop_ordered_runtime_start" 1 "ompexp" } } */ /* { dg-final { sc...
Example_task_dep.9.c
/* * @@name: task_dep.6c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_5.0 */ #include <stdio.h> int main() { int a, b, c, d; #pragma omp parallel #pragma omp single { #pragma omp task depend(out: c) c = 1; /* Task T1 */ #pragma omp task depend...
pr32362-1.c
/* PR middle-end/32362 */ /* { dg-do run } */ #include <omp.h> #include <stdlib.h> int main () { int n[4] = { -1, -1, -1, -1 }; static int a = 2, b = 4; omp_set_num_threads (4); omp_set_dynamic (0); omp_set_nested (1); #pragma omp parallel private(b) { b = omp_get_thread_num (); #pragma omp parallel f...
GB_binop__div_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-...
3-1.c
#include <omp.h> #include <stdio.h> int main() { #pragma omp parallel num_threads(2) for (int i = 0; i < 100; i++) { int id = omp_get_thread_num(); printf("T%d:i%d ", id, i); fflush(stdout); #pragma omp barrier } }
opencl_gpg_fmt_plug.c
/* * Modified by Dhiru Kholia <dhiru at openwall.com> for GPG format. * * 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 in source and binary forms, with or without * modification, are per...
gmx_thread_affinity.c
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2012, by the GROMACS development team, led by * David van der Spoel, Berk Hess, Erik Lindahl, and including many * others, as listed in the AUTHORS file in the top-level source * directory and at http://www.gromacs.org. * * GR...
sse-bnd-dag0.h
#include <util/omp_wrapper.h> extern "C" void wilson_dslash_bnd_dag0( IFloat *chi_p_f, IFloat *u_p_f, IFloat *psi_p_f, int cb, Wilson *wilson_p) { int lx, ly, lz, lt; int cbn; int vol; lx = wilson_p->ptr[0]; ly = wilson_p->ptr[1]; lz = wilson_p->ptr[2]; lt = wil...
task-two.c
/* Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Simone Atzeni (simone@cs.utah.edu), Joachim Protze (joachim.protze@tu-dresden.de), Jonas Hahnfeld (hahnfeld@itc.rwth-aachen.de), Ganesh Gopalakrishnan, Zvonimir Rakamaric, Dong H. A...
track_ellipse.c
#include "track_ellipse.h" void ellipsetrack(avi_t *video, double *xc0, double *yc0, int Nc, int R, int Np, int Nf) { /* % ELLIPSETRACK tracks cells in the movie specified by 'video', at % locations 'xc0'/'yc0' with radii R using an ellipse with Np discrete % points, starting at fr...
test36.c
#include<stdio.h> int main () { int shared = 0, pri = 0; #pragma omp parallel private(pri) { int pri= 0; #pragma omp atomic update shared = shared + 1; #pragma omp atomic update pri = pri + shared++; } printf ("Shared=%d, Private=%d", shared, pri); }
SumaVectoresCEj8.c
/* SumaVectoresC.c Suma de dos vectores: v3 = v1 + v2 Para compilar usar (-lrt: real time library): gcc -O2 SumaVectores.c -o SumaVectores –lrt gcc -O2 –S SumaVectores.c –lrt //para generar el código ensamblador Para ejecutar use: SumaVectoresC longitud */ #include <stdlib.h> // biblioteca con funciones atoi(), malloc...
vq_train.c
/*Daala video codec Copyright (c) 2012-2014 Daala project contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this l...
weno5jp_impl_c_.c
#include <stdlib.h> static double c1; static double c2; static double eps; static double dx; static double dx_inv; static double dx_inv_12; static int size; void wenohj_init(double aeps, int asize, double adx) { c1 = 1.0 / 3.0; c2 = 1.0 / 6.0; eps = aeps; size = asize; dx = adx; dx_inv = 1.0 /...
iw_core.c
/* // Copyright 2016-2018 Intel Corporation All Rights Reserved. // // The source code, information and material ("Material") contained herein is // owned by Intel Corporation or its suppliers or licensors, and title // to such Material remains with Intel Corporation or its suppliers or // licensors. The Material...
WeightVector.h
/* Copyright (C) 2017 NEC Laboratories America, Inc. ("NECLA"). All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. An additional grant of patent rights * can be found in the PATENTS file in the same directory. */ #ifndef _...
VolumetricAveragePooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricAveragePooling.c" #else static inline void THNN_(VolumetricAveragePooling_shapeCheck)( THNNState *state, THTensor *input, THTensor *gradOutput, int kT, ...
stepper.c
#include "stepper.h" #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <stdbool.h> #include <stdio.h> //ldoc on /** * ## Implementation * * ### Structure allocation */ central2d_t* central2d_init(float w, float h, int nx, int ny, int nfield, fl...
GB_binop__hypot_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...
Pragma.h
//===- Pragma.h - Pragma registration and handling --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
test.c
#include <stdio.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (992) #define INIT() INIT_LOOP(N, {C[i] = 1; D[i] = i; E[i] = -i;}) #define ZERO(X) ZERO_ARRAY(N, X) int main(void) { check_offloading...
CompressNeighboursWorklet.h
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
mandelbrot.c
#include <omp.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <gmp.h> #define real float #define NO_COLOR -1 #define DEBUG_COLOR -1 static int precision = 32; static int maxiter = 30; static int w = 800; static int h = 600; static mpf_t x_b; static mpf_t y_b; static mpf_t step; static real *iterD...
glove_cython.c
/* Generated by Cython 0.29.23 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "extra_compile_args": [ "-fopenmp", "-ffast-math" ], "extra_link_args": [ "-fopenmp" ], "name": "glove.glove_cython", "sources": [ ...
relic_cp_phpe.c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (c) 2014 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute it a...
omp_loop.h
// -*- C++ -*- // Copyright (C) 2007, 2008, 2009, 2010 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; eit...
dataset.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_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <LightGBM/meta.h> ...
loop-3.c
#ifdef __cplusplus extern "C" { #endif int omp_get_thread_num (void); #ifdef __cplusplus } #endif void f1 (int *a) { int i; #pragma omp loop /* { dg-error "'bind' clause not specified on a 'loop' construct not nested inside another OpenMP construct" } */ for (i = 0; i < 64; i++) a[i] = i; } void f2 (int *a...
filter_ground_removal2.h
// MIT License // Copyright (c) 2019 Edward Liu // 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 the rights // to use, copy, modify, merg...
PointCloud.h
#pragma once #include <pcl/point_types.h> #include <pcl/io/ply_io.h> #include <pcl/features/normal_3d.h> #include "SimpleMesh.h" #include "Eigen.h" class PointCloud { public: PointCloud() {} PointCloud(const SimpleMesh& mesh) { const auto& vertices = mesh.getVertices(); const auto& triangles =...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__lnot_int8_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
par_csr_matvec.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) **************************************...
GB_binop__ne_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
DRB103-master-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...
scheduler-clause.c
#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=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...
GB_full_add_template.c
//------------------------------------------------------------------------------ // GB_full_add_template: phase2 for C=A+B, C<M>=A+B, C<!M>=A+B, C is full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. //...
GB_binop__islt_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
bfs_one_sided.c
/* Copyright (C) 2010 The Trustees of Indiana University. */ /* */ /* Use, modification and distribution is subject to the Boost Software */ /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */ /* http:...
8ecbb58ff87b7b2f24572e1df17ad7c57ea1b5f1.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "omp.h" struct dataobj { void *restrict data; int * size; int * npsize; int * dsize; int * hsize; int * hofs; int * oofs; } ; struct profiler { double section0; } ; int padfunc(struct dataobj *restri...
LRUCache.h
#include <iostream> #include<stdint.h> #include <unordered_map> #include <vector> using namespace std; vector<int64_t>List_offset; struct AIOReadInfo { int64_t readlength; int64_t readoffset; int64_t listlength; int64_t offsetForenums; int64_t memoffset; int64_t curSendpos; uint8_t *list_data; ...
nlse_solver.c
#define USE_GSL_INTEGRATION 0 #if USE_GSL_INTEGRATION #include <gsl/gsl_integration.h> #endif struct integrand_params { u32 n[2]; u32 component_count; u32 coeff_count; f64* coeff; nlse_operator_func* op; void* op_userdata; struct basis basis; }; static void sbmf_log_integration_result(struct quadgk_result*...
GB_binop__pair_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
transform.h
/* * transform.h * * Created on: Dec 28, 2015 * @author: agibsonccc * @author: raver119@gmail.com */ #ifndef TRANSFORM_H_ #define TRANSFORM_H_ #include <vector> #include <templatemath.h> #include <op.h> #include <omp.h> #include <pairwise_util.h> #include <dll.h> #include "reduce.h" #include "scalar.h" #inclu...
GB_unop__asin_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
fungg_p.c
/* CA - OpenMP fungg_s.c Routines used in gengroups_s.c program TO BE COMPLETED ***************************************************************/ #include <math.h> #include <float.h> #include "definegg.h" // definition of constants /* 1 - Function to calculate the genetic distance; Euclidean distance betw...
tensor_cpu-inl.h
/*! * Copyright (c) 2014 by Contributors * \file tensor_cpu-inl.h * \brief implementation of CPU host code * \author Bing Xu, Tianqi Chen */ #ifndef MSHADOW_TENSOR_CPU_INL_H_ #define MSHADOW_TENSOR_CPU_INL_H_ #include <cstring> #include <functional> #include <utility> #include <vector> #include "./base.h" #includ...
generic_tensor.h
// This program is free software: you can use, modify and/or redistribute it // under the terms of the simplified BSD License. You should have received a // copy of this license along this program. If not, see // <http://www.opensource.org/licenses/bsd-license.html>. // // Copyright (C) 2012, Javier Sánchez Pérez <jsan...
hessian_screen.c
/* Copyright 2014-2019 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...
ast-dump-openmp-begin-declare-variant_4.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify -ast-dump %s | FileCheck %s // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -verify -ast-dump %s -x c++| FileCheck %s // expected-no-diagnostics #pragma omp begin declare variant match(device={kind(cpu)}) int also_before(void) { retu...
ispc_tasking.c
// Copyright 2020 Intel Corporation // SPDX-License-Identifier: BSD-3-Clause #include <stdint.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif // Signature of ispc-generated 'task' functions typedef void (*TaskFuncType)(void *data, int threadIndex, int threadCount, int taskIndex, int taskCount, int task...
core_stsmlq.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/core_blas/core_ztsmlq.c, normal z -> s, Fri Sep 28 17:38:24 2018 * **/ #include <plasma_core_blas.h> #include "pla...
omp_task_shared.c
<ompts:test> <ompts:testdescription> Test to see if implied shared works correctly</ompts:testdescription> <ompts:ompversion>3.0</ompts:ompversion> <ompts:directive>omp task</ompts:directive> <ompts:dependences>omp single, omp task firstprivate</ompts:dependences> <ompts:testcode> #include <stdio.h> #include <math.h> #...