source
stringlengths
3
92
c
stringlengths
26
2.25M
nthrs_nesting.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv) { omp_set_nested(1); omp_set_dynamic(0); // omp_set_num_threads(8); #pragma omp parallel { #pragma omp parallel { /* If OMP_NUM_TRHEADS = x was set, the following sho...
GB_dense_subassign_05d_template.c
//------------------------------------------------------------------------------ // GB_dense_subassign_05d_template: C<M> = x where C is dense //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License...
PmlFdtd.h
#pragma once #include "Grid.h" #include "FieldSolver.h" #include "Fdtd.h" #include "Pml.h" namespace pfc { class FDTD; class PmlFdtd : public PmlReal<YeeGridType> { public: PmlFdtd(FDTD * solver, Int3 sizePML) : PmlReal((RealFieldSolver<YeeGridType>*)solver, sizePML) {} vo...
rom_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // ...
photonmap_sample.h
#pragma once // Copyright (c) 2014 hole // This software is released under the MIT License (http://kagamin.net/hole/license.txt). // A part of this software is based on smallpt (http://www.kevinbeason.com/smallpt/) and // released under the MIT License (http://kagamin.net/hole/smallpt-license.txt). #include <algorithm...
GB_ewise_slice.c
//------------------------------------------------------------------------------ // GB_ewise_slice: slice the entries and vectors for an ewise operation //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // ht...
sdiv.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...
pooling_2x2_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 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 ...
nvector_openmp.c
/* * ----------------------------------------------------------------- * $Revision: 4272 $ * $Date: 2014-12-02 11:19:41 -0800 (Tue, 02 Dec 2014) $ * ----------------------------------------------------------------- * Programmer(s): David J. Gardner and Carol S. Woodward @ LLNL * ---------------------------------...
spbtrs.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/zpbtrs.c, normal z -> s, Fri Sep 28 17:38:08 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
trans2d.c
/*Daala video codec Copyright (c) 2013 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 list o...
GB_unaryop__abs_bool_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...
critical.c
/* critical Directive Example */ #include <omp.h> main(int argc, char *argv[]) { int x; x = 0; #pragma omp parallel shared(x) { #pragma omp critical x = x + 1; } /* end of parallel region */ }
GB_binop__band_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...
matrix-mult-ring-rotation.c
// // matrix-projet.c // // // Created by Aurélien Spinelli on 04/04/2018. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <mpi.h> #include <omp.h> struct matrix { int height; int width; int * tab; }; struct matrix * allocateMatrix(int height, int width) { struct matrix * t...
NALF-SFCM.h
// Fully normalized associated Legendre functions calculated by standard forward column methods // Holmes, S. A., & Featherstone, W. E. (2002). // A unified approach to the Clenshaw summation and the recursive computation of very high degree and order normalised associated Legendre functions. // Journal of Geodesy, 76(...
mxEvaluate.c
#include "../../SWEAbstractNumFluxSolver2d/private/SWENumFlux2d.h" /** Evaluate HLL numerical flux function */ void evaluateHLLFunc(const double hmin, ///< water threshold const double gra, ///< gravity acceleration const double hM, ///< local water depth ...
Stmt.h
//===- Stmt.h - Classes for representing statements -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
relu1_ref.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...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
interaction_data.h
#pragma once #include "optimized_bct_types.h" namespace rsurfaces { struct InteractionData // Data structure for storing the sparse interaction matrices. { // To be owned only by instances of BlockClusterTree. Dunno how to design it such that it cannot b...
GB_unaryop__ainv_int64_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
ccl_core.c
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <math.h> #include <string.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_odeiv.h> #include <gsl/gsl_spline.h> #include <gsl/gsl_interp2d.h> #include <gsl/gsl_spline2d.h> #include <gsl/gsl_integration.h> #include "ccl.h" // // Macros for replacing r...
altsim.h
#ifndef ALTSIM_H #define ALTSIM_H #include <stdio.h> #include <omp.h> const int num_loops = 3; const int accuracy_mode = 1; const int pressure_solve_steps = 20; inline double advect_sample(const double const * v, int Ny, double s, double t) { return (1 - s) * ((1 - t) * v[0] + t * v[1]) + s * ((1 - t) * ...
directives.c
/* CPP Library. (Directive handling.) Copyright (C) 1986, 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by Per Bothner, 1994-95. Based on CCCP program by Paul Rubin, June 1986 Adap...
MD5_std.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 1996-2001,2003,2006,2011 by Solar Designer * * Redistribution and use in source and binary forms, with or without * modification, are permitted. * * There's ABSOLUTELY NO WARRANTY, express or implied. * * This implementation of FreeBSD...
compute_density_3d_test.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <sys/time.h> #include <inttypes.h> #include <omp.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_heapsort.h> #include "sph_data_types.h" #include "sph_linked_list.h" #include "sph...
reorder.c
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include "ParTI.h" #include "sptensor.h" /*Interface to everything in this file is orderit(.., ..)*/ /*function declarations*/ void sptLexiOrderPerMode(sptSparseTensor * tsr, sptIndex mode, sptIndex ** orgIds, int tk); void sptBFSLike(spt...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- 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 // //===---------------------------...
ast-dump-openmp-parallel-sections.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_zero() { #pragma omp parallel sections {} } void test_one() { #pragma omp parallel sections { ; } } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>>...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
exercicio2.c
#include<omp.h> #include<stdio.h> int tid; int main() { #pragma omp parallel { tid = omp_get_thread_num(); printf("Hello from thread %d \n", tid); } }
DRB020-privatemissing-var-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...
StmtOpenMP.h
//===- StmtOpenMP.h - Classes for OpenMP directives ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
collective_barrier.c
/***************************************************************************** * * * Mixed-mode OpenMP/MPI MicroBenchmark Suite - Version 1.0 * * * * ...
integral_parallel3.c
#include<stdio.h> #include<omp.h> static long num_steps = 100000; double step; int main(){ int i; double x, pi, sum = 0.0, init_time, finish_time; init_time = omp_get_wtime(); step = 1.0 / (double)num_steps; #pragma omp parallel for private(x) reduction(+:sum) for (i=0; i<num_steps; i++){ x = (i+0.5)*step; ...
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) >...
init.h
#ifndef GoL_CHUNK_INIT_H #define GoL_CHUNK_INIT_H #include <mpi.h> // Enable MPI support #include <stdio.h> #include <sys/types.h> // Custom includes #include "chunk.h" #include "../utils/func.h" /** * Allocate memory for the current and next slice of GoL data. */ void malloc_chunk(chunk_t *chunk) { int i; ...
debug_task_shared.c
// This testcase checks emission of debug info for variables // inside shared clause of task construct. // REQUIRES: x86_64-linux // RUN: %clang_cc1 -no-opaque-pointers -debug-info-kind=constructor -DSHARED -x c -verify -triple x86_64-pc-linux-gnu -fopenmp -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK // RUN...
GB_unop__sin_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...
atomic_detail.h
/* * Copyright 2019 Patrick Stotko * 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 agre...
critical.c
/* * critical.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 // //==...
vision.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
util.c
/** @file @brief Ulitity funcitons for APPFS ex10. @author Tri-Peter Shrive */ #include "ex10.h" /** sets entry at index of prime numbers to 1 */ int get_primes( unsigned int* is_prime, /**< pointer to array of size ceiling, with memory set to zero */ unsigned int ceiling /**< only numbers below this value will...
be5d49_gcc_so4.c
#define _POSIX_C_SOURCE 200809L #define START_TIMER(S) \ struct timeval start_##S, end_##S; \ gettimeofday(&start_##S, NULL); #define STOP_TIMER(S, T) \ gettimeofday(&end_##S, NULL); \ T->S += (double)(end_##S.tv_sec - start_##S.tv_sec) + (double)(end_##S.tv_usec - start_##S.tv_usec) / 1000...
syr2k.dst-load.c
/** * 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 */ /* syr2k.c: this file is part of PolyBench/C */ #include <stdio.h> #include <unistd.h> #include <string.h> #includ...
profiler_interface.h
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ #pragma once #include <initializer_list> #include <type_...
Molecule.h
/* * Molecule.h * * Created on: 07/set/2014 * Author: sebastian */ #ifndef DESCRIPTOREVALUATION_BACKUP_SRC_MOLECULE_MOLECULE_H_ #define DESCRIPTOREVALUATION_BACKUP_SRC_MOLECULE_MOLECULE_H_ #include "../DockingMethods/DockingPose.h" #include "../kdtree/kdtree.h" #include "../MolecularSurface/MolecularSurfac...
GB_binop__ne_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-...
rowwise_pick.h
/*! * Copyright (c) 2020 by Contributors * \file array/cpu/rowwise_pick.h * \brief Template implementation for rowwise pick operators. */ #ifndef DGL_ARRAY_CPU_ROWWISE_PICK_H_ #define DGL_ARRAY_CPU_ROWWISE_PICK_H_ #include <dgl/array.h> #include <dmlc/omp.h> #include <functional> #include <algorithm> #include <st...
convolution_sgemm.h
// BUG1989 is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2019 BUG1989. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // //...
IndexLinear.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/IndexLinear.c" #else #ifdef _OPENMP #include <omp.h> #endif /* Threshold used to trigger multithreading */ #ifndef THNN_SPARSE_OMP_THRESHOLD #define THNN_SPARSE_OMP_THRESHOLD 100000 #endif /* Threshold used to trigger BLAS axpy call */ #ifndef THNN_SPARSE_OUTD...
msgmerge.c
/* GNU gettext - internationalization aids Copyright (C) 1995-1998, 2000-2010, 2012, 2015-2016 Free Software Foundation, Inc. This file was written by Peter Miller <millerp@canb.auug.org.au> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public...
GB_unaryop__minv_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...
convolution_7x7.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__ainv_uint32_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
dpado.202001071517.push_back_ShortIndex.h
// // Created by Zhen Peng on 1/6/20. // #ifndef PADO_DPADO_H #define PADO_DPADO_H #include <vector> //#include <unordered_map> #include <map> #include <algorithm> #include <iostream> #include <limits.h> //#include <xmmintrin.h> #include <immintrin.h> #include <bitset> #include <math.h> #include <fstream> #include <o...
omp_smithW-v2-ifClause.c
/********************************************************************************* * Smith–Waterman algorithm * Purpose: Local alignment of nucleotide or protein sequences * Authors: Daniel Holanda, Hanoch Griner, Taynara Pinheiro * * Compilation: gcc omp_smithW.c -o omp_smithW -fopenmp -DDEBUG // debuggin...
deprecate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
hoImageRegWarper.h
/** \file hoImageRegWarper.h \brief Define the class to perform image warpping using the geometric transformation in gadgetron registration \author Hui Xue */ #ifndef hoImageRegWarper_H_ #define hoImageRegWarper_H_ #pragma once #include "hoNDArray.h" #include "hoNDImage.h" #include "hoNDInterpolator.h" #i...
control_tool.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7 // XFAIL: powerpc64le, ppc64le #define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN #include "callback.h" #include <omp.h> int main() { #pragma omp parallel num_threads(1) { print_frame_from_outlined_fn(1); ...
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) >...
GB_binop__max_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-...
common.h
/* * Copyright 2018-2021 Kyle Berney, Ben Karsin * * 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 o...
tensor_convert.h
/* Copyright 2019 The Blueoil 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 agre...
facedetectcnn.h
#include <Rcpp.h> /* By downloading, copying, installing or using the software you agree to this license. If you do not agree to this license, do not download, install, copy or use the software. License Agreement For libfacedetection (3-clause BSD License) Copyright (c) 2018-20...
par_nongalerkin.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) **************************************...
crossvalidation.h
#ifndef CROSSVALIDATE_H #define CROSSVALIDATE_H //#include<cosan/selection/KFold.h> //#include<cosan/model/AllModels.h> //#include<cosan/utils/CosanMetric.h> #include <variant> #include <vector> #include<cosan/selection/selection.h> namespace Cosan { /* Conduct Cross Validation on a given model Inputs: model: ...
tree.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_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/dataset.h> #include <LightGBM/meta.h> #include <string> #include <map> #includ...
jlinearfilter.h
#ifndef JFILTER_H #define JFILTER_H //Header for this file // //C System-Headers // //C++ System headers #include <mutex> //OpenCL Headers // //Boost Headers // //OpenMP Headers #include<omp.h> //Project specific headers #include "../jTypeTraits/jtypetraits.h" #include "../JASPL/jVector/jvector.h" namespace jaspl { ...
dft.c
// Copyright Naoki Shibata 2010 - 2017. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <math.h> #include ...
implicit_blender.c
/* * 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 version. * * This program is distributed in the hope that it will be use...
mxv_omp_mpi.c
/** * Program to multiply a matrix times a vector using both * MPI to distribute the computation among nodes and OMP * to distribute the computation among threads. */ #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include "mat.h" #define min(x, y) ((x)<(y)?(x):(y)) int m...
GB_unaryop__minv_uint16_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...
volumeramsubset.h
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2018 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
GB_unaryop__minv_int8_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...
nthrs_nesting.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv) { omp_set_nested(1); omp_set_dynamic(0); // omp_set_num_threads(8); #pragma omp parallel { #pragma omp parallel { /* If OMP_NUM_TRHEADS = x was set, the following sho...
owl_ndarray_conv_impl.h
/* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2018 Liang Wang <liang.wang@cl.cam.ac.uk> */ #ifndef OWL_CORE_CONV_IMPL #define OWL_CORE_CONV_IMPL /* * Calculate the cache sizes and block sizes for convolution operations. * Code heavily inspired by Eigen (http://eigen.tuxfamily.org/). ...
pr44085.c
/* PR middle-end/44085 */ /* { dg-do compile } */ /* { dg-require-effective-target tls_native } */ /* { dg-options "-fopenmp" } */ int thr1, thr2; #pragma omp threadprivate (thr1, thr2) void foo (void) { #pragma omp task untied /* { dg-error "enclosing task" } */ { thr1++; /* { dg-error "used in untied task" }...
ordering_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 ...
GB_unaryop__identity_bool_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
GB_binop__lt_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
parallel.c
#include <omp.h> //#include <civlc.cvh> #define THREAD_MAX 4 int main () { int x; #pragma omp parallel shared(x) { x = 0; } }
ops.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
ast-dump-openmp-parallel.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 parallel ; } // CHECK: TranslationUnitDecl 0x{{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp...
convolution_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 copy ...
pmv-OpenMP-a_atcgrid.c
#include <stdlib.h> // biblioteca con funciones atoi(), malloc() y free() #include <stdio.h> // biblioteca donde se encuentra la función printf() #ifdef _OPENMP #include <omp.h> #else #define omp_set_dynamic(0); #define omp_set_num_threads(12); #endif int main(int argc, char ** argv){ int **M; int *v1, *v2; i...
mur_abc.kernel_runtime.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include "local_header.h" #include "openmp_pscmc_inc.h" #include "mur_abc.kernel_inc.h" int openmp_yee_damp_xyz_init (openmp_pscmc_env * pe ,openmp_yee_damp_xyz_struct * kerstr ){ return 0 ;} void openmp_yee_damp_xyz_get_struct_len (size_t * len ){ ((len)[0...
serial_tree_learner.h
/*! * Original work Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Modified work Copyright (c) 2020 Fabio Sigrist. All rights reserved. * Licensed under the Apache License Version 2.0 See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_...
DistanceField.h
/// \ingroup base /// \class ttk::DistanceField /// \author Guillaume Favelier <guillaume.favelier@lip6.fr> /// \date March 2016 /// /// \brief TTK processing package for distance field computation on PL /// manifolds. /// /// This package takes a list of sources (a set of points with their global /// identifiers att...
Interp1PrimFifthOrderCompactUpwindChar.c
/*! @file Interp1PrimFifthOrderCompactUpwindChar.c @author Debojyoti Ghosh @brief Characteristic-based 5th order Compact Upwind Scheme */ #include <stdio.h> #include <basic.h> #include <arrayfunctions.h> #include <mathfunctions.h> #include <interpolation.h> #include <tridiagLU.h> #include <mpivars.h> #include ...
dotProduct1.c
/****************************************************************************** * FILE: omp_reduction.c * DESCRIPTION: * OpenMP Example - Combined Parallel Loop Reduction - C/C++ Version * This example demonstrates a sum reduction within a combined parallel loop * construct. Notice that default data element scop...
GB_unop__identity_int8_int8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
ops.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
MiniBow.h
/** * Original File: TemplatedVocabulary.h * Original Author: Dorian Galvez-Lopez * * Modified by: Darius Rückert * Modifications: * - Moved everything into this single header file * - Removed support for non-ORB feature descriptors * - Optimized loading, saving, matching * - Removed dependency to opencv ...
diagmm_x_dia_u_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *...
hash.h
/* * Copyright 2018 Matteo Ceccarello * * 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...
ompblas.c
#include <math.h> #include <omp.h> #include <stddef.h> //#define ptrdiff_t int int daxpy_(ptrdiff_t *n, double *sa, double *sx, ptrdiff_t *incx, double *sy, ptrdiff_t *incy); double ddot_(ptrdiff_t *n, double *sx, ptrdiff_t *incx, double *sy, ptrdiff_t *incy); int dscal_(ptrdiff_t *n, double *sa, double *sx, ptrdiff...
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)...
section1.c
#include <omp.h> #include <stdio.h> int main() { #pragma omp parallel { #pragma omp single printf ("This is from the single directive\n"); #pragma omp sections nowait { #pragma omp section { printf("hello from section 1\n"); } #pragma omp section { printf("hello from section ...