source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_unaryop__lnot_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
dynamic_module_load.c
// RUN: %libomptarget-compile-aarch64-unknown-linux-gnu -DSHARED -fPIC -shared -o %t.so && %clang %flags %s -o %t-aarch64-unknown-linux-gnu -ldl && %libomptarget-run-aarch64-unknown-linux-gnu %t.so 2>&1 | %fcheck-aarch64-unknown-linux-gnu // RUN: %libomptarget-compile-powerpc64-ibm-linux-gnu -DSHARED -fPIC -shared -o %...
mlp_mnist_f32.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
DRB063-outeronly1-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...
THTensorMath.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "internal/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 #ifdef __GNUC__ #define PRAGMA(P) _P...
GB_binop__pow_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-...
o3logon_fmt_plug.c
/* * This software was written by JimF jfoug AT cox dot net * in 2016. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (c) 2016 JimF ...
GB_unop__atanh_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_unaryop__ainv_int64_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...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__band_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-...
3d7pt.c
/* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b) ...
GB_select_phase2.c
//------------------------------------------------------------------------------ // GB_select_phase2: C=select(A,thunk) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http://suitesparse.com See GraphB...
sphgrid.h
#ifndef SPHGRID_H #define SPHGRID_H #include <omp.h> #include <vector> #include <map> #include <unordered_map> #include <cmath> #include <algorithm> #include <glm/vec3.hpp> #include <glm/mat3x3.hpp> #include <glm/geometric.hpp> #include <glm/gtx/scalar_multiplication.hpp> #include "sphparticle.h" #include "sphmap.h"...
par_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...
BsplineFunctor.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: John R. G...
ZBinDumper_MPI.h
/* * ZBinDumper_MPI.h * Cubism * * Created by Panos Hadjidoukas on 3/20/14. * Copyright 2014 CSE Lab, ETH Zurich. All rights reserved. * */ #pragma once #include <iostream> #include <cstdio> #include <vector> #include <string> #include <cassert> #include <sstream> #include "BlockInfo.h" #include "Lossless...
mat_mul_p4a_10000.c
/* * file for mat_mul.c */ #include "./mat_mul.h" #include "./size.h" void mat_mul(int *a, int *b, int *c); void mat_mul(int *a, int *b, int *c) { int i, j, k, t; #pragma omp parallel for private(j, t, k) for(i = 0; i <= 9999; i += 1) for(j = 0; j <= 9999; j += 1) { c[i*10000+j] = 0; fo...
GB_unop__identity_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
problem0.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
smul_glv4.c
#ifdef DEBUG_MODE #include <stdio.h> #include "kernel.h" #else #include "_core.h" #endif #include "multiprecision.h" #include "multiprecision_stack.h" #include "finite128.h" static inline void phi(DIV_hec_fp_2e128mc D3, const DIV_hec_fp_2e128mc D1, const CNS_hec_fp_2e128mc_glv4 cn){ fp_mul_2e128mc_x8664...
GB_unaryop__minv_bool_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...
omp_barrier.c
<ompts:test> <ompts:testdescription>Test which checks the omp barrier directive. The test creates several threads and sends one of them sleeping before setting a flag. After the barrier the other ones do some littel work depending on the flag.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:dire...
thread_pool.h
/** * Non-metric Space Library * * Main developers: Bilegsaikhan Naidan, Leonid Boytsov, Yury Malkov, Ben Frederickson, David Novak * * For the complete list of contributors and further details see: * https://github.com/searchivarius/NonMetricSpaceLib * * Copyright (c) 2013-2018 * * This code is released unde...
GB_unaryop__lnot_bool_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
hybrid_report_mask.c
/* hybid,id report_mask collects and prints the masks from each rank. 1.) Get mask for each rank (and integer array -- no hex). Root gathers masks and prints them 2.) Get node name from each rank. Determine and use maximum length of node name 3.) Call print_mask. */ #include <s...
gemm.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> #include "gemm.h" #include <time.h> #include <windows.h> //#include <polybench.h> /** * This version is stamped on May 10, 2016 * * Contact: * Louis-Noel Pouchet <pouchet.ohio-state.edu> * Tomofumi Yuki <tomofumi.yuki.f...
papiw_util.h
#ifndef PAPIWUTIL #define PAPIWUTIL #ifndef NOPAPIW #include <stdlib.h> #include <stdio.h> #include <vector> #include <iostream> #include <algorithm> #include <papi.h> #include <omp.h> #include <pthread.h> /** * PapiWrapper abstract class * * This interface defines the public interface and provides default functi...
mssql12_fmt_plug.c
/* Modified in August, 2012 by Dhiru Kholia (dhiru at openwall.com) for MS SQL 2012 * * This software is Copyright (c) 2010 bartavelle, <bartavelle at bandecon.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 modi...
libperf.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2019. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015-2016. ALL RIGHTS RESERVED. * Copyright (C) ARM Ltd. 2017. AL...
tiling-2.c
/* matmul.c : Matrix Multiplication with tiling for openmp4 example */ #include <stdlib.h> #include <math.h> #define BLOCK_SIZE 16 /* #define BLOCK_SIZE 32 */ #define NSECPERSEC 1000000000L typedef struct { int width; int height; int stride; int hpad; float* elements; } Matrix; /* Correctly ex...
omp-low.c
/* Lowering pass for OpenMP directives. Converts OpenMP directives into explicit calls to the runtime library (libgomp) and data marshalling to implement data sharing and copying clauses. Contributed by Diego Novillo <dnovillo@redhat.com> Copyright (C) 2005, 2006 Free Software Foundation, Inc. This file ...
chain_access_omp.c
// RUN: ${CATO_ROOT}/src/scripts/cexecute_pass.py %s -o %t // RUN: diff <(mpirun -np 1 %t) %s.reference_output #include <stdlib.h> #include <stdio.h> #include <omp.h> void use_pointer(int * p, int x) { *p = x; } int main() { int* ptr = (int*)malloc(sizeof(int)); *ptr = 0; #pragma omp parallel { ...
rt_dlange.c
#include "runtime.h" void RT_CORE_dlange(Quark *quark, Quark_Task_Flags *task_flags, int norm, int M, int N, const double *A, int LDA, int szeA, int szeW, double *result) { plasma_context_t *plasma; plasma = plasma_context_self(); if (plasma->runt...
GB_binop__eq_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-...
deconvolution_4x4.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 ...
irbuilder_for_unsigned.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -no-opaque-pointers -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=45 -x c++ -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected...
loops.c
#include <stdio.h> #include <math.h> #define N 729 #define reps 1000 #include <omp.h> double a[N][N], b[N][N], c[N]; int jmax[N]; void init1(void); void init2(void); void runloop(int); void loop1chunk(int, int, int*); void loop2chunk(int, int,int*); void valid1(void); void valid2(void); int main(int argc, c...
bshot_bits.h
#ifndef BSHOT_BITS_H #define BSHOT_BITS_H #include <bshot_headers_bits.h> template< typename T > T minVect(const T *v, int n, int *ind=NULL) { assert(n > 0); T min = v[0]; if (ind != NULL) *ind = 0; for (int i=1; i<n; i++) if (v[i] < min) { min = v[i]; if (ind != NULL)...
ast-dump-openmp-ordered.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one() { #pragma omp ordered ; } void test_two(int x) { #pragma omp for ordered for (int i = 0; i < x; i++) ; } void test_three(int x) { #pragma omp f...
simd-12.c
/* { dg-do run } */ /* { dg-additional-options "-msse2" { target sse2_runtime } } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ int main () { int k = 0, i, s = 0; #pragma omp parallel #pragma omp for simd linear(k : 3) reduction(+: s) schedule (static, 16) for (i = 0; i < 128; i++) { ...
CB_PackingVectorNode.h
#ifndef _CB_PACK_V_NODE_H_ #define _CB_PACK_V_NODE_H_ /* ################################################################################### # # CBrick # # Copyright (c) 2017-2020 Research Institute for Information Technology(RIIT), # Kyushu University. All rights reserved. # ######################...
DiracMatrix.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: // // Fi...
wbb3_fmt_plug.c
/* WoltLab Burning Board 3 (WBB3) cracker patch for JtR. Hacked together during * May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution...
ch_common.c
#define MAIN #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <assert.h> #include "ch_common.h" #include "cholesky.h" #include "mpi-detach.h" #include "../timing.h" static void get_block_rank(int *block_rank, int nt); void omp_potrf(double * const A, int ts...
output.h
#pragma once #include <gms/common/types.h> #include <omp.h> #include "../sequential/output.h" #include <gms/third_party/robin_hood.h> #include <shared_mutex> namespace GMS::KCliqueStar::Par { using Seq::ListOutput; using OutputMode = Seq::OutputMode; template <class TValueType, OutputMode TOutputMode, in...
random.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdbool.h> #include <string.h> #include <omp.h> #ifndef TOTAL_SEATS #define TOTAL_SEATS 20 #endif #ifndef TOTAL_THREADS #define TOTAL_THREADS 4 #endif int randomAssignment() { return rand() % TOTAL_SEATS; } int main(int argc, char **argv) { ...
GB_unop__identity_fc32_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...
panama_fmt_plug.c
/* Panama cracker patch for JtR. Hacked together during May of 2013 by Dhiru * Kholia <dhiru at openwall.com>. * * This software is Copyright (c) 2013 Dhiru Kholia <dhiru at openwall.com> and * it is hereby released to the general public under the following terms: * * Redistribution and use in source and binary f...
GB_unop__sin_fp64_fp64.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...
broadcast_reduce-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 ...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- 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 // //===---------------------------...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
GB_binop__second_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-...
sphkmeans.c
/*! \file \brief A parallel spherical k-means program \date Started 4/20/2013 \author George */ #include <GKlib.h> #include <bdmpi.h> #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <unistd.h> /**************************************************************************/ /* data struct...
watchpoint_support.c
// // WatchPointDriver.cpp // // // Created by Milind Chabbi on 2/21/17. // // #if !defined(_GNU_SOURCE) #define _GNU_SOURCE #endif #include <asm/unistd.h> #include <errno.h> #include <fcntl.h> #include <linux/hw_breakpoint.h> #include <linux/perf_event.h> #include <linux/kernel.h> #include <signal.h> #include <stdl...
omp_array.c
/****************************************************************************** * * FILE: omp_array.c * * DESCRIPTION: * * Array addition - C/C++ Version * * This is a simple array adition running with omp * * AUTHOR: Victor Rodriguez * * LAST REVISED: 04/06/05 * *******************************************...
lu.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - LU This benchmark is an OpenMP C version of the NPB LU code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
reduce_demo.c
//------------------------------------------------------------------------------ // GraphBLAS/Demo/Program/reduce_demo: reduce a matrix to a scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
GB_unaryop__ainv_int8_fp64.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_bitmap_assign_A_whole_template.c
//------------------------------------------------------------------------------ // GB_bitmap_assign_A_whole_template: traverse A for bitmap assignment into C //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved....
GB_unop__identity_uint8_uint32.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...
exchange_boundary.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
main.c
/* #define _XOPEN_SOURCE 500 */ #ifndef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <inttypes.h> #include <limits.h> #ifndef SIZE_MAX #define SIZE_MAX (~(size_t)0) #endif #ifdef _OPENMP #include <omp.h> #endif /* for ope...
serial_tree_learner.h
#ifndef LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #include <LightGBM/tree_learner.h> #include <LightGBM/utils/random.h> #include <LightGBM/utils/array_args.h> #include <LightGBM/dataset.h> #include <LightGBM/tree.h> #include "feature_histogram.hpp" #include "spli...
trisolv.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
sample_task_multiple_producer.c
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * See LICENSE.txt in top-level directory. */ #include <omp.h> #include <stdio.h> #include <sys/time.h> int main(int argc, char * argv[]) { int i,num=(argc>1)?atoi(argv[1]):100; int nthreads; struct timeval t_start, t_end; double t...
problem.fv.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
game.c
/* * Copyright (C) 2009 Raphael Kubo da Costa <kubito@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version....
direct_task.c
//===-- direct_task.c - Task example with code outlining shown ----*- C -*-===// // // Part of the LOMP 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 // //===---------------------------...
gm_bfs_template.h
#ifndef GM_BFS_TEMPLATE_H #define GM_BFS_TEMPLATE_H #include <omp.h> #include <string.h> #include <map> #include <set> #include "gm_graph.h" #include "gm_atomic_wrapper.h" #include "gm_bitmap.h" // todo: consideration for non small-world graph template<typename level_t, bool use_multithread, bool has_navigator, bool...
GB_unaryop__minv_uint8_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...
lfmm3d_fin.c
#include "stdlib.h" #include "stdio.h" #include "math.h" #include "lfmm3d_c.h" #include "complex.h" #include "cprini.h" #include <omp.h> #include <string.h> #include <sys/time.h> double get_wtime_sec() { double sec; struct timeval tv; gettimeofday(&tv, NULL); sec = tv.tv_sec + (double) tv.tv_usec / 10...
GB_unaryop__ainv_int16_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...
norm2.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
GB_binop__bshift_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-...
diagmm_x_dia_u_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *...
cones.c
#include "cones.h" #define CONE_RATE (2) #define CONE_TOL (1e-8) #define EXP_CONE_MAX_ITERS (100) #ifdef LAPACK_LIB_FOUND /* underscore for blas / lapack, single or double precision */ #ifdef NOBLASUNDERSCORE #ifndef FLOAT #define BLAS(x) d ## x #else #define BLAS(x) s ## x #endif #else #ifndef FLOAT #define BLAS(x) ...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
cloudsubtractor.h
#ifndef CLOUDSUBTRACTOR_H #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_consensus/model_types.h> #include <pcl/segmentation/sac_segmentation.h> #include <pcl/filters/voxel_grid.h> #include <pcl/filters/extract_indices.h> #include <pcl/kdtree...
GB_subref_phase0.c
//------------------------------------------------------------------------------ // GB_subref_phase0: find vectors of C = A(I,J) and determine I,J properties //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. ...
gemm.c
#include "gemm.h" #include "utils.h" #include "cuda.h" #include <stdlib.h> #include <stdio.h> #include <math.h> void gemm_bin(int M, int N, int K, float ALPHA, char *A, int lda, float *B, int ldb, float *C, int ldc) { int i,j,k; for(i = 0; i < M; ++i){ for(k = 0...
rose_scalar_output.c
/* * Scalar-to-scalar output dependencies * */ #include "omp.h" int a[100]; // A private case void foo2() { int i; int tmp; #pragma omp parallel for private (tmp,i) for (i = 0; i <= 99; i += 1) { tmp = a[i] + i; } } // A lastprivate case void foo() { int i; int tmp; #pragma omp parallel for ...
TransferOP.h
/* * TransferOP.h * * Created on: Jul 20, 2016 * Author: mason */ #ifndef TransferOP_H_ #define TransferOP_H_ #include "Param.h" #include "MyLib.h" #include "Node.h" #include "Graph.h" class TransferParams { public: vector<Param> W; PAlphabet elems; int nVSize; int nInSize; int nOutS...
cg.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - CG This benchmark is an OpenMP C version of the NPB CG code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
DRB095-doall2-taskloop-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
fft.c
/* Copyright 2013-2014. The Regents of the University of California. * Copyright 2016-2018. Martin Uecker. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2011-2018 Martin Uecker <martin.uecker@med.uni-goettingen.de> * 201...
GB_unop__identity_bool_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...
use_memory.c
/* * This is just a test, to do a sanity check * on the actual peak_memusage * $Id$ * */ #include <stdio.h> /* print */ #include <stdlib.h> /* malloc */ #include <unistd.h> /* optarg */ #ifdef COMPILE_MPI #include <mpi.h> #endif #define MAX_SIZE 2147483647 #define DEFAULT_SIZE 1000000 #define MAX_REPEAT 100...
vertex.c
// ----------------------------------------------------------------------------- // // "00_AccelGraph" // // ----------------------------------------------------------------------------- // Copyright (c) 2014-2019 All rights reserved // ----------------------------------------------------------------------------- ...
elemwise_binary_op.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 ...
prefixspan.h
//######################################################################## //## Copyright 2019 Da Yan http://www.cs.uab.edu/yanda //## //## Licensed under the Apache License, Version 2.0 (the "License"); //## you may not use this file except in compliance with the License. //## You may obtain a copy of the License at /...
setfeenv.c
#ifndef CRAY # ifdef NOUNDERSCORE # define SETFEENV setfeenv # else # ifdef F2CSTYLE # define SETFEENV setfeenv__ # else # define SETFEENV setfeenv_ # endif # endif #endif #include <fenv.h> #include <stdio.h> void SETFEENV() { fenv_t envp; int stat; #ifdef _OPENMP stat = fegetenv(&envp); /...
eavlCombinedTopologySparseMapOp.h
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #ifndef EAVL_COMBINED_TOPOLOGY_SPARSE_MAP_OP_H #define EAVL_COMBINED_TOPOLOGY_SPARSE_MAP_OP_H #include "eavlCUDA.h" #include "eavlCellSet.h" #include "eavlCellSetExplicit.h" #include "eavlCellSetAllStructured.h" #include "eavlDataSet.h" #i...
looptc_c1.c
#include <string.h> void deinterleave(char *page, char *transposed, const int ntabs, const int nchannels, const int ntimes, const int padded_size) { int tab; for (tab = 0; tab < ntabs; tab++) { int time; for (time = 0; time < ntimes; time++) { // build temporary array containing a complete channel ...
hdp.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <float.h> #include <inttypes.h> #include "hdp.h" #include "hdp_math_utils.h" #include "sonLib.h" #include "ranlib.h" #define N_IG_NUM_PARAMS 4 #ifndef MINUS_INF #define MINUS_INF -0.5 * DBL_MAX #endif #ifndef M_PI #define M_PI 3.1415926535897932384626...
par_csr_matrix.c
/*BHEADER********************************************************************** * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * Written by Ulrike Yang (yang11@llnl.gov) et al. CODE-LLNL-738-322. * This file is part of AMG. See files READ...
BuildSsdIndex.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include <unordered_set> #include <string> #include <memory> #include <vector> #include <set> #include <float.h> #include "inc/SSDServing/IndexBuildManager/CommonDefines.h" #include "inc/SSDServing/VectorSearc...
bt_single.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - BT This benchmark is an OpenMP C version of the NPB BT code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
PolynomialFunctor3D.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: Jeongnim ...