source
stringlengths
3
92
c
stringlengths
26
2.25M
hd_joint_probability_generator_inl.h
/* * * Copyright (c) 2014, Nicola Pezzotti (Delft University of Technology) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above ...
test.c
/****************************************************************************** * FILE: omp_hello.c * DESCRIPTION: * OpenMP Example - Hello World - C/C++ Version * In this simple example, the master thread forks a parallel region. * All threads in the team obtain their unique thread number and print it. * The m...
vecAdd_deadlock.c
/****************************************************************************** * FILE: omp_bug5.c * DESCRIPTION: * Using SECTIONS, two threads initialize their own array and then add * it to the other's array, however a deadlock occurs. * AUTHOR: Blaise Barney 01/29/04 * LAST REVISED: 04/06/05 *******************...
hermv_c_dia_n_lo_trans.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include <stdlib.h> alphasparse_status_t ONAME(const ALPHA_Complex alpha, const ALPHA_SPMAT_DIA *A, const ALPHA_Complex *x, ...
4.c
#include <stdlib.h> #include <stdio.h> #include <omp.h> #include <math.h> int main() { FILE *in = fopen("4_in.txt", "r"); FILE *out = fopen("4_out.txt", "w"); int n; fscanf(in, "%d", &n); double *v, *v2; v = (double*) calloc(n, sizeof(double)); v2 = (double*) calloc(n, sizeof(double))...
pyfr_driver_asp_reg.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
Metric.h
// // Created by Jin Zhu on 2020/2/18. // // #define R_BUILD #ifndef SRC_METRICS_H #define SRC_METRICS_H #include "Data.h" #include "Algorithm.h" #include "model_fit.h" // #include "path.h" #include <vector> #include <random> #include <algorithm> #include "utilities.h" template <class T1, class T2, class T3, class T4...
SparseDenseProduct.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2015 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You c...
DCSRTile.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
GB_binop__rminus_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
target_teams_distribute_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute'}} #pragma omp target teams distribute // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute'}} #pragma omp target teams distribute foo void t...
GB_unaryop__minv_uint32_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...
chkompt.c
// RUN: %libomp-compile && env OMP_CANCELLATION=true %libomp-run | %sort-threads | FileCheck %s #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <omp-tools.h> #include "chkompt.h" int nfails = 0; void (*skew_delay_ptr)(int) = ske...
residualbased_predictorcorrector_velocity_bossak_scheme_turbulent.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // #if !defined(KRATOS_RESIDUALBAS...
residualbased_block_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // ...
wserver.c
/* MIT License Copyright (c) 2017 Emanuele Giona 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, copy, modify, merge, ...
FRICP.h
#ifndef FRICP_H #define FRICP_H #include "ICP.h" #include <AndersonAcceleration.h> #include <eigen/unsupported/Eigen/MatrixFunctions> #include "median.h" #include <limits> #define SAME_THRESHOLD 1e-6 #include <type_traits> template<class T> typename std::enable_if<!std::numeric_limits<T>::is_integer, bool>::type almo...
core_chegst.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_zhegst.c, normal z -> c, Fri Sep 28 17:38:23 2018 * **/ #include <plasma_core_blas.h> #include "pla...
Ant-Colony.c
/* Author: Makarios Christakis Description: Parallel implementation of the ant colony optimization algorithm for the travelling salesman problem. The criterion by which the algorithm converges is the %change in the average distance travelled by all the ant agents. For the parameters bel...
tp3.c
/////////////////////////////// 8INF854 - ARCHITECTURES PARRALLELES - DEVOIR #3 //////////////////////////////////////// ///////////////////////////// tri tableau MPI - Corentin RAOULT - Adrien Cambillau ///////////////////////////////////// //http://www.cac.cornell.edu/vw/MPIoneSided/exercise.aspx #include <stdio.h...
DRB062-matrixvector2-orig-no.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
window.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
stream.c
// Copyright 2009-2018 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2018, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
key_recovery.c
/******************************************************************** * Practical key-recovery attack against FlexAEAD-64 * Variant attack applicable to FlexAE * * Written in 2020 by Gaëtan Leurent <gaetan.leurent@inria.fr> * * To the extent possible under law, the author(s) have dedicated all * copyright and r...
Crivo_Openmp.c
#include <math.h> #include <omp.h> #include "lib/Lista.c" lista_t* crivo(int nThreads, int MAX); /* Compilar: gcc -Wall Crivo_Openmp.c -o Crivo_Openmp -fopenmp -lm; Entrada: int nThread, int FIM; nThread é o númerod e threads a serem utilizadas; FIM é o número limite a ser verificado os números primos de 2 até ...
singleModificado.c
#include <stdio.h> #include <omp.h> int main() { int n = 9, i, a, b[n]; for (i = 0; i < n; i++) b[i] = -1; #pragma omp parallel { #pragma omp single { printf("Introduce valor de inicialización a: "); scanf("%d", &a); printf("Single ejecutada por el thread %d\n", omp_get_thre...
convolution_1x1_pack4.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 ...
GB_binop__ne_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
oyranos_cmm_oyra_image_ppm.c
/** @file oyranos_cmm_oyra_image.c * * Oyranos is an open source Color Management System * * @par Copyright: * 2008-2015 (C) Kai-Uwe Behrmann * * @brief modules for Oyranos * @internal * @author Kai-Uwe Behrmann <ku.b@gmx.de> * @par License: * new BSD <http://www.opensource....
GB_unop__isinf_bool_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...
5446.c
/* * Compile using the command: * `cc 27Stencil.c -o oa -fopenmp -lm` */ #include <math.h> #include <omp.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #ifdef _OPENACC #include <openacc.h> #endif #define DEFAULT_DATASIZE 1048576 /* Default datasize. */ #define DEFAULT_REPS 10 ...
batchnorm_tpp.h
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
dataset.h
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <LightGBM/meta.h> ...
DigraphTemplate.h
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2015) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
MS_Hybrid_static.c
/* Hybrid static Mandelbort sort */ #include <X11/Xlib.h> #include <stdio.h> #include <omp.h> #include <stdlib.h> #include <mpi.h> struct timeval tv1, tv2; double t = 0; typedef struct complextype { double real, imag; } Compl; int main(int argc, char *argv[]) { // ----------input--------------- int size, r...
enhance.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
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 ...
fm_loss.h
/** * Copyright (c) 2015 by Contributors */ #ifndef DIFACTO_LOSS_FM_LOSS_H_ #define DIFACTO_LOSS_FM_LOSS_H_ #include <vector> #include <cmath> #include "difacto/base.h" #include "dmlc/data.h" #include "dmlc/io.h" #include "difacto/loss.h" #include "common/spmv.h" #include "common/spmm.h" #include "./logit_loss.h" nam...
GB_unop__identity_fc32_uint8.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...
magsac.h
#pragma once #include <limits> #include <chrono> #include <memory> #include "model.h" #include "model_score.h" #include "samplers/sampler.h" #include "samplers/uniform_sampler.h" #include <math.h> #include "gamma_values.cpp" #ifdef _WIN32 #include <ppl.h> #endif #include <gflags/gflags.h> #include <glog/logging.h...
simpson_integral.h
/*! \file simpson_integral.h \brief simpsonの公式で数値積分を行うクラスの宣言と実装 Copyright © 2016-2017 @dc1394 All Rights Reserved. */ #ifndef _SIMPSON_INTEGRAL_H_ #define _SIMPSON_INTEGRAL_H_ #pragma once #include "functional.h" #include "paralleltype.h" #include <algorithm> // for std::max, std::transform ...
configurator.c
/* Simple tool to create config.h. * Would be much easier with ccan modules, but deliberately standalone. * * Copyright 2011 Rusty Russell <rusty@rustcorp.com.au>. MIT license. * * c12r_err, c12r_errx functions copied from ccan/err/err.c * Copyright Rusty Russell <rusty@rustcorp.com.au>. CC0 (Public domain) Lice...
omp_section_lastprivate.c
<ompts:test> <ompts:testdescription>Test which checks the omp section lastprivate directive.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:directive>omp section lastprivate</ompts:directive> <ompts:testcode> #include <stdio.h> #include "omp_testsuite.h" int <ompts:testcode:functionname>omp_s...
GB_unop__minv_int32_int32.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_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
decomp.h
/*! * Software SPAMS v2.2 - Copyright 2009-2011 Julien Mairal * * This file is part of SPAMS. * * SPAMS 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 o...
8.norace5.c
// RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s #include <omp.h> #define M 200 #define N 200 int main() { double A[M], B[M][N], C[N], sum = 0.0; int id; #pragma omp parallel for firstprivate(sum) lastprivate(id) for (int i = 0; i < M; i++) { for (int j = 0; j < N; j++) { sum += B[i][j] * C[...
GB_unaryop__lnot_uint16_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...
GB_emult_template.c
//------------------------------------------------------------------------------ // GB_emult_template: phase1 and phase2 for C=A.*B, C<M>=A.*B //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http://suit...
ethereum_fmt_plug.c
/* * JtR format to crack password protected Ethereum Wallets. * * This software is Copyright (c) 2017, Dhiru Kholia <kholia at kth.se> and it * is hereby released to the general public under the following terms: * * Redistribution and use in source and binary forms, with or without * modification, are permitted....
anneal.c
#include "anneal.h" #include "cairo/visuals.h" #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> void build_stencil(graph_t *g, placement_t *p, int rows, int cols, int *stencil) { for (int i = 0; i < rows * cols; ++i) stencil[i] = -1; for (int i = 0; i < g->vertices; ++i) { int x = (i...
nodal_residualbased_block_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // ...
ofmo-scf.c
/** * @file ofmo-scf.c * * SCF計算プログラムのサンプルコード。 * 通信回数を減らすために、MPI_Allreduce + MPI_Bcastでの * 実装を行った。 * * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "ofmo-def.h" #include "ofmo-mat.h" #include "ofmo-integ.h" #include "ofmo-diis.h" #include "ofmo-prof.h" #include "ofmo-...
ctrsm.c
#include "blas.h" #include "error.h" #include <stdio.h> #include "handle.h" #include "config.h" #include "ctrsm.fatbin.c" static inline size_t min(size_t a, size_t b) { return (a < b) ? a : b; } static inline size_t max(size_t a, size_t b) { return (a > b) ? a : b; } static inline CUresult cuMemcpyHtoD2DAsync(CUdevic...
targetparallelfor-orig-no.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_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...
mandelbrot.c
/* To compile: gcc -O3 -o mandelbrot mandelbrot.c png_util.c -I. -lpng -lm -fopenmp Or just type: module load gcc make To create an image with 4096 x 4096 pixels (last argument will be used to set number of threads): ./mandelbrot 4096 4096 1 */ #include <math.h> #include <stdio.h> #include <stdlib...
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) >...
c-decl.c
/* Process declarations and variables for C compiler. Copyright (C) 1988-2018 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or ...
parallel_stable_sort.h
/* Copyright (C) 2014 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of con...
aux_propagate_comp.h
#ifndef AUX_PROPAGATE_H #define AUX_PROPAGATE_H #include <cvpp/containers/matrix.h> #include <cvpp/algorithms/icp/libicp.h> #include "class_map.h" #include "class_group.h" using namespace cvpp; /// Propagate objects from Next to Main void propagateObjects( Map& prev , Map& next , Map& main , ...
GB_unop__asin_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...
dense.h
#ifndef __DENSE_CHOLESKY_H__ #define __DENSE_CHOLESKY_H__ #include "../matrix-formats/matrix-formats.h" namespace __core__ { namespace __linear_algebra__ { namespace __cholesky__ { template <int ver,typename T=void> typename std::enable_if<ver==0,void>::type cholesky(MatrixHandler<T,size_t>& R) { for(size_t k=0;k...
alg-yescrypt-opt.c
/*- * Copyright 2009 Colin Percival * Copyright 2012-2018 Alexander Peslyak * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copy...
hermm_c_dia_n_lo_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include <stdlib.h> alphasparse_status_t ONAME(const ALPHA_Complex alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Complex *x, const ALPHA_INT columns, const ALPHA_INT ld...
test3_1.c
/* * test3_0.c and test3_1.c are not equivalent because * they have different private list for the parallel construct. */ #include <omp.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { int nthreads, tid; #pragma omp parallel private(nthreads) { tid = omp_get_thread_num();...
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) ...
krb5_db_fmt_plug.c
/* * KRB5 - Enctype 18 (aes256-cts-hmac-sha1-96) cracker patch for JtR * Created on August of 2012 by Mougey Camille (CEA/DAM) & Lalet Pierre (CEA/DAM) * * This format is one of formats saved in KDC database and used during the authentication part. * * This software is Copyright (c) 2012, Mougey Camille (CEA/DAM)...
GB_unaryop__lnot_bool_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...
BFSFriends.h
/****************************************************************/ /* Parallel Combinatorial BLAS Library (for Graph Computations) */ /* version 1.4 -------------------------------------------------*/ /* date: 1/17/2014 ---------------------------------------------*/ /* authors: Aydin Buluc (abuluc@lbl.gov), Adam Lugow...
GB_unop__sin_fp32_fp32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
stat_ops.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "stat_ops.h" #include "utility.h" #include "constant.h" // calculate norm double state_norm_squared(const CTYPE *state, ITYPE dim) { ITYPE index; double norm = 0; #ifdef _OPENMP #pragma omp parallel for reduction(+:norm) #en...
raytrace_pixel.c
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * File: raytrace_pixel.c * * MATLAB Coder version : 5.1 * C/C++ source code generated on : 19-Apr-202...
GB_unop__identity_int64_uint64.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...
test-zrocks.c
/* xZTL: Zone Translation Layer User-space Library * * Copyright 2019 Samsung Electronics * * Written by Ivan L. Picoli <i.picoli@samsung.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
elemwise_binary_scalar_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 ...
H2Pack_SPDHSS_H2.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <math.h> #include <omp.h> #ifdef __linux__ #include <malloc.h> #endif #include "H2Pack_config.h" #include "H2Pack_typedef.h" #include "H2Pack_aux_structs.h" #include "H2Pack_utils.h" #include "H2Pack_SPDHSS_H2.h" #...
helloworld.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { int nthreads, tid; // Each thread has a private copy of the number of threads // and its own number #pragma omp parallel private(nthreads, tid) { nthreads = omp_get_num_threads(); // Obtain thread number...
c_patchmatch_64.c
#include "stdlib.h" /* rand, malloc */ #include "string.h" /* memcpy */ #include "stdio.h" /* printf */ #include "time.h" /* time */ #include "math.h" /* fabs */ #include "omp.h" #include "c_patchmatch.h" #define print(a, args...) printf("%s(%s:%d) " a, __func__,__FILE__, __LINE__, ##args) #define println(a, args......
Stmt.h
//===- Stmt.h - Classes for representing statements -------------*- 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 // //===---------------------------...
compiler_cgen.c
/* Generated by Nim Compiler v0.15.0 */ /* (c) 2016 Andreas Rumpf */ /* The generated code is subject to the original license. */ #define NIM_INTBITS 64 #include "nimbase.h" #include <string.h> typedef struct Tcgen529027 Tcgen529027; typedef struct TNimType TNimType; typedef struct TNimNode TNimNode; typedef struct ...
smooth.multi.c
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <R.h> #include <Rmath.h> #include <Rinternals.h> #if defined _OPENMP #include <omp.h> #endif // find the maximum value static inline double maxDouble( double * A, const size_t n) { double p = - INFINITY; size_t i; for( i=0; i < n; i++ ) if( A[i...
GB_unaryop__identity_int8_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...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
deprecate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
main.c
#include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <time.h> #if defined(_OPENMP) #include <omp.h> #endif int main (int argc, char** argv) { // Initialization of variables int i, j, k, height = 8000, width = 8000, num_iterations = 1000, opt; float alpha = 0.1; #ifndef _OPENMP clock_t before, aft...
stencil3d_mdev.c.c
// // Created by Yonghong Yan on 3/8/16. // #if 0 void stencil3d_omp_mdev(long n, long m, long k, REAL *u, int radius, REAL *coeff, int num_its) { long it; /* iteration */ long u_dimX = n + 2 * radius; long u_dimY = m + 2 * radius; long u_dimZ = k + 2 * radius; int coeff_dimX = 2 * radius + 1; coeff = coeff + (...
blake2bp-ref.c
/* BLAKE2 reference source code package - reference C implementations Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at your option. The terms of these licenses can be found at: - CC0 1.0 Univers...
im2col.h
#ifndef IM2COL_H_ #define IM2COL_H_ #include <omp.h> #include <torch/extension.h> #include "nn/common/im2col.h" namespace mapped_conv { namespace nn { namespace cpu { template <typename T> void Im2Col2D(const int64_t num_kernels, torch::Tensor data_im, const int64_t height_im, const int64_t width_im, ...
omp_get_num_threads.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include "omp_testsuite.h" int test_omp_get_num_threads() { /* checks that omp_get_num_threads is equal to the number of threads */ int nthreads_lib; int nthreads = 0; nthreads_lib = -1; #pragma omp parallel { #pragma omp critical { nt...
core_sormlq.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_zunmlq.c, normal z -> s, Fri Sep 28 17:38:25 2018 * **/ #include <plasma_core_blas.h> #include "pla...
DRB033-truedeplinear-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...
scatter.c
#include "../../shared.h" #include "../hale_data.h" #include "hale.h" #include <float.h> #include <stdio.h> // Scatter the subcell energy and mass quantities back to the cell centers void scatter_energy_and_mass( const int ncells, const double* nodes_x, const double* nodes_y, const double* nodes_z, double* cel...
Renderer.h
#pragma once #include <Utils.h> #include <Player.h> #include <Raycaster.h> class Renderer { public: Renderer(Player* player, Field* field, Raycaster* raycaster, bool useMP, bool skipPixels) : player(player), field(field), raycaster(raycaster), useMP(useMP), skipPixels(skipPixels) {} void FillPixel(glm::vec4& po...
conv3x3s1_winograd64_neon5_permute.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 ...
GB_unaryop__abs_fp32_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
Parameters.h
// // smarties // Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland. All rights reserved. // Distributed under the terms of the MIT license. // // Created by Guido Novati (novatig@ethz.ch). // #ifndef smarties_Parameters_h #define smarties_Parameters_h #include "Functions.h" #include "../../Utils/MPIUtilities.h...
CGOpenMPRuntime.h
//===----- CGOpenMPRuntime.h - Interface to OpenMP Runtimes -----*- 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 // //===---------------------------...
jacobi-ompacc-opt1.c
// Using target data to promote data allocation to higher level, enabling reusing in iterations #include <stdio.h> #include <math.h> #include <assert.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif // Add timing support #include <sys/time.h> double time_stamp() { struct timeval t; double t...
nbody_tools.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <omp.h> #include "ui.h" #include "nbody.h" #include "nbody_tools.h" #include "nbody_alloc.h" extern node_t* root; /* draw recursively the content of a node */ void draw_node(node_t* n) { #ifndef DISPLAY return; #else if(!n) ...