source
stringlengths
3
92
c
stringlengths
26
2.25M
csr.c
/*! * \file * * \brief Various routines with dealing with CSR matrices * * \author George Karypis * \version\verbatim $Id: csr.c 13437 2013-01-11 21:54:10Z karypis $ \endverbatim */ #include <GKlib.h> #define OMPMINOPS 50000 /*************************************************************************/ /*...
remarks_parallel_in_multiple_target_state_machines.c
// RUN: %clang_cc1 -verify=host -Rpass=openmp -fopenmp -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc // RUN: %clang_cc1 -verif...
slansy.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/zlansy.c, normal z -> s, Fri Sep 28 17:38:07 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
dds.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...
pztbsm.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include "plasma_types.h" #in...
GB_binop__ge_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
netmp.h
#ifndef NETIOMP_H__ #define NETIOMP_H__ #include <emp-tool/emp-tool.h> #include "cmpc_config.h" #include <omp.h> using namespace emp; template<int nP> class NetIOMP { public: NetIO*ios[nP+1]; NetIO*ios2[nP+1]; int party; bool sent[nP+1]; NetIOMP(int party, int port) { this->party = party; memset(sent, false, ...
fused_rowwise_nbitfake_conversion_ops.h
#pragma once #ifdef _OPENMP #include <omp.h> #endif #include "caffe2/core/context.h" #include "caffe2/core/logging.h" #include "caffe2/core/operator.h" #include "caffe2/operators/reducer_functors.h" #include "caffe2/utils/math.h" namespace caffe2 { namespace internal { inline bool is_little_endian() { constexpr s...
DRB028-privatemissing-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...
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-...
edgelist_transformation.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
potentialKernel.h
#ifndef POTENTIAL_KERNEL_H #define POTENTIAL_KERNEL_H #include "kernels.h" /* Describe the primitive approximation two body kernel */ namespace pimc { template<class V_t> class primitiveApproximationTwoBodyKernel : public kernel2B { public: primitiveApproximationTwoBodyKernel(const std::shared_ptr<V_t> &...
mascii.c
#include "mascii.h" #include <assert.h> #include <string.h> #if defined(FILDESH_MASCII_INTRINSIC_MM) #include <x86intrin.h> #ifdef _OPENMP /* #define FILDESH_MASCII_AUTOVECTORIZE_FAST */ #endif #else #define FILDESH_MASCII_AUTOVECTORIZE_FAST #define FILDESH_MASCII_AUTOVECTORIZE_OKAY #define FILDESH_MASCII_AUTOVECTOR...
5.parallel.c
#include <stdio.h> #include <omp.h> #define N 20 #define NUM_THREADS 4 /* Q1: How many messages the program prints? Which iterations */ /* of the loop is each thread executing? */ /* Q2: Change the directive to ensure that each thread executes */ /* the appropriate iterations. ...
msgmerge.c
/* GNU gettext - internationalization aids Copyright (C) 1995-1998, 2000-2010, 2012, 2015 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 Lice...
sparse_block_matrix_diagonal.h
// g2o - General Graph Optimization // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard // 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 r...
openmp.c
/* * $PIP_license: <Simplified BSD License> * 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 follow...
MLFDeserializer.h
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once #include <boost/noncopyable.hpp> #include "HTKDeserializer.h" #include "CorpusDescriptor.h" #include "MLFUtils.h" #include "FileWrapper.h" #inclu...
newtonpf.h
/* * newtonpf.cuh * * Created on: 23/09/2015 * Author: Igor M. Araújo */ #ifndef NEWTONPF_CUH_ #define NEWTONPF_CUH_ #include <Eigen/SparseLU> #include "util/quicksort.h" #include "util/timer.h" using namespace std; using namespace Eigen; __host__ double mkl_checkConvergence( Bus* buses, unsigned int...
yada.c
/* ============================================================================= * * yada.c * * ============================================================================= * * Copyright (C) Stanford University, 2006. All Rights Reserved. * Author: Chi Cao Minh * * ===========================================...
omp_task_imp_firstprivate.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_imp_firstprivate() { int i=5; int k = 0; int result = 0; int task_result = 1; #pragma omp parallel firstprivate(i) { #pragma omp single ...
statistic.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
bml_allocate_ellsort_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_types.h" #include "bml_allocate_ellsort.h" #include "bml_types_ellsort.h" #include <complex.h> #include <math.h> #include <stdlib.h> #include <string.h> #ifdef _OPENMP #include <omp.h> #endif /** Clear a matrix. * * Nu...
DRB030-truedep1-var-yes.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...
stream.c
// Copyright 2009-2020 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2020, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
GB_binop__pair_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
omp_util.c
#include "omp_helper.h" int stick_to_core(int core_id) { /* int num_cores = sysconf(_SC_NPROCESSORS_ONLN);*/ /* if (core_id < 0 || core_id >= num_cores)*/ /* return EINVAL;*/ /* cpu_set_t cpuset;*/ /* CPU_ZERO(&cpuset);*/ /* CPU_SET(core_id, &cpuset);*/ /* pthread_t current_thread = pthread_self(); ...
quadtree.c
#include "./quadtree.h" #include "./intersection_detection.h" #include "./intersection_event_list.h" #include "./line.h" #include <stdlib.h> #include <math.h> #include <stdio.h> #include <assert.h> #include <stdint.h> #include "omp.h" // Initialise a quadtree structure Quadtree initialise_quadtree(Quadtree* parent,...
GB_binop__iseq_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...
DRB052-indirectaccesssharebase-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...
parallel_for_reduction.c
#include <stdio.h> #include <math.h> #include "omp_testsuite.h" int check_parallel_for_reduction (FILE * logFile) { int sum = 0; int known_sum; double dsum = 0; double dknown_sum; double dt = 0.5; /* base of geometric row for + and - test */ double rounding_error = 1.E-9; #define DOUBLE_DIGITS 20 /* dt^D...
GB_unaryop__ainv_uint8_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
parallel_macros.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2016, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and us...
task_early_fulfill.c
// RUN: %libarcher-compile -fopenmp-version=50 && env OMP_NUM_THREADS='3' \ // RUN: %libarcher-run //| FileCheck %s // Checked gcc 10.1 still does not support detach clause on task construct. // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10 // gcc 11 introduced detach clause, but gomp interface in l...
fdtd-apml.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
gemv_openmp.c
#include <stdlib.h> #include <stdio.h> #include "../../support/timer.h" #include "gemv_utils.h" int main(int argc, char *argv[]) { const size_t rows = 20480; const size_t cols = 8192; double **A, *b, *x; b = (double*) malloc(sizeof(double)*rows); x = (double*) malloc(sizeof(double)*cols); allocate_dense...
GB_binop__iseq_int8.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_unaryop__identity_int8_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...
serialized.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8 #define TEST_NEED_PRINT_FRAME_FROM_OUTLINED_FN #include "callback.h" #include <omp.h> #include <math.h> int main() { omp_set_nested(0); print_frame(0); #pragma omp parallel num_threads...
GB_unop__identity_int8_uint64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
cast_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...
aidrivers.c
/* AI race car drivers * $ cc -Ofast -march=native -fopenmp -o aidrivers aidrivers.c -lm * $ ./aidrivers <map.ppm | mpv --no-correct-pts --fps=60 - * $ ./aidrivers <map.ppm | x264 --fps=60 -o out.mp4 --frames 3600 /dev/stdin * * Input image format: road is black (000000), barriers are white (ffffff), * cars start...
rt_dlaswp.c
#include "runtime.h" void RT_CORE_dlaswp(Quark *quark, Quark_Task_Flags *task_flags, int n, double *A, int lda, int i1, int i2, const int *ipiv, int inc) { plasma_context_t *plasma; plasma = plasma_context_self(); if (plasma->runtime == PLASMA_QUARK) { QUARK_CORE_dla...
LETKFSolver.h
/* * (C) Copyright 2020 UCAR. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ #ifndef OOPS_ASSIMILATION_LETKFSOLVER_H_ #define OOPS_ASSIMILATION_LETKFSOLVER_H_ #include <Eigen/Dense> #include <cfloat> #incl...
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...
concat_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...
mlpcell_fp32.h
#ifndef MLPCELL_F32 #define MLPCELL_F32 #include "mc_funcs.h" #define PCL_ASSERT(cond, x...) do { if(!(cond)) { printf(x); fflush(stdout); exit(1); } } while(0) #define DECL_VLA_PTR(type, name, dims, ptr) type (*name)dims = (type (*)dims)ptr #define DECL_VLA_PTR_CHECK_VAR(var, type, name, dims, ptr) type (*name)dims ...
dcraw.c
#ifndef IGNOREALL /* dcraw.c -- Dave Coffin's raw photo decoder Copyright 1997-2015 by Dave Coffin, dcoffin a cybercom o net This is a command-line ANSI C program to convert raw photos from any digital camera on any computer running any operating system. No license is required to download and use dcraw...
GB_unaryop__identity_int16_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...
mandel_neon.c
#include <arm_neon.h> #include "mandel.h" void mandel_neon(unsigned char *image, const struct spec *s) { float32x4_t xmin = vdupq_n_f32(s->xlim[0]); float32x4_t ymin = vdupq_n_f32(s->ylim[0]); float32x4_t xscale = vdupq_n_f32((s->xlim[1] - s->xlim[0]) / s->width); float32x4_t yscale = vdupq_n_f32((s->y...
3d7pt.c
/* * Order-1, 3D 7 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) ...
4.c
/* Написать программу, в которой объявить и присвоить начальные значения целочисленным массивам a[10] и b[10], определить параллельную область, количество нитей задать равным 2, выделить код для основной (номер 0) и нити с номером 1. Основная нить должна выполнять поиск min значения элементов массива a, нить с номером ...
GB_unop__identity_fc32_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...
GB_unop__log2_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_binop__bxnor_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
tree-parloops.c
/* Loop autoparallelization. Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. Contributed by Sebastian Pop <pop@cri.ensmp.fr> and Zdenek Dvorak <dvorakz@suse.cz>. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...
divsufsort.c
/* * divsufsort.c for libdivsufsort-lite * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * 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 wit...
django_fmt_plug.c
/* Django 1.4 patch for JtR. Hacked together during May of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binar...
owl_ndarray_conv_impl.h
/* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2020 Liang Wang <liang.wang@cl.cam.ac.uk> */ #ifndef OWL_CORE_CONV_IMPL #define OWL_CORE_CONV_IMPL /* * Calculate the block sizes for convolution operations. * Code heavily inspired by Eigen (http://eigen.tuxfamily.org/). */ #define IM2...
fracstep_GLS_strategy.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Author Julio Marti. // #if !defined(KRATOS_GLS_S...
rawSHA512_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...
_kdtree_core.c
/* pykdtree, Fast kd-tree implementation with OpenMP-enabled queries Copyright (C) 2013 - present Esben S. Nielsen This program 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 Lic...
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 // //===---------------------------...
ddcMalloc.c
// $Id$ #define _XOPEN_SOURCE 600 #include "ddcMalloc.h" #include "mpiUtils.h" #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <libgen.h> #include <string.h> #ifndef __APPLE__ #include <malloc.h> #endif #ifdef WITH_PIO #include "pio.h" #endif static int addBlock(void* ptr, size_t size, char* loc...
matrixMultiplication.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #include "mkl.h" #include "papi.h" #define THRESHOLD 32768 /* product size below which matmultleaf is used */ double matrixMultiplication_noBlock(int matrix_size, int nthreads){ srand(time(NULL)); double **A;//[matrix_size][matrix_size]; ...
atomic_messages.c
// RUN: %clang_cc1 -verify=expected,omp45 -fopenmp -fopenmp-version=45 -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -verify=expected,omp50 -fopenmp -fopenmp-version=50 -ferror-limit 100 %s -Wuninitialized // RUN: %clang_cc1 -verify=expected,omp45 -fopenmp-simd -fopenmp-version=45 -ferror-limit 100 %s -Wunin...
whilePeeler1.c
int bar(); void foo(int i, int y) { bar(); } int main() { int i = 10; int y = 11; i = i + 1; #pragma omp parallel { i = i + 3; #pragma omp barrier while (1) { i = 10; #pragma omp barrier i = i + 1; #pragma omp barrier y = y + 1; #pragma omp barrier break; } } foo(i, y); }
Data.h
/* MIT License Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi 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 rig...
sigmoidlayer.h
#ifndef SIGMOIDLAYER_H #define SIGMOIDLAYER_H #include "vol.h" #include "layer.h" #include "utils.h" #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/serialization/vector.hpp> #include <boost/serialization/map.hpp> #include <boost/serialization/utility.hpp> #includ...
nbnxn_atomdata.c
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2012, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
GB_unaryop__abs_uint64_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
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 ...
diffterm.gold.h
#include "common/common.hpp" extern "C" void diffterm_gold (double *in_difflux_1, double *in_difflux_2, double *in_difflux_3, double *in_difflux_4, double *in_q_1, double *in_q_2, double *in_q_3, double *in_q_5, double *in_ux, double *in_uy, double *in_uz, double *in_vx, double *in_vy, double *in_vz, double *in_wx, do...
dlook_ahead_update.c
/*! \file Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy) All rights reserved. The source code is distributed under BSD license, see the file License.txt at the top-level directory. ...
spmm.h
/** * Copyright (c) 2015 by Contributors */ #ifndef DIFACTO_COMMON_SPMM_H_ #define DIFACTO_COMMON_SPMM_H_ #include <cstring> #include <vector> #include "dmlc/data.h" #include "dmlc/omp.h" #include "difacto/sarray.h" #include "./range.h" namespace difacto { /** * \brief multi-thread sparse matrix dense matrix multipl...
Teste1.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { int nthreads, tid; #pragma omp parallel private(nthreads, tid) { tid = omp_get_thread_num(); printf("Welcome to GFC from thread = %d\n", tid); if(tid == 0) { nthreads = omp_get_num_threads(); printf("Number ...
erath1.c
#include "erath/erath1.h" #include <stdlib.h> /* malloc, free */ #include <string.h> /* memset */ #include <math.h> /* ceil, sqrt */ #define CHUNK_WIDTH 19 #include "common/defs.h" #include "common/enum.h" #include "common/presieve.h" #include "common/bitset.h" static inline int erath1_chunk(char* chunk, llong lo...
no_thread_num_clause.c
// RUN: %libomp-compile-and-run | FileCheck %s // RUN: %libomp-compile-and-run | %sort-threads | FileCheck --check-prefix=THREADS %s // REQUIRES: ompt #include "callback.h" int main() { omp_set_num_threads(4); #pragma omp parallel { print_ids(0); print_ids(1); } print_fuzzy_address(1); // Check if...
Oy_Fl_Shader_Box.h
#ifndef Oy_Fl_Shader_Box_H #define Oy_Fl_Shader_Box_H #if defined(__APPLE__) # include <OpenGL/gl.h> # include <OpenGL/glu.h> #else # include <GL/gl.h> # include <GL/glu.h> #endif #include <FL/Fl_Gl_Window.H> #include <FL/Fl.H> #include <FL/gl.h> #include "Oy_Fl_Image_Widget.h" #include "oyranos_devices.h" #if...
deprecate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
column_matrix.h
/*! * Copyright 2017 by Contributors * \file column_matrix.h * \brief Utility for fast column-wise access * \author Philip Cho */ #ifndef XGBOOST_COMMON_COLUMN_MATRIX_H_ #define XGBOOST_COMMON_COLUMN_MATRIX_H_ #include <limits> #include <vector> #include <memory> #include "hist_util.h" namespace xgboost { names...
omp_loop_static.h
// -*- C++ -*- // Copyright (C) 2007-2021 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version 3...
GspanTask.h
//######################################################################## //## Copyright 2019 Da Yan http://www.cs.uab.edu/yanda //## //## 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...
im2row_nhwc.c
/** * This file is part of convGemm * * Copyright (C) 2021-22 Universitat Politècnica de València and * Universitat Jaume I * * 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 ...
optimize.c
/* Copyright 2014. The Regents of the University of California. * Copyright 2016-2017. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2013-2017 Martin Uecker <martin.uecker@med.uni-goettingen.de> * * * Op...
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 #include "OmpAttribute.h" #if 0 // FMZ(07/07/2010): the argument "nextErrorCode" should be call-by-reference SgFile* determ...
idaFoodWeb_kry_omp.c
/* * ----------------------------------------------------------------- * Programmer(s): Daniel R. Reynolds and Ting Yan @ SMU * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2019, Lawrence Livermore National Security * and Southern Methodist Univ...
main.c
// C Compiler flag: -fopenmp #include <stdio.h> #include <omp.h> #include <stdlib.h> #include <time.h> #include <stdbool.h> #include <math.h> #define N 20 int main(int argc, char *argv[]) { int limit = 1000000; int start = 999900; int sqr_lim; bool is_prime[limit + 1]; int x2, y2; int i, j; int n; // Иници...
4-2t.c
#include <stdio.h> #include <omp.h> int main() { int i; omp_set_num_threads(2); #pragma omp parallel for for (i=0; i<16; i++) { printf("Hello from thread number: %d Iteration: %d \n", omp_get_thread_num(), i); } printf("\n GoodBye – Team Destroyed – Exiting Program \n...
tinyexr.h
#ifndef TINYEXR_H_ #define TINYEXR_H_ /* Copyright (c) 2014 - 2020, Syoyo Fujita and many 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 th...
omp_foreign_thread_team_reuse.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" #define NUM_THREADS 10 /* After hot teams were enabled by default, the library started using levels kept in the team structure. The levels are broken in case foreign thread exits and puts its team into the pool which is then re-used by ...
splibmp.c
/* * Copyright (c) 2017 ltlollo * Licensed under the MIT license <LICENSE-MIT or * http://opensource.org/licenses/MIT>. This file may not be copied, * modified, or distributed except according to those terms. */ #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> #include <err.h> #inclu...
deconvolution_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 ...
estimator.h
// Copyright (C) 2014 The Regents of the University of California (Regents). // 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...
pr46032-3.c
/* { dg-do compile } */ /* { dg-options "-O2 -fopenmp -std=c99 -fipa-pta -fdump-tree-optimized" } */ #define N 2 int foo (void) { int a[N], c[N]; int *ap = &a[0]; int *bp = &a[0]; int *cp = &c[0]; #pragma omp parallel for for (unsigned int idx = 0; idx < N; idx++) { ap[idx] = 1; bp[idx] = 2...
ffindex_apply.c
/* * FFindex * written by Andreas Hauser <andy@splashground.de>. * Please add your name here if you distribute modified versions. * * FFindex is provided under the Create Commons license "Attribution-ShareAlike * 3.0", which basically captures the spirit of the Gnu Public License (GPL). * * See: * http://cre...
automine_omp.h
// ad-hoc 4-clique with on-the-fly symmetry breaking void automine_4clique_sb(Graph &g, uint64_t &total) { uint64_t counter = 0; #pragma omp parallel for schedule(dynamic, 1) reduction(+:counter) for (vidType v0 = 0; v0 < g.V(); v0++) { //auto tid = omp_get_thread_num(); uint64_t local_counter = 0; a...
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) >...