source
stringlengths
3
92
c
stringlengths
26
2.25M
pi-omp3.c
/* * BSD 2-Clause License * * Copyright (c) 2020, Alessandro Capotondi * 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 copyri...
a2a_sources.h
#ifndef _A2A_SOURCES_H #define _A2A_SOURCES_H CPS_START_NAMESPACE //Spatial source structure in *momentum-space*. Should assign the same value to both flavors if G-parity //3D complex field. Defined for a *single flavor* if GPBC template<typename mf_Complex,typename DimensionPolicy = SpatialPolicy, typename FieldAll...
convolution_packn_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
thdat08.c
/* * 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 this list * of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce t...
GB_binop__isge_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-...
resize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
column_matrix.h
/*! * Copyright 2017 by Contributors * \file column_matrix.h * \brief Utility for fast column-wise access * \author Philip Cho */ #ifdef __ENCLAVE_OBLIVIOUS__ #include "column_matrix_obl.h" #else #ifndef XGBOOST_COMMON_COLUMN_MATRIX_H_ #define XGBOOST_COMMON_COLUMN_MATRIX_H_ #include <limits> #include <vector> #...
visual-effects.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
barrier.c
/* Copyright (C) 2005-2014 Free Software Foundation, Inc. C ontributed by Richard Henderson <r*th@redhat.com>. This file is part of the GNU OpenMP Library (libgomp). Libgomp 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 Softw...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
main.c
#include <getopt.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <limits.h> typedef double **matrix_t; struct qr_result_t { int q_size; matrix_t q; int r_size; matrix_t r; }; struct arguments_t { int size; int max_number; int display...
dsdd.c
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file src/backends/mpi/blrm/dsdd.c * @version 0.3.0 * @autho...
mm.c
/* Copyright (c) 2016 Jeremy Iverson 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, merge, publish, distribute, ...
rose_scalar_privatization.c
/* a local variable to transfer temp value * It introduces "fake" data dependence since the variable is local to each iteration * */ #include "omp.h" int a[100]; int b[100]; void foo() { int i; #pragma omp parallel for private (i) for (i = 0; i <= 99; i += 1) { int tmp; tmp = a[i] + i; b[i] = tmp...
GB_unaryop__identity_uint8_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...
GI.h
#include "parse.h" #include <unordered_set> #define SELF_GRAVITY #define FLAG_GI #ifdef PARTICLE_SIMULATOR_TWO_DIMENSION #error #endif std::unordered_set<unsigned int> create_removal_list(const unsigned int lowest_index, const unsigned int highest_index, const unsi...
threshold.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
analyze.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % AAA N N AAA L Y Y ZZZZZ EEEEE ...
GB_unop__identity_uint8_bool.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...
target-28.c
extern void abort (void); int g; #pragma omp declare target (g) #pragma omp declare target int foo (void) { static int s; return ++s + g; } #pragma omp end declare target int bar (void) { static int s; #pragma omp declare target to (s) return ++s; } #pragma omp declare target (bar) int main () { int r; ...
SimulatorBase.h
/* Menge Crowd Simulation Framework Copyright and trademark 2012-17 University of North Carolina at Chapel Hill 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/licen...
opencl_geli_fmt_plug.c
/* * This software is Copyright (c) 2017 Dhiru Kholia, Copyright (c) 2012-2013 * Lukas Odzioba, Copyright (c) 2014 JimF, Copyright (c) 2014 magnum, 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, ar...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
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 ...
omp_task_private.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <math.h> #include "omp_testsuite.h" /* Utility function do spend some time in a loop */ int test_omp_task_private() { int i; int known_sum; int sum = 0; int result = 0; /* counts the wrong sums from tasks */ known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)...
mpi_cpd.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "../splatt_mpi.h" #include "../mttkrp.h" #include "../timer.h" #include "../thd_info.h" #include "../tile.h" #include "../util.h" #includ...
cdiffuse.c
double nanmean(const double *a, const unsigned int n) { unsigned int i, k; double s; s = 0; k = 0; for(i = 0; i < n; i++) { if(isnan(a[i])) continue; s += a[i]; k++; } s /= k; return s; } void cdfuse(double *t, double *s, const unsigned int u,...
Matrix.h
#pragma once #include <iostream> #include <vector> #include <algorithm> #include <functional> #include <exception> #include <stdexcept> #include <type_traits> #include <omp.h> namespace cppmath { template <typename T> class Matrix { static_assert(std::is_floating_point<T>::value, "An specialization of the matrix ...
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__sqrt_fp64_fp64.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...
homomorphic_functions.c
long long int sk[NUM_PRIME][4096]; long long int pk0[NUM_PRIME][4096], pk1[NUM_PRIME][4096]; long long int rlk00[NUM_PRIME][4096], rlk01[NUM_PRIME][4096], rlk10[NUM_PRIME][4096], rlk11[NUM_PRIME][4096]; long long int rlk20[NUM_PRIME][4096], rlk21[NUM_PRIME][4096], rlk30[NUM_PRIME][4096], rlk31[NUM_PRIME][4096], rlk40[N...
residualbased_block_builder_and_solver_with_constraints_for_chimera.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // // License: BSD License // Kratos default license: kratos/license.txt // // Authors: Aditya Ghantasala, https://g...
GB_binop__bset_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-...
GB_binop__isgt_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
knn.c
/*======================================*/ /*= Autor: Tiago Serique Valadares =*/ /*= GRR: 20195138 =*/ /*= Disciplina: Aprendizado de Maquina =*/ /*======================================*/ #include "knn.h" int classification(Data *k_nearest, int len, int n_classes){ int count[n_classes]; int higher...
nonlinear.c
/* * nonlinear.c * * Code generation for function 'nonlinear' * */ /* Include files */ #include "rt_nonfinite.h" #include "yaapt.h" #include "nonlinear.h" #include "Myhanning.h" #include "yaapt_emxutil.h" #include "eml_int_forloop_overflow_check.h" #include "filter.h" #include "scalexpAlloc.h" #include "Myfir1.h"...
MatrixSearch.c
#include<stdio.h> #include<math.h> #include<omp.h> #include<stdlib.h> #include<assert.h> #include<time.h> #ifndef NDEBUG # define M_Assert(Expr, Msg) \ __M_Assert(#Expr, Expr, __FILE__, __LINE__, Msg) #else # define M_Assert(Expr, Msg) ; #endif void __M_Assert(const char* expr_str, int expr, const char* file,...
ast-dump-openmp-target-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 target parallel ; } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-ope...
target_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -verify=expected,omp45 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=50 -verify=expected,omp50 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=45 -verify=expected,omp45 %s -Wuninitialized //...
matrixop.c
/* * Code for matrix functions in Dymola * * Copyright (C) 1997-2001 Dynasim AB. * All rights reserved. * * Author: Hans Olsson Dynasim AB, 1999 * Version: 1.2, 1999-07-16*/ /* */ #ifndef MATRIX_OP_C #define MATRIX_OP_C #if defined(_MSC_VER) #if (!DymolaGlobalOptimizations_) || (DymolaGlobalOptimizations_ == 2...
rawSHA224_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2010 by Solar Designer * based on rawMD4_fmt.c code, with trivial changes by groszek. * * Rewritten Spring 2013, JimF. SSE code added and released with the following terms: * No copyright is claimed, and the software is hereby placed in t...
QED_AEG.h
#pragma once #include "Constants.h" #include "Ensemble.h" #include "Grid.h" #include "Pusher.h" #include "synchrotron.h" #include <omp.h> #include <random> using namespace pfc; using namespace constants; class ScalarQED_AEG_only_electron : public ScalarParticlePusher { public: ScalarQED_AEG_only_electron() { Mi...
RestrictBlockAverage.h
// File : RestrictBlockAverage.h // Created : Mon Jul 10 2017 12:41:30 PM (+0200) // Author : Fabian Wermelinger // Description: Restriction operator by simple averaging // Copyright 2017 ETH Zurich. All Rights Reserved. #ifndef RESTRICTBLOCKAVERAGE_H_EJPTMN1I #define RESTRICTBLOCKAVERAGE_H_EJPTMN1I #incl...
cpu.c
#include "additionally.h" // some definitions from: im2col.h, blas.h, list.h, utils.h, activations.h, tree.h, layer.h, network.h // softmax_layer.h, reorg_layer.h, route_layer.h, region_layer.h, maxpool_layer.h, convolutional_layer.h #define GEMMCONV /* // from: box.h typedef struct { float x, y, w, h; } box; ...
rose_v1_scalar_anti.c
/* * Scalar-to-scalar dependencies * */ #include <stdio.h> #include <omp.h> int a[100]; #if 1 void foo2() { int i; int tmp; tmp = 10; // It would be wrong to parallelize the following loop // since the true dependence between tmp in an iteration // and tmp in the following iteration. // Even firstprivate can...
GB_binop__lxor_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-...
gt.scorereads.c
/* * gt.scorereads.c * * Created on: 8 Jul 2013 * Author: heath */ #include <getopt.h> #include <ctype.h> #ifdef HAVE_OPENMP #include <omp.h> #endif #include <pthread.h> #include "gem_tools.h" #define DEFAULT_INS_CUTOFF 0.01 /* Insert sizes in the upper or lower cutoff percentiles will not be used */ #def...
GB_unop__abs_int8_int8.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...
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- 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 // //===---------------------------...
layer_example.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
phantom_g6.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "omp.h" #include "avx_type.h" #include "gravity.h" #include "timeprof.h" #include "gp6util.h" static int flag_predict_j_particle; static PrdPosVel prdposvel[NPIPES]; static NewAccJrk newaccjrk[NPIPES]; static double acccorr = - 0.125; static double potc...
GB_binop__bshift_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-...
GB_binop__gt_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-...
dfe.c
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file src/backends/openmp/blrm/dfe.c * @version 0.3.0 * @aut...
memory_ops_dm.c
#include <stdio.h> #include <stdlib.h> #include "memory_ops_dm.h" #include "utility.h" #include <time.h> #include <limits.h> #ifdef _OPENMP #include <omp.h> #endif CTYPE* dm_allocate_quantum_state(ITYPE dim) { CTYPE* state = (CTYPE*)malloc((size_t)(sizeof(CTYPE)*dim*dim)); if (!state){ fprintf(stderr,"...
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_ #include <LightGBM/utils/json11.h> #include <LightGBM/utils/log.h> #include <Light...
flexProxDualL1Iso.h
#ifndef flexProxDualL1Iso_H #define flexProxDualL1Iso_H #include "flexProx.h" //! represents prox for a L1 non-data term /*! \f$ \alpha \|\cdot\|_{2,1} \f$ */ template<typename T> class flexProxDualL1Iso : public flexProx<T> { #ifdef __CUDACC__ typedef thrust::device_vector<T> Tdata; #else typedef std::vector<T> ...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
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...
sell_kacz_rb_versions.c
#include "ghost/config.h" #include "ghost/types.h" #include "ghost/util.h" #include "ghost/math.h" #include "ghost/omp.h" #include "ghost/sell_kacz_rb.h" #include <omp.h> ghost_error ghost_kacz_rb_v1(ghost_densemat *x, ghost_sparsemat *mat, ghost_densemat *b, ghost_kacz_opts opts) { GHOST_FUNC_ENTER(GHOST_FUNCTYPE...
DRB015-outofbounds-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...
unionfind.h
struct UnionFind { int *data; inline UnionFind(int size){ data = new int[size]; #pragma omp parallel for for(int i = 0;i<size;i++)data[i] = i; } bool unionSet(int x, int y) { x = root(x); y = root(y); if (x != y) { if (y < x) swap(x, y); // data[x] = x; data[y] = x; } ...
GB_unop__lnot_int64_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
for_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp for simd'}} #pragma omp for simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp for simd'}} #pragma omp for simd foo void test_no_clause() { int i; #pragma omp for simd for (i = 0...
tree.h
#ifndef LIGHTGBM_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/meta.h> #include <LightGBM/dataset.h> #include <string> #include <vector> #include <memory> namespace LightGBM { #define kMaxTreeOutput (100) #define kCategoricalMask (1) #define kDefaultLeftMask (2) /*! * \brief Tree model */ class Tree { public...
GB_unaryop__abs_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...
scan.c
/** * scan.c * Authors: Yizhao Gao <yizhaotsccsj@gmail.com> * Date: {08/03/2017} */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> void getCCCount(double * x1, double * y1, double * x2, double * y2, int * nCass, int * nCons, int locCount, double wSize, int wCount, int * casInW, int * co...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
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...
argsort_op.h
/* Copyright (c) 2016 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...
DRB101-task-value-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...
GB_unop__frexpe_fp64_fp64.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...
sync.c
/** * \file * \brief BOMP barrier synchronization microbenchmark */ /* * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, U...
Grid.h
// // Created by tommaso on 03/08/18. // #ifndef ACTIVE_MICROEMULSION_GRID_H #define ACTIVE_MICROEMULSION_GRID_H #include <random> #include <functional> #include <set> #include <omp.h> #include "../Cell/CellData.h" #include "../Logger/Logger.h" #include "../Utils/RandomGenerator.h" class GridInitializer; /* * The ...
loopct.c
void deinterleave(char *page, char *transposed, const int ntabs, const int nchannels, const int ntimes, const int padded_size) { int tab; for (tab = 0; tab < ntabs; tab++) { int channel; #pragma omp parallel for for (channel = 0; channel < nchannels; channel++) { int time; for (time = 0; time ...
oskar_imager_rotate_coords.c
/* * Copyright (c) 2016-2017, The University of Oxford * 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 copyright notice, * this ...
trapezoide.c
#include <stdio.h> #include <omp.h> int main(){ int threads = 16; // Integration limits double izquierda; double derecha; printf("limite izquierdo: "); scanf("%lf",&izquierda); printf("limite derecho: "); scanf("%lf",&derecha); int step = 10000000; double delta = (derecha-izqui...
GB_unaryop__identity_int32_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_unaryop__lnot_uint32_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
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)...
irbuilder_unroll_partial_heuristic_constant_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics // RE...
uvp.c
#include "helper.h" #include <math.h> #include <omp.h> #define fluid 4096 //pow2(2,12); #define air 8192 struct fgh_params{ double Re; double GX; double GY; double GZ; double alpha; double dt; double dx; double dy; double dz; int imax; int jmax; int kmax; double ***U; double ***V; double ***W; double...
sched.c
#include <stdio.h> #include <omp.h> int main() { int n = 20; #pragma omp parallel for ordered for (int i = 0; i < n; i++) { #pragma omp ordered printf("%d ", omp_get_thread_num()); } printf("\n"); #pragma omp parallel for schedule(static, 1) ordered for (int i = 0;...
omp50_task_depend_mtx.c
// RUN: %libomp-compile-and-run // REQUIRES: !abt // Tests OMP 5.0 task dependences "mutexinoutset", emulates compiler codegen // Mutually exclusive tasks get same input dependency info array // // Task tree created: // task0 task1 // \ / \ // task2 task5 // / \ // task3 task...
force.h
#ifndef FORCE_H #define FORCE_H #include <functional> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> #include <vector> #include "jspec2/electron_beam.h" #include "jspec2/constants.h" using std::vector; enum class ForceFormula {PARKHOMCHUK, NONMAG_DERBENEV, NONMAG_MESHKOV, NONMAG_NUM1D, NONMAG_NUM3D, MES...
own_warp.c
/******************************************************************************* * Copyright (c) 2020, 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 mus...
Ransac.h
/** * Copyright (c) 2017 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #pragma once #include "saiga/core/util/Thread/omp.h" #include "saiga/vision/VisionTypes.h" namespace Saiga { // This seed is used for all ransac classes. // You can change this in your applicati...
bm2d_itlmic_kernel.c
#include "bm2d.h" #include <offload.h> #include <homp.h> void bm2d_itlmic_wrapper(omp_offloading_t *off, long start, long len, long n, long m, long u_dimX, long u_dimY, REAL *u, REAL *uold, int maxwin, int coeff_dimX, REAL *coeff) { int ix, iy, ir; #pragma offload target(mic:off->dev->sys...
datac.h
/*************************************************************************** * datac.h is part of Math Graphic Library * Copyright (C) 2007-2016 Alexey Balakin <mathgl.abalakin@gmail.ru> * * * * This program is free software; you can re...
convolution_3x3_pack8.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 copy ...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
omp-pi-calculation-reduction.c
/***************************************************************************** Example 2.2 : omp-pi-calculation-reduction.c Objective : Write an OpenMP program to compute the value of pi function by numerical integration of a function f(x) = 4/(1+x*x ) ...
c-smallpt.c
//----------------------------------------------------------------------------- // Includes //----------------------------------------------------------------------------- #pragma region #include "imageio.h" #include "sampling.h" #include "specular.h" #include "sphere.h" #pragma endregion //-------------...
opencl_keystore_fmt_plug.c
/* Java KeyStore password cracker for JtR. * (will NOT address password(s) for alias(es) within keystore). * * OpenCL plugin by Terry West. * Derived from keystore_fmt_plug.c, * written by Dhiru Kholia <dhiru at openwall.com> and * Narendra Kangralkar <narendrakangralkar at gmail.com>. * * Input Format: $keysto...
drbg.c
#include <omp.h> #include "../include/drbg.h" void operation_add_lsh(unsigned char *arr, int ary_size, int start_index, unsigned int num) { unsigned int current; unsigned int carry = 0; start_index++; current = arr[ary_size - start_index]; current += num; carry = (current >> 8); arr[ary_size - star...
GB_binop__gt_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
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> ...
transpose.h
// This code is part of the Problem Based Benchmark Suite (PBBS) // Copyright (c) 2011-2016 Guy Blelloch and the PBBS team // // 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 restri...
convolutiondepthwise_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 ...
Cycle.c
/* * The MIT License * * Copyright 2020 The OpenNARS authors. * * 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,...