source
stringlengths
3
92
c
stringlengths
26
2.25M
vpmg.c
/** * @file vpmg.c * @author Nathan Baker * @brief Class Vpmg methods * @ingroup Vpmg * @version $Id$ * @attention * @verbatim * * APBS -- Adaptive Poisson-Boltzmann Solver * * Nathan A. Baker (nathan.baker@pnnl.gov) * Pacific Northwest National Laboratory * * Additional contributing autho...
vednnLinearBackwardData.c
#include "vednnLinearBackwardData.h" #include "vednn-def.h" static inline vednnError_t vednnLinearBackwardData_wrapper( vednnLinearBackwardData_t pFunc, VEDNN_LINEARBKD_ARGS ) { #ifndef VEDNN_USE_OPENMP return pFunc(VEDNN_LINEARBKD_ARGS_LIST); #else if ( __vednn_omp_num_threads == 1 ) { return pFunc(VE...
GB_unaryop__abs_uint16_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
par_lr_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...
timestep.c
/// \file /// Leapfrog time integrator #include "timestep.h" #include <omp.h> #include "CoMDTypes.h" #include "linkCells.h" #include "parallel.h" #include "performanceTimers.h" static void advanceVelocity(SimFlat* s, int nBoxes, real_t dt); static void advancePosition(SimFlat* s, int nBoxes, real_t dt); /// Advan...
GB_binop__pow_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
3d25pt.c
/* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b)...
detector.c
#include "darknet.h" static int coco_ids[] = {1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,27,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,67,70,72,73,74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90}; /** * \brief: 图像检测网络训练函数 * * \pra...
GB_unop__identity_int32_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...
GB_unop__expm1_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...
matvec_double_avx2.c
//matvec.c //Multiplies a matrix by a vector #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/timeb.h> #include <malloc.h> #define N_RUNS 1000 #define N 1200 // read timer in second double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (double) tm.millitm / 100...
GB_reduce_panel.c
//------------------------------------------------------------------------------ // GB_reduce_panel: s=reduce(A), reduce a matrix to a scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-...
GB_unaryop__minv_int32_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...
tentusscher_epi_2004_S0.c
#include <assert.h> #include <stdlib.h> #include "tentusscher_epi_2004_S0.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } SET_ODE_INITIAL_CONDITIONS_CPU(set_...
fixed_version.c
#include<stdio.h> int main(){ int sum = 1; int i; // increase sum by 10 using openmp #pragma omp parallel for private (i) reduction (+: sum) for ( i = 0; i < 10; i++) { sum +=i; } }
rashba_chain.h
/*************************************************************************** * Copyright (C) 2013 by Florian Goth * * fgoth@wthp095 * * * * All rights reserved. * * ...
ddot_kahan_omp_sse_intrin.c
#ifdef __SSE__ #include <stdio.h> #include <math.h> #include <omp.h> #include "immintrin.h" extern double ddot_kahan_sse_intrin(int, const double*, const double*, double*); void ddot_kahan_omp_sse_intrin(int N, const double *a, const double *b, double *r) { double *sum; double *c; int nthreads; #...
GB_binop__lxor_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
GRANSAC.h
#pragma once #include <iostream> #include <cmath> #include <string> #include <random> #include <memory> #include <algorithm> #include <vector> #include <omp.h> #include "AbstractModel.h" namespace GRANSAC { // T - AbstractModel template <class T, int t_NumParams> class RANSAC { private: std::vector<std::share...
GB_unop__identity_bool_int16.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...
explicit_task_thread_num.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> __attribute__ ((noinline)) // workaround for bug in icc void print_task_info_at(int ancestor_level, int id) { #pragma omp critical { int task_type; char buffer[2048]; ompt_data_t *parallel_data; ...
zpbtrf.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.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
2mm.c
/** * This version is stamped on May 10, 2016 * * Contact: * Louis-Noel Pouchet <pouchet.ohio-state.edu> * Tomofumi Yuki <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /* 2mm.c: this file is part of PolyBench/C */ #include <stdio.h> #include <unistd.h> #include <string.h> #include ...
Example_parallel_master_taskloop.1.c
/* * @@name: parallel_master_taskloop.1c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_5.0 */ #include <stdio.h> #define N 100 int main() { int i, a[N],b[N],c[N]; for(int i=0; i<N; i++){ b[i]=i; c[i]=i; } //init #pragma omp parallel #pragma omp master #prag...
ten_tusscher_2004_epi_S3_19.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S3_19.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } //TODO...
GB_binop__lor_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
critical.c
#include <omp.h> int main (void) { int a=0,b=0,c =0; #pragma omp parallel { #pragma omp critical (aaa) a=a+1; #pragma omp critical (bbb) b=b+1; #pragma omp critical c=c+1; } return 0; }
GB_unop__minv_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...
avx512_gemm.h
#pragma once #include "intgemm_config.h" #ifdef INTGEMM_COMPILER_SUPPORTS_AVX512BW #include "interleave.h" #include "kernels.h" #include "multiply.h" #include "types.h" #include <cassert> #include <cstddef> #include <cstdint> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* AVX512 ...
GB_unaryop__minv_uint16_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_unaryop__identity_fp64_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...
starspot.c
/******************************************************************************/ /*** file: starspot.c ***/ /*** first version: 1.0 2006/08/29 X.Bonfils ***/ /*** Centro de Astronomia e Astrofisica da Universidade de Lisboa *...
GB_unaryop__ainv_int32_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
main.c
#include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <assert.h> #include <omp.h> #include <time.h> #include <sys/types.h> #include <unistd.h> #define PLOTTING false // Struct representing a Pixel with RGB values typedef struct { unsigned ...
dscale.c
#include "dscale.h" #include "dzscal.h" fint dscale_(const fnat m[static restrict 1], const fnat n[static restrict 1], double A[static restrict VDL], const fnat ldA[static restrict 1], const fint e[static restrict 1]) { #ifndef NDEBUG if (IS_NOT_VFPENV) return -6; if (*m & VDL_1) return -1; if (IS_NOT_A...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
exact_rhs.c
//-------------------------------------------------------------------------// // // // This benchmark is an OpenMP C version of the NPB BT code. This OpenMP // // C version is developed by the Center for Manycore Programming at Seoul // // Nati...
fib.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <omp.h> #include <sys/time.h> static uint64_t par_res, seq_res; int cutoff_value; #define FIB_NUM_PRECOMP 50 uint64_t fib_results[FIB_NUM_PRECOMP] = { /*{{{*/ 0, 1, 1, 2, 3, 5, 8, ...
backup.c
// DFT Stefano: N = 8000, ser = 5 sec, omp (2 cores, HT) = 2 sec, optimisation = ? // void norm(real_t data[], int_t len, int_t factor); // void setarr(real_t data[], int_t len, real_t value); // void setrnd(real_t arr[], int_t len); // void setsin(real_t arr[], int_t len); // void setdist(real_t arr[], int_t len); /...
fft.ref.c
#include <sys/time.h> #include <time.h> #include <stdio.h> static unsigned long long current_time_ns() { #ifdef __MACH__ clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), c...
fourier.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
diagsm_x_csc_n_col.c
#include "alphasparse/opt.h" #include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_CSC *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy) {//assume A is square ...
cuda-drv.c
// // cuda driver routines in C #include <stdio.h> #include <stdlib.h> #include <math.h> #include <unistd.h> #include <string.h> #include <strings.h> #include <sys/time.h> #ifdef _OPENMP #include <omp.h> #endif #ifdef USE_MPI #include <mpi.h> #else #include "mpi-dummy.h" #endif #include "cuda-drv.h" #include "cudal...
GB_binop__bor_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__identity_int16_fc64.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__abs_fp64_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
convolution_packn_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_binop__first_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
omp-fibonacci.c
#include <stdio.h> #include <omp.h> int f(int n) { int i, j; if (n<2) return n; #pragma omp task shared(i) firstprivate(n) i = f(n-1); #pragma omp task shared(j) firstprivate(n) j = f(n-2); #pragma omp taskwait return i+j; } int main(int argc, char *argv[]) { if (argc ...
nest_lock.c
// RUN: %libomp-compile-and-run | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> int main() { //need to use an OpenMP construct so that OMPT will be initialized #pragma omp parallel num_threads(1) print_ids(0); omp_nest_lock_t nest_lock; printf("%" PRIu64 ": &nest_lock: %lli\n", omp...
laplace.h
#ifndef LAPLACE_H #define LAPLACE_H void laplace(const Storage3D& in, Storage3D& out) { for (int64_t i = 0; i < domain_size; ++i) { for (int64_t j = 0; j < domain_size; ++j) { for (int64_t k = 0; k < domain_height; ++k) { out(i, j, k) = -4.0 * in(i, j, k) + ((in(i - 1, j, k) + in(i + 1, j, k)) + (i...
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...
LAGraph_BF_full.c
//------------------------------------------------------------------------------ // LAGraph_BF_full.c: Bellman-Ford single-source shortest paths, returns tree //------------------------------------------------------------------------------ // LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. // SPDX-...
GB_unaryop__identity_uint16_uint64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
residual.flux.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
blas.c
#include "blas.h" #include "utils.h" #include <math.h> #include <assert.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void reorg_cpu(float *x, int out_w, int out_h, int out_c, int batch, int stride, int forward, float *out) { int b,i,j,k; int in_c = out_c/(stride*stride); ...
wino_conv_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...
rnn_impl.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 ...
DRB099-targetparallelfor2-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...
MatrixProductOpenMP.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <omp.h> #include <time.h> const int MAX = 10; void run(int m, int size, char *name) { // Define my value int B[m][m], C[m * m]; int **A = (int**) malloc(sizeof(int*) * m); int *A_data = (int*) malloc(sizeof(int) * m * m); // Ensure matrix is con...
elgamal_test.c
#include <ristretto_elgamal.h> #include <omp.h> #include <time.h> #include <stdio.h> /* * This executable program loads the key and the map and performs some basic checks. */ int main() { ristretto255_scalar_t sk_1[59]; ristretto255_scalar_t sk_2[59]; ristretto255_point_t pk_1[59]; ristretto255_point_t pk_2[59];...
for-4.c
/* { dg-options "-std=gnu99 -fopenmp" } */ extern void abort (void); #define M(x, y, z) O(x, y, z) #define O(x, y, z) x ## _ ## y ## _ ## z #define F taskloop #define G taskloop #define S #define N(x) M(x, G, normal) #include "for-2.h" #undef S #undef N #undef F #undef G #define F taskloop simd #define G taskloop_s...
miniblas.kernel_runtime.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #include "local_header.h" #include "openmp_pscmc_inc.h" #include "miniblas.kernel_inc.h" int openmp_blas_sum_init (openmp_pscmc_env * pe ,openmp_blas_sum_struct * kerstr ){ return 0 ;} void openmp_blas_sum_get_struct_len (size_t * len ){ ((len)[0] = sizeof(...
BlockCorr.c
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "list.h" #include "BlockCorr.h" // compute pearson correlation coefficient between time series at positions i1 and i2 in d (of length l) // NOTE: result may be nan, if the variance of any of the time series is zero, or if // any of the...
GB_binop__minus_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...
declare_mapper_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s int temp; // expected-note {{'temp' declared here}} struct vec { // expected-note {{definition of 'struct vec' is not complete until the cl...
stepper.c
#include "stepper.h" #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <stdbool.h> #include <omp.h> #include <stdio.h> #define BLOCK_SIZE 4 //ldoc on /** * ## Implementation * * ### Structure allocation */ central2d_t* central2d_init(float w, float h, int nx, int ny, ...
core_strtri.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_ztrtri.c, normal z -> s, Fri Sep 28 17:38:24 2018 * **/ #include <plasma_core_blas.h> #include "pla...
1_parallel_push_pop_stack.c
/* Program : 1 Author : Anish Topic : Write a C program using OpenMP features to create two parallel threads. The first thread should push the first ‘N’ natural numbers into a stack in sequence, and the second thread should pop the numbers from the stack. */ #include<stdio.h> #in...
GridInit.c
#include "XSbench_header.h" #ifdef MPI #include<mpi.h> #endif GridPoint * generate_hash_table( NuclideGridPoint ** nuclide_grids, long n_isotopes, long n_gridpoints, long hash_bins ) { printf("Generating Hash Grid...\n"); #ifdef HPE_MMAP GridPoint * energy_grid = (GridPoint *)mmap_wrapper...
Stmt.h
//===--- Stmt.h - Classes for representing statements -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
paraGraph.h
#ifndef __PARAGRAPH_H__ #define __PARAGRAPH_H__ #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <omp.h> #include "vertex_set.h" #include "graph.h" #include "mic.h" /* * edgeMap -- * * Students will implement this function. * * The input argument f is a class with the f...
fSENSE_MEX.c
/************************************************************************** MEX function to compute the approximate gradient of the absolute value Author: R. Marc Lebel Contact: mlebel@gmail.com Date: 11/2010 Useage: imgS = absgradMEX(img,sens) Input: img: numeric array (single/double; real/complex) sens:...
GB_binop__times_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-...
bins_dynamic_mpi.h
// // Project Name: Kratos // Last Modified by: $Author: pooyan $ // Date: $Date: 2007-03-27 17:02:19 $ // Revision: $Revision: 1.1.1.1 $ // // #if !defined(KRATOS_BINS_DYNAMIC_MPI_CONTAINER_H_INCLUDE) #define KRATOS_BINS_DYNAMIC_MPI_CONTAINER_H_INCLUDE #include "mpi.h" #i...
npdot.c
#include <stdlib.h> #include <string.h> //#include <omp.h> #include "config.h" #include "vhf/fblas.h" #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) #define MAX(X,Y) ((X) > (Y) ? (X) : (Y)) /* * numpy.dot may call unoptimized blas */ void NPdgemm(const char trans_a, const char trans_b, const in...
main.c
/*-----------------------------------------------------------------------*/ /* Program: STREAM */ /* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */ /* Original code developed by John D. McCalpin */ /* Programm...
BlockMatching_private_main.h
#include <algorithm> #include <cfloat> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <new> #include <stdexcept> #if defined(_OPENMP) #include <omp.h> #endif // ----- Algorithm ----- template <class T> void BlockMatching<T>::block_matching(const int search_range, const double coeff...
convolution_3x3_pack4to1.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 ...
ex03.c
/* Copyright (c) 2019 CSC Training */ /* Copyright (c) 2021 ENCCS */ #include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif int main() { int num_devices = omp_get_num_devices(); printf("Number of available devices %d\n", num_devices); #pragma omp target #pragma omp teams num_teams(2) thread_limit(3) #...
CALPHADConcSolverBinaryThreePhase.h
#ifndef included_CALPHADConcSolverBinaryThreePhase #define included_CALPHADConcSolverBinaryThreePhase #include "NewtonSolver.h" #include "datatypes.h" namespace Thermo4PFM { class CALPHADConcSolverBinaryThreePhase : public NewtonSolver<3, CALPHADConcSolverBinaryThreePhase, JacobianDataType> { public: #i...
GB_unaryop__abs_uint16_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...
feature_group.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_FEATURE_GROUP_H_ #define LIGHTGBM_FEATURE_GROUP_H_ #include <LightGBM/bin.h> #include <LightGBM/meta.h> #include <LightGBM/utils/ra...
ballAlgOMP.c
#include "../lib/msort.h" #include "ballAlg.h" #include "pointArith.h" #include <stdlib.h> extern int nDims; int buildTreeOMP(double **points, long nPoints, int nThreads) { if (nPoints == 0) return -1; double *center = (double *) mallocSafe(sizeof(double) * nDims); if (nPoints == 1) { copy(points[0], cent...
morn_matrix.c
/* Copyright (C) 2019-2020 JingWeiZhangHuai <jingweizhanghuai@163.com> Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
GB_binop__lor_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
par_relax_more.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) **************************************...
omp_task_depend_resize_hashmap.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run #include<omp.h> #include<stdlib.h> #include<string.h> // The first hashtable static size is 997 #define NUM_DEPS 4000 int main() { int *deps = calloc(NUM_DEPS, sizeof(int)); int i; int failed = 0; #pragma omp parallel #pragma omp mas...
GB_unop__identity_uint32_uint32.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_binop__pow_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...
perftest.c
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2014. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2015. ALL RIGHTS RESERVED. * Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #...
ast-dump-openmp-section.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(void) { #pragma omp sections { #pragma omp section ; } } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl...
Par-34-ParSectionsNoWait.c
/* * This test case is currently not supported in ROSE. * 09/27/2019 * * It is rejected for the nowait clause at the the section construct. */ int main(int argc, char **argv) { int a[4] = {1,2,3,4}; int b[4] = {0, 0, 0, 0}; #pragma omp parallel { #pragma omp sections nowait { #pragma omp section ...
GB_binop__ne_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
clip.c
#include "msghandling.h" #include "zgl.h" /* fill triangle profile */ /* #define PROFILE */ #define CLIP_XMIN (1 << 0) #define CLIP_XMAX (1 << 1) #define CLIP_YMIN (1 << 2) #define CLIP_YMAX (1 << 3) #define CLIP_ZMIN (1 << 4) #define CLIP_ZMAX (1 << 5) static void gl_transform_to_viewport_clip_c(GLVertex* v) { /* MA...
GB_unop__round_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...
ktensor.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...
feast_condition_number_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // #if !defined(KRATOS_...
tinyexr.h
#ifndef TINYEXR_H_ #define TINYEXR_H_ /* Copyright (c) 2014 - 2020, Syoyo Fujita and many contributors. 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 th...