source
stringlengths
3
92
c
stringlengths
26
2.25M
leaf_splits.h
#ifndef LIGHTGBM_LEAF_SPLITS_H_ #define LIGHTGBM_LEAF_SPLITS_H_ #include <limits> #include <LightGBM/meta.h> #include <LightGBM/data_partition.h> #include <vector> namespace LightGBM { /*! * \brief used to find split candidates for a leaf */ class LeafSplits { public: LeafSplits(data_size_t num_data) :num_d...
paint.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
779.c
// this source is derived from CHILL AST originally from file '/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c' as parsed by frontend compiler rose void kernel_heat_3d(int tsteps, int n, double A[120 + 0][120 + 0][120 + 0], double B[120 + 0][120 + 0][120 + 0])...
GB_unaryop__minv_int32_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...
target_parallel_for_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for'}} #pragma omp target parallel for // expected-error@+1 {{unexpected OpenMP directive '#pr...
proposal.h
// Copyright 2018 Xiaomi, 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 applicab...
Jacobi.tfm.c
//===--- Jacobi.c --------- Jacobi Iterative Method ---------------*- C -*-===// // // This file implements Jacobi iterative method which is an iterative method // used to solve partial differential equations. // //===----------------------------------------------------------------------===// #include <math.h> #includ...
GB_unaryop__ainv_int64_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
smg.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
GB_unaryop__identity_uint64_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
hermm_c_dia_u_lo_col_trans.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include <stdlib.h> alphasparse_status_t ONAME(const ALPHA_Complex alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Complex *x, const ALPHA_INT columns, const ALPHA_INT ld...
cpu_utils.h
/* * Copyright (c) Intel Corporation. * All rights reserved. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <omp.h> #include <cstdint> #include <utility> template <typename T> using Radix_Sort_Pair = std::...
spmspv.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
interpolate_structural_solution_for_dem_utility.h
/* * Author: Salva Latorre and Ignasi Pouplana * * latorre@cimne.upc.edu * ipouplana@cimne.upc.edu */ #ifndef INTERPOLATE_STRUCTURAL_SOLUTION_FOR_DEM_UTILITY_H #define INTERPOLATE_STRUCTURAL_SOLUTION_FOR_DEM_UTILITY_H #include "includes/variables.h" #include <limits> #include <iostream> #include <iomanip> #if...
ccsd_grad.c
/* * Author: Qiming Sun <osirpt.sun@gmail.com> * */ #include <stdlib.h> #include <string.h> //#include <omp.h> #include "config.h" #include "vhf/fblas.h" #include "ao2mo/nr_ao2mo.h" #define OUTPUTIJ 1 #define INPUT_IJ 2 /* * a = reduce(numpy.dot, (mo_coeff, vin, mo_coeff.T)) * numpy.tril(a + a.T) ...
mapper_utilities.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Philipp Bucher, Jordi Cotela // // See Master-The...
8.race4.c
// RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s // XFAIL: * #include <omp.h> #define N 20 int main() { double A[N], B[N], sum0 = 0.0, sum1 = 0.0; #pragma omp parallel { #pragma omp for nowait for (int i = 0; i < N; i++) { A[i] = i; B[i] = i * i; } #pragma omp for reduction(+ : sum0)...
gen_input.c
#include <time.h> #include <stdlib.h> #include <stdio.h> #ifdef FP_NUMBER typedef double FP_NUMBER; #else typedef float FP_NUMBER; #endif #define GET_RAND_FP ((FP_NUMBER)rand()/((FP_NUMBER)(RAND_MAX)+(FP_NUMBER)(1))) char L_FNAME[32], U_FNAME[32], A_FNAME[32]; int main (int argc, char **argv){ int i,j,k,MatrixD...
MICsearch.c
#include "MICsearch.h" // MIC search with KNC instructions and Adaptive Profile technique void mic_search_knc_ap_multiple_chunks (char * query_sequences, unsigned short int * query_sequences_lengths, unsigned int query_sequences_count, unsigned long int Q, unsigned int * query_disp, unsigned long int vect_sequenc...
cv_basic.h
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
parallel.c
/* * Copyright (c) 2014 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, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <bomp_internal.h> ...
GB_unop__bnot_int16_int16.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...
YAKL_atomics.h
#pragma once #ifdef YAKL_ARCH_CUDA __device__ __forceinline__ void atomicMin(float &update , float value) { int oldval, newval, readback; oldval = __float_as_int(update); newval = __float_as_int( __int_as_float(oldval) < value ? __int_as_float(oldval) : value ); while ( ( readback = atomicCAS( (i...
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 // //...
pngquant.c
/* pngquant.c - quantize the colors in an alphamap down to a specified number ** ** Copyright (C) 1989, 1991 by Jef Poskanzer. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appea...
nndescent.h
#ifndef AMANOGAWA_NNDESCENT_H #define AMANOGAWA_NNDESCENT_H #include "amanogawa/include/api.h" #include <algorithm> #include <array> #include <cassert> #include <limits> #include <random> #include <thread> #include <unordered_set> #include <vector> #ifdef _OPENMP #include <omp.h> #endif // This code is based on http...
GB_unaryop__ainv_uint64_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
GB_binop__rminus_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
isx.c
/* Copyright (c) 2015, 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 discla...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
coloring_jones_v3.h
#include "gms/third_party/gapbs/benchmark.h" #include "gms/third_party/gapbs/builder.h" #include "gms/third_party/gapbs/command_line.h" #include "gms/third_party/gapbs/graph.h" #include "gms/third_party/gapbs/platform_atomics.h" #include "coloring_common.h" #include <set> namespace GMS::Coloring::JonesV3 { int32_t g...
MultiLevelSetup.h
/* * MultiLevelSetup.h * * Created on: 10.01.2015 * Author: Michael Wegner (michael.wegner@student.kit.edu) */ #ifndef MULTILEVELSETUP_H_ #define MULTILEVELSETUP_H_ #include "LevelHierarchy.h" #include "../Smoother.h" #include "../../algebraic/CSRMatrix.h" #include <limits> namespace NetworKit { /** * ...
gramSchmidt_gpu.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #define COLS 1000 #define ROWS 1000 #define FLOAT_T float FLOAT_T *getFinput(int scale) { FLOAT_T *input; if ((input = (FLOAT_T *)malloc(sizeof(FLOAT_T) * scale)) == NULL) { fprintf(stderr, "Out of Memory!!\n"); exit(1); } for (int i = 0; i < ...
SparseDenseProduct.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2015 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 c...
residualbased_elimination_builder_and_solver_with_constraints.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // ...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable 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) > (b) ? a : b) #...
gemm.c
#include "gemm.h" #include "utils.h" #include "cuda.h" #include <stdlib.h> #include <stdio.h> #include <math.h> void gemm_bin(int M, int N, int K, float ALPHA, char *A, int lda, float *B, int ldb, float *C, int ldc) { int i,j,k; for(i = 0; i < M; ++i){ for(k = 0...
DRB063-outeronly1-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...
fib.c
//===-- fib.c - The Fibonacci numbers ----------------------------*- C -*-===// // // Part of the LOMP 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 // //===---------------------------...
ZQ_CNN_BBoxUtils.h
#ifndef _ZQ_CNN_BBOX_UTILS_H_ #define _ZQ_CNN_BBOX_UTILS_H_ #pragma once #include "ZQ_CNN_BBox.h" #include <algorithm> namespace ZQ { class ZQ_CNN_BBoxUtils { public: enum PriorBoxCodeType { PriorBoxCodeType_CORNER = 0, PriorBoxCodeType_CORNER_SIZE, PriorBoxCodeType_CENTER_SIZE }; static bool _cm...
residual_based_bdf_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS...
reduc.c
// Load the OpenMP functions library #include<omp.h> #include<math.h> //for pow function int main() { // Set and initialise variables int broad=0, tnum=0, calc=0; // Start parallel block // #pragma omp parallel private(broad,tnum,calc) // { // We want a single thread to broadcast a value to the enti...
vseprefine.c
/** * @file vseprefine.c * @brief Vertex separator refinement routines * @author Dominique LaSalle <lasalle@cs.umn.edu> * Copyright 2014, Regents of the University of Minnesota * @version 1 * @date 2014-10-13 */ #ifndef MTMETIS_REFINE_C #define MTMETIS_REFINE_C #include "vseprefine.h" #include "check.h"...
cg-brisbane.c
//-------------------------------------------------------------------------// // // // This benchmark is a serial C version of the NPB CG code. This C // // version is developed by the Center for Manycore Programming at Seoul // // Nati...
tree-parloops.c
/* Loop autoparallelization. Copyright (C) 2006-2020 Free Software Foundation, Inc. Contributed by Sebastian Pop <pop@cri.ensmp.fr> Zdenek Dvorak <dvorakz@suse.cz> and Razya Ladelsky <razya@il.ibm.com>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms ...
bml_transpose_csr_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_parallel.h" #include "../bml_transpose.h" #include "../bml_types.h" #include "bml_allocate_csr.h" #include "bml_transpose_csr.h" #include "bml_types_csr.h" #include "bml_setters_csr.h" #include "../bml_logger.h" #include <...
sigmoid_arm_func.h
/* Copyright (c) 2018 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...
GB_transplant.c
//------------------------------------------------------------------------------ // GB_transplant: replace contents of one matrix with another //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suite...
network.h
// == mojo ==================================================================== // // Copyright (c) gnawice@gnawice.com. All rights reserved. // See LICENSE in root folder // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation...
pr61200.c
/* PR libgomp/61200 */ /* { dg-do run } */ #include <omp.h> #include <stdlib.h> #include <unistd.h> volatile int x; void foo () { int var = 1; int i; for (i = 0; i < 2; i++) { if (i == 1) { #pragma omp parallel num_threads(2) if (x) var++; else { #pragma omp single ...
GB_unop__conj_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...
countersomp.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <memory.h> #include <malloc.h> #include <papi.h> #include <omp.h> #define SIZE 1000 int main(int argc, char **argv) { float matrixa[SIZE][SIZE], matrixb[SIZE][SIZE], mresult[SIZE][SIZE]; int i,j,k; in...
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...
examine.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #include <time.h> #include <string.h> #include <time.h> #define UPLIMIT 30 #define DOWNLIMIT 12 int main(int argc, char *argv[]) { FILE *fp; long size; const char temp[2] = " "; double temp2; long long count=0; size_t result; ...
lib_openmp.c
// This code makes some assumptions on the implementation of // base64_stream_encode_init(), base64_stream_encode() and base64_stream_decode(). // Basically these assumptions boil down to that when breaking the src into // parts, out parts can be written without side effects. // This is met when: // 1) base64_stream_en...
rose_private.c
/* * private(including lastprivate) scalars can be recognized by liveness analysis * They are dead (not belong to live-in variable sets) with respect to the loop body * If they are live-out with respect to the loop, it is lastprivate. */ #include "omp.h" int g; void foo() { int i; int x; int a[100]; int ...
test.c
#include <stdio.h> #include <omp.h> #include <math.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) { ...
GB_binop__min_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-...
structDef-postpass.c
typedef unsigned int size_t; typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed in...
matvec_double.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/timeb.h> #include <malloc.h> #include <math.h> #define N_RUNS 20 #define N 10240 // read timer in second double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (double) tm.millitm / 1000.0; } //Create a matrix an...
ft.c
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB FT code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...
pt_to_pt_haloexchange.c
/***************************************************************************** * * * Mixed-mode OpenMP/MPI MicroBenchmark Suite - Version 1.0 * * * * ...
core_samax.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_dzamax.c, normal z -> s, Fri Sep 28 17:38:20 2018 * **/ #include <plasma_core_blas.h> #include "pla...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__bxnor_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...
compare.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__identity_int64_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...
pi-v4.c
/* * Compute pi by approximating the area under the curve f(x) = 4 / (1 + x*x) * between 0 and 1. * * parallel version using OpenMP */ #include <stdio.h> #include <stdlib.h> #include <omp.h> /* OpenMP */ #if _DEBUG_ #define _DEBUG_ 1 #else #define _DEBUG_ 0 #endif int main(int argc, char *argv[]) { do...
GB_unop__identity_uint16_uint8.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
Jacobi2D-DiamondByHandParam-OMP_static.test.c
/****************************************************************************** * Jacobi2D benchmark * Diamond tiling parameterized by hand. * * Copied Jacobi2D-DiamondSlabISCCParam-OMP-test.c to get similar format * to other drivers and then put in parameterized loop bounds. * * Look for the notes titled "Param...
GB_binop__isgt_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-...
MatrixMtp_OpenMP.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> //线程数 int n_threads = 1; //阶数 int n = 1000; //方阵A、B、C int **A, **B, **C; //按照实验要求,按指定格式初始化A、B方阵、C方阵 void init() { A = (int **)calloc(n, sizeof(int *)); for (int i = 0; i < n; i++) { A[i] = (int *)calloc(n, sizeof(int)); for (int j = 0; ...
sageInterface.h
#ifndef ROSE_SAGE_INTERFACE #define ROSE_SAGE_INTERFACE #include "sage3basic.hhh" #include <stdint.h> #include <utility> #include "rosePublicConfig.h" // for ROSE_BUILD_JAVA_LANGUAGE_SUPPORT #if 0 // FMZ(07/07/2010): the argument "nextErrorCode" should be call-by-reference SgFile* determineFileType ( std::vector<s...
c_jacobi01.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es Copyright (c) 2004, OmpSCR Group All rights reserved. Redistribution and use in source and ...
A_comp.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "MBIRModularDefs.h" #include "MBIRModularUtils.h" #include "allocate.h" #include "initialize.h" #include "A_comp.h" #ifndef MSVC /* not included in MS Visual C++ */ #include <sys/time.h> #endif /* Pixel profile params */ #define...
target_parallel_for_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for'}} #pragma omp target parallel for // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for'}} ...
GB_unop__identity_int32_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...
DRB049-fprintf-orig-no.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
ddot.c
#include "cblas.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> // The default is to use scalar code #ifndef VECTORIZED #define VECTORIZED 0 #endif // The default is to use sequential code #ifndef PARALLEL_THRESH #define PARALLEL_THRESH INT_MAX #endif typedef double vec4d __attribut...
95a93_so12.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include "omp.h" #include <stdio.h> #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict data; int *size;...
server.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <strings.h> #include <unistd.h> #include <netdb.h> #include <errno.h> #include <sys/socket.h> #include <sys/select.h> #include <netinet/in.h> #include <arpa/inet.h> #include <omp.h> #include "server.h" static inline int set_socket(struct sockaddr_in ...
TemporalRowConvolution.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/TemporalRowConvolution.c" #else static inline void THNN_(TemporalRowConvolution_shapeCheck)( THNNState *state, THTensor *input, THTensor *gradOutput, THTensor *weight, THTensor *bias, int kW, int dW, int padW) { THArgCheck(kW > 0, 5, "kerne...
residual_based_adjoint_static_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: // #if !defined(KRATOS_RESIDUAL_BASED_ADJOINT_STATI...
quantize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
omptest.c
#include <stdio.h> #include <omp.h> int main(){ printf("Hello World\n"); int num_threads; int my_num; #pragma omp parallel private(num_threads, my_num) { my_num = omp_get_thread_num(); num_threads = omp_get_num_threads(); printf("I am %2d of %d\n", my_num+1, num_t...
serial_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_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #include <LightGBM/dataset.h> #include <Ligh...
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...
DRB031-truedepfirstdimension-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
convolution_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 ...
GB_binop__times_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
ecryptfs_fmt_plug.c
/* Cracker for eCryptfs ~/.ecryptfs/wrapped-passphrase. * * We attack "login passphrase" instead of "mount passphrase" (and which could * be 128-bit random key!). * * "ecryptfs_unwrap_passphrase -> generate_passphrase_sig" in * src/libecryptfs/key_management.c is important. * * Do we need to do full decryption ...
llg.c
#include "baryakhtar_clib.h" void llg_rhs_baryakhtar(double *dm_dt, double *m, double *h, double *delta_h, double *alpha, double beta, int *pins, double gamma, int nxyz, int do_precession) { #pragma omp parallel for for (int id = 0; id < nxyz; id++) { int i = 3*id; int j = i + 1; int k = j + 1; i...
target.c
/* Copyright (C) 2013-2017 Free Software Foundation, Inc. Contributed by Jakub Jelinek <jakub@redhat.com>. This file is part of the GNU Offloading and Multi Processing Library (libgomp). Libgomp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
GB_unop__atanh_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...
ZQ_FaceDatabaseCompact.h
#ifndef _ZQ_FACE_DATABASE_COMPACT_H_ #define _ZQ_FACE_DATABASE_COMPACT_H_ #pragma once #include <malloc.h> #include <stdio.h> #include <vector> #include <omp.h> #include "ZQ_FaceRecognizerSphereFace.h" #include "ZQ_MathBase.h" #include "ZQ_MergeSort.h" namespace ZQ { class ZQ_FaceDatabaseCompact { enum CONST_VAL ...
convolution_7x7_pack1to4.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 ...
detector.c
#include <dirent.h> #include "darknet.h" #include "image.h" static int coco_ids[] = {1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,70,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90}; ...
NETNTLMv2_fmt_plug.c
/* * NETNTLMv2_fmt.c -- NTLMv2 Challenge/Response * * Written by JoMo-Kun <jmk at foofus.net> in 2009 * and placed in the public domain. * * Modified for performance, OMP and utf-8 support by magnum 2010-2011 * * This algorithm is designed for performing brute-force cracking of the NTLMv2 * challenge/response ...
Builder.h
#pragma once #include <algorithm> #include "../../../DataStructures/RAPTOR/Data.h" #include "../../../Helpers/MultiThreading.h" #include "../../../Helpers/Timer.h" #include "../../../Helpers/Console/Progress.h" #include "ShortcutSearch.h" namespace RAPTOR::ULTRA { template<bool DEBUG = false, bool PRUNE_WITH_EXIST...