source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_unop__lnot_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...
configurator.c
/* Simple tool to create config.h. * Would be much easier with ccan modules, but deliberately standalone. * * Copyright 2011 Rusty Russell <rusty@rustcorp.com.au>. MIT license. * * c12r_err, c12r_errx functions copied from ccan/err/err.c * Copyright Rusty Russell <rusty@rustcorp.com.au>. CC0 (Public domain) Lice...
HardTanh.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/HardTanh.c" #else void THNN_(HardTanh_updateOutput)( THNNState *state, THTensor *input, THTensor *output, accreal min_val_, accreal max_val_, bool inplace) { real min_val = TH_CONVERT_ACCREAL_TO_REAL(...
volumeramprecision.h
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2018 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
GB_binop__pair_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
DRB043-adi-parallel-no.c
/** * adi.c: This file is part of the PolyBench/C 3.2 test suite. * * Alternating Direction Implicit solver: * * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://polybench.sourceforge.net * License: /LICENSE.OSU.txt */ #include <stdio.h> #include <unistd.h> #include <string.h> #in...
CALPHADFreeEnergyFunctionsBinaryThreePhase.h
#ifndef included_CALPHADFreeEnergyFunctionsBinaryThreePhase #define included_CALPHADFreeEnergyFunctionsBinaryThreePhase #include "CALPHADSpeciesPhaseGibbsEnergy.h" #include "InterpolationType.h" #include "Phases.h" #include "datatypes.h" #include "functions.h" #include <boost/property_tree/ptree.hpp> #include <casse...
reconstruction.h
#pragma once #if !__CUDACC__ #include <vector> #include <algorithm> #include "common/mathematica_graphics.h" #if USE_FAST_TEXT_PARSER #include "util/text_parser.h" #endif #endif #include "2d/strip/response.h" #include "2d/barrel/geometry_soa.h" #include "2d/geometry/pixel_map.h" #include "3d/geometry/point.h" #inclu...
quadtree.c
#include "./quadtree.h" #include "./intersection_detection.h" #include "./intersection_event_list.h" #include "./line.h" #include <stdlib.h> #include <math.h> #include <stdio.h> #include <assert.h> #include <stdint.h> #include "omp.h" // Initialise a quadtree structure Quadtree initialise_quadtree(Quadtree* parent,...
Example_nesting_restrict.1.c
/* * @@name: nesting_restrict.1c * @@type: C * @@compilable: no * @@linkable: no * @@expect: failure */ void work(int i, int j) {} void wrong1(int n) { #pragma omp parallel default(shared) { int i, j; #pragma omp for for (i=0; i<n; i++) { /* incorrect nesting of loop regions */ #pragma ...
FGT_fmt_plug.c
/* * Fortigate (FortiOS) Password cracker * * This software is Copyright (c) 2012 Mat G. <mat.jtr 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 or without modification, are permitted. * * Passwords are located...
mandel-omp-row-taskloop.c
/* * Sequential Mandelbrot program * * This program computes and displays all or part of the Mandelbrot * set. By default, it examines all points in the complex plane * that have both real and imaginary parts between -2 and 2. * Command-line parameters allow zooming in on a specific part of * this range. ...
GB_dense_subassign_06d_template.c
//------------------------------------------------------------------------------ // GB_dense_subassign_06d_template: C<A> = A //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apac...
GB_unop__acosh_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
omp_taskloop_num_tasks.c
// This test is known to be fragile on NetBSD kernel at the moment. // UNSUPPORTED: netbsd // RUN: %libomp-compile-and-run // RUN: %libomp-compile && env KMP_TASKLOOP_MIN_TASKS=1 %libomp-run // These compilers don't support the taskloop construct // UNSUPPORTED: gcc-4, gcc-5, icc-16 // This test is known to be fragil...
gauss_seidel.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <omp.h> #define COLUMNS 3000 #define ROWS 3000 #define TEMP_BORDA 20 #define TEMP_INICIAL 20 #define MAX_TEMP_ERROR 0.01 double Anew[ROWS+2][COLUMNS+2]; double A[ROWS+2][COLUMNS+2]; void iniciar(); int main(int argc, char *argv[]) { int i, j...
Simulator.h
/* Copyright (c) 2017, Fabian Prada All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following discl...
omp-taskloop-single.c
#include <omp.h> #include <unistd.h> #include <stdio.h> #define THREADS 4 #define LEN 5 int main(void) { int j=0; #pragma omp parallel num_threads(THREADS) { #pragma omp single nowait { #pragma omp taskloop for (j=0; j<LEN; j++) { usleep(...
List.h
/** 2017 Neil Edelman, distributed under the terms of the MIT License; see readme.txt, or \url{ https://opensource.org/licenses/MIT }. {<T>List} is a doubly-linked-list of {<T>Link}, of which data of type, {<T>}, must be set using {LIST_TYPE}. This is an abstract data structure requiring {<T>Link} storage, and can...
laplace2d_omp_acc.c
/* File: laplace2d.c */ #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <time.h> int main(int argc, char **argv) { FILE *output_unit; int i, j; int n = 2048; int m = 2048; /* Size of the mesh */ int qn = (int)n * 0.5; /* x-coordinate of the point h...
GB_unop__atanh_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
staticvar.c
extern void abort (void); #pragma omp declare target int foo (void) { static int s; return ++s; } #pragma omp end declare target int main () { int r; #pragma omp target map(from:r) { r = foo (); } if (r != 1) abort (); return 0; }
GB_unop__identity_fp64_uint16.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...
inplace_broadcast_binary_operation.h
/* Copyright 2021 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 or agreed...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #...
dft_dft_solver.h
#ifndef _DFT_DFT_SOLVER_ #define _DFT_DFT_SOLVER_ #include <complex> #include "spectral/spectral.h" #include "blueprint.h" #include "equations.h" namespace spectral { /*! @brief Solver for periodic boundary conditions of the spectral equations. * @ingroup solvers */ template< size_t n> class DFT_DFT_Solver { pu...
l2_norm_GR_MEX.c
#include "mex.h" #include <math.h> #ifdef __GNU__ #include <omp.h> #endif #ifndef MAXCORES #define MAXCORES 1 #endif void mexFunction(int nlhs, mxArray *left[], int nrhs, const mxArray *right[]) { /* Declare variables */ mwSize elem; long long i; mxClassID precision,precision1; const mwSize siz...
coro_solver.h
/** * @author : Zhao Chonyyao (cyzhao@zju.edu.cn) * @date : 2021-04-30 * @description: co-rotation solver. * @version : 1.0 */ #ifndef PhysIKA_CORO_SOLVER #define PhysIKA_CORO_SOLVER #include <Eigen/Eigenvalues> #include "Solver/linear_solver/customized_pcg.h" #include "Solver/linear_solver/coro_pre...
triplet.c
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* These codes were originally parts of spglib, but only develped */ /* and used for phono3py. Therefore these were moved from spglib to */ /* phono3py. This file is part of phonopy. */ /* Redistribution and use in source and binary forms, with or witho...
5-16t.c
#include <stdio.h> #include <omp.h> int main() { int i; int sum=0; omp_set_num_threads(16); #pragma omp parallel for for (i=0; i<COUNT; i++) { sum = sum + i; printf("Thread number: %d Iteration: %d Local Sum: %d \n", omp_get_thread_num(), i, sum); } printf("...
two_step_v_p_strategy.h
// // Project Name: KratosPFEMFluidDynamicsApplication $ // Last modified by: $Author: AFranci $ // Date: $Date: January 2016 $ // Revision: $Revision: 0.0 $ // // #ifndef KRATOS_TWO_STEP_V_P_STRATEGY_H #define KRATOS_TWO_...
omp3-1-1.c
#include<stdio.h> #ifndef N #define N 5000 #endif #define M 1000000000 int a[N][N], b[N][N]; int main() { int i, j, sum; #pragma omp parallel sections { #pragma omp section for (i = 0; i < N; i++) for (j = 0; j < N; j++) a[i][j] = i + j; #pragma omp section for (i = 0; i < N; i++)...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
shrink_mex.c
/* * Implements an equivalent of: * shrink = @(X,lambda) sign(X).*max( abs(X) - lambda, 0 ); * * but much more memory efficient, and about as fast (and faster for large, * memory-limited systems) * * Variant: * shrink = @(X,lambda,offset) sign(X-offset).*max( abs(X-offset) - lambda, 0 ); * * * eg. x = ran...
_hypre_struct_mv.h
/*** DO NOT EDIT THIS FILE DIRECTLY (use 'headers' to generate) ***/ #ifndef hypre_STRUCT_MV_HEADER #define hypre_STRUCT_MV_HEADER #include <stdlib.h> #include <stdio.h> #include <math.h> #include "HYPRE_struct_mv.h" #include "_hypre_utilities.h" #if defined(HYPRE_USING_RAJA) /*BHEADER****************************...
taskbench.c
/**************************************************************************** * * * OpenMP MicroBenchmark Suite - Version 3.1 * * * * ...
GB_binop__iseq_fc32.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__floor_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
par_coarsen.c
/****************************************************************************** * Copyright (c) 1998 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) ***************************************...
mlpcell_bf16.h
#ifndef MLPCELL_BF16 #define MLPCELL_BF16 #include "mc_funcs.h" #define PCL_ASSERT(cond, x...) do { if(!(cond)) { printf(x); fflush(stdout); exit(1); } } while(0) #define DECL_VLA_PTR(type, name, dims, ptr) type (*name)dims = (type (*)dims)ptr #define DECL_VLA_PTR_CHECK_VAR(var, type, name, dims, ptr) type (*name)dim...
GB_unop__exp_fp32_fp32.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...
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...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
data.h
/*! * Copyright (c) 2015 by Contributors * \file data.h * \brief The input data structure of xgboost. * \author Tianqi Chen */ #ifndef XGBOOST_DATA_H_ #define XGBOOST_DATA_H_ #include <dmlc/base.h> #include <dmlc/data.h> #include <rabit/rabit.h> #include <xgboost/base.h> #include <memory> #include <numeric> #inc...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
GB_unaryop__identity_fp64_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...
GB_binop__second_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...
spacetime_heat_sl_kernel_antiderivative.h
/* Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyr...
GB_unop__ceil_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://...
mpm_search_element_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ \. // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Bodhinanda Chandra // #ifndef KRATOS_MPM...
r_direct_o1.c
/* * */ #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <complex.h> //#include <omp.h> #include "config.h" #include "cint.h" #include "optimizer.h" #include "nr_direct.h" #include "time_rev.h" int GTOmax_shell_dim(const int *ao_loc, const int *shls_slice, int ncenter); int GTO...
GB_binop__band_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_unop__sin_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://...
convolution-2d.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...
clauum.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/zlauum.c, normal z -> c, Fri Sep 28 17:38:08 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
GB_binop__pair_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...
project2_Delaunoy_Crasset_SPARSE.c
#include <stdlib.h> #include <mpi.h> #include <stdio.h> #include <omp.h> #include "project2_Delaunoy_Crasset_SPARSE.h" /** * Structure representing a sparse matrix */ struct SparseMatrix_t{ SparseVector** vectors; unsigned int begin; unsigned int end; }; /** * Structure representing a sparse vector */ struct ...
cpd.c
/* This file is part of ParTI!. ParTI! 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. ParTI! is distributed...
omp-sumof-elements-reduction.c
/************************************************************************** Example 1.5 : omp-sumof-elements-reduction.c Objective : Write an OpenMP program to print Sum of Elements of Array This example demonstrates the use of ...
reduction-clause.c
/* * reduction-clause.c * * Created on: 09/04/2014 * Author: Carlos de la Torre */ #include <stdlib.h> #include <stdio.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif int main(int argc, char **argv) { int i, n = 20, a[n], suma = 0; if (argc < 2) { fprintf(stderr,"Falta i...
fasta.c
// The Computer Language Benchmarks Game // http://benchmarksgame.alioth.debian.org/ // // contributed by Jeremy Zerfas // rewritten by Аноним Легионов, inspired by fasta Rust #2 program // use two OpenMP locks instead of one critical section // decouples IO activity from random number generation // // modified by Josh...
utils.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 ...
target_teams_distribute_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute simd'}} #pragma omp target teams distribute simd // expected-error@+1 {{unexpected Ope...
dbg.h
/* * @author Priyank Faldu <Priyank.Faldu@ed.ac.uk> <http://faldupriyank.com> * * Copyright 2019 The University of Edinburgh * * 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 * * h...
jacobi.c
// // Implementation of the iterative Jacobi method. // // Given a known, diagonally dominant matrix A and a known vector b, we aim to // to find the vector x that satisfies the following equation: // // Ax = b // // We first split the matrix A into the diagonal D and the remainder R: // // (D + R)x = b // // W...
bt.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - BT This benchmark is an OpenMP C version of the NPB BT code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by NA...
pcg_tests.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include "H2Pack.h" #include "pcg.h" #include "block_jacobi_precond.h" #include "LRD_precond.h" #include "FSAI_precond.h" static DTYPE shift_; void H2Pack_matvec(const void *h2pack_, const DTYPE *b, DTYPE *x) { H2Pack...
openmp_7.tfm.c
typedef int T[10]; void foo(T *A) { #pragma omp parallel { #pragma omp for default(shared) for (int I = 0; I < 10; ++I) for (int J = 0; J < 10; ++J) A[I][J] = 0; } }
FGP_TV_core.c
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2019 Daniil Kazantsev * Copyright 2019 Srikanth Nagella, Edoardo Pasca * * Licensed under the Apache License, Version 2.0 (the "License")...
ImageIOAnalyze.h
/** \file ImageIOAnalyze.h \brief Implement the suppor for the Analzye75 medical image format \author Hui Xue The ISMRMRD dimensions are mapped to Analyze75 format. Ref to: http://eeg.sourceforge.net/ANALYZE75.pdf http://ismrmrd.sourceforge.net/ */ #pragma once #include "Imag...
GB_unop__identity_bool_int8.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...
omp_single.c
<ompts:test> <ompts:testdescription>Test which checks the omp single directive by controling how often a directive is called in an omp single region.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:directive>omp single</ompts:directive> <ompts:dependences>omp parallel private,omp flush</ompts:de...
openmp_hello.c
/****************************************************************************** // https://computing.llnl.gov/tutorials/openMP/samples/C/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 ...
solver-omp-op2.c
#define lowerb(id, p, n) ( id * (n/p) + (id < (n%p) ? id : n%p) ) #define numElem(id, p, n) ( (n/p) + (id < (n%p)) ) #define upperb(id, p, n) ( lowerb(id, p, n) + numElem(id, p, n) - 1 ) #define min(a, b) ( (a < b) ? a : b ) #define max(a, b) ( (a > b) ? a : b ) #include "omp.h" // Function to copy one matrix into a...
GB_unop__sin_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
SpatialConvolutionMM.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/SpatialConvolutionMM.c" #else static inline void THNN_(SpatialConvolutionMM_shapeCheck)( THTensor *input, THTensor *gradOutput, THTensor *weight, THTensor *bias, int kH, int kW, int dH, int dW, int padH, int padW, int weight_nullable) { THArgCheck(kW > 0 &...
softmax-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 ...
eam.c
/// \file /// Compute forces for the Embedded Atom Model (EAM). /// /// The Embedded Atom Model (EAM) is a widely used model of atomic /// interactions in simple metals. /// /// http://en.wikipedia.org/wiki/Embedded_atom_model /// /// In the EAM, the total potential energy is written as a sum of a pair /// potential a...
rawSHA224_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2010 by Solar Designer * based on rawMD4_fmt.c code, with trivial changes by groszek. * * Rewritten Spring 2013, JimF. SSE code added and released with the following terms: * No copyright is claimed, and the software is hereby placed in t...
Searching.202007271719.gather_top_m.subsearch.profile.h
// // Created by Zhen Peng on 7/27/2020. // #ifndef BATCH_SEARCHING_SEARCHING_H #define BATCH_SEARCHING_SEARCHING_H #include <vector> #include <boost/dynamic_bitset.hpp> //#include <boost/sort/sort.hpp> #include <iostream> #include <fstream> #include <unordered_map> #include <immintrin.h> #include <cstring> #include ...
common.h
// File : common.h // Created : Sun Aug 12 2018 04:33:51 PM (+0200) // Author : Fabian Wermelinger // Description: Common stuff // Copyright 2018 ETH Zurich. All Rights Reserved. #ifndef COMMON_H_QLCQRKJP #define COMMON_H_QLCQRKJP #ifdef CUBISM_TEST_DOUBLE using MyReal = double; #else using MyReal = float...
cnn.h
/* Copyright (c) 2016, TU Dresden Copyright (c) 2017, Heidelberg University All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright noti...
update_ops_named_CZ.c
#include "constant.h" #include "update_ops.h" #include "utility.h" #ifdef _OPENMP #include <omp.h> #endif #ifdef _MSC_VER #include <intrin.h> #else #include <x86intrin.h> #endif //void CZ_gate_old_single(UINT control_qubit_index, UINT target_qubit_index, CTYPE *state, ITYPE dim); //void CZ_gate_old_parallel(UINT con...
sort.mp.c
#include "../include/util.h" void sort(int *data, int size) { for(int i = 0, j = 0; i < size; i++) { int minor = INT_MAX; #pragma omp parallel for reduction(min:minor) for(j = i; j < size; j++) { minor = data[j]; j = j; } int aux = data[i]; da...
GB_subassign_19.c
//------------------------------------------------------------------------------ // GB_subassign_19: C(I,J)<!M,repl> += scalar ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http://suitesparse...
_hypre_utilities.h
/*** DO NOT EDIT THIS FILE DIRECTLY (use 'headers' to generate) ***/ #ifndef hypre_UTILITIES_HEADER #define hypre_UTILITIES_HEADER #include "HYPRE_utilities.h" #ifdef HYPRE_USING_OPENMP #include <omp.h> #endif #ifdef __cplusplus extern "C" { #endif /****************************************************************...
EwaldRef.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2019 QMCPACK developers. // // File developed by: Jaron T. Krogel, krogeljt@...
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...
GB_unop__exp2_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
kdtree_flann.h
/* kdtree_flann.h * * Author: Fabian Meyer * Created On: 09 Nov 2018 */ #ifndef KNN_KDTREE_FLANN_H_ #define KNN_KDTREE_FLANN_H_ #include "knn/matrix.h" #include <flann/flann.hpp> namespace knn { /** Wrapper class of FLANN kdtrees for the use with Eigen3. */ template<typename Scalar, typename ...
pzgeswp.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma_async.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include "plasma_types.h" #include <plasma_core_blas.h> ...
8966.c
// this source is derived from CHILL AST originally from file '/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c' as parsed by frontend compiler rose void kernel_fdtd_2d(int tmax, int nx, int ny, double ex[2000 + 0][2600 + 0], double ey[2000 + 0][2600 + 0], doub...
SGemmR_NT.h
#pragma once #include <arm_neon.h> namespace MAI { namespace Test { template<bool rowMajor, bool transA, bool transB> void sgemm(int M, int N, int K, float alpha, const float* A, int lda, const float* B, int ldb, float beta, float* C, int ldc); template<bool rowMajor, bool tra...
sieve.c
/* Tempo - Sequencial 5761455 real 0m3.999s user 0m3.918s sys 0m0.068s 5761455 real 0m4.013s user 0m3.918s sys 0m0.076s 5761455 real 0m4.179s user 0m4.061s sys 0m0.091s 5761455 real 0m3.981s user 0m3.891s sys 0m0.076s 5761455 real 0m4.311s user 0m4.212s sys 0m0.088s 5761455 real 0m4.318s user 0m4.114s sys 0m0.179...
scamax.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/dzamax.c, normal z -> c, Fri Sep 28 17:38:01 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
BaseStrainMapping.h
/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * * ...
problem.sine.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
sgm_stereo.h
/**@copyright 2016 Horizon-Robotics Inc. All Rights Reserved. * @author Degang Yang (degang.yang@horizon-robotics.com) * * @file sgm_stereo.h * @brief SGM based stereo for autonomous driving platform * recursive filtering based post-refinement * 1, this implementation is not intended for realtime app...
GB_binop__minus_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-...
omp_ex_26.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...