source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_binop__bxor_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-...
DenseVector.h
//================================================================================================= /*! // \file blaze/math/smp/openmp/DenseVector.h // \brief Header file for the OpenMP-based dense vector SMP implementation // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file is part ...
strassen.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...
rawSHA1_ng_fmt_plug.c
// // Alternative SSE2 optimised raw SHA-1 implementation for John The Ripper. // // This plugin requires -msse4 in CFLAGS. // // Copyright (C) 2012 Tavis Ormandy <taviso@cmpxchg8b.com> // Copyright (c) 2015 magnum (AVX2/AVX512 support) // // This library is free software; you can redistribute it and/or // modify it un...
RCCE.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...
t000.c
#include<stdint.h> #include<stdlib.h> #include<stdio.h> #include<omp.h> typedef struct {int64_t nteam; int64_t nthread;} tinfo; int main(int argc, char **argv) { tinfo *t = malloc(sizeof(tinfo)); t->nteam = -1; t->nthread = -1; #pragma omp target teams map(t[0:1]) { #pragma omp parallel { if(omp_get_team_n...
omp_barrier.c
// RUN: %libomp-compile-and-run // RUN: %libomp-compile && env KMP_BLOCKTIME=infinite %libomp-run // RUN: %libomp-compile && env KMP_PLAIN_BARRIER_PATTERN='hierarchical,hierarchical' KMP_FORKJOIN_BARRIER_PATTERN='hierarchical,hierarchical' %libomp-run // RUN: %libomp-compile && env KMP_BLOCKTIME=infinite KMP_PLAIN_BARR...
LAGraph_pagerank3b.c
//------------------------------------------------------------------------------ // LAGraph_pagerank3b: pagerank using a real semiring //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2019 LAGraph Contributors. (see Contributo...
GB_unaryop__identity_int64_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
im2col_dnnlowp.h
#pragma once #ifdef _OPENMP #include <omp.h> #endif #include "caffe2/core/operator.h" #include "caffe2/utils/math.h" #include "caffe2/utils/math/utils.h" namespace caffe2 { namespace math { template <typename T> static void Im2ColNCHW( const int channels, const int height, const int width, const in...
basic2.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(){ int nthreads, tid; #pragma omp parallel private( nthreads, tid ) { tid = omp_get_thread_num(); printf("Hello World from thread = %d\n", tid); if (tid == 0){ nthreads = omp_get_num_threads(); printf( "Number of threads = ...
Pragma.h
//===- Pragma.h - Pragma registration and handling --------------*- 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 // //===---------------------------...
GB_unop__identity_uint64_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...
Example_target.1.c
/* * @@name: target.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ extern void init(float*, float*, int); extern void output(float*, int); void vec_mult(int N) { int i; float p[N], v1[N], v2[N]; init(v1, v2, N); #pragma omp target #pragma omp parallel for ...
hybrid_hello.c
#include <stdio.h> #include <omp.h> #include "mpi.h" int main(int argc, char* argv[]) { int rank, size; int tid, thread_level; MPI_Init_thread(&argc, &argv, MPI_THREAD_FUNNELED, &thread_level); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Comm_size(MPI_COMM_WORLD, &size); printf("Hello, world! I am the main...
pr70550-1.c
/* PR middle-end/70550 */ /* { dg-do compile } */ /* { dg-additional-options "-Wuninitialized" } */ #ifdef __SIZEOF_INT128__ typedef __int128 T; #else typedef long long T; #endif void bar (T); #pragma omp declare target (bar) void foo (void) { { int i; #pragma omp target defaultmap(tofrom:scalar) /* { dg-b...
example_render_world.c
#include <stdio.h> #include "rasterizer.h" #include "world.h" int main() { // image width, height const int w = 1000; const int h = 1000; // define materials const Material monkeyRedMaterial = (Material){V(0.8274, 0.2196, 0.1098), 1, 1, 1, 30}; const Material monkeyPurpleMaterial = (Material){V(0.4156, 0...
tov_interp.h
// This C header file reads a TOV solution from data file and performs // 1D interpolation of the solution to a desired radius. // Author: Zachariah B. Etienne // zachetie **at** gmail **dot* com #include "stdio.h" #include "stdlib.h" #include "math.h" #include "string.h" #define REAL double //#define ST...
GB_reduce_panel.c
//------------------------------------------------------------------------------ // GB_reduce_panel: s=reduce(A), reduce a matrix to a scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-...
c_fft.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
test5.c
int g1; void bar(); void foo() { 0; g1+1; g1 = 20; #pragma omp barrier 1; #pragma omp barrier 2; #pragma omp barrier g1+2; 3; } void foobar() { 4; #pragma omp barrier 5; g1+3; g1 = 30; #pragma omp barrier 6; #pragma omp barrier 7; } int main() { #pragma omp parallel { 8; switch (9) { case 1: 10; ...
nested_loop.c
#include <stdio.h> #include "assert.h" #include <unistd.h> #define TRIALS 1 #define N 960 int main() { int fail = 0; double A[N], B[N], C[N]; for (int i = 0; i < N; i++) { A[i] = 0.0; B[i] = 0.0; C[i] = 1.0; } int nte = 32; int tl = 64; int blockSize = tl; for (int t = 0 ; t < TRIALS ; t+...
merge_sort_omp.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> #define SIZE 100000 void merge(int *, int, int, int); void mergeSort(int *, int, int); void writeToFile(int *, int, FILE *); int main(int argc, char** argv) { double start, end; FILE *fp; fp = fopen("output_omp.txt", "a+"); ...
fill.c
//#include <petscmat.h> //#include <petscvec.h> //#include <../src/mat/impls/baij/seq/baij.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <math.h> #include <omp.h> #include <ktime.h> #include <geometry.h> #ifdef __USE_HW_COUNTER #include <perf.h> #include <kperf.h> #endif #include <phy.h> #in...
displacement_contact_criteria.h
// KRATOS ______ __ __ _____ __ __ __ // / ____/___ ____ / /_____ ______/ /_/ ___// /________ _______/ /___ ___________ _/ / // / / / __ \/ __ \/ __/ __ `/ ___/ __/\__ \/ __/ ___/ / / / ___/ __/ / / / ___/ __ `/ / // / /___/ /_...
kmeans_clustering.ref.c
#include <sys/time.h> #include <time.h> #include <stdio.h> static unsigned long long current_time_ns() { #ifdef __MACH__ clock_serv_t cclock; mach_timespec_t mts; host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &cclock); clock_get_time(cclock, &mts); mach_port_deallocate(mach_task_self(), c...
LogSoftMax.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/LogSoftMax.c" #else static int nn_(LogSoftMax_updateOutput)(lua_State *L) { THTensor *input = luaT_checkudata(L, 2, torch_Tensor); THTensor *output = luaT_getfieldcheckudata(L, 1, "output", torch_Tensor); real *input_data, *output_data; long nframe = 0, ...
shared_update.c
// RUN: %libomptarget-compile-run-and-check-generic // REQUIRES: unified_shared_memory // amdgpu runtime crash // UNSUPPORTED: amdgcn-amd-amdhsa #include <stdio.h> #include <omp.h> // --------------------------------------------------------------------------- // Various definitions copied from OpenMP RTL extern vo...
pyfr_driver_asp_reg.c
/****************************************************************************** ** Copyright (c) 2014-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
layer_example_bf16.c
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
reduction.c
#include <omp.h> #include <stdio.h> #define size 1000000 double a[size], b[size], result; int main () { int i, n, chunk; /* Some initializations */ n = size; chunk = 10; result = 0.0; for (i=0; i < n; i++) { a[i] = i * 1.0; b[i] = i * 2.0; } #pragma omp parallel for default(shared) reduction...
num_threads.c
// RUN: %compile-run-and-check #include <stdio.h> #include <omp.h> const int WarpSize = 32; const int NumThreads1 = 1 * WarpSize; const int NumThreads2 = 2 * WarpSize; const int NumThreads3 = 3 * WarpSize; const int MaxThreads = 1024; int main(int argc, char *argv[]) { int check1[MaxThreads]; int check2[MaxThrea...
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...
expected_output.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> //--------------------------------------------------------------------- // program LU //--------------------------------------------------------------------- //---------- // Class S: //---------- /*full problem size*/ /*nu...
GB_unaryop__identity_uint64_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
matmult.c
#include <stdio.h> #include <stdlib.h> #include "matmult_initialize.h" int provided; #include <mpi.h> #ifndef MATRIX_SIZE #define MATRIX_SIZE 512 #endif #define NRA MATRIX_SIZE /* number of rows in matrix A */ #define NCA MATRIX_SIZE /* number of columns in matrix A */ #define NCB MA...
GB_unaryop__abs_int8_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_binop__remainder_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...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
xthi_omp.c
/* This pure OpenMP version is simplified by Helen He from the hybrid MPI/OpenMP Cray Source code "xthi.c" available at: http://docs.cray.com/books/S-2496-4101/html-S-2496-4101/cnlexamples.html */ #define _GNU_SOURCE #include <stdio.h> #include <unistd.h> #include <string.h> #include <sched.h> #include <omp.h> /* B...
peano.c
#include "globals.h" #include "peano.h" #include <gsl/gsl_heapsort.h> peanoKey Peano_Key ( const double x, const double y, const double z ); static void reorder_particles(); void Print_Int_Bits128 ( const peanoKey val ) { for ( int i = 127; i >= 0; i-- ) { printf ( "%llu", ( long long ) ( ( val & ( ( pe...
clean.h
/**************************************************************************** * VCGLib o o * * Visual and Computer Graphics Library o o * * _ O _ * * Copyri...
GB_binop__bxnor_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
convolution_winograd_transform_bf16s.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 ...
simd-5.c
/* { dg-do run } */ /* { dg-additional-options "-msse2" { target sse2_runtime } } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ #define N 128 #define M 16 #define EPS 0.0000000000000001 #define SAFELEN 16 #include <stdlib.h> void init(double a[N][N], double b[N][N], int n) { int i, j, s = -1; ...
ast-dump-openmp-taskyield.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() { #pragma omp taskyield } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskyi...
ref4.c
size_t i, j; /* alias input parameters */ const double (*restrict tinit)[p->N][p->M] = (const double (*)[p->N][p->M])p->tinit; const double (*restrict cinit)[p->N][p->M] = (const double (*)[p->N][p->M])p->conductivity; omp_set_num_threads(4); /* allocate grid data */ const size_t h = p->N + 2...
cpl_msg.c
/* * This file is part of the ESO Common Pipeline Library * Copyright (C) 2001-2017 European Southern Observatory * * 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 ...
atomic.c
/* Copyright (C) 2005-2020 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@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 Licen...
psgd_sampled.c
/* Sparse Binary Matrix Factorization Fit through projected sub-gradient descent, sampling missing entries at random in each iteration. Writen for C99 standard. BSD 2-Clause License Copyright (c) 2019, David Cortes All rights reserved. Redistribution and use in source and binary forms, with or without modi...
exercise2.c
/* Lab 3 Exercise 2 Program We are going to parallelise an implementation of a Mandelbrot set calculation. The Mandelbrot set is the set of complex numbers `c` for which the function `f_{c}(z) = z^{2} + c` does not diverge when iterated from `z = 0`, i.e., for which the sequence f_{c}(0), f_{c}(f_{c}(0)), etc., remai...
green_equi.c
// CFA pixel cleaning via directional average // by Emil Martinec // 2/18/2010 #define TS 256 // Tile size //modification OMP J.Desmis - december 2010 //#define CLASS /*#define ushort UshORt typedef unsigned char uchar; typedef unsigned short ushort;*/ #include <ctype.h> #include <errno.h> #include <fcntl.h> #includ...
render.h
#ifndef RENDER_H #define RENDER_H #include <stdio.h> #include <omp.h> #include <algorithm> #include <ctime> #include "bitmap.h" #include "model.h" class Render; class FrameBuffer { public: uint32_t *fb_; int w_, h_; std::vector<float *> z_buffers; // hierarchical z_buffer std::vector<int> z_buffer_w...
wino_conv_kernel_1_arm.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...
mpbpush2.c
/* C Library for Skeleton 2-1/2D Electromagnetic MPI/OpenMP PIC Code */ /* written by Viktor K. Decyk, UCLA */ #include <stdlib.h> #include <stdio.h> #include <complex.h> #include <math.h> #include "mpbpush2.h" #include "mpplib2.h" /*--------------------------------------------------------------------*/ double ranorm...
fib-sections.c
#include<stdio.h> #include<stdlib.h> #include<omp.h> int fib(int n); int main(int argc,char *argv[]) { int n=atoi(argv[1]); #pragma omp parallel sections { printf("fib(%d)=%d\n",n,fib(n)); } } int fib(int n) { int x,y; if(n<2)return n; #pragma omp section shared(x) x = fib(n-1); #pragma omp section shared(y) ...
displacement_lagrangemultiplier_residual_contact_criteria.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
finalWithoutComments.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> // maximum value of n #define NMAX 133500000 //#define NMAX 200 #define CHUNKSIZE 20 static double N[NMAX]; static int lt[NMAX]; static int gt[NMAX]; stat...
pr71647.c
/* PR tree-optimization/71647 */ /* { dg-do compile } */ /* { dg-options "-O3 -fopenmp-simd -mavx -mno-avx512f -fdump-tree-vect-details" } */ void foo (double *a, double *b) { int i; #pragma omp simd aligned(a,b:4*sizeof(double)) for (i = 0; i < 32768; i++) a[i] += b[i]; } void bar (double *a, double *b) { ...
2.parallel.c
#include <stdlib.h> #include <stdio.h> #include "omp.h" #define N 25 /* Q1: Is the code printing what you expected? Is it executing */ /* in parallel? What is wrong with it? */ /* Q2: Add a directive to make its execution correct. */ /* Q3: What would happe...
10.norace1.c
// RUN: clang %loadLLOV %s -o /dev/null 2>&1 | FileCheck %s // XFAIL: * // Polly not detecting SCoP. Need to fix #include <omp.h> int main() { int x = 0; #pragma omp parallel num_threads(8) { #pragma omp sections firstprivate(x) { { x = 1; } #pragma omp section { x = 2; } } } return x; } //...
MLFDeserializer.h
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #pragma once #include <boost/noncopyable.hpp> #include "HTKDeserializer.h" #include "CorpusDescriptor.h" #include "MLFUtils.h" #include "FileWrapper.h" #inclu...
Types.h
//===---------- Types.h - OpenMP types ---------------------------- 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 // //===---------------------------...
measure.c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <assert.h> #include <math.h> #include <sys/time.h> #include <omp.h> int collapse_cluster(FILE *input_fptr, FILE *output_fptr, int rank, int subcircuit_idx, int num_instance, int cluster_circ_size, int **correspondece_map, int num_...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
GB_binop__pair_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-...
mm_v2_check.c
/* * Assignment2 (CSE436) * Kazumi Malhan * 06/08/2016 */ /* Ongoing issues !! */ // Need to put init code back // Need to remove all debug printf // Current code assumes that N and M are dividable by num_tasks // This version is to check the result! #include <stdio.h> #include <stdlib.h> #include <math.h> ...
declare_variant_device_isa_codegen_1.c
// RUN: %clang_cc1 -verify -fopenmp -x c -triple %itanium_abi_triple -emit-llvm %s -o - -fopenmp-version=50 | FileCheck %s --check-prefix=GENERIC // RUN: %clang_cc1 -fopenmp -x c++ -std=c++11 -triple %itanium_abi_triple -fexceptions -fcxx-exceptions -emit-pch -o %t -fopenmp-version=50 %s // RUN: %clang_cc1 -fopenmp -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-2020, All Rights Reserved. // http://suit...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
for-9.c
/* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ /* LLVM LOCAL test not applicable */ /* { dg-require-fdump "" } */ extern void bar(int); void foo (int n) { int i; #pragma omp for schedule(guided) ordered for (i = 0; i < n; ++i) bar(i); } /* { dg-final { scan-tree-dump-times "GOM...
3d7pt.c
/* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #define MIN(a,b) ((a) < (b) ...
GB_binop__isne_fc64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
declare_reduction_codegen.c
// RUN: %clang_cc1 -verify -fopenmp -x c -emit-llvm %s -triple %itanium_abi_triple -o - -femit-all-decls -disable-llvm-passes | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c -triple %itanium_abi_triple -emit-pch -o %t %s -femit-all-decls -disable-llvm-passes // RUN: %clang_cc1 -fopenmp -x c -triple %itanium_abi_triple ...
recursive.h
#pragma once #include <algorithm> #include <cinttypes> #include <iostream> #include <vector> #include <random> #include <gms/common/format.h> #include "output.h" /** * Parallel set-based implementation of the k-clique-star algorithm [1]. * * [1]: https://doi.org/10.1007/978-3-030-01768-2_13 */ namespace GMS::KCl...
tls_test_c.c
/* tls_test_c.c -- test TLS common symbol Copyright (C) 2008-2021 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
softmax_hcl_arm.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...
keystore_fmt_plug.c
/* Java KeyStore cracker. Written by Dhiru Kholia <dhiru at openwall.com> and * Narendra Kangralkar <narendrakangralkar at gmail.com>. * * Input Format: $keystore$target$data_length$data$hash$nkeys$keylength$keydata$keylength$keydata... * * This software is Copyright (c) 2013, Dhiru Kholia <dhiru.kholia at gmail.c...
tls_test_c.c
/* tls_test_c.c -- test TLS common symbol Copyright 2008 Free Software Foundation, Inc. Written by Ian Lance Taylor <iant@google.com> This file is part of gold. 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 ...
GB_unop__one_int32_int32.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...
tnested.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> /* OpenMP */ int foo() { int total=0; #pragma omp parallel reduction(+:total) num_threads(2) { printf("I amb thread %d in level %d\n", omp_get_thread_num(), omp_get_level()); if (omp_get_thread_num() == 0) omp_set_num_threads(4); else omp...
GB_binop__second_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:...
heat_equation.c
#include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <bp_util.h> /* Without collapsing void solve(int height, int width, double *grid, double epsilon, int max_iterations) { double *T = (double*)malloc(height*width*sizeof(double)); double delta = epsilon+1.0; int iterations...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
cpu.c
/* * Copyright 2012 INRIA Paris-Rocquencourt * Copyright 2012 Ecole Normale Superieure * * Use of this software is governed by the MIT license * * Written by Tobias Grosser, INRIA Paris-Rocquencourt, * Domaine de Voluceau, Rocquenqourt, B.P. 105, * 78153 Le Chesnay Cedex France * and Sven Verdoolaege, * Ecole...
GB_unaryop__abs_uint8_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...
GB_binop__pair_uint64.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_for_schedule_guided.c
// RUN: %libomp-compile-and-run /* Test for guided scheduling * Ensure threads get chunks interleavely first * Then judge the chunk sizes are decreasing to a stable value * Modified by Chunhua Liao * For example, 100 iteration on 2 threads, chunksize 7 * one line for each dispatch, 0/1 means thread id * 0 0 0 0 ...
GB_binop__rdiv_fp32.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_binop__pow_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
target_enter_data_map_messages.c
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify=expected,omp -fopenmp -fno-openmp-extensions -ferror-limit 100 -o - %s -Wuninitialized // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify=expected,omp -fopenmp -fno-openmp-extensions -ferror-limit 100 -o - -x c++ %s -Wuninitialized // RUN: %clang_cc1...
paint.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_binop__isge_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
move_shallow_water_particle_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Miguel Maso Sotomayor // ...
clib.c
/* Generated by Cython 0.29.25 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [], "extra_compile_args": [ "-fopenmp" ], "extra_link_args": [ "-fopenmp" ], "include_dirs": [ "/usr/local/Caskroom/miniconda/base/envs/shakema...
move_shallow_water_particle_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Miguel Maso Sotomayor // ...
GB_binop__lor_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-...
omp_zsymm_batch.c
/** * @file omp_zsymm_batch.c * * @brief BBLAS omp_zsymm_batch double _Complex routine. * * BBLAS is a software package provided by Univ. of Manchester, * Univ. of Tennessee. * * @version 1.0.0 * @author Samuel D. Relton * @author Pedro V. Lara * @author Mawussi Zounon * @date 2016-02-20 * **/ ...
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) **************************************...