source
stringlengths
3
92
c
stringlengths
26
2.25M
DRACC_OMP_001_Buffer_Overflow_Recursion_yes.c
/* Causing a buffer overflow on the accelerator with recursion in line 15. */ #define C 1024 #pragma omp declare target int counter = 0; int rekurs(){ for(int i = 0; i<C; i++){ #pragma omp atomic counter++; rekurs(); } return 0; } #pragma omp end declare target in...
GB_binop__pair_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
morn_wave.c
/* Copyright (C) 2019-2020 JingWeiZhangHuai <jingweizhanghuai@163.com> Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
EllipticalBoundaryModel.h
/* * EllipticalBoundaryModel.h * CurveMatching * * Created by roy_shilkrot on 2/4/13. * Copyright (c) 2013 MIT * * 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, i...
parallel-reduction-nowait.c
/* Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Simone Atzeni (simone@cs.utah.edu), Joachim Protze (joachim.protze@tu-dresden.de), Jonas Hahnfeld (hahnfeld@itc.rwth-aachen.de), Ganesh Gopalakrishnan, Zvonimir Rakamaric, Dong H. A...
distributiongenerator.h
/** * @file distributiongenerator.h This code provides basic structure for distribution generators. This should be inherited by all other distribution generators. * @author TPOC: contact@palisade-crypto.org * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redi...
GB_binop__lor_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:...
trisolv.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...
barrier.c
#include<stdio.h> #include<omp.h> #define NUM_THREADS 4 int big_cal1(int id){ printf("Big cal 1, id=%d\n", id); int i = 0; while (i < (id+1)*10000) i++; return i; } int big_cal2(int id){ printf("Big cal 2, id=%d\n", id); int i = 0; while (i < (id+1)*10000) i++; return i; } int main(){ omp_set_num_thread...
private-modificado2.c
#include <stdio.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif main() { int i, n = 7; int a[n], suma=0; for (i=0; i<n; i++) a[i] = i; #pragma omp parallel { //suma=0; #pragma omp for for (i=0; i<n; i++) { suma = suma + a[i]; printf("thread %d suma a[%d] / ", omp_get_...
utils.c
#define _GNU_SOURCE #include "utils.h" #include <signal.h> #ifdef HAVE_GETTIMEOFDAY #include <sys/time.h> #else #include <time.h> #endif #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_SYS_MMAN_H #include <sys/mman.h> #endif #ifdef HAVE_FENV_H #include <fenv.h> #endif /* Random number seed */ uint32...
FPGrowth.h
/* * File: FPGrowth.h * Copyright (c) 2020 Florian Porrmann * * MIT License * * 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 t...
GB_binop__plus_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-...
task4.c
#include <stdio.h> #include <time.h> #include <omp.h> int main() { int m=4, n =16384; int i,j; double a[m][n]; double s[m]; double secs = 0; clock_t begin = clock(); #pragma omp parallel num_threads (8) { #pragma omp for schedule(static, 3) for (i=0; i<m; i++) // ...
GB_unop__identity_int8_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
alignblt.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * 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 Lic...
27_omp_softcounter.c
// clang-format off // RUN: %run %s --omp --call-filter 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN // RUN: %run %s -o -O2 --omp --call-filter 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN // RUN: %run %s -o -O2 --omp --call-filter 2>&1 | FileCheck %s // RUN: %run %s --omp --call-filter 2>&1 | FileCheck %s // REQUIR...
GB_unaryop__lnot_int16_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...
trsm_x_dia_n_hi_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, cons...
dct.h
/** * @file dct.h * @author Yibo Lin * @date Sep 2018 */ #ifndef DREAMPLACE_DCT_H #define DREAMPLACE_DCT_H #include "utility/src/torch.h" #include "utility/src/utils.h" DREAMPLACE_BEGIN_NAMESPACE at::Tensor dct_forward(at::Tensor x, at::Tensor expk, int num_threads); at::Tensor idct_forward(at::Tensor x, at...
axpy_ompacc2.c
/* change this to do saxpy or daxpy : single precision or double precision*/ #define REAL double #ifdef __cplusplus extern "C" { #endif /* both the omp version and ompacc version */ extern void axpy_omp(REAL* x, REAL* y, int n, REAL a); extern void axpy_ompacc(REAL* x, REAL* y, int n, REAL a); extern double read_ti...
opencl_blockchain_fmt_plug.c
/* blockchain "My Wallet" cracker patch for JtR. Hacked together during June of * 2013 by Dhiru Kholia <dhiru at openwall.com>. * * See https://blockchain.info/wallet/wallet-format * This software is Copyright (c) 2012 Lukas Odzioba <ukasz at openwall.net> * and Copyright (c) 2013 Dhiru Kholia <dhiru at openwall....
Example_taskloop_reduction.1.c
/* * @@name: taskloop_reduction.1.c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_5.0 */ #include <stdio.h> int array_sum(int n, int *v) { int i; int res = 0; #pragma omp taskloop reduction(+: res) for(i = 0; i < n; ++i) res += v[i]...
bridge.h
// This file is a bridge connecting the "lib interface" gbbs exports and the // interface that the current parlaylib exports. #pragma once #include <type_traits> #include <utility> #include "parlay/delayed_sequence.h" #include "parlay/internal/binary_search.h" #include "parlay/internal/get_time.h" #include "parlay/i...
BiezerSurface.c
#include <omp.h> #include <stdio.h> #include <math.h> #define XMIN 0. #define XMAX 3. #define YMIN 0. #define YMAX 3. #define TOPZ00 0. #define TOPZ10 1. #define TOPZ20 0. #define TOPZ30 0. #define TOPZ01 1. #define TOPZ11 6. #define TOPZ21 1. #define TOPZ31 0. #define TOPZ02 0. #define TOPZ12 1. #def...
c-tree.h
/* Definitions for C parsing and type checking. Copyright (C) 1987-2016 Free Software Foundation, Inc. This file is part of GCC. GCC 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, or (at yo...
Lamg.h
/* * Lamg.h * * Created on: Oct 20, 2015 * Author: Michael Wegner (michael.wegner@student.kit.edu) */ #ifndef NETWORKIT_CPP_NUMERICS_LAMG_LAMG_H_ #define NETWORKIT_CPP_NUMERICS_LAMG_LAMG_H_ #include <vector> #include "../LinearSolver.h" #include "MultiLevelSetup.h" #include "SolverLamg.h" #include "../Gau...
DRB036-truedepscalar-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...
mm.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 <string.h> #includ...
HYPRE_struct_int.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...
prepress.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
target_parallel_for_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for simd'}} #pragma omp target parallel for simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target parallel for simd'}} #pragma omp target parallel for simd foo vo...
geometry_para.c
/* * Copyright 2010 (c) SINTEF ICT, Applied Mathematics. * Jostein R. Natvig <Jostein.R.Natvig at sintef.no> */ #include <omp.h> #include <math.h> #include <stdio.h> #include "geometry.h" /* ------------------------------------------------------------------ */ static void cross(const double u[3], const double v[3],...
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...
s_aatritemp.h
/* * Mesa 3-D graphics library * Version: 7.0.3 * * Copyright (C) 1999-2007 Brian Paul 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, ...
life.h
#ifndef GoL_LIFE_H #define GoL_LIFE_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> // Custom includes #include "../globals.h" /** * All the data required by a Game of Life instance. */ typedef struct life { int ncols; // Number of columns in the grid int nrows; // Number of r...
prog.h
#pragma once #include <chrono> #include <cmath> #include <iostream> namespace prog { class Progress { public: inline Progress(); inline Progress(int step_count); inline Progress(int step_count, int percentage_increment); inline Progress(int step_count, int percentage_increment, bool enable); inli...
VectorMatrix.h
// Copyright 2015 Christina Teflioudi // // 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 appli...
c_func.c
#include "c_func.h" #include <time.h> // 卷积神经网络 double dot_sum(double * t1, double * t2, int length) { // 点乘 // 这里不存在内存泄漏的问题 double result = 0; int i; for (i = 0; i < length; i++) { result += t1[i] * t2[i]; } return result; } double * __sample_conv(double * strided_sample, int sha...
collision_matrix.c
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 abo...
ZQ_FaceDatabaseMaker.h
#ifndef _ZQ_FACE_DATABASE_MAKER_H_ #define _ZQ_FACE_DATABASE_MAKER_H_ #pragma once #include <sstream> #if defined(_WIN32) #include <direct.h> #include <io.h> #else #include <unistd.h> #include <sys/io.h> #include <sys/stat.h> #include <sys/types.h> #include <dirent.h> #endif #include <omp.h> #include <opencv2/opencv.hp...
ark_brusselator1D_omp.c
/*--------------------------------------------------------------- * Programmer(s): Daniel R. Reynolds @ SMU *--------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2020, Lawrence Livermore National Security * and Southern Methodist University. * All rights ...
GB_resize.c
//------------------------------------------------------------------------------ // GB_resize: change the size of a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apache-...
GB_unop__atan_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
GB_split_full_template.c
//------------------------------------------------------------------------------ // GB_split_full_template: split a full matrix into a full tile //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Licen...
directive.h
#pragma omp for schedule (static, chunk)
convolution_5x5.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 ...
omp_hello.c
/****************************************************************************** * FILE: omp_hello.c * DESCRIPTION: * OpenMP Example - Hello World - C/C++ Version * In this simple example, the master thread forks a parallel region. * All threads in the team obtain their unique thread number and print it. * The m...
bml_submatrix_ellpack_typed.c
#ifdef BML_USE_MAGMA #include "magma_v2.h" #endif #include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_logger.h" #include "../bml_submatrix.h" #include "../bml_types.h" #include "../dense/bml_allocate_dense.h" #include "bml_allocate_ellpack.h" #include "bml_submatrix_ellpack...
csr_matvec.c
/****************************************************************************** * Copyright 1998-2019 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) **************************************...
kdtree_minkowski.h
/* kdtree_minkowski.h * * Author: Fabian Meyer * Created On: 08 Nov 2018 * License: MIT * * Implementation is based on cKDtree of the scipy project and the splitting * midpoint rule described in "Analysis of Approximate Nearest Neighbor * Searching with Clustered Point Sets" by Songrit Maneewongvatana an...
bcnn_avgpool_layer.c
/* * Copyright (c) 2016-present Jean-Noel Braun. * * 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, m...
convolution_3x3_pack8to1.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 ...
3d7pt.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 * Adapted from PLUTO and Pochoir test bench * * Tare...
core_dsygst.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_zhegst.c, normal z -> d, Fri Sep 28 17:38:23 2018 * **/ #include <plasma_core_blas.h> #include "pla...
threads_nested.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { int condition = 0; int x = 0; omp_set_nested(1); #pragma omp parallel num_threads(2) { #pragma omp parallel num_threads(2) { OMPT_SIGNAL(condition); OMPT_WAIT(co...
ops.h
// Copyright 2021 Yan Yan // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
vadd.c
#include <stdint.h> #include <stdio.h> #include <omp.h> void vadd (uint64_t *a, uint64_t *b, uint64_t *c, uint64_t vecLen, uint64_t *result) { #pragma omp target { uint64_t act_sum = 0; #pragma omp parallel for reduction(+:act_sum) for (uint64_t i = 0; i < vecLen; i++) { uint64_t sum ...
DRB073-doall2-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...
DataGen.h
// Copyright (C) 2019-2020 Zilliz. 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 l...
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...
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) ...
aggregation_move_generator.h
/*****************************************************************************/ // Copyright (c) 2020-2021 Yuji KOGUMA // Released under the MIT license // https://opensource.org/licenses/mit-license.php /*****************************************************************************/ #ifndef PRINTEMPS_NEIGHBORHOOD_AGGRE...
scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // #if !def...
sp.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - SP This benchmark is an OpenMP C version of the NPB SP code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
mkldnn_quantize_v2-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
sph_linked_list.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> #include <sys/time.h> #include <inttypes.h> #include <omp.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_heapsort.h> #include "MZC3D64.h" #include "MZC2D64.h" #includ...
sumavectores-Sections.c
/* SumaVectoresC.c Suma de dos vectores: v3 = v1 + v2 Para compilar usar (-lrt: real time library): gcc -O2 SumaVectores.c -o SumaVectores -lrt Para ejecutar use: SumaVectoresC longitud */ #include <stdlib.h> // biblioteca con funciones atoi(), malloc() y free() #include <stdio.h> // biblioteca donde se encuentra la fu...
gemm.c
#include "gemm.h" #include "utils.h" #include "im2col.h" #include "dark_cuda.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <float.h> #include <string.h> #include <stdint.h> #ifdef _WIN32 #include <intrin.h> #endif #if defined(_OPENMP) #include <omp.h> #endif #define TILE_M 4 // 4 ops #define TIL...
simd_metadata.c
// RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86 // RUN: %clang_cc1 -fopenmp -triple x86_64-unknown-unknown -target-feature +avx -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK -check-prefix=X86-AVX // RUN: %clang_cc1 -fopenmp -trip...
MathTools.h
/** * * \copyright * Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #pragma once #include <boost/math/constants/co...
update_ops_matrix_dense_multi.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "constant.h" #include "update_ops.h" #include "utility.h" #ifdef _OPENMP #include <omp.h> #endif #ifdef _USE_SIMD #ifdef _MSC_VER #include <intrin.h> #else #include <x86intrin.h> #endif #endif //void multi_qubit_dense_matrix_gate...
krb5pa-sha1_fmt_plug.c
/* * Kerberos 5 "PA ENC TIMESTAMP" by magnum (modified by Dhiru) * * Pcap file -> input file: * 1. tshark -r capture.pcapng -T pdml > ~/capture.pdml * 2. krbng2john.py ~/capture.pdml > krb5.in * 3. Run john on krb5.in * * http://www.ietf.org/rfc/rfc4757.txt * http://www.securiteam.com/windowsntfocus/5BP0H0A6K...
bond_ops.c
/// \file bond_ops.c /// \brief Auxiliary data structures and functions concerning virtual bonds (taking quantum numbers into account) #include "bond_ops.h" #include "linalg.h" #include "util.h" #include "profiler.h" #include "dupio.h" #include <math.h> #include <memory.h> //_________________________________________...
enpass_fmt_plug.c
/* JtR format to crack Enpass Password Manager databases. * * This software is Copyright (c) 2017, Dhiru Kholia <dhiru at openwall.com>, * and it is hereby released to the general public under the following terms: * * Redistribution and use in source and binary forms, with or without modification, * are permitted...
GB_unop__abs_uint8_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...
fdtd2d.c
/** * fdtd2d.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@students....
suma_vector.c
#include <stdio.h> #include <stdlib.h> #include "omp.h" /* Basado en el tutorial: http://openmp.org/mp-documents/omp-hands-on-SC08.pdf */ void suma(double *A, double *B, double *C, int n_points); double *reserva(int n_points); void print(double *x, int n_points); void main (){ double *A, *B, *C; int n_points...
GB_unaryop__minv_bool_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
BFSFriends.h
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.4 -------------------------------------------------*/ /* date: 1/17/2014 ---------------------------------------------*/ /* authors: Aydin Buluc (abuluc@lbl.gov), Adam Lugow...
selu_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...
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) >...
spmv_int.c
////Example of sparse matrix-vector multiply, using CSR (compressed sparse row format). #include <stdio.h> #include <stdlib.h> #include <string.h> // Add timing support #include <sys/timeb.h> #define REAL int double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (double) tm.millitm ...
channel.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__minus_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...
GB_unop__abs_int64_int64.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...
for-8.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(dynamic) ordered for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GO...
translv.c
/*********************************************************************** * Solution driver. Contains the time and outer loops. Calls for outer * iteration work. Checks convergence and handles eventual output. ***********************************************************************/ #include "snap.h" void translv ( i...
Ransac.h
#pragma once #include <algorithm> #include <chrono> #include <iostream> #include <numeric> #include <random> #include <tuple> #include <vector> #include <primitives_fitting/Utils.h> #include <Eigen/Core> #define EPS 1.0e-8 namespace primitives_fitting { namespace ransac { /** * @brief base sampler class * * @t...
eltwise_hcl_arm.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
filterCutoutOMPCache.c
/* * Copyright 2014 NeuroData (http://neurodata.io) * * 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...
GB_unaryop__abs_fp32_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...
csrmm_task.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #include <malloc.h> #include <cstring> #include "tasks/task.h" namespace anon { // scatter from src to dest using sinfo template<typename T> void scatter(T *dest, T *src, flash::StrideInfo sinfo) { ...
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...
3d25pt.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-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
GB_unop__identity_int64_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...
cvAdvDiff_bnd_omp.c
/* ----------------------------------------------------------------- * Programmer(s): Daniel Reynolds and Ting Yan @ SMU * Based on cvAdvDiff_bnd.c and parallelized with OpenMP * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2021, Lawrence Liv...
pi_par.c
/* This program will numerically compute the integral of 4/(1+x*x) from 0 to 1. The value of this integral is pi -- which is great since it gives us an easy way to check the answer. The program was parallelized using OpenMP by adding just four lines (1) A line to include omp...
iochain.c
/* * IOchain - Distribute a chain of dependant IO events amoung threads. * * This file is part of Bitshuffle * Author: Kiyoshi Masui <kiyo@physics.ubc.ca> * Website: http://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #include <...
main.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #define N 100000000 int main(int argc, char** argv) { long int i, n = N; double x, dx, f, sum, pi; printf("Numero di intervalli: %ld\n", n); sum = 0.0; dx = 1.0 / (double)n; //base di ogni rettangolo che serve per calcolare l'integrale. ...