source
stringlengths
3
92
c
stringlengths
26
2.25M
vmul.c
// // vmul.c : Demo of multi-target mulit-source OpenMP offload // #include <stdio.h> void vmul(int*a, int*b, int*c, int N){ #pragma omp target teams map(to: a[0:N],b[0:N]) map(from:c[0:N]) #pragma omp distribute parallel for for(int i=0;i<N+1;i++) { c[i]=a[i]*b[i]; } }
b4ld.c
/* ****************************************************************************** * BSIM4 4.8.1 released by Chetan Kumar Dabhi 2/15/2017 * * BSIM4 Model Equations * ***********************************************************************...
bitshuffle_core.c
/* * Bitshuffle - Filter for improving compression of typed binary data. * * Author: Kiyoshi Masui <kiyo@physics.ubc.ca> * Website: http://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #include "bitshuffle_core.h" #include "bitshu...
pr2.c
//Write an OpenMP program to add all the elements of two arrays A & B each of size 1000 and store their sum in a variable using reduction clause. #include <omp.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { int i, n; float a[1000], b[1000], sum; /* Required initializations */ n = 1...
fabio_c.c
/* Contains the IO routines for fabio module */ #include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <float.h> #include <limits.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #if !defined(WIN32) #include <unistd.h> #else #include <io.h> typedef...
GB_binop__ge_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
output.h
#pragma once #include <gms/common/types.h> #include <omp.h> #include "../sequential/output.h" #include <gms/third_party/robin_hood.h> #include <shared_mutex> namespace GMS::KCliqueStar::Par { using Seq::ListOutput; using OutputMode = Seq::OutputMode; template <class TValueType, OutputMode TOutputMode, in...
GB_binop__land_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
transform.h
/*! * Copyright 2018 XGBoost contributors */ #ifndef XGBOOST_COMMON_TRANSFORM_H_ #define XGBOOST_COMMON_TRANSFORM_H_ #include <dmlc/omp.h> #include <dmlc/common.h> #include <xgboost/data.h> #include <utility> #include <vector> #include <type_traits> // enable_if #include "xgboost/host_device_vector.h" #include "x...
residualbased_predictorcorrector_velocity_bossak_scheme_turbulent.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // #if !defined...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
PmlFdtd.h
#pragma once #include "Grid.h" #include "FieldSolver.h" #include "Fdtd.h" #include "Pml.h" namespace pfc { class FDTD; class PmlFdtd : public PmlReal<YeeGridType> { public: PmlFdtd(FDTD * solver, Int3 sizePML) : PmlReal((RealFieldSolver<YeeGridType>*)solver, sizePML) {} void updateB(); void updateE(); ...
particle.h
#pragma once #define SAFTY_FACTOR 1.05 ///////////// /// Force /// ///////////// class ForceGrav{ public: PS::F32vec acc; PS::F32 phi; PS::S32 neighbor; PS::S32 DUMMY_; #ifdef FOR_PIKG01 PS::S32 id_neighbor; PS::S32 id_neighbor_dmmy; #else PS::S64 id_neighbor; ...
mobilenet_128.c
/* Pretrained MobileNet Convolutional Neural Network in C language and OpenMP API GitHUB Page: https://github.com/jcanore/vgg16 Author: ZFTurbo/jocare Compilation: gcc -O3 MobileNet_CPU_cifar.c -lm -fopenmp -o MobileNet_CPU_cifar Usage: MobileNet_CPU_cifar <weights_path> <file_with_list_of_...
memory_pool.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Pooyan Dadvand // // #if !de...
4585.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...
StopEventGraphBuilder.h
/********************************************************************************** Copyright (c) 2020 Tobias Zündorf MIT License 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 rest...
integrate.c
#include <stdio.h> #include <math.h> #include <sys/time.h> #include <omp.h> const double PI = 3.14159265358979323846; const double a = -4.0; const double b = 4.0; const int nsteps = 40000000; double wtime() { struct timeval t; gettimeofday(&t, NULL); return (double)t.tv_sec + (double)t.tv_usec * 1E-6; } ...
GB_unaryop__ainv_int8_int32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
zboxloop.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) **************************************...
convolution_1x1_pack8.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 copy ...
nlk_wv_class.c
/****************************************************************************** * NLK - Neural Language Kit * * Copyright (c) 2015 Luis Rei <me@luisrei.com> http://luisrei.com @lmrei * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation fi...
GB_unaryop__identity_int8_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_unaryop__abs_int64_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...
GB_unop__lnot_int64_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...
3387.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...
mixed_tentusscher_myo_epi_2004_S3_5.c
// Scenario 3 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt + Rc) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S3_5.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of...
mat_mul_simd_10000.c
/* * file for mat_mul.c */ #include "./mat_mul.h" #include "./size.h" void mat_mul(int *a, int *b, int *c); void mat_mul(int *a, int *b, int *c) { int i, j, k, t; #pragma omp simd private(j, t, k) for(i = 0; i <= 9999; i += 1) for(j = 0; j <= 9999; j += 1) { c[i*10000+j] = 0; for(k = 0;...
R_naomit.c
/* Copyright (c) 2016-2017 Drew Schmidt 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 copyright notice, this list o...
sel_compiler_explorer.c
// TODO Mark regions /** * @file app.c * @brief Template for a Host Application Source File. * */ #include "../../support/timer.h" #include <assert.h> #include <getopt.h> #include <omp.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> static...
template-for-new-benchmark.c
/** * template.c: This file is part of the PolyBench/C 3.2 test suite. * * * Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://polybench.sourceforge.net * License: /LICENSE.OSU.txt */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench co...
texcoord_optimization.h
// to be included in the library #ifndef __VCGLIB__TEXTCOOORD_OPTIMIZATION #define __VCGLIB__TEXTCOOORD_OPTIMIZATION #include <vcg/container/simple_temporary_data.h> #ifdef _USE_OMP #include <omp.h> #endif /* SINGLE PATCH TEXTURE OPTIMIZATIONS A set of classes to perform optimizations of disk->disk p...
target.c
/* Copyright (C) 2013-2015 Free Software Foundation, Inc. Contributed by Jakub Jelinek <jakub@redhat.com>. This file is part of the GNU Offloading and Multi Processing Library (libgomp). Libgomp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
s_nk.c
#include <stdlib.h> #include "s_nk.h" #include "threads.h" st_nk_t alloc_st_n_k(size_t n, size_t k) { st_nk_t st = { NULL, n, k, (n - k + 1)*(k + 1) }; st.data = (mpz_t *)malloc(sizeof(mpz_t) * st.size); #pragma omp parallel for for(size_t i = 0; i < st.size; ++i) { mpz_init(st.data[i]); } return st; } void...
mtest.c
#define _XOPEN_SOURCE #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include <error.h> #include <sys/mman.h> #include <assert.h> #include <string.h> #include <unistd.h> #include <hwloc.h> #ifdef _OPENMP #include <omp.h> #endif struct config { unsigned int node; unsigned int node_set; unsigned ...
softmax.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...
rawSHA224_fmt_plug.c
/* * This file is part of John the Ripper password cracker, * Copyright (c) 2010 by Solar Designer * based on rawMD4_fmt.c code, with trivial changes by groszek. * * Rewritten Spring 2013, JimF. SSE code added and released with the following terms: * No copyright is claimed, and the software is hereby placed in t...
eavlSceneRendererSimpleRT.h
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #ifndef EAVL_SCENE_RENDERER_SIMPLE_RT_H #define EAVL_SCENE_RENDERER_SIMPLE_RT_H #include "eavlDataSet.h" #include "eavlCellSet.h" #include "eavlColor.h" #include "eavlColorTable.h" #include "eavlSceneRenderer.h" #define mindist 0.01 // n...
DRB092-threadprivatemissing2-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...
GB_iso_expand.c
//------------------------------------------------------------------------------ // GB_iso_expand: expand a scalar into an entire array //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identi...
GB_binop__pair_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
templatemath.h
/* * ****************************************************************************** * * * * * * 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. * * * * See the NOT...
task_in_joinbarrier.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> #include <unistd.h> int main() { omp_set_nested(0); print_frame(0); #pragma omp parallel num_threads(2) { print_frame(1); print_ids(0); print_ids(1); print_frame(0); #p...
support_func.h
#include <random> #include <iostream> #include <fstream> #include <cstdio> #include <cstdlib> #include <cstring> #include <unordered_map> #include <unordered_set> #include <map> #include <cmath> #include <ctime> #include <queue> #include <vector> #include <omp.h> #include <cassert> #include <limits> #include <sys/time...
a.21.1.c
/* { dg-do run } */ #include <stdio.h> void work (int k) { #pragma omp ordered printf (" %d\n", k); } void a21 (int lb, int ub, int stride) { int i; #pragma omp parallel for ordered schedule(dynamic) for (i = lb; i < ub; i += stride) work (i); } int main () { a21 (0, 100, 5); return 0; }
mdc2_fmt_plug.c
/* * Cracker for MDC-2 (MDC-2DES) hashes. * * This software is Copyright (c) 2014 Dhiru Kholia <dhiru at openwall.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_...
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...
racf_fmt_plug.c
/* RACF cracker patch for JtR. Hacked together during March of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com> . * * This software is Copyright (c) 2012, 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 b...
ams.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) **************************************...
GB_binop__pair_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
odd_even_split.c
#include<stdio.h> #include<omp.h> int main() { int arr[] = {1,4,5,2,3,5,14,5,11,4,5,5,6,8}; int n = sizeof(arr)/sizeof(arr[0]); int odd[n]; int even[n]; #pragma omp parallel for for(int i=0; i<n; i++) { odd[i] = 0; even[i] = 0; } #pragma omp parallel for for(int i=0; i<n; i++) { if(arr[i] % 2 == 0) ...
helloworld.c
#include <stdio.h> #include <omp.h> int main() { printf("BEFORE PARALLEL REGION\n"); #pragma omp parallel { int ID = omp_get_thread_num(); printf("hello world(%d)\n", ID); } printf("BEFORE PARALLEL REGION\n"); }
sbessel.h
// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess // 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 copyright notic...
main.c
// C Compiler flag: -fopenmp #include <stdio.h> #include <omp.h> #include <stdlib.h> #define N 20 int main(int argc, char *argv[]) { int threadsCount = omp_get_max_threads(); printf("Threads count: %d\n", threadsCount); int a[10] = {5, 5, 5, 5, 5, 5, 6, 5, 5, 5}; int b[10] = {5, 5, 5, 5, 5, 5, 5, 4, 1, 5}; //...
GB_unop__minv_fc64_fc64.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...
feature.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
mandelbrot.c
/* Stress test can not find put why its not working on newriver 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 409...
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) >...
Matrix.h
/* Copyright (c) 2018 Weiming Hu * * File: Matrix.h * Author: Weiming Hu * * Created on September 10, 2018, 1:08 PM */ #ifndef MATRIX_H #define MATRIX_H #include <vector> #include <iostream> #include <exception> struct continuousMatrix { int nrows; int ncols; int length; double *data; }; voi...
convolution_3x3_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 ...
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 // //===---------------------------...
final.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <omp.h> #include <cilk/cilk.h> // maximum value of n #define NMAX 75000000 //#define NMAX 200 #define CHUNKSIZE 20 static double N[NMAX]; static int lt[NMAX]; sta...
hello_world.c
#include <limits.h> #include <omp.h> #include <stdio.h> #include <unistd.h> int main() { printf("Hello world!\n"); int n_printed = 0; #pragma omp parallel shared(n_printed) { int tid = omp_get_thread_num(); int n_threads = omp_get_num_threads(); while (n_threads > (tid + 1 + n_printed)) { ...
HYPRE_IJMatrix.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) **************************************...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
jdvmpi.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "emmintrin.h" #include <mpi.h> #ifdef _OPENMP #include <omp.h> #define TRUE 1 #define FALSE 0 #else #define omp_get_thread_num() 0 #define omp_get_num_threads() 1 #endif int main(int argc, char *argv[]){ // Comienza Sección MPI ---------------...
boxloop_cuda.h
/****************************************************************************** * 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) **************************************...
analyse.c
/***************************************************************************** * analyse.c: h264 encoder library ***************************************************************************** * Copyright (C) 2003-2008 x264 project * * Authors: Laurent Aimar <fenrir@via.ecp.fr> * Loren Merritt <lorenm@u.wa...
RCCE_lib_pwr.h
// // Copyright 2010 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.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
main.c
// ! Requirements // - Execute the multiplication 15 times, // - Run the code 5 times for each execution // - Manage double precision for all the arrays #include <omp.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define MAX_INPUT_SIZE 100 #define CALCULATIONS 15 ...
omp_threadprivate_for.c
// RUN: %libomp-compile-and-run #include "omp_testsuite.h" #include <stdlib.h> #include <stdio.h> static int i; #pragma omp threadprivate(i) int test_omp_threadprivate_for() { int known_sum; int sum; known_sum = (LOOPCOUNT * (LOOPCOUNT + 1)) / 2; sum = 0; #pragma omp parallel { int sum0 = 0, i0; ...
prand.c
//------------------------------------------------------------------------------ // GraphBLAS/Demo/Source/prand: parallel random number generator //------------------------------------------------------------------------------ // A simple thread-safe parallel pseudo-random nuumber generator. #include "prand.h" //---...
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...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
multisort-omp-leaf.c
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <omp.h> #include <sys/time.h> double getusec_() { struct timeval time; gettimeofday(&time, NULL); return ((double)time.tv_sec * (double)1e6 + (double)time.tv_usec); } #define START_COUNT_TIME stamp = getusec_(); #define STOP_C...
for-3.c
/* { dg-additional-options "-std=gnu99" } */ extern void abort (); #define M(x, y, z) O(x, y, z) #define O(x, y, z) x ## _ ## y ## _ ## z #pragma omp declare target #define F distribute #define G d #define S #define N(x) M(x, G, normal) #include "for-2.h" #undef S #undef N #undef F #undef G #define F distribute #d...
aix_ssha_fmt_plug.c
/* AIX ssha cracker patch for JtR. Hacked together during April of 2013 by Dhiru * Kholia <dhiru at openwall.com> and magnum. * * Thanks to atom (of hashcat project) and philsmd for discovering and * publishing the details of various AIX hashing algorithms. * * This software is Copyright (c) 2013 Dhiru Kholia <dh...
par_csr_matop_device.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) **************************************...
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) >...
Example_task_dep.1.c
/* * @@name: task_dep.1c * @@type: C * @@compilable: yes * @@linkable: yes * @@expect: success * @@version: omp_4.0 */ #include <stdio.h> int main() { int x = 1; #pragma omp parallel #pragma omp single { #pragma omp task shared(x) depend(out: x) x = 2; #pragma omp task shared(x) depend(...
GB_full_add_template.c
//------------------------------------------------------------------------------ // GB_full_add_template: phase2 for C=A+B, C<M>=A+B, C<!M>=A+B, C is full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. //...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
csr_matop.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) **************************************...
spmm_hicoo_mat.c
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
functions.h
#ifndef __FUNCTIONS_H__ #define __FUNCTIONS_H__ #include "../scaling/scaling.h" #include "../summation/summation.h" #include "../contraction/contraction.h" namespace CTF { /** * @defgroup CTF_func CTF functions * \brief user-defined function interface * @addtogroup CTF_func * @{ */ class Idx_Tensor; /** ...
LocalFilterScore.h
/* * LocalFilterScore.h * * Created on: 20.11.2014 * Author: Michael Hamann, Gerd Lindner */ #ifndef LOCALLOGSCORE_H #define LOCALLOGSCORE_H #include "../edgescores/EdgeScore.h" #include "../auxiliary/Parallel.h" namespace NetworKit { /** * Local filtering edge scoring. Edges with high score are more im...
fir_testing3.c
// // max_01.c // // // /usr/local/bin/gcc-8 -fopenmp -std=c11 -march=native -O3 -ffast-math -o fir_testing2.app fir_testing2.c // ./fir_testing2.app // gcc -std=c11 -mavx -mfma -O3 -ffast-math -o fir_testing2.app fir_testing2.c // gcc -std=c11 -march=native -O3 -ffast-math -o fir_testing2.app fir_testing2.c...
laplace2d.c
/* * Copyright 2017 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 ...
GB_binop__rdiv_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-...
matmul.c
#include <stdlib.h> #include <sys/time.h> #include <stdio.h> #if OMP == 1 #include <omp.h> #endif #ifndef _N_ #define _N_ 512 #endif #ifndef HOST_MEM_ALIGNMENT #define HOST_MEM_ALIGNMENT 1 #endif #if HOST_MEM_ALIGNMENT == 1 #define AOCL_ALIGNMENT 64 #endif int N = _N_; int M = _N_; int P = _N_; double my_timer () ...
debug_bvh.h
#ifndef DEBUG_BVH_H #define DEBUG_BVH_H #include "../integrator.h" class DebugBVH : public Integrator { public: DebugBVH(const std::shared_ptr<Camera>& _camera, const std::shared_ptr<Sampler>& _sampler) : Integrator(_camera, _sampler) {}; RGB Li(const Ray& ray, Scene& scene) const { Hit res; sce...
GB_binop__isgt_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-...
GB_unaryop__lnot_fp32_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
zlascl.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
DRB092-threadprivatemissing2-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...
memdbg.c
/* * This software was written by Jim Fougeron jfoug AT cox dot net * in 2013. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (c) 20...
mupat.c
/** * @file mupat.c * @brief functions in MuPAT * @author Hotaka Yagi * @date last update 2020 Jan 15 */ #include "mupat.h" //----------------------------------------------------------------- // Double - Double-Double operation //----------------------------------------------------------------- /** * * @fn _d...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__isgt_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...