source
stringlengths
3
92
c
stringlengths
26
2.25M
nusd.c
#pragma warning(disable : 4996) #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <locale.h> #define _CRT_SECURE_NO_WARNINGS #define min(x,y) ((x) < (y) ? (x) : (y)) #define max(x,y) ((x) > (y) ? (x) : (y)) #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) ...
GB_unaryop__ainv_int8_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...
implicit_midpoint.c
/* Generated by Cython 0.29.21 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "/home/matt/miniconda3/envs/dapy/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h", "/home/matt/miniconda3/envs/dapy/lib/python3.7/site-packages/numpy/core/include/numpy/ufunc...
utils.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #pragma once #define _MM_HINT_T0 1 #define _MM_HINT_T1 2 #define _MM_HINT_T2 3 #define _MM_HINT_NTA 0 #define _MM_HINT_ENTA 4 #define _MM_HINT_ET0 5 #define _MM_HINT_ET1 6 #define _MM_HINT_ET2 7 #include <fcntl.h> #inclu...
TransformerBase.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 <set> #include "Transformer.h" namespace Microsoft { namespace MSR { namespace CNTK { class TransformerBase : public Transformer { pu...
mixed_tentusscher_myo_epi_2004_S1.c
// Scenario 1 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S1.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_eq...
2Dfold.c
/* * minimum free energy * RNA secondary structure with * basepair distance d_1 to reference structure 1 and distance d_2 to reference structure 2 * */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <math.h> #include <ctype.h> #include <string.h> #include...
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...
JeeIOrbitalSoA.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Ye Luo, y...
threshold.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
QuadNodePolarEuclid.h
/* * QuadNodePolarEuclid.h * * Created on: 21.05.2014 * Author: Moritz v. Looz (moritz.looz-corswarem@kit.edu) * * Note: This is similar enough to QuadNode.h that one could merge these two classes. */ #ifndef QUADNODEPOLAREUCLID_H_ #define QUADNODEPOLAREUCLID_H_ #include <vector> #include <algorithm> #i...
GB_unaryop__abs_bool_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
_fast_sum.c
// C - algorithm for fast sum of a matrix (similar to np.sum(), sum row by row) #include <stddef.h> // for size_t #define MAX 8 void sum_rows_blocks(double *orig, double *out, int n_rows, int n_cols){ int n_blocks=n_rows/MAX; int b; int j; int i; for (b=0; b<n_blocks; b++){ //for every block d...
lastprivate-clause.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], v; for(i=0;i<n;i++) a[i]=i+1; #pragma omp parallel for lastprivate(v) for(i=0; i<n; i++){ v=a[i]; printf ("thread %d v=%d\n ",omp_get_thread_num(),v); } print...
one.c
#include "two.h" #include <stdio.h> int main(void) { #pragma omp target printf("%d\n", two() - 1); return 0; }
9356.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...
radix_sort.h
#pragma once #include <omp.h> #include <cstdint> #include <utility> #include "csrc/utils/ipex_op_profile.h" namespace torch_ipex { namespace cpu { template <typename T> using Key_Value_Weight_Tuple = std::tuple<T, T, float>; // histogram size per thread const int HIST_SIZE = 256; template <typename T> Key_Value_We...
matmul_float.c
/* * Square matrix multiplication * A[N][N] * B[N][N] = C[N][N] * */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/timeb.h> #include <malloc.h> #define N 1024 //#define N 16 // read timer in second double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (d...
matrix_assembly.c
// // Created by sachetto on 13/10/17. // #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <time.h> #include "../alg/grid/grid.h" #include "../config/assembly_matrix_config.h" #include "../utils/utils.h" #include "../single_file_libraries/stb_ds.h" #include "../libraries_common/common_data_struct...
prop_container.h
// -*- mode:c++; c-basic-offset:4 -*- #ifndef PROP_CONTAINER_H_KL3 #define PROP_CONTAINER_H_KL3 #include <util/gjp.h> #include <util/verbose.h> #include <alg/qpropw.h> #include <omp.h> #include <cassert> #include "my_util.h" typedef cps::WilsonMatrixS WM; class PropAP { public: PropAP(const std::vector<WM> &_p,...
GB_binop__times_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
common.h
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_UTILS_COMMON_FUN_H_ #define LIGHTGBM_UTILS_COMMON_FUN_H_ #include <LightGBM/utils/log.h> #include <LightGBM/utils/openmp_wrapper.h>...
gamma_index_ivfpq.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This faiss source code is licensed under the MIT license. * https://github.com/facebookresearch/faiss/blob/master/LICENSE * * * The works below are modified based on faiss: * 1. Replace the static batch indexing with real time indexing * 2. Add the fin...
flops_FMA3.h
/* flops_FMA3.h - FMA3 Benchmarks * * Author : Alexander J. Yee * Date Created : 12/30/2013 * Last Modified : 12/30/2013 * * * * And of course... The typical copyright stuff... * * Redistribution of this program in both source or binary, regardless of * form, with or without modif...
convolution_sgemm_pack4_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
spmm.h
/*! * Copyright (c) 2020 by Contributors * \file array/cpu/spmm.h * \brief SPMM CPU kernel function header. */ #ifndef DGL_ARRAY_CPU_SPMM_H_ #define DGL_ARRAY_CPU_SPMM_H_ #include <dgl/array.h> #include <dgl/bcast.h> #include <algorithm> #include <limits> #include <memory> #include "spmm_binary_ops.h" #if !define...
aes.h
#pragma once #include <cstdint> #include <array> #include <vector> #include <span> #include "util.h" #include "internal/math.h" #include "internal/padding.h" namespace krypto { using byte_array = std::vector<unsigned char>; template <size_t extend = std::dynamic_extent> using byte_view = std::span<unsigned char...
EMTrainerLA.h
// // Created by kilian on 01/03/17. // #ifndef STERMPARSER_EMTRAINERLA_H #define STERMPARSER_EMTRAINERLA_H #include "../Names.h" #include "TrainingCommon.h" #include "StorageManager.h" #include "TraceManager.h" #include "../Legacy/Trace.h" #include <boost/operators.hpp> #include <eigen3/unsupported/Eigen/CXX11/Tenso...
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...
GB_unaryop__ainv_uint16_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
kernel.h
// __global fp* d_in; int rot_row; int rot_col; int in2_rowlow; int in2_collow; int ic; int jc; int jp1; int ja1, ja2; int ip1; int ia1, ia2; int ja, jb; int ia, ib; fp s; int i; int j; int row; int col; int ori_row; int ori_col; int position; fp sum; int pos_ori; fp temp; fp temp2; int locati...
GB_binop__le_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-...
rose_slowInput.c
#include "omp.h" typedef double real8; /************************************************************************ * Function : StressZero * * Purpose : ************************************************************************/ void StressZero(real8 *newSxx,real8 *newSyy,real8 *newSzz,real8 *newTxy,real8 *newTx...
Compute.h
#ifndef COMPUTE_H_INCLUDED #define COMPUTE_H_INCLUDED #include <stdio.h> #include <stdlib.h> #include <SDL2/SDL.h> #include <math.h> #include <omp.h> #include <time.h> #include <immintrin.h> #include "Grad.h" inline static __m256d fsqrt(__m256d val) { return _mm256_castsi256_pd(0x1ff7770000000000+_mm256...
fill_int2c.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...
GB_subassign_09.c
//------------------------------------------------------------------------------ // GB_subassign_09: C(I,J)<M,repl> = scalar ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identif...
rawMD4_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2010 by Solar Designer * Copyright (c) 2011, 2012 by magnum * * Use of Bartavelle's mmx/sse2/intrinsics and reduced binary size by * magnum in 2011-2012. * * OMP added May 2013, JimF */ #if FMT_EXTERNS_H extern struct fmt_main fmt_raw...
GB_binop__pow_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-...
gimple.h
/* Gimple IR definitions. Copyright (C) 2007-2013 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> 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 Foundati...
gimplify.c
/* Tree lowering pass. This pass converts the GENERIC functions-as-trees tree representation into the GIMPLE form. Copyright (C) 2002-2020 Free Software Foundation, Inc. Major work done by Sebastian Pop <s.pop@laposte.net>, Diego Novillo <dnovillo@redhat.com> and Jason Merrill <jason@redhat.com>. This fil...
CSR.h
#ifndef _CSR_H_ #define _CSR_H_ #include "CSC.h" #include "Deleter.h" #include "Triple.h" #include <algorithm> #include <cassert> #include <cstdlib> #include <iostream> #include <random> #include <vector> //#include <tbb/scalable_allocator.h> #include <omp.h> #include "grb_util.h" #include "utility.h" using namesp...
nlk_eval.c
/****************************************************************************** * NLK - Neural Language Kit * * Copyright (c) 2014 Luis Rei <me@luisrei.com> http://luisrei.com @lmrei * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (t...
matrix.c
#include "matrix.h" #include <omp.h> #include "matrix.h" void multiply(int N, unsigned long A[][2048], unsigned long B[][2048], unsigned long C[][2048]) { // transpose for (int i = 0; i < N; i++) { for (int j = i+1; j < N; j++) { unsigned long tmp = B[j][i]; B[j][i] = B[i][j]; ...
par_mgr.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) **************************************...
GB_unop__identity_int32_fc64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
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 ...
GB_binop__eq_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
bd_serial.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> // access #include <math.h> #include <assert.h> #include "timer.h" #include "bd.h" #include <omp.h> #include <mkl.h> #include <cilk/cilk.h> #include <cilk/cilk_api.h> #define NTHREADS 24 #define M_PI 3.14159265358979323846 #define my_EPS 0.000000001 void prin...
omp_foreign_thread_team_reuse.c
// RUN: %libomp-compile-and-run // REQUIRES: !abt #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 i...
main.c
# include <stdio.h> # include <omp.h> # include "sim.h" # include "ga.h" # include "gradient.h" # include "utils.h" #include <omp.h> /* * Just for statistic purposes. */ void save_population(Genome * population, int individuals, const char * filename) { FILE *fp; if ((fp = fopen(filename, "w")) != 0) printf("Co...
DRB091-threadprivate2-orig-no.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_unaryop__minv_fp64_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...
image_pyramid.h
/* * * This file is part of the open-source SeetaFace engine, which includes three modules: * SeetaFace Detection, SeetaFace Alignment, and SeetaFace Identification. * * This file is part of the SeetaFace Detection module, containing codes implementing the * face detection method described in the following paper:...
AUC-hybrid.c
// Program: AUC-hybrid // Author: Jason Regina // Date: 12 November 2015 // Description: This program approximates pi using the Riemann Sum method #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <math.h> #include <mpi.h> #include <omp.h> // This function returns a y-value on a unit circle // cent...
GB_unop__identity_uint8_uint8.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...
sift.c
/* ----------------------------------------------------------------------------- * sift.c * ----------------------------------------------------------------------------- * Copyright (c) 2015-2016 Blaine Rister et al., see LICENSE for details. * -----------------------------------------------------------------------...
application.h
#pragma once #include <volk.h> #include <GLFW/glfw3.h> #define GLM_FORCE_RADIANS #define GLM_FORCE_DEPTH_ZERO_TO_ONE #define GLM_ENABLE_EXPERIMENTAL #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #define PI glm::pi<float>() #include <algorithm> #include <array> #include <chrono> #include <cstdint> ...
i3lock-fancy-rapid.c
#include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <unistd.h> #include <sys/wait.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <omp.h> #include <string.h> void box_blur_h(unsigned char *dest, unsigned char *src, int height, int width, int radius) { double coeff = 1.0 / (...
core_clascl.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_zlascl.c, normal z -> c, Fri Sep 28 17:38:21 2018 * **/ #include <plasma_core_blas.h> #include "pla...
Proyek Akhir Semester Kelompok 12 Pemrograman Lanjut-2.c
//KryptoPal - Simulator Mining //Oleh: Kelompok 12 untuk Kuliah Pemrograman Lanjut Teknik Komputer FTUI (ENCE602003) // Afif Yudhistira - 2006522631 // Binar Qalbu Cimuema - 2006526296 // M. Hafiz Widyawan - 2006468762 // Syamsul Erisandy Arief - 2006577611 //Kontribusi: // Afif ...
path.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...
GB_subref_slice.c
//------------------------------------------------------------------------------ // GB_subref_slice: construct coarse/fine tasks for C = A(I,J) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Licens...
csr.c
/*! * \file * * \brief Various routines with dealing with CSR matrices * * \author George Karypis */ #include <GKlib.h> #define OMPMINOPS 50000 /*************************************************************************/ /*! Allocate memory for a CSR matrix and initializes it \returns the allocated ...
pcgeswp.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/pzgeswp.c, normal z -> c, Fri Sep 28 17:38:11 2018 * **/ #include "plasma_async.h" #include "plasma_descri...
convolution_sgemm_pack1to8.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 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 ...
pi_spmd_final.c
/* NAME: PI SPMD final version without false sharing 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 a...
collapse_2.c
#include<stdio.h> #ifdef _OPENMP #include <omp.h> #endif int a[11][11]; int main(void) { int i, j; int m = 10; int n = 10; for(i = 0; i < 11; i ++) { for(j = 0; j < 11; j ++) { a[i][j] = 0; } } #pragma omp target map(to: m, n) map(tofrom:a[0:11][0:11]) #pragma omp parallel for c...
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 ...
contract_graph.h
/****************************************************************************** * contract_graph.h * * Source of VieCut. * ****************************************************************************** * Copyright (C) 2017-2018 Alexander Noe <alexander.noe@univie.ac.at> * * Published under the MIT license in th...
ncwa.c
/* $Header$ */ /* ncwa -- netCDF weighted averager */ /* Purpose: Compute averages of specified hyperslabs of specfied variables in a single input netCDF file and output them to a single file. */ /* Copyright (C) 1995--present Charlie Zender This file is part of NCO, the netCDF Operators. NCO is free software....
ClassNLLCriterion.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/ClassNLLCriterion.c" #else void THNN_(ClassNLLCriterion_updateOutput)( THNNState *state, THTensor *input, THIndexTensor *target, THTensor *output, bool sizeAverage, THTensor *weights, THTensor...
GB_binop__minus_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
mhpTest11.c
int x1; int y1; struct s4 { int p; }; int main() { int s2; #pragma omp parallel { int shared = 0; int x; while (1) { if (shared) { 11; #pragma omp barrier l1: x = s2; break; } else { 12; l2: s2 = 10; #pragma omp barrier } #pragma omp single { shared = 1; } } } }
GB_binop__bclr_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
ep.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - EP This benchmark is an OpenMP C version of the NPB EP code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS. ...
bpnn.c
/** * Copyright (c) 2018 Andre Bannwart Perina and others * * Adapted from * rodinia_3.1/opencl/backprop/backprop.c * Different licensing may apply, please check Rodinia documentation. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
GB_binop__pow_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_binop__div_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
axcrypt_fmt_plug.c
/* AxCrypt 1.x encrypted files cracker patch for JtR * 2016 by Fist0urs <eddy.maaalou at gmail.com>. * * This software is Copyright (c) 2016, Fist0urs <eddy.maaalou at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with ...
raytracer.h
#pragma once #include "resource.h" #include <iostream> #include <linalg.h> #include <memory> #include <omp.h> #include <random> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction) : position(position) { this->direction = normalize(direction); } ...
HardTanh.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/HardTanh.c" #else static int nn_(HardTanh_updateOutput)(lua_State *L) { THTensor *input = luaT_checkudata(L, 2, torch_Tensor); THTensor *output = luaT_getfieldcheckudata(L, 1, "output", torch_Tensor); THTensor_(resizeAs)(output, input); if (input->nD...
cp-tree.h
/* Definitions for C++ parsing and type checking. Copyright (C) 1987-2013 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) 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 ...
GB_binop__lor_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
pi_vec.c
//--------------------------------------------------------------------------- // Name: pi_vec // // Purpose: This function will numerically compute the integral of // // 4/(1+x*x) // // from 0 to 1. The value of this integral is pi. // // In this version of the ...
StmtOpenMP.h
//===- StmtOpenMP.h - Classes for OpenMP directives ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
convolutiondepthwise_5x5_pack4.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 ...
pi.c
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> struct result { /* * results for parallel calculation of pi: */ double approx_pi; double exec_time; }; void get_pi(const size_t N, const unsigned num_threads, struct result* result) { /* * calculate pi by appro...
GB_binop__minus_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_unop__frexpx_fp32_fp32.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...
mixed_tentusscher_myo_epi_2004_S3_3.c
// Scenario 3 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt + Rc) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S3_3.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of...
VolumetricMaxUnpooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricMaxUnpooling.c" #else static inline void THNN_(VolumetricMaxUnpooling_shapeCheck)( THNNState *state, THTensor *input, THTensor *gradOutput, THIndexTenso...
GB_unaryop__minv_uint32_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...
conv_dw_kernel_x86.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...
pooling_pack_x86.h
#include <emmintrin.h> #include <stdio.h> #include <assert.h> #include "pooling_param.h" #define POOL_GENERIC 0 #define POOL_K2S2 1 #define POOL_K3S2 2 #define POOL_K3S1 3 typedef void (*pooling_kernel_t)(const float* input, float* output, int inc, int inh, int inw, int outh, int outw, int, ...
sectionstest.c
#include<stdio.h> #include<unistd.h> #include<limits.h> #include<omp.h> void sectionstest(); int main(int argc,char* *argv[]) { double start=omp_get_wtime(); sectionstest(); printf("finish 1 elapsed time=%lf\n",omp_get_wtime()-start); } void sectionstest() { #pragma omp parallel sections { #pragma ...
GB_unaryop__lnot_int32_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
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...
GB_unop__identity_fp64_uint16.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...
utils.c
/* File: utils.c */ /* This file is a part of the Corrfunc package Copyright (C) 2015-- Manodeep Sinha (manodeep@gmail.com) License: MIT LICENSE. See LICENSE file under the top-level directory at https://github.com/manodeep/Corrfunc/ */ /* A collection of C wrappers I use. Should be very obvious. The ones ...
GB_unaryop__ainv_fp64_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...