source
stringlengths
3
92
c
stringlengths
26
2.25M
zpotrs.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 ...
zeroslike_ref.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...
threadpool.h
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
matrix_s.h
// // matrix.cpp // Define Class for Vector & Matrix // // Created by Yoshi Miyazaki on 2015/04/11. // #include "matrix.h" /*---------------------------------------- Vector Types Constructers ---------------------------------------*/ template<class T> Vector1d<T>::Vector1d(){ n = 0; v = 0; } template<clas...
trmm_x_csr_u_lo_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_CSR *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT...
GB_subassign_03.c
//------------------------------------------------------------------------------ // GB_subassign_03: C(I,J) += scalar ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier: Ap...
GB_unop__identity_uint32_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...
vision.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
veccopy_kernels.c
#include <stdio.h> #include <omp.h> int main() { int N = 100000; int a[N]; int b[N]; int c[N]; int i; for (i=0; i<N; i++) a[i]=0; for (i=0; i<N; i++) b[i]=i; for (i=0; i<N; i++) c[i]=i; #pragma omp target parallel for { for (int j = 0; j< N; j++) a[j]=b[j]; } #pragma om...
GB_unaryop__ainv_fp64_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...
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
ttables.h
// Copyright 2013 by Chris Dyer // // 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 to i...
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...
pr36802-2.c
/* PR middle-end/36802 */ extern void abort (void); int q; int foo (int k) { int i = 6, n = 0; omp_set_dynamic (0); omp_set_nested (1); #pragma omp parallel shared (i) num_threads (3) { int l; if (omp_get_num_threads () != 3) #pragma omp atomic n += 1; else #pragma omp for fo...
convolution_sgemm_pack4to8.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 ...
2.c
#include <stdlib.h> #include <stdio.h> #include <mpi.h> #include <omp.h> int main(int argc, char **argv) { int size,rank; char processor_name[MPI_MAX_PROCESSOR_NAME]; int namelen, i; int a[100]; int sum; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD,&size); MPI_Comm_rank(MPI...
3d25pt_var.c
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable 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) >...
solution.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #define Length 1.0 #define Temperature_1 1.0 #define Temperature_2 5.0 int main(int argc, char **argv) { // Время, когда требуется посчитать распределение температуры в стержне double Time = 1.0; // Число разбиений по координате size_t M = 10; ...
trees.c
#include<stdio.h> #include<omp.h> typedef struct Node Node; struct Node { int leaf; float g; int min_samples; int split_ind; float split; Node * left; Node * right; }; Node * get_root(int min_samples) { Node * root = malloc(sizeof(Node)); root->leaf=1; root->min_samples=min_sam...
irbuilder_unroll_partial_factor.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics #ifnd...
SparseProduct.c
#include <stdio.h> #include <stdlib.h> #include <math.h> /// #include "InputOutput.h" #include "ScalarVectors.h" #include "hb_io.h" #include "SparseProduct.h" /*********************************************************************************/ // This routine creates a sparseMatrix from the next parameters // * numR ...
ShrubEnsemble.h
#ifndef SHRUB_ENSEMBLE_H #define SHRUB_ENSEMBLE_H #include <vector> #include <math.h> #include <random> #include <algorithm> #include "Datatypes.h" #include "DecisionTree.h" #include "Losses.h" #include "EnsembleRegularizer.h" #include "TreeRegularizer.h" /** * @brief Scales the given matrix X in-place by the give...
soma_clustering.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // // See the LICENSE file distrib...
admm.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include "admm.h" #include "../util.h" /****************************************************************************** * PRIVATE FUNCTIONS...
bml_copy_dense_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_copy.h" #include "../bml_types.h" #include "bml_allocate_dense.h" #include "bml_copy_dense.h" #include "bml_types_dense.h" #ifdef BML_USE_MAGMA #include "magma_v2.h" #endif #include <complex.h> #include <stdlib.h> #includ...
bound_space_op.h
// ----------------------------------------------------------------------------- // // Copyright (C) The BioDynaMo Project. // All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // // See the LICENSE file distrib...
crunch_parallel.h
long crunch_parallel (int _fd, long _counter[256], int _verbose) { /* the value to return */ long _total_read = 0; /* stat */ struct stat st; bzero (&st, sizeof(st)); fstat (_fd, &st); /* flush counter */ bzero (_counter, 256*sizeof(long)); /* allocate buffer and flush it */ char *_buf = (char *)Malloc (BF...
tally.h
#ifndef OPENMC_TALLIES_TALLY_H #define OPENMC_TALLIES_TALLY_H #include "openmc/constants.h" #include "xtensor/xtensor.hpp" namespace openmc { //============================================================================== // Global variable declarations //===========================================================...
test_schedule.c
#include <math.h> #include <omp.h> #include <stdio.h> #include <string.h> int main() { #pragma omp parallel { omp_sched_t schedule; int chunk_size; #pragma omp parallel for for (int i = 0; i < 1; i++) { if (omp_get_thread_num() == 0) omp_get_schedule(&schedule, &...
fig4.22-single.c
/* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 2009 Sun Microsystems, Inc. All rights reserved. The contents of this file are subject to the terms of the BSD License("BSD")(the "License"). You can obtain a copy of the License at: http://www.opensparc.net/pubs/t1/licenses/BSD+_Lice...
par_mod_lr_interp.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) **************************************...
simple.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #include <time.h> int main(void) { int N=1000*100,n2=30; int i,*a,*b,*c; time_t t1,t2; a=(int*)malloc(N*sizeof(int)); b=(int*)malloc(N*sizeof(int)); c=(int*)malloc(N*sizeof(int)); for(i=0;i<N;i++) {a[i]=i;b[i]=i;} printf("1 passed\...
station_stat.c
#include "station_stat.h" void station_stat_init(station_stat_t* station_stat) { for (int i = 0; i < 2; i++) { station_stat->num_door_opening[i] = 0; station_stat->total_wait_time[i] = 0; station_stat->min_wait_time[i] = 0; station_stat->max_wait_time[i] = 0; station_stat->l...
pr53992.c
/* PR middle-end/53992 */ /* { dg-do compile } */ /* { dg-options "-fgnu-tm -fopenmp" } */ /* { dg-require-effective-target fgnu_tm } */ int main() { long data[10000]; long i, min=10000; for (i=0; i<10000; i++) data[i] = -i; #pragma omp parallel for for (i=0; i<10000; i++) { __tran...
correlation.c
/** * correlation.c This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael....
GB_binop__min_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-...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__ainv_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...
main.c
#include <stdio.h> int main() { #pragma omp parallel { printf("Hello, world!\n"); } return 0; }
GB_unaryop__abs_uint32_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
sha256.c
/* ============================================================================ Name : MPC_SHA256.c Author : Sobuno Version : 0.1 Description : MPC SHA256 for one block only ============================================================================ Modified to fit runSHA256Proof */ #include...
GB_unaryop__lnot_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...
module_bl_mynn_mym_level2_impl.h
#ifndef __MODULE_BL_MYNN_MYM_LEVEL2_IMPL_H__ #define __MODULE_BL_MYNN_MYM_LEVEL2_IMPL_H__ // File version granularity. #ifndef MODULE_BL_MYNN_MYM_LEVEL2_IMPL_VERSION_MAJOR #define MODULE_BL_MYNN_MYM_LEVEL2_IMPL_VERSION_MAJOR 1 #endif #ifndef MODULE_BL_MYNN_MYM_LEVEL2_IMPL_VERSION_MINOR #define MODULE_BL_MY...
mapped_max_pool.h
#ifndef MAPPED_MAX_POOL_H_ #define MAPPED_MAX_POOL_H_ #include <math.h> #include <omp.h> #include <torch/extension.h> #include <limits> #include "common/mapped_max_pool.h" #include "core/resample.h" namespace spherical { namespace cpu { template <typename T> void MappedMaxPool2D(const int num_kernels, torch::Tensor...
GB_unop__isinf_bool_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...
3d25pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
WrapOpenMP.h
/** * @file WrapOpenMP.h * @author F. Gratl * @date 4/20/18 * * @details * Provide non-OpenMP versions of the most common OpenMP function calls, * so that they don't have to be wrapped in ifdef-s every time. * * Proper wrapper and renaming necessary, because of -fopenmp-simd handling of * gcc. * * Extend wh...
DRB076-flush-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...
softmax_layer.c
#include "softmax_layer.h" #include "blas.h" #include "dark_cuda.h" #include "utils.h" #include "blas.h" #include <float.h> #include <math.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #define SECRET_NUM -1234 void softmax_tree(float *input, int batch, int inputs, float temp, tree *hier...
matmul.c
#include <stdlib.h> #include <sys/time.h> #include <stdio.h> #include <math.h> //#define _OPENACCM #ifdef _OPENACCM #include <openacc.h> #endif #ifdef _OPENMP #include <omp.h> #endif #ifndef _N_ #define _N_ 2048 #endif #ifndef _UNROLL_FAC_ #define _UNROLL_FAC_ 16 #pragma openarc #define _UNROLL_FAC_ 16 #endif #ifnde...
conversions.h
#ifndef CONVERSIONS_H #define CONVERSIONS_H #include <stdio.h> #include <stdlib.h> #include <cmath> #include <float.h> #include "omp.h" #include "loewner_declaration.h" #include "morph_color_matrix.h" /* *==============================================================================================================...
gmapper.h
/* * This file should contain extern declarations for global variables in gmapper. * This is the only file that should be included by other modules (seeds, mapping, etc). */ #ifndef _GMAPPER_H #define _GMAPPER_H #ifdef __cplusplus //extern "C" { #endif #include "../gmapper/gmapper-definitions.h" #include "../comm...
ast-dump-openmp-teams-distribute-parallel-for.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(int x) { #pragma omp target #pragma omp teams distribute parallel for for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp targ...
main.c
/* * main.c * * Created on: Jan 13, 2019 * Author: Batuhan Düzgün * OpenMP and OpenMPI Hybrid Architecture */ #include <stdio.h> #include <stdlib.h> #include "mpi.h" #include "omp.h" #define ARRAY_SIZE 10000 #define MASTER 0 #define OFFSET_VALUE_TAG 1 #define DATA_VALUE_TAG 2 float data[ARRAY_SIZE]...
w7_e3c_matvec.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #include "matvec.h" // Indexing function. #define idx(i,j) (i*n + j) int main(int argc, char const *argv[]) { if (argc < 3) { printf("Must provide m and n.\n"); return 1; } int m = atoi(argv[1]); int n = atoi(argv[2]); double...
3d25pt_var.c
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable 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) >...
ejercicio_02.c
/* EJERCICIO 2 * Usando la API(OpenMP) hacer un programa que realice lo siguiente: * - Crear la Matriz A de 50 columnas x 50 filas (50x50), inicializada con valores aleatorios. [✔] * - Realizar la Transpuesta de la Matriz A. ...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__ldexp_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-...
main.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <time.h> #include "omp.h" #include "functions.h" int main (int argc, char **argv) { int Nthreads = atoi(argv[1]);//(int) (argv[1][0] - '0'); omp_set_num_threads(Nthreads); //seed value for the randomizer double seed = clo...
GB_select_phase1.c
//------------------------------------------------------------------------------ // GB_select_count: count entries in eacn vector for C=select(A,thunk) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // htt...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "cuda.h" #include <stdio.h> #include <stdlib.h> #include <string.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { char *path; FILE *file = fopen(filename, "r"); // if(!file) file_error(filename); if...
gsrb.ompsimd.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
dmul_eq_omp.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...
GB_binop__rminus_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
Optimizer.h
/* * Optimizer.h * * Created by Guido Novati on 30.10.18. * Copyright 2018 ETH Zurich. All rights reserved. * */ #pragma once #include <fstream> #include "Network.h" struct MomentumSGD { const Real eta; const Real normalization; // 1/batchSize const Real beta; const Real lambda; MomentumSGD(const ...
GB_unaryop__minv_int16_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
calc_dt_kernel_c.c
/*Crown Copyright 2012 AWE. * * This file is part of CloverLeaf. * * CloverLeaf 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. * * Clo...
declare_mapper_ast_print.c
// RUN: %clang_cc1 -verify -fopenmp -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -include-pch %t -fsyntax-only -verify %s -ast-print | FileCheck %s // RUN: %clang_cc1 -verify -fopenmp-simd -ast-print %s | FileCheck %s // RUN: %clang_cc1 -fopenmp-simd -emit-pch...
GB_unaryop__minv_int16_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
ocp_nlp_sqp_rti.c
/* * Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren, * Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor, * Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan, * Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl * * This file is part o...
linked_omp3_tasks.c
#include <omp.h> #include <stdlib.h> #include <stdio.h> #ifndef N #define N 5 #endif #ifndef FS #define FS 38 #endif struct node { int data; int fibdata; struct node *next; }; struct node *init_list(struct node *p); void processwork(struct node *p); int fib(int n); int fib(int n) { int x, y; if (n < 2) ...
GB_binop__iseq_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-...
GxB_Monoid_terminal.c
//------------------------------------------------------------------------------ // GxB_Monoid_terminal: return the terminal of a monoid (if any) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Lice...
omp_dem_search.h
// // Project Name: Kratos // Last Modified by: $Author: clabra $ // Date: $Date: 2007-03-29 19:37:47 $ // Revision: $Revision: 1.2 $ // // #if !defined(KRATOS_OMP_DEM_SEARCH_H_INCLUDED ) #define KRATOS_OMP_DEM_SEARCH_H_INCLUDED // System includes #include <string> #includ...
bml_allocate.c
#include "bml_allocate.h" #include "bml_introspection.h" #include "bml_logger.h" #include "bml_parallel.h" #include "dense/bml_allocate_dense.h" #include "ellpack/bml_allocate_ellpack.h" #include "ellblock/bml_allocate_ellblock.h" #include "ellsort/bml_allocate_ellsort.h" #include "csr/bml_allocate_csr.h" #ifdef DO_MPI...
MedianImageFilter.h
/* * MIT License * * Copyright (c) 2018-2019 Benjamin Köhler * * 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 rights * to use, c...
GB_unaryop__lnot_int64_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...
distance.h
#pragma once #include <utility> #include <vector> #include <Eigen/Core> #include "deformerConst.h" using namespace Eigen; typedef SparseMatrix<double> SpMat; typedef Triplet<double> T; class Distance { public: std::vector< std::vector<double> > distPts, distTet; // [i,j]-entry is the distance to the i-t...
merge-sort-parallel.c
/* @file prefix-sum-parallel.c * @author Robin Vermes * @author Valentin Laurent * @details parallel merge-sort with openmp */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #define DEFAULT_NUM_THREADS 8 void display(int * t, int length_t) { int i = 0; for (; i < length_t; ++i) { ...
GB_binop__div_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-...
convolution_1x1_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 ...
structure_factors_direct.h
#ifndef CCTBX_XRAY_STRUCTURE_FACTORS_DIRECT_H #define CCTBX_XRAY_STRUCTURE_FACTORS_DIRECT_H #include <cctbx/xray/scattering_type_registry.h> #include <cctbx/xray/hr_ht_cache.h> #include <cctbx/math/cos_sin_table.h> #include <omptbx/omp_or_stubs.h> #define CCTBX_XRAY_STRUCTURE_FACTORS_DIRECT_NO_PRAGMA_OMP namespace c...
DRACC_OMP_034_MxV_wrong_update_yes.c
/* Matrix Vector multiplication with another thread on the host constantly updating the values of a. */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <omp.h> #define C 512 int *a; int *b; int *c; int init(){ for(int i=0; i<C; i++){ for(int j=0; j<C; j++){ b[j+i*C]=1; ...
Singleton.h
/** * Copyright (C) 2007-2011 YU Zhi. All rights reserved. * $Id$ * @file singleton_holder.h * * created on: 2008-04-16 * Author: salmon */ #ifndef SP_SINGLETON_H_ #define SP_SINGLETON_H_ namespace sp { /** @ingroup design_pattern * * @addtogroup singleton Singleton * @{ * * ...
GB_binop__rminus_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
my_sgemm.c
/* * -------------------------------------------------------------------------- * BLISLAB * -------------------------------------------------------------------------- * Copyright (C) 2016, The University of Texas at Austin * * Redistribution and use in source and binary forms, with or without * modification, ar...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
pr39591-1.c
/* PR other/39591 */ /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); int err; int main (void) { #pragma omp parallel { int array[40]; int i; for (i = 0; i < sizeof array / sizeof array[0]; i++) array[i] = 0x55555555; #pragma omp for schedule(dynamic) for (i = 0; i < ...
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...
OpenMPRenderer.h
#ifndef OpenMPRenderer_H #define OpenMPRenderer_H #include "Renderer.h" #include "Cameras/Camera.h" #include "Spectrum/CIE.h" #include <iomanip> //#include <ncurses.h> #include "Util/spectrum.h" #ifdef __APPLE__ #include <omp.h> #elif defined _WIN32 || defined _WIN64 #include <C:/MinGW32/lib/gcc/mingw32/4.7.0/include...
DRB111-linearmissing-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...
OpenMPClause.h
//===- OpenMPClause.h - Classes for OpenMP clauses --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
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...
gost_fmt_plug.c
/* * GOST 3411 cracker patch for JtR. Hacked together during * May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>, * Sergey V. <sftp.mtuci at gmail com>, and JimF * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * Sergey V. <sftp.mtuci at gmail com>, and JimF * and it is he...
GB_binop__min_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...
GB_binop__isne_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-...
rose_foo.c
#if 1 #include "omp.h" void foo1(double o1[],double c[],int len) { int i; #pragma omp parallel for private (i) firstprivate (len) for (i = 0; i <= len - 1; i += 1) { double volnew_o8 = 0.5 * c[i]; o1[i] = volnew_o8; } } #endif #if 1 void goo(double *o1,double *o2,double *a,double *b,double *c,int **...