source
stringlengths
3
92
c
stringlengths
26
2.25M
distributiongenerator.h
/** * @file distributiongenerator.h This code provides basic structure for distribution generators. This should be inherited by all other distribution generators. * @author TPOC: palisade@njit.edu * * @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution...
decoder.c
/*! @file * @brief * * @version 1.0.0 * * (C) Copyright 2017 GoPro Inc (http://gopro.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 License at * * http://www.apache.org...
simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -verify=expected,omp45 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=50 -verify=expected,omp50 %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=45 -verify=expected,omp45 %s -Wuninitialized //...
omp_for_collapse.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <math.h> #include "omp_testsuite.h" /* Utility function to check that i is increasing monotonically with each call */ static int check_i_islarger (int i) { static int last_i; int islarger; if (i==1) last_i=0; islarger = ((i >= last_i)&&(i - las...
GB_binop__islt_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__minus_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:...
ransac3D.h
/* Copyright (c) 2016, TU Dresden All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
parallel-1.c
// { dg-do compile } void foo() { int i; #pragma omp parallel { #pragma omp parallel { #pragma omp parallel { i++; } } } }
FGT_fmt_plug.c
/* * Fortigate (FortiOS) Password cracker * * This software is Copyright (c) 2012 Mat G. <mat.jtr at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, are permitted. * * Passwords are located...
Example_task_dep.7.c
/* * @@name: task_depend.7.c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_5.0 */ #include<stdio.h> void foo() { int x = 0, y = 2; #pragma omp task depend(inout: x) shared(x) x++; // 1st child task #pragma omp task dep...
communication.h
/*! @brief Flag for checking if this header has already been included. */ #ifndef YGGCOMMUNICATION_H_ #define YGGCOMMUNICATION_H_ #include "../tools.h" #include "../datatypes/datatypes.h" #include "CommBase.h" #include "IPCComm.h" #include "ZMQComm.h" #include "ServerComm.h" #include "ClientComm.h" #include "AsciiFile...
GB_binop__le_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-...
xcfun_itrf.c
/* Copyright 2014-2018 The PySCF Developers. 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 requi...
omp_simd_simdlen.c
//Variable examples of using simd directives void foo (int n, double *a, double* b) { for (int i=0; i<n; i++) a[i]=b[i]; } void foo2 (int n, double *a, double* b) { for (int i=0; i<n; i++) a[i]=b[i]; } void foo3 (int n, double *a, double* b) { int j=0; #pragma omp simd simdlen(16) for (int i=0; i<n; i...
pairwise_sum.h
/** * @file pairwise_sum.h * @brief Utility function for the accurate pairwise sum of a list of floating * point numbers. * @author William Boyd (wboyd@mit.edu) * @date June 13, 2013 */ /** * @brief Performs a pairwise sum of an array of numbers. * @details This type of summation uses a divide-and-conqu...
VolumetricAveragePooling.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/VolumetricAveragePooling.c" #else static inline void THNN_(VolumetricAveragePooling_shapeCheck)( THNNState *state, THTensor *input, THTensor *gradOutput, int kT, ...
app.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <omp.h> #include "../../support/common.h" #include "../../support/graph.h" #include "../../support/params.h" #include "../../support/timer.h" #include "../../support/utils.h" int main(int ...
GB_unop__one_int16_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...
lab2.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <omp.h> #include "sys/time.h" int columns = 10; int rows = 10; void printXY(int m[rows][columns]){ int i,j; for (i = 0; i < rows; ++i) { for (j = 0; j < columns; j++) { printf("%d\t",m[i][j]); } printf("\n"); ...
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...
GB_unop__identity_int32_uint64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
dfe.c
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file src/backends/openmp/blrm/dfe.c * @version 1.3.0 * @aut...
csr_block_matvec.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...
ann.c
// bahri abacı ann library #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "private/iocore_private.h" // for getopt #include "private/mlcore_private.h" // return the input size of the given layer #l uint32_t get_input_size(struct ann_t *model, uint32_t layer) { // must be input layer if (l...
cuda.h
#ifndef CXXLAPACK_AUXILIARY_CUDA_H #define CXXLAPACK_AUXILIARY_CUDA_H 1 #if defined(HAVE_CUSOLVER) #include <vector> #include <cxxblas/auxiliary/cuda.h> namespace cxxlapack { using cxxblas::CudaEnv; class CusolverEnv { public: static void init(); static void release(); static cusolverDnHan...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
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. // //===-------------------------------------------------------...
GB_unaryop__identity_int64_uint16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
cp-tree.h
/* Definitions for C++ parsing and type checking. Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. GCC is free software; you can redistribu...
MascotGenericFile.h
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
loops_dynamic.c
#include <stdio.h> #include <math.h> #define N 729 #define reps 1000 #include <omp.h> double a[N][N], b[N][N], c[N]; int jmax[N]; void init1(void); void init2(void); void runloop(int); void loop1chunk(int, int); void loop2chunk(int, int); void valid1(void); void valid2(void); int main(int argc, char *argv[]...
EntityManager.h
#pragma once #include <EASTL/array.h> #include <EASTL/chrono.h> #include <EASTL/deque.h> #include <EASTL/tuple.h> #include <EASTL/unique_ptr.h> #include <EASTL/vector.h> #include "Engine/Core/Logging.h" #include "Engine/Entities/EntityTypes.h" #include "Engine/Entities/SparseSet.h" #include "Engine/Rendering/RenderTyp...
irbuilder_unroll_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 -no-opaque-pointers -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-n...
ten_tusscher_2004_epi_S2_9.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S2_9.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:...
mutex_test.c
#include "ctest/ctest.h" #include "splatt_test.h" #include "../src/base.h" #include "../src/mutex_pool.h" CTEST_DATA(mutex) { int num_ints; int num_incs; int * counts; }; CTEST_SETUP(mutex) { data->num_ints = 10; data->num_incs = 128; data->counts = splatt_malloc(data->num_ints * sizeof(*data->counts));...
is_single.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - IS This benchmark is an OpenMP C version of the NPB IS code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
GB_binop__min_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
GB_unaryop__lnot_int8_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
libsais.c
/*-- This file is a part of libsais, a library for linear time suffix array and burrows wheeler transform construction. Copyright (c) 2021 Ilya Grebnov <ilya.grebnov@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. ...
GB_unaryop__minv_int8_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...
implicit_blender.c
/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
compare.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
tree.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_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/dataset.h> #include <LightGBM/meta.h> #include <string> #include <map> #includ...
overlap_lib_omp.h
/* ************************************************************************** * This file has various essential routines used by the overlap cluster * algorithm * * Code by Avik Ray (avik@utexas.edu) * **************************************************************************** */ #ifndef OVERLAP_LIB_OMP_H #def...
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...
convolution_1x1_pack4_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 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 ...
blas_server_omp.c
/*********************************************************************/ /* */ /* Optimized BLAS libraries */ /* By Kazushige Goto <kgoto@tacc.utexas.edu> */ /* ...
omp_prime.c
/** An OpenMP example. * Based on the example listed on the following web page: * http://developers.sun.com/sunstudio/downloads/ssx/tha/tha_using.html */ #include <assert.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> // getopt() #include "../../drd/drd.h" sta...
omp_testlock.c
#include <stdio.h> #include <omp.h> #include "omp_testsuite.h" int check_omp_testlock (FILE * logFile) { omp_lock_t lck; int nr_threads_in_single = 0; int result = 0; int nr_iterations = 0; int i; omp_init_lock (&lck); #pragma omp parallel shared(lck) { #pragma omp for for (i = 0; i < LOOPCOUNT; i+...
GB_unop__identity_uint16_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
omp-matmat-schedule.c
/***************************************************************************** Example : omp-matmat-schedule.c Objective : OpenMP program to demonstrate the use of OpenMP schedule clause ( LOOP SCHEDULING & PARTITIONING ). Threads share the itera...
Example_target.5.c
/* * @@name: target.5c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ #define THRESHOLD1 1000000 #define THRESHOLD2 1000 extern void init(float*, float*, int); extern void output(float*, int); void vec_mult(float *p, float *v1, float *v2, int N) { int i; init(v1, v...
b4v6ld.c
/**** BSIM4.6.2 Released by Wenwei Yang 07/31/2008****/ /**** BSIM4.6.5 Update ngspice 09/22/2009 ****/ /**** OpenMP support ngspice 06/28/2010 ****/ /********** * Copyright 2006 Regents of the University of California. All rights reserved. * File: b4ld.c of BSIM4.6.2. * Author: 2000 Weidong Liu * Authors: 2001- Xu...
_helpers.c
#include "_helpers.h" #include "../CDelta.h" #include "../XArray.h" #include "../utils.h" #define NO_IMPORT_ARRAY #include "../DQarrayobject.h" #include <math.h> /** * Update the positions of an array of fallers (periodic boundary * conditions). */ #define FUNCTION_NAME FallerArray_move #define BEGIN_ITER_CODE #d...
bitmap.h
/*! * Copyright 2014 by Contributors * \file bitmap.h * \brief a simple implement of bitmap * NOTE: bitmap is only threadsafe per word access, remember this when using bitmap * \author Tianqi Chen */ #ifndef XGBOOST_COMMON_BITMAP_H_ #define XGBOOST_COMMON_BITMAP_H_ #include <dmlc/omp.h> #include <vector> names...
generator.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <random> #include "graph.h" #include "pvector.h" #include "util.h" /* GAP Benchmark Suite Class: Generato...
cc.c
/* Copyright 2014. The Regents of the University of California. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2012-2014 Martin Uecker <uecker@eecs.berkeley.edu> * 2013 Dara Bahri <dbahri123@gmail.com> * * * Huang F, V...
calculator.c
#include <stdio.h> #include <stdlib.h> #include "calculator.h" #include "FTPManagement.h" #include "recipes.h" #include "start.h" #include <libconfig.h> #include "logger.h" #include <time.h> #include <string.h> #define NUM_RECIPES 58 // Including Chapter 5 representation #define CHOOSE_2ND_INGREDIENT_FRAMES 56 // ...
ten_tusscher_2004_epi_S3_7.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S3_7.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:...
mongodb_scram_fmt_plug.c
/* * This software is Copyright (c) 2016, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, * are permitted. * */ #if FMT_EXTERNS_H extern struct fmt_main fmt_mo...
findpath.c
/* gcc -fopenmp -g3 -DTEST_FINDPATH findpath.c -o FINDpath -lRNA -lm -I ../H/ -L ./ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include "findpath.h" #include "fold.h" #include "fold_vars.h" #include "utils.h" #include "pair_mat.h" #ifdef _OPENMP #include <omp.h> #endif #define ...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
knapsack.c
/**********************************************************************************************/ /* This program is part of the Barcelona OpenMP Tasks Suite */ /* Copyright (C) 2009 Barcelona Supercomputing Center - Centro Nacional de Supercomputacion */ /* Copyright (C) 2009 Univer...
3DConvolution.c
/** * 3DConvolution.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@st...
dynamic_module_load.c
// RUN: %libomptarget-compile-generic -DSHARED -fPIC -shared -o %t.so && %clang %flags %s -o %t -ldl && %libomptarget-run-generic %t.so 2>&1 | %fcheck-generic #ifdef SHARED #include <stdio.h> int foo() { #pragma omp target ; printf("%s\n", "DONE."); return 0; } #else #include <dlfcn.h> #include <stdio.h> int mai...
GB_binop__bxor_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-...
mikpckd.c
/** * @ingroup PMGC * @author Tucker Beck [fortran ->c translation], Michael Holst [original] * @brief * @version $Id: * * @attention * @verbatim * * APBS -- Adaptive Poisson-Boltzmann Solver * * Nathan A. Baker (nathan.baker@pnl.gov) * Pacific Northwest National Laboratory * * Additional contribut...
GB_binop__pow_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
omp_loop1.c
/* vim: set ts=4 sw=4: */ /* Filename : omp_loop1.c * Description : simple OpenMP model * Author : SunYoung Kim <sunyzero@gmail.com> * Notes : */ #include <stdio.h> int main() { int i; #pragma omp parallel #pragma omp for for (i=0; i<8; i++) { printf("[%d] Hello OpenMP\n", i); } /* implicit ba...
GB_unaryop__ainv_bool_fp32.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> #include <stdlib.h> #include <sys/time.h> #include <string.h> #include <math.h> #include "aux.h" #include "omp.h" unsigned long sequential_sweep(struct node *head); unsigned long parallel_for_sweep(struct node *head); unsigned long parallel_task_sweep(struct node *head); int main(int argc, char **...
CalcPiOMP.c
/* * PiCode.c * * Created on: May 25, 2016 * Author: Barrett * Uses the Monte Carlo method of pi calculation and pthreads * to accurately and consistently approximate pi, getting more * accurate as the number of threads increase */ #include <omp.h> #include <stdio.h> #include <st...
fusedCopyDfloatToPfloat.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitatio...
hostUtils.c
/* * hostUtils.c * * Created on: 20/04/2012 * Author: "Renato Vimieiro" */ #include <stdlib.h> #include <stdio.h> #include <omp.h> #include <assert.h> #include "hostUtils.h" #define CHUNKSIZE 1000 extern FILE * output; /* inline unsigned int popcountll(unsigned long long v){ // unsigned long long v; // ...
softplus_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...
nr_direct.c
/* Copyright 2014-2018 The PySCF Developers. 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 requi...
heat-ompss.c
/*****************************************************************************\ * ANALYSIS PERFORMANCE TOOLS * * Extrae * * Instrumentation package for parallel applications * **...
GB_unop__identity_int8_uint64.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...
6191.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
J1OrbitalSoA.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: // // Fil...
GB_unop__identity_int16_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...
mypaint-tiled-surface.c
/* libmypaint - The MyPaint Brush Library * Copyright (C) 2007-2014 Martin Renold <martinxyz@gmx.ch> et. al. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
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...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__islt_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
equation_of_state.c
/* A simple 2D hydro code (C) Romain Teyssier : CEA/IRFU -- original F90 code (C) Pierre-Francois Lavallee : IDRIS -- original F90 code (C) Guillaume Colin de Verdiere : CEA/DAM -- for the C version */ /* This software is governed by the CeCILL license under French law and abiding by the rules o...
GB_binop__max_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...
MatrixVectorOpt.c
/****************************************************************************** * Example - Matrix-vector multiplication - C/C++ Version * FILE: MatrixVector.c * DESCRIPTION: * This example multiplies matrix A with a vector element and * stores the summed products in vector c. **********************************...
elect_energy.c
/* --- File elect_energy.c --- */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> int main(int argc, char **argv) { struct timespec ts_start, ts_end; float time_total; int n = 60; /* number of atoms per side */ int n_charges = n * n * n; /* total number of charges */ float a = 0.5; /* l...
reduce.c
/* Copyright (c) 2013, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following di...
activation.h
// Copyright 2018 Xiaomi, Inc. 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 applicab...
DRB032-truedepfirstdimension-var-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...
spectra.c
/** @file spectra.c Documented spectra module * * Julien Lesgourgues, 1.11.2019 * * This module computes the harmonic power spectra \f$ C_l^{X} \f$'s * given the transfer functions and the primordial spectra. * * The following functions can be called from other modules: * * -# spectra_init() at the beginning (...
deconvolution_3x3.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 ...
actionAngleAdiabatic.c
/* C code for the adiabatic approximation */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <math.h> #include <gsl/gsl_math.h> #include <gsl/gsl_errno.h> #include <gsl/gsl_roots.h> #include <gsl/gsl_min.h> #include <gsl/gsl_integration.h> #ifdef _OPENMP #include <omp.h> #endif #define CHUNKSIZE ...
test.c
#include <stdio.h> #include <unistd.h> #include "omp.h" int main() { #pragma omp parallel { printf("Hello Thread!\n"); printf("Thread %d of %d\n", omp_get_thread_num(), omp_get_num_threads()); } write(0, "Hello, Kernel!\n", 15); printf("Hello World!\n"); return 0; }
data.h
/*! * Copyright (c) 2015 by Contributors * \file data.h * \brief The input data structure of xgboost. * \author Tianqi Chen */ #ifndef XGBOOST_DATA_H_ #define XGBOOST_DATA_H_ #include <dmlc/base.h> #include <dmlc/data.h> #include <dmlc/serializer.h> #include <rabit/rabit.h> #include <xgboost/base.h> #include <xgb...
rawMD5flat_fmt_plug.c
/* * Raw-MD5 "flat intrinsics" experimental format * * This software is Copyright (c) 2011-2015 magnum, * 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. * */ #include "arch.h" #if US...
hello_hybrid.c
#include <stdio.h> #include "mpi.h" #include <omp.h> int main(int argc, char *argv[]) { int numprocs, rank, namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; int iam = 0, np = 1; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Get_processor...
Fig_5.7_dynamicSchedule.c
#include <stdio.h> #include <math.h> #include <stdbool.h> #include <omp.h> #define ITER 50000000 // use a smaller value if available memory is small bool check_prime(int num) { int i; for (i = 2; i <= sqrt(num); i++) { if (num % i == 0) return false; } return true; } void main( ) { int...