source
stringlengths
3
92
c
stringlengths
26
2.25M
Transform.c
/* * $Id: Transform.c,v 1.58 2008-05-14 23:19:24 dbrown Exp $ */ /************************************************************************ * * * Copyright (C) 1992 * * University Corporation for Atmospheric Research * * All Rights Reserved * * * **************************...
pack.c
/* Copyright (c) 2014, Mohammad Moghadasi Division of System Engineering, Boston University Structural Bioinformatics Laboratory, Boston University All rights reserved. E-mail: <mohamad@bu.edu> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following c...
GB_unaryop__identity_uint8_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
convolution_3x3_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 ...
dotProduct_orphan.c
/****************************************************************************** * FILE: omp_orphan.c * DESCRIPTION: * OpenMP Example - Parallel region with an orphaned directive - C/C++ Version * This example demonstrates a dot product being performed by an orphaned * loop reduction construct. Scoping of the re...
test_utils.h
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * 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 ...
convolution_pack4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
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 ...
gravity.c
/** * @file gravity.c * @brief Direct gravity calculation, O(N^2). * @author Hanno Rein <hanno@hanno-rein.de> * * @details This is the crudest implementation of an N-body code * which sums up every pair of particles. It is only useful very small * particle numbers (N<~100) as it scales as O(N^2). Note that ...
putty_fmt_plug.c
/* PuTTY private key cracker patch for JtR. Hacked together during Monsoon of * 2012 by Dhiru Kholia <dhiru.kholia at gmail.com> . * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com> * * p-ppk-crack v0.5 made by michu@neophob.com -- PuTTY private key cracker * * Source code based on...
GB_binop__band_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
burgers1d_perf_b.c
#ifndef TAPENADE #include <math.h> #endif #define Max(x,y) fmax(x,y) #define Min(x,y) fmin(x,y) #define Heaviside(x) ((x>=0)?1.0:0.0) #define u(x) u[x] #define u_b(x) u_b[x] #define u_1(x) u_1[x] #define u_1_b(x) u_1_b[x] void burgers1d_perf_b(double* u, double* u_b, double* u_1, double* u_1_b, double D, double C, in...
GB_unop__identity_int8_int32.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...
cloud.c
#include <string> #include <iostream> #include <algorithm> #include <utility> #include <tfhe/tfhe.h> #include <tfhe/tfhe_io.h> #include <stdio.h> #include <time.h> #include <vector> #include <cassert> #include <sys/time.h> #include <omp.h> #include <fstream> using namespace std; ifstream read; #define T_FILE "averages...
GB_unaryop__lnot_int8_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
summary-memlight.c
/* perf-libs-tools Copyright 2017 Arm Limited. All rights reserved. */ #include "summary.h" #define MAX_INFLIGHT_FUNCTIONS 7000 armpl_lnkdlst_t *listHead = NULL; static int unique_fn_calls = 0; static int max_unique_fn_calls = MAX_INFLIGHT_FUNCTIONS; /* Routine to record log on standard program exits ...
artworker.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...
deconvolution_4x4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
nonlinear_chain_sqp.c
/* * This file is part of acados. * * acados is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * acado...
2DConvolution.c
/** * 2DConvolution.c: The original file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <math.h> #include <omp.h> #includ...
pi.c
#include <stdio.h> long long num_passos = 1000000000; double passo; int main(){ int i; double x, pi, soma=0.0; passo = 1.0/(double)num_passos; #pragma omp parallel for simd private(x) reduction(+:soma) for(i=0; i < num_passos; i++){ x = (i + 0.5)*passo; soma = soma + 4.0/(1.0 + x*x);...
omp_ex_11.c
#include <stdio.h> #include <omp.h> /* MIT License Copyright (c) 2019 NOUREDDINE DAGHBOUDJ 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 ri...
test_verify_cigars.c
#include "config.h" #include <ctype.h> #include <limits.h> #include <math.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #if defined(_MSC_VER) #include "wingetopt/src/getopt.h" #else #include <unistd.h> #endif #include "parasail.h" #include "pa...
fci_rdm.c
/* Copyright 2014-2018 The PySCF Developers. 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 requi...
omp_tls.h
/* //@HEADER // ***************************************************************************** // // omp_tls.h // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contra...
aux_loads.h
#include <dirent.h> #include <sys/types.h> #include <cvpp/containers/matrix.h> #include <cvpp/containers/vector.h> #include <cvpp/containers/image.h> #include <cvpp/properties/pose.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> using namespace cvpp; Seq<String> get_files( const String& dir , co...
GB_binop__band_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-...
edgelist.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
c_mandel.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
VolumetricReplicationPadding.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricReplicationPadding.c" #else static inline void THNN_(VolumetricReplicationPadding_shapeCheck)( THNNState *state, THTensor *input, THTensor *gradOutput, ...
dgetri_aux.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/zgetri_aux.c, normal z -> d, Fri Sep 28 17:38:09 2018 * **/ #include "plasma.h" #include "plasma_async.h" ...
evenodd_locks.c
/* a simple program to demo the use of locks This creates an array of random numbers and tests the number of even and odd values in the set of numbers. They should be roughly equal in an unbiased random number generator. written by Tim Mattson, 8/2021 */ #include <stdio.h> #inc...
GB_reduce_build_template.c
//------------------------------------------------------------------------------ // GB_build_template: T=build(S), and assemble any duplicate tuples //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:/...
SybasePROP_fmt_plug.c
/* SybasePROP cracker. Hacked together during November of 2013 by Dhiru Kholia * <dhiru [at] openwall.com>. * * This software is Copyright (c) 2013, Dhiru Kholia <dhiru [at] openwall.com>, * Frank Benhamou, Gregory Terrien and Marcel Major and it is hereby released * to the general public under the following terms...
DRB040-truedepsingleelement-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...
random.h
/* * This file is part of Quantum++. * * MIT License * * Copyright (c) 2013 - 2019 Vlad Gheorghiu (vgheorgh@gmail.com) * * 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 restr...
vla-4.c
// { dg-do compile } /* { dg-require-effective-target alloca } */ void foo(int n, int i) { int A[n]; #pragma omp parallel firstprivate(A) { A[i] = 1; } }
backprop.c
#include "backprop.h" #include <fcntl.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #define ABS(x) (((x) > 0.0) ? (x) : (-(x))) #define fastcopy(to, from, len) \ { \ ...
DRB084-threadprivatemissing-orig-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...
convolution_1x1_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
main.c
/// /// @copyright Copyright (c) 2013-2016, Université Pierre et Marie Curie /// All rights reserved. /// /// <b>hiCL</b> is owned by Université Pierre et Marie Curie (UPMC), /// funded by TOTAL, and written by Issam SAID <said.issam@gmail.com>. /// /// Redistribution and use in source and binary forms, with or without...
GB_binop__rdiv_uint32.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__exp_fp32_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
interpolate_op.h
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserve. 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...
emf_mie_mmls.c
#include "emf_mie_mmls.h" void read_data_mmls(MSPD *msp) { FILE *fp; char buf[256]=""; double tmpd,tmpd2; int s,i,tmpi; if((fp=fopen(fn_mlsphr,"rt"))==NULL){ printf("Can not open the '%s' file. Exit...\n",fn_mlsphr); exit(1); } if(fgets(buf,256,fp)==NULL){ printf("emf_mie_mmls.c, read_data_mm...
openssl_enc_fmt_plug.c
/* OpenSSL "enc" cracker for JtR. * * This software is Copyright (c) 2013, Dhiru Kholia <dhiru at openwall.com> * * $ openssl enc -aes-256-cbc -p -e -a -salt -in hello.txt -out hello.txt.enc * enter aes-256-cbc encryption password: * Verifying - enter aes-256-cbc encryption password: * salt=305CEDC2A0521011 * k...
PReLU.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/PReLU.c" #else void THNN_(PReLU_updateOutput)( THNNState *state, THTensor *input, THTensor *output, THTensor *weight) { THTensor_(resizeAs)(output, input); int64_t nOutputPlane = THTensor_(numel)(weight); if (nOutpu...
GB_binop__pair_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
omp_ssyrk_batch.c
/** * @file omp_ssyrk_batch.c * * @brief BBLAS omp_ssyrk_batch float routine. * * BBLAS is a software package provided by Univ. of Manchester, * Univ. of Tennessee. * * @version 1.0.0 * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date 2016-02-20 * **/ #ifndef D...
deconvolution_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a ...
TransformWrapper.h
/* file name : TransformWrapper.h author : Martin Schwartz (martin.schwartz@med.uni-tuebingen.de) version : 1.0 date : 03.01.2015 description : interface for the base transformations. For a detailed description, it is suggested to read p. 57 of the thesis. */ #ifndef TRANSFO...
2339.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...
BS_integrator.h
#pragma once #include "Core/stdafx.h" #include <functional> #include "Core/Tensor.h" /** * \defgroup Util * \brief This group includes common utilites in QuTree. */ template<class Q, class T, typename U> class BS_integrator /** * \class BS_integrator * \ingroup Util * \brief This is a Bulirsch-Stoer Integrator....
viterbi_decode_op.h
/* Copyright (c) 2021 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 agreed...
HSetMaintainer.h
#ifndef HSET_MAINTAINER_H #define HSET_MAINTAINER_H /************************************************************* * Copyright: (C) 2012 by Markus Schordan * * Author : Markus Schordan * * License : see file LICENSE in the CodeThorn distribution * **************...
GB_unaryop__ainv_uint64_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
par_multi_interp.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...
draw.c
#include "oilchange.h" int is_framebuffer_incomplete() { int status = glCheckFramebufferStatus(GL_FRAMEBUFFER); switch (status) { case GL_FRAMEBUFFER_COMPLETE: return 0; case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: pr...
feature.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
foo.c
# include<stdio.h> #include<omp.h> int main() { #pragma omp parallel { int ID = omp_get_thread_num(); printf("hello(%d)", ID); printf("world(%d)\n", ID); /* hello(1)world(1) hello(2)world(2) hello(3)world(3) hello(0)world(0) ...
q3.c
#include <omp.h> #include <stdio.h> int main(int argc, char *argv[]) { int numThreads, tid; /* This creates a team of threads; each thread has own copy of variables */ #pragma omp parallel private(numThreads, tid) { tid = omp_get_thread_num(); printf("Hello World from thread num...
tree-pretty-print.c
/* Pretty formatting of GENERIC trees in C syntax. Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Adapted from c-pretty-print.c by Diego Novillo <dnovillo@redhat.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it un...
grid.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // 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. // // See the LICENSE file distrib...
electrum_fmt_plug.c
/* * JtR format to crack password protected Electrum Wallets. * * This software is Copyright (c) 2017, Dhiru Kholia <kholia at kth.se> 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....
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
tree.h
#ifndef LIGHTGBM_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/meta.h> #include <LightGBM/dataset.h> #include <string> #include <vector> #include <memory> namespace LightGBM { /*! * \brief Tree model */ class Tree { public: /*! * \brief Constructor * \param max_leaves The number of max leaves */ ex...
remesh.h
#pragma once #include <functional> #include <numeric> #include <algorithm> #include <utility> #include "../progress.h" #include "../conan/mvector.h" #include "../conan/boxconfig.h" #include "../conan/ndspace.h" #include "../cvector/cvector.h" #include "decomposition.h" using Conan::mVector; using Conan::BoxConfig; t...
image-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % IIIII M M AAA GGGG EEEEE ...
GB_binop__lt_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
mem.c
#include "mem.h" #include "vec.h" double *Valloc(const size_t n) { const size_t V = n2V(n); double *const d = (double*)(V ? aligned_alloc(VA, V * VA) : NULL); if (d) { // each thread zeroes-out its portion of *d #ifdef _OPENMP #pragma omp parallel for default(none) shared(V,d) #endif /* _OPENMP */ for (...
do_sum_omp.c
double do_sum_omp(double* restrict var, long ncells) { // Serial sum double sum = 0.0; #pragma omp parallel for reduction(+: sum) for (long i = 0; i < ncells; i++){ sum += var[i]; } return(sum); }
GrB_Matrix_exportHint.c
//------------------------------------------------------------------------------ // GrB_Matrix_exportHint: determine sizes of arrays for GrB_Matrix_export //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // ...
GB_binop__lt_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
sequence2batch.h
#ifndef ANAKIN_SABER_FUNC_IMPL_X86_MATH_SEQUENCE_BATCH_H #define ANAKIN_SABER_FUNC_IMPL_X86_MATH_SEQUENCE_BATCH_H #include <algorithm> #include <vector> #include "saber/core/tensor.h" #include "saber/funcs/impl/x86/x86_utils.h" #include "saber/funcs/impl/x86/anakin_thread.h" namespace anakin { namespace s...
prefix_sum.h
// // Created by xehoth on 2021/11/5. // #ifndef PREFIX_SUM_H_ #define PREFIX_SUM_H_ #include <memory_manager.h> #include <omp.h> static const int MAX_THREADS = 64; template <typename T> inline void prefixSum(T *a, std::uint32_t n) { for (std::uint32_t i = 1; i < n; ++i) a[i] += a[i - 1]; } template <typename T> i...
cglobals.h
#ifndef RTGLOBALS #define RTGLOBALS #define BLOCK_SIZE_X 16 #define BLOCK_SIZE_Y 16 #define WARP_SIZE 32 #define Z_ORDER_BLOCK_SIZE 16 #define CMP_RESULTS_BLOCK_SIZE 256 #define HRT_RAY_MISS 0xFFFFFFFE #define HRT_RAY_HIT 0xFFFFFFFF #define GMAXVARS 64 #define INVALID_TEXTURE 0xFFFFFFFE #define TEX_POINT_SAM ...
csr_matmultivec.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_binop__second_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...
dahua_fmt_plug.c
/* * Format for cracking Dahua hashes. * * http://www.securityfocus.com/archive/1/529799 * https://github.com/depthsecurity/dahua_dvr_auth_bypass * * This software is Copyright (c) 2014 Dhiru Kholia <dhiru at openwall.com>, * and it is hereby released to the general public under the following terms: * * Redist...
factorions.c
#include <stdio.h> #include <stdbool.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <pthread.h> #include <gmp.h> #include <matcalc/threads.h> #include <matcalc/visitor.h> // factorion is a sum of factorials of digits int number_of_threads = 0; typedef struct _reduce_tls ...
qnx_fmt_plug.c
/* * This file is part of John the Ripper password cracker. Written to crack * QNX shadow hash passwords. algorithm is func(salt . pass x rounds+1) * func is md5, sha256 or sha512. rounds defaults to 1000, BUT can be specified * in the hash string and thus is not fixed. * * This software is Copyright (c) 2015 J...
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...
DRB064-outeronly2-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...
atomic-5.c
/* PR middle-end/36106 */ /* { dg-options "-O2" } */ /* { dg-options "-O2 -mcx16" { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ #ifdef __x86_64__ # include "cpuid.h" #endif extern void abort (void); int __attribute__((noinline)) do_test (void) { long double d = .0L; int i; #pragma omp parallel for shared...
GB_unaryop__abs_int16_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
task_spawn_time.c
#include <omp.h> #include <sys/time.h> #include <stdio.h> void worker_timed(int delay_us) { struct timeval start, now; gettimeofday(&start, NULL); while(1) { gettimeofday(&now, NULL); if(((now.tv_sec - start.tv_sec)*1000000) + ((now.tv_usec - start.tv_usec)) >= delay_us) bre...
localizer.h
/* * File: localizer.h * Author: hexi * * Created on 2015年12月27日, 上午11:11 */ #pragma once #include <type_traits> #include <limits> #include "dmlc/data.h" #include "dmlc/omp.h" #include "data/row_block.h" #include "base/parallel_sort.h" namespace dmlc { namespace svdfeature { /// \brief reverse the bytes of x ...
GB_unaryop__identity_int32_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
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...
1422.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...
ScalarWave_ExactSolution.h
#pragma omp parallel for for(int i2=0; i2<Nxx_plus_2NGHOSTS[2]; i2++) { const REAL xx2=xx[2][i2]; for(int i1=0; i1<Nxx_plus_2NGHOSTS[1]; i1++) { const REAL xx1=xx[1][i1]; for(int i0=0; i0<Nxx_plus_2NGHOSTS[0]; i0++) { const REAL xx0=xx[0][i0]; { /* ...
THTensorMath.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/THTensorMath.c" #else #ifndef NAN #define NAN (nan(NULL)) #endif #ifdef _OPENMP #include <omp.h> #endif #define TH_OMP_OVERHEAD_THRESHOLD 100000 #ifdef _OPENMP #ifndef _WIN32 #define PRAGMA(P) _Pragma(#P) #else #define PRAGMA(P) __pragma(P) #endif #define...
Sigmoid.c
#include "../thnets.h" #include <math.h> #ifdef ONNX void onnxload_Sigmoid(const void *graph, struct module *m, int nodeidx) { m->updateOutput = nn_Sigmoid_updateOutput; m->type = MT_Sigmoid; } #endif THFloatTensor *nn_Sigmoid_updateOutput(struct module *module, THFloatTensor *input) { THFloatTensor *output = modu...
kmp_atomic.c
/* * kmp_atomic.c -- ATOMIC implementation routines */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.txt fo...
opencl_odf_fmt_plug.c
/* Modified by Dhiru Kholia <dhiru at openwall.com> for ODF Blowfish format. * * This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net> * 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, a...
mandelbrot.c
/* * mandelbrot.c: Simple Mandelbrot Set Rendering Program in C99 * (c)2019 Seiji Nishimura <seiji1976@gmail.com> * $Id: mandelbrot.c,v 1.1.1.3 2019/04/03 00:00:00 seiji Exp seiji $ */ #ifdef USE_MPI #include <mpi.h> #endif #include <time.h> #include <math.h> #include <stdio.h> #include <stdint.h> #include <stdli...
5233.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...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
19_omp_first_priv_nested.c
// clang-format off // RUN: %c-to-llvm -fno-discard-value-names %omp_c_flags %s | %apply-typeart -typeart-alloca -call-filter -S 2>&1 | FileCheck %s // RUN: %c-to-llvm -fno-discard-value-names %omp_c_flags %s | opt -O2 -S | %apply-typeart -typeart-alloca -call-filter -S 2>&1 | FileCheck %s // RUN: %c-to-llvm -fno-disc...
bml_multiply_csr_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_add.h" #include "../bml_allocate.h" #include "../bml_logger.h" #include "../bml_multiply.h" #include "../bml_parallel.h" #include "../bml_types.h" #include "bml_add_csr.h" #include "bml_allocate_csr.h" #include "bml_multiply_csr.h" #include "bml_types_...