source
stringlengths
3
92
c
stringlengths
26
2.25M
testCentralMomentsNormDouble.c
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <math.h> #include <omp.h> #ifdef USE_POLAR void polar2x64( int64_t *state, const double mu, const double sigma, double *res ); #else void wichura2x64( int64_t *state, const double mu, const double sigma, double *res ); #endif // parameters // v...
ej2.c
#include <stdio.h> #include <math.h> #include <float.h> #include <stdlib.h> #include <omp.h> #include "ctimer.h" main(int argc, char**argv) { ////// PRODUCTO MATRIZ-VECTOR x=A*b ////// // DECLARACION DE VARIABLES // // DECLARACION DE VARIABLES // double t1,t2,tucpu,tscpu; const long int M= 1048576; ...
hw2b.c
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #define PNG_NO_SETJMP #include <sched.h> #include <assert.h> #include <png.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <mpi.h> #include <pthread.h> void write_png(const char* filename, int iters, int width, int height, const int...
simpar-omp.c
/** * @file simpar.c * @authors: Filipe Marques, Luís Fonseca * @date 29 Abr 2019 * @brief Header Parallellized implementation of simpar.h containing the particle simulation functions's source and main. */ #include "simpar.h" #include "omp.h" cell_t ** dummy; void usg_err() { printf("\t[-] usage : ./simpar ...
spherepix.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <complex.h> #include <math.h> #include "fastsphere.h" #include "config.h" #include "init.h" #include "util.h" #include "scatmat.h" #include "farfield.h" #include "spreflect.h" #ifdef DOUBLEPREC typedef double real; typedef comple...
persistent.c
#include "persistent.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #include <omp.h> int compute_commit_dsv(Box* box_arr) { int count = 1; int thread_count; //omp_set_dynamic(0); // Explicitly disable dynamic teams omp_set_num_threads(NUM_TH...
naugraph.c
/***************************************************************************** * * * Graph-specific auxiliary source file for version 2.2 of nauty. * * * * ...
trust_worthiness.h
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * 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 ...
templatemath.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
segment.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
par_rap.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) **************************************...
if-clause-Modificado.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv) { int i, n=20, tid,num_threads; int a[n],suma=0,sumalocal; if(argc < 3) { fprintf(stderr,"[ERROR]-Falta iteraciones\n"); exit(-1); } n = atoi(argv[1]); if (n>20) n=20; num_threads = atoi(argv[2]); for (i=0; i<n; i++) { ...
declare-variant-5.c
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-additional-options "-mavx2" } */ typedef float __v4sf __attribute__((vector_size (16))); typedef int __v4si __attribute__((vector_size (16))); typedef float __v8sf __attribute__((vector_size (32))); typedef int __v8si __attribute__((vector_size (32))); __v...
displacement_residual_contact_criteria.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
serial_tree_learner.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_TREELEARNER_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #include <LightGBM/dataset.h> #include <Ligh...
mm.c
#include <stdio.h> #include <stdlib.h> /* TEMPO SEQUENCIAL PERF: 56,306335417 seconds time elapsed TEMPO PARALELO PERF: 12,394167292 seconds time elapsed SPEED UP = 4,5 */ void mm(double* a, double* b, double* c, int width) { #pragma omp parallel for for (int i = 0; i < width; i++) { for (int j = 0; j < wid...
GB_unop__identity_uint64_uint16.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...
linAlgAXPBY.c
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
target_update-2.c
/* { dg-do run } */ #include <stdlib.h> const int MAX = 1800; void check (int *a, int *b, int N) { int i; for (i = 0; i < N; i++) if (a[i] != b[i]) abort (); } void init (int *a1, int *a2, int N) { int i, s = -1; for (i = 0; i < N; i++) { a1[i] = s; a2[i] = i; s = -s; } }...
ten_tusscher_2004_RS_CPU_epi_S1.c
// Ten Tusscher version for the Scenario 1 (AP + max:dvdt) #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S1.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...
GB_builder.c
//------------------------------------------------------------------------------ // GB_builder: build a matrix from tuples //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier: Apache-...
requantize_relu_pack4.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 ...
Vec.h
#ifndef VEC_H #define VEC_H /* Szymon Rusinkiewicz Princeton University Vec.h Class for a constant-length vector Supports the following operations: vec v1; // Initialized to (0,0,0) vec v2(1,2,3); // Initialized to (1,2,3) vec v3(v2); // Copy constructor float farray[3]; vec v4 = vec(farray); // Explicit: "v...
guess2.c
#include "math.h" #include <stdio.h> #include <stdlib.h> #define _DISP //#define _LABEL #define EXP 2 struct number{ int num[4]; int flag; }; //double LABEL[13]={360,1440,1260,264,9,480,720,216,8,180,72,6,24}; struct number initarray[5040]; inline void num2p(int num,int *p){ int i; for(i=0;i<4;i++) *(p++)=0; ...
fox_floats_timer_caching_omp_fileIO_benchmark.c
/* fox_floats_timer_caching_omp_fileIO_benchmark.c -- uses Fox's algorithm to multiply two square matrices * * Implementation of parallel matrix multiplication: * LaTeX: $C_{i,j} = \sum_{k} A_{i,k}B_{k,j}$ * * Input: * Input Matrix file name: A.dat, B.dat * * Output: * Output Matrix file name: C.dat...
FFVMC.h
#ifndef FFVMC3D_H #define FFVMC3D_H #include <vector> #include <fstream> #include <sstream> #include <iostream> #include <sys/stat.h> #include "BCMTools.h" #include "BlockManager.h" #include "Scalar3D.h" #include "BCMOctree.h" #include "Partition.h" typedef struct _Vertex { double x; double y; double z; double v...
exercise5.c
/* * BSD 2-Clause License * * Copyright (c) 2020, Alessandro Capotondi * 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 copyri...
MkBase.h
#ifndef MkBase_h #define MkBase_h #include "Matrix.h" #include "PropagationMPlex.h" namespace mkfit { //============================================================================== // MkBase //============================================================================== class MkBase { public: MPlexLS Err[2...
header.h
/*-------------------------------------------------------------------- c--------------------------------------------------------------------- c c header.h c c--------------------------------------------------------------------- c-------------------------------------------------------------------*/ /*---------------...
sum.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #include <sys/time.h> enum { N = 100000 }; double wtime() { struct timeval t; gettimeofday(&t, NULL); return (double)t.tv_sec + (double)t.tv_usec * 1E-6; } double sum(double *v, int low, int high) { if (low == high) ...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__minv_uint16_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
ast-dump-openmp-taskloop-simd.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 taskloop simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp taskloop simd for (int i = 0; i < x; ...
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...
GB_unaryop__abs_fp32_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...
cancel.c
#include <stdio.h> #ifdef _OPENMP #include <omp.h> #endif void foo(int iend, int ist) { int i; #pragma omp parallel { #pragma omp single printf ("Using %d threads.\n",omp_get_num_threads()); #pragma omp for nowait schedule(static) for (i=iend;i>=ist;i--) { printf("Iteration %d is carried out by t...
RandOpt.c
/* kcollins - RandomAccess core_single_cpu kernel from HPCC */ /* with C driver for standalone testing */ /* * This code has been contributed by the DARPA HPCS program. Contact * David Koester <dkoester@mitre.org> or Bob Lucas <rflucas@isi.edu> * if you have questions. * * GUPS (Giga UPdates per Secon...
main.c
#define _POSIX_C_SOURCE 199309L #include <stdlib.h> #include <stdio.h> #include <inttypes.h> #include <unistd.h> #include <time.h> #include <math.h> #include <string.h> #include <omp.h> #include <argp.h> const char *argp_program_version = "benchmark 0.1"; /* Program documentation. */ static char doc[] = ...
inner_product.c
/* This source file is part of the Geophysical Fluids Modeling Framework (GAME), which is released under the MIT license. Github repository: https://github.com/OpenNWP/GAME */ /* In this file, the inner product of two vector fields is computed. */ #include <stdio.h> #include "../game_types.h" int inner_p...
activations.c
#include "activations.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_activation_string(ACTIVATION a) { switch(a){ case LOGISTIC: return "logistic"; case LOGGY: return "loggy"; case RELU: return "relu"; c...
omp_ex_04.c
#include <stdio.h> #include <omp.h> /* MIT License Copyright (c) 2019 NOUREDDINE DAGHBOUDJ 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 ri...
GB_unaryop__minv_bool_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...
pooling_2x2.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 ...
ex3-parallel.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> char* read_file(char *filename, long* filesize); int count_number_spaces(char* string, long stringsize); int main(){ long filesize; int nspaces; char *filename = "example.in"; char *file_content = read_file(filename, &filesize); nspaces = cou...
pooling_3x3_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 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 ...
mandelbrot.c
/* * mandelbrot.c: Simple Mandelbrot Set Rendering Program in C99 * (c)2019 Seiji Nishimura <seiji1976@gmail.com> * $Id: mandelbrot.c,v 1.1.1.3 2019/04/03 00:00:00 seiji Exp seiji $ */ #ifdef USE_MPI #include <mpi.h> #endif #include <time.h> #include <math.h> #include <stdio.h> #include <stdint.h> #include <stdli...
Texture.h
#ifndef _TEXTURE_H_ #define _TEXTURE_H_ //#include "Util.h" //#include "Vector3.h" #include "FreeImage/Dist/FreeImage.h" #include <math.h> #include <stdio.h> class Texture { public: Texture() { } Texture( const Texture& sizeAndFormtGiver ) { Allocate( sizeAndFormtGiver.GetWidth(), sizeAndF...
no_option_no_warn.c
// RUN: %clang_cc1 -verify -Wno-source-uses-openmp -o - %s // RUN: %clang_cc1 -verify -Wno-source-uses-openmp -o - %s // SIMD-ONLY0-NOT: {{__kmpc|__tgt}} // expected-no-diagnostics int a; #pragma omp threadprivate(a, b) #pragma omp parallel
GB_unaryop__abs_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...
syncbench.c
/**************************************************************************** * * * OpenMP MicroBenchmark Suite - Version 3.1 * * * * ...
pack_tril.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_bug6.c
/****************************************************************************** * FILE: omp_bug6.c * DESCRIPTION: * Fails compilation in most cases. * Compare to omp_orphan.c. * AUTHOR: Blaise Barney 6/05 * LAST REVISED: 06/30/05 ******************************************************************************...
kij_optimize.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int A_row; int A_col; int B_row; int B_col; int **constructMatrix(int row, int col){ int **matrix = (int **)malloc(sizeof(int *) * row); for (int i = 0; i < row;i++){ matrix[i] = (int *)malloc(sizeof(int) * col); } return matrix; } void ...
fac_restrict2.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...
GB_binop__div_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-...
eltwise_add_arm.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 ...
residualbased_elimination_builder_and_solver.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Riccardo Rossi // // ...
io.c
/****************************************************************************** * INCLUDES *****************************************************************************/ #include <stddef.h> #include "base.h" #include "io.h" #include "sptensor.h" #include "matrix.h" #include "graph.h" #include "timer.h" /*******...
ContaminationEstimator.h
/*The MIT License (MIT) Copyright (c) 2017 Fan Zhang, Hyun Min Kang 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...
resize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__identity_bool_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...
c_jacobi03.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es Copyright (c) 2004, OmpSCR Group All rights reserved. Redistribution and use in source and ...
nanort.h
// // NanoRT, single header only modern ray tracing kernel. // /* The MIT License (MIT) Copyright (c) 2015 Light Transport Entertainment, Inc. 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 wit...
callback.h
#define _BSD_SOURCE #define _DEFAULT_SOURCE #include <stdio.h> #include <inttypes.h> #include <omp.h> #include <ompt.h> #include "ompt-signal.h" // Used to detect architecture #include "../../src/kmp_platform.h" static const char* ompt_thread_type_t_values[] = { NULL, "ompt_thread_initial", "ompt_thread_worker"...
omp-taskgroup-single.c
#include <omp.h> #include <unistd.h> #include <stdio.h> #define THREADS 4 #define LEN 25 int main(void) { int j=0; #pragma omp parallel num_threads(THREADS) #pragma omp single { #pragma omp taskgroup for (j=0; j<LEN; j++) { #pragma omp task {usleep(10);}...
GB_binop__lxor_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
gamma_index_ivfpq.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This faiss source code is licensed under the MIT license. * https://github.com/facebookresearch/faiss/blob/master/LICENSE * * * The works below are modified based on faiss: * 1. Replace the static batch indexing with real time indexing * 2. Add the fin...
openmp_wrapper.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_OPENMP_WRAPPER_H_ #define LIGHTGBM_OPENMP_WRAPPER_H_ #ifdef _OPENMP #include <omp.h> #include <LightGBM/utils/log.h> #include <exc...
GB_binop__bshift_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
yolov2.h
#ifndef YOLOV3 #define YOLOV3 #include <stdio.h> #include <stdlib.h> //#include <iostream> #include <math.h> #include <fcntl.h> #include <string.h> #include <time.h> #include "xconv_hw.h" //#include "hw_drivers.h" #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include...
GB_unaryop__minv_uint8_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...
TriMesh.h
#ifndef TRIMESH_H #define TRIMESH_H /* Szymon Rusinkiewicz Princeton University TriMesh.h Class for triangle meshes. */ #define LARGENUM 10000000.0 #define ONE 1 #define CURVATURE 2 #define NOISE 3 #define EPS 1e-6 //#define SPEEDTYPE ONE #include "Vec.h" #include "Color.h" #include "KDtree.h...
deadlock.c
#include <omp.h> #include <stdio.h> omp_lock_t A, B; void T1() { printf("Task 1: before locking A\n"); omp_set_lock(&A); printf("Task 1: after locking A\n"); sleep(2); printf("Task 1: before locking B\n"); omp_set_lock(&B); printf("Task 1: after locking B\n"); printf("Task 1\n"); ...
GB_binop__lt_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...
conv_dilate.c
/******************************************************************************* * Copyright 2017-2018 Intel Corporation * * 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.apa...
pw_multithread.c
#include <omp.h> #include <papi_wrapper.h> #include <stdio.h> #include <stdlib.h> #include "test_lib.h" int main() { long long N = 10; double x[N]; pw_init_instruments; #pragma omp parallel { pw_start_instruments_loop(omp_get_thread_num()); for (int i = 0; i < N; ++i) { ...
equation_groupnorm.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
enforce_detgammabar_constraint.h
void enforce_detgammabar_constraint(const int Nxx_plus_2NGHOSTS[3],REAL *xx[3], REAL *in_gfs) { #pragma omp parallel for for(int i2=0; i2<Nxx_plus_2NGHOSTS[2]; i2++) { const REAL xx2 = xx[2][i2]; for(int i1=0; i1<Nxx_plus_2NGHOSTS[1]; i1++) { const REAL xx1 = xx[1][i1]; for(int i0=0; i0<Nxx_plu...
0fa8731d37e95224dbb06693b0c5599e66d59f4c.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "omp.h" struct dataobj { void *restrict data; int * size; int * npsize; int * dsize; int * hsize; int * hofs; int * oofs; } ; struct profiler { double section0; } ; int padfunc(struct dataobj *restri...
GB_nvec_nonempty.c
//------------------------------------------------------------------------------ // GB_nvec_nonempty: count the number of non-empty vectors //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Id...
cluster_main.c
/*! \file cluster_main.c this file has the functions used by the compute cluster process. *This process retrieves problems from the i/o clusters and returns results */ #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <assert.h> #inclu...
dataset.h
#ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/utils/random.h> #include <LightGBM/utils/text_reader.h> #include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/meta.h> #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <vector> #include <utility> #include <func...
GB_binop__land_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-...
Matrix_add_mp.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <time.h> #define size 400 int main() { long double M1[size][size]={1075.75},M2[size][size]={1594.97},M3[size][size]; float startTime,endTime,execTime; int i,j; int omp_rank; startTime = omp_get_wtime(); #pragma omp parallel private (i,j) shared (...
blas_dh.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...
parallel_radix_sort.h
// Copyright 2010, Takuya Akiba // 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...
pzhetrf_aasen.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include <math.h> #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include "p...
pdgbtrf.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/compute/pzgbtrf.c, normal z -> d, Fri Sep 28 17:38:10 2018 * **/ #include "plasma_async.h" #include "plasma_contex...
bt.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 2.3 OpenMP C versions - BT This benchmark is an OpenMP C version of the NPB BT code. The OpenMP C versions are developed by RWCP and derived from the serial Fortran versions in "NPB 2.3-serial" developed by NAS...
dataset.h
#ifndef LIGHTGBM_DATASET_H_ #define LIGHTGBM_DATASET_H_ #include <LightGBM/utils/random.h> #include <LightGBM/utils/text_reader.h> #include <LightGBM/utils/openmp_wrapper.h> #include <LightGBM/meta.h> #include <LightGBM/config.h> #include <LightGBM/feature_group.h> #include <vector> #include <utility> #include <func...
contact_utilities.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
EvalOMP.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // m...
mic_SH_to_spat.gen.c
/* * Copyright (c) 2010-2015 Centre National de la Recherche Scientifique. * written by Nathanael Schaeffer (CNRS, ISTerre, Grenoble, France). * * nathanael.schaeffer@ujf-grenoble.fr * * This software is governed by the CeCILL license under French law and * abiding by the rules of distribution of free software...
5805.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...
dynamic_module.c
// RUN: %libomptarget-compile-aarch64-unknown-linux-gnu -DSHARED -fPIC -shared -o %t.so && %libomptarget-compile-aarch64-unknown-linux-gnu %t.so && %libomptarget-run-aarch64-unknown-linux-gnu 2>&1 | %fcheck-aarch64-unknown-linux-gnu // RUN: %libomptarget-compile-powerpc64-ibm-linux-gnu -DSHARED -fPIC -shared -o %t.so &...
omp_fill_taskqueue.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run // RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=1 %libomp-run // REQUIRES: !abt && !icc #include<omp.h> #include<stdlib.h> #include<string.h> /** * Test the task throttling behavior of the runtime. * Unless OMP_NUM_THREADS is 1, the m...
AutoRelease.c
/** * C Object System * COS Autorelease pool * * Copyright 2006+ Laurent Deniau <laurent.deniau@gmail.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....
explicit_residualbased_builder.h
/* ============================================================================== Kratos A General Purpose Software for Multi-Physics Finite Element Analysis Version 1.0 (Released on march 05, 2007). Copyright 2007 Pooyan Dadvand, Riccardo Rossi pooyan@cimne.upc.edu rrossi@cimne.upc.edu CIMNE (International Center for...
GB_binop__minus_fc32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
DRB066-pointernoaliasing-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...