source
stringlengths
3
92
c
stringlengths
26
2.25M
fasta.c
// The Computer Language Benchmarks Game // http://benchmarksgame.alioth.debian.org/ // // Contributed by Jeremy Zerfas // This controls the width of lines that are output by this program. #define MAXIMUM_LINE_WIDTH 60 // This program will generate the random nucleotide sequences in parallel which // are worked on in...
phostname.c
#include <stdlib.h> #include <strings.h> #include <string.h> #include <mpi.h> #include <math.h> char *trim ( char *s ); void dohelp(); void dohelp() { /************************************************************ * This is a glorified hello world program. Each processor * prints name, rank, and other information as...
pem_fmt_plug.c
/* PEM (PKCS #8) cracker. * * This software is Copyright (c) 2015, Dhiru Kholia <kholia at kth.se>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, * are permitted. * * This code may be freely used and...
elemwise_binary_scalar_op.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
BlockMultiplierMatrixUtil.h
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full licence information. // #pragma once #define NOMINMAX #include <fstream> #include <functional> #include <iostream> #include <limits> #include <string.h>//for memset #include "BlockMult...
rsvp_fmt_plug.c
/* * Cracker for HMAC-MD5 and HMAC-SHA1 based authentication in RSVP. * * 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, ...
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) >...
StmtOpenMP.h
//===- StmtOpenMP.h - Classes for OpenMP directives ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
sample-3.c
#include <stdio.h> #include <omp.h> #include <stdlib.h> #include <math.h> int main() { int *A, sum #pragma omp parallel shared(count) { } printf("Sum: %d\n",stats[0]+stats[1]); }
mri-q_AI.c
/*************************************************************************** * * (C) Copyright 2007 The Board of Trustees of the * University of Illinois * All Rights Reserved * * MRI-Q: Magnetic Resonance Imaging * Computes a matrix Q, represent...
threading-query-solution.c
#include <omp.h> #include "mpi.h" #include <stdio.h> /* Help pretty-print some strings for the MPI_THREAD_* constants */ const char* mpi_thread_strings[4] = { "MPI_THEAD_SINGLE", "MPI_THREAD_FUNNELED", "MPI_THREAD_SERIALIZED", ...
cgetrf.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/zgetrf.c, normal z -> c, Fri Sep 28 17:38:06 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
livenessCheck.c
int main () { int shared; int dummy; #pragma omp parallel { int local; if (1 > 2) { local = 2; #pragma omp atomic write shared = 1; local = local + 5; #pragma omp barrier } else { int local1; #pragma omp barrier #pragma omp atomic read local1 = shared; local = 14; local = local + 1; } }...
GB_binop__ne_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...
CachedWots.h
#ifndef CACHED_WOTS #define CACHED_WOTS #include "wots/ClassicWots.h" template <class D, int W> class CachedWots : public virtual ClassicWots<D,W> { public: CachedWots() noexcept {}; CachedWots(const ByteArray& seed) noexcept : ClassicWots<D,W>(seed) {}; const std::vector<ByteArray> sign(ByteArray& data) final { ...
target_array_extension.c
// -------------------------------------------------- // Check extends before // -------------------------------------------------- // RUN: %libomptarget-compile-aarch64-unknown-linux-gnu \ // RUN: -fopenmp-version=51 -DEXTENDS=BEFORE // RUN: %libomptarget-run-fail-aarch64-unknown-linux-gnu 2>&1 \ // RUN: | %fcheck-...
cdiffuse.c
double nanmean(const double *a, const unsigned int n) { unsigned int i, k; double s; s = 0; k = 0; for(i = 0; i < n; i++) { if(isnan(a[i])) continue; s += a[i]; k++; } s /= k; return s; } void cdfuse(double *t, double *s, const unsigned int u,...
broadcast_reduce_customized-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
GB_unaryop__minv_uint8_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...
mat.h
#pragma once #include <iostream> #include <iomanip> #include <string> #include <algorithm> #include <vector> #include <fstream> #include <sstream> #include <map> #include <set> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <cfloat> #include <cassert> #include "config.h" #include "...
im2col_nchw.c
/** * This file is part of convGemm * * Copyright (C) 2021-22 Universitat Politècnica de València and * Universitat Jaume I * * 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 ...
main.c
// // main.c // omp_multi_matrices // // Created by Vicente Cubells Nonell on 06/11/14. // Copyright (c) 2014 Vicente Cubells Nonell. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <omp.h> #include <time.h> #define N 10 int main(int argc, const char * argv[]) { int i,j; int size...
LAGraph_Sort3.c
//------------------------------------------------------------------------------ // LAGraph_Sort3: sort a 3-by-n list of integers, using A[0:2][ ] as the key //------------------------------------------------------------------------------ // LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved. // SPDX-L...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable 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) > (b) ? a : b) #...
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) >...
GB_binop__minus_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-...
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...
GB_unaryop__ainv_int64_uint64.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__div_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
requires-2.c
#pragma omp requires /* { dg-error "requires at least one clause" } */ #pragma omp requires unified_shared_memory,unified_shared_memory /* { dg-error "too many 'unified_shared_memory' clauses" } */ #pragma omp requires unified_address unified_address /* { dg-error "too many 'unified_address' clauses" } */ #pragma omp r...
DRB024-simdtruedep-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...
eval_bpmll_loss_cpumex.c
#include <math.h> #include "mex.h" #include <omp.h> void compute_deriv_per_example(double const * const T, double const * const P, const int nDim, const int m, double * const delta_m) { unsigned int k,l,j; double delta_sum; unsigned int n_po...
bias_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...
GrB_Vector_wait.c
//------------------------------------------------------------------------------ // GrB_Vector_wait: wait for a vector to complete //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier:...
softmax-inl.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
example_1.c
#include <stdio.h> #include <omp.h> int main(int argc, char const *argv[]) { /* code */ int x = 2; #pragma omp parallel num_threads(2), shared(x) { { if (omp_get_thread_num() == 0) { x = 5; } else { printf("1: Thread# %d: x = %d\n", omp_get...
jacobi_float.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/timeb.h> #include <malloc.h> #include <math.h> #define REAL float static double read_timer_ms() { struct timeb tm; ftime(&tm); return (double) tm.time * 1000.0 + (double) tm.millitm; } /************************************************...
allocArray.c
/* Copyright 2009 Sylvain Foret (sylvain.foret@anu.edu.au) This file is part of Velvet. Velvet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your op...
detectionoutput.h
/* // Copyright (c) 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.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable l...
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 // //===---------------------------...
test.c
#include <stdio.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #define N 100 int main() { check_offloading(); int a[N], aa[N]; int i, error = 0; // initialize for(i=0; i<N; i++) aa[i] = a[i] = -1; // offload #pragma omp target map(tofrom: a[0:100]) { int ...
YAKL_parallel_for_fortran.h
#pragma once namespace fortran { template <class T> constexpr T fastmod(T a , T b) { return a < b ? a : a-b*(a/b); } /////////////////////////////////////////////////////////// // LBnd: Loop Bound -- Describes the bounds of one loop /////////////////////////////////////////////////////////// cla...
thdat02.c
/* * 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 this list * of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce t...
GB_unaryop__minv_uint8_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...
droplet_impact_plate.c
/* droplet_impact_plate.c A Basilisk script to model the impact of a droplet of water impacting onto a moving plate. The domain is set to be in an accelerating frame with the plate, so an additional body force is added. */ // Filtering for large viscosity ratios #define FILTERED // Definition of viscosi...
sum.h
#pragma once #include <array> #include <vector> #include <omp.h> #include "_cuda.h" using namespace std; template <class T> T sum(T *x, int N) { T a = T(); for (int i=0; i<N; i++) a += x[i]; return a; } template <class T, size_t N> T sum(array<T, N>& x) { return sum(x.data(), x.size()); } template ...
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...
strsm.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/ztrsm.c, normal z -> s, Fri Sep 28 17:38:03 2018 * **/ #include "plasma.h" #include "plasma_async.h" #incl...
pack_kernel_c.c
/*Crown Copyright 2012 AWE. * * This file is part of CloverLeaf. * * CloverLeaf is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your option) * any later version. * * ...
radial_integrals.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 notice, ...
boolarray.h
/** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * * (c) Daniel Lemire, http://lemire.me/en/ */ #ifndef BOOLARRAY_H #define BOOLARRAY_H #include <iso646.h> // mostly for Microsoft compilers #include <stdarg.h> #include <cassert> #include <cstring> #include <iost...
mkl_util.h
/* Copyright 2017 The TensorFlow Authors. 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 applicable law or a...
tree_ns.h
// ************************************************************************* // Copyright (C) 2016 by Arash Bakhtiari // You may not use this file except in compliance with the License. // You obtain a copy of the License in the LICENSE file. // Unless required by applicable law or agreed to in writing, software // di...
main.c
#define _CRT_SECURE_NO_WARNINGS #define LEAN_AND_MEAN #include <windows.h> #include <omp.h> #include <stdbool.h> #include <stdio.h> #include <assert.h> #include "math.h" #include "common_shader_core.h" #include "external/Remotery/Remotery.h" #include "external/octarine/octarine_mesh.h" typedef int DXGI_FORMAT; #inclu...
detach_nested_task.c
// RUN: %libomp-compile-and-run // Checked gcc 10.1 still does not support detach clause on task construct. // UNSUPPORTED: gcc-4, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9, gcc-10 // gcc 11 introduced detach clause, but gomp interface in libomp has no support // XFAIL: gcc-11, gcc-12 // clang supports detach clause since ver...
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) >...
H2GEMM.h
// // Created by Bangtian Liu on 9/1/19. // #ifndef PROJECT_H2GEMM_H #define PROJECT_H2GEMM_H #include <iostream> #include <math.h> #include <float.h> #include <assert.h> #include <string.h> #include <stdio.h> #include <stdint.h> #include <cholUtils.h> #ifndef HALIDE_ATTRIBUTE_ALIGN #ifdef _MSC_VER #define HALIDE_ATTR...
invertc.c
/* cc -lm t4.c -qsmp */ #include <stdio.h> #include <stdlib.h> #include <omp.h> #include <math.h> #include <sys/time.h> #include <unistd.h> #define FLT double /* utility routines */ FLT system_clock(FLT *x); FLT **matrix(int nrl,int nrh,int ncl,int nch); /* work routines */ void mset(FLT **m, int n, int in); FLT mch...
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. // //===-------------------------------------------------------...
FindHaloes.c
// Re-write of find_halos.c from the original 21cmFAST // ComputeHaloField takes in a k_space box of the linear overdensity field // and filters it on decreasing scales in order to find virialized halos. // Virialized halos are defined according to the linear critical overdensity. // ComputeHaloField outputs a cube ...
matmult.c
/****************************************************************************** * OpenMp Example - Matrix Multiply - C Version * Demonstrates a matrix multiply using OpenMP. * * Modified from here: * https://computing.llnl.gov/tutorials/openMP/samples/C/omp_mm.c * * For PAPI_FP_INS, the exclusive coun...
MM1f.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "matrixUtils/matrixUtils.h" #include "benchmarkUtils/timeUtils.h" // Reserva de memoria #define SIZE_DATA (1024*1024*64*3) static double MEM_CHUNK[SIZE_DATA]; // Version 5. version del algoritmo filas por filas. int main(int argc, char **argv){ ...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
4-32t.c
#include <stdio.h> #include <omp.h> int main() { int i; omp_set_num_threads(32); #pragma omp parallel for for (i=0; i<16; i++) { printf("Hello from thread number: %d Iteration: %d \n", omp_get_thread_num(), i); } printf("\n GoodBye – Team Destroyed – Exiting Program \...
omp_task_shared.c
<ompts:test> <ompts:testdescription> Test to see if implied shared works correctly</ompts:testdescription> <ompts:ompversion>3.0</ompts:ompversion> <ompts:directive>omp task</ompts:directive> <ompts:dependences>omp single, omp task firstprivate</ompts:dependences> <ompts:testcode> #include <stdio.h> #include <math.h> #...
dz1z1.c
# include <stdlib.h> # include <stdio.h> # include <math.h> # include <time.h> # include <omp.h> #include "common.h" int main ( int argc, char *argv[] ); double f ( double x ); int sequential ( int argc, char *argv[], double *result, double *time ); int parallel ( int argc, char *argv[], double *result, double *time...
hello_par.c
#include <stdio.h> #include <omp.h> int main () { int nthreads = 4; // omp_set_num_threads(nthreads); #pragma omp parallel { int id = omp_get_thread_num(); printf("Hello World from thread = %d", id); printf(" with %d threads\n",omp_get_num_threads()); } printf...
graphProcessing.h
/* FINISH TEMPFLATPATH CODE AS WRITTEN, THESE FUNCTIONS WILL ONLY WORK WITH GRAPHS THAT ARE IMPLEMENTED IN THE boost NAMESPACE. */ #define LP 1 #define PERFDEBUG 0 //#define FULLDEBUG 1 #ifdef _OPENMP #include <omp.h> #endif #include <boost/regex.hpp> #include <iostream> #include <fstream> #include <string> #inc...
sum_cpu_omp_kernel.c
// // Created by Yonghong Yan on 1/7/16. // #include "sum.h" #include <homp.h> #ifdef USE_INTEL_MKL #include <mkl.h> #endif void sum_cpu_omp_wrapper(omp_offloading_t *off, long start_n, long length_n, REAL *x, REAL *y, REAL *result) { int num_omp_threads = off->dev->num_cores; long i; REAL sum = 0.0; ...
test_lite.h
/* Copyright (c) 2016 Anakin Authors All Rights Reserve. 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...
host_as_target.c
// Check that specifying device as omp_get_initial_device(): // - Doesn't cause the runtime to fail. // - Offloads code to the host. // - Doesn't transfer data. In this case, just check that neither host data nor // default device data are affected by the specified transfers. // - Works whether it's specified direct...
distribute_parallel_for_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized void xxx(int argc) { int x; // expected-note {{initialize the variable 'x' to silence this warning}} #pragma omp distribute parallel for simd for (int i = 0; i < 10; ++i) ...
declare_reduction_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s int temp; // expected-note 6 {{'temp' declared here}} #pragma omp declare reduction // expected-error {{expected '(' after 'declare reduction'}} #pragma omp declare reduction { ...
GB_binop__rminus_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-...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable 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) > (b) ? a : b) #...
ring_mpi_omp.c
/* Inicializando-se uma variável com um valor zero e a passando para outros processos que deverão abrir threads para incrementar a variável recebida, assim como o próprio processo deverá incrementá-la para que, logo em sequida, a envie para o próximo processo para que ocorrá o mesmo até o anel se...
Parallelizer.h
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can ob...
GB_unop__identity_int64_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...
lsh_index.h
/*********************************************************************** * Software License Agreement (BSD License) * * Copyright 2008-2009 Marius Muja (mariusm@cs.ubc.ca). All rights reserved. * Copyright 2008-2009 David G. Lowe (lowe@cs.ubc.ca). All rights reserved. * * THE BSD LICENSE * * Redistrib...
sync_strategies.c
// Utilities void print_all_threads(shared_state_t *S, private_state_t *private_state, unsigned char *buffer) { #pragma omp critical { printf("\n%d: ", private_state->thread_id); for (int i = 0; i < S->N_OF_CORES; i++) { printf("%u ", buffer[i]); } } } /* Windowed_resy...
psd.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
mode_op.h
/* Copyright (c) 2021 PaddlePaddle Authors. 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 applicable law or ag...
GB_unaryop__lnot_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...
TransformController.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 <set> #include "Transformer.h" #include "SequenceEnumerator.h" #include "ExceptionCapture.h" namespace Microsoft { namespace MSR { nam...
seq_multivector.c
/****************************************************************************** * Copyright (c) 1998 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) ***************************************...
systolic_PEs.c
#define N 1000 #define NB_CLUSTERS 4 #define MIN(x, y) ((x) < (y) ? x : y) #include <stdio.h> /* Compute a polynomial with Hörner method in a pipelined way with a systolic line of PE (((ax + b)x + c)x + d)x + e This is a spatial developping of the streaming example in stream_cluster_PEs.c. So read strea...
GB_binop__lt_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-...
main.c
#include <stdio.h> #include <omp.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> // Calculate |𝛢𝑖𝑖| > ∑ |𝐴𝑖𝑗| where j=0…N-1 i<>j bool strictlyDiagonallyDominant(int *sddArray, int sddArraySize, int chunk) { int i, j, sum; bool isSDD = true; #pragma omp parallel shared(sddArray, sddArrayS...
atomic-12.c
/* PR middle-end/45423 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-gimple -g0 -Wno-deprecated" } */ /* atomicvar should never be referenced in between the barrier and following #pragma omp atomic_load. */ /* { dg-final { scan-tree-dump-not "barrier\[^#\]*atomicvar" "gimple" } } */ /* { dg-skip-...
GB_unop__bnot_int16_int16.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...
sync_progress.c
/* * Copyright (c) 2009, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <stdl...
lenet.c
#include "lenet.h" #include <memory.h> #include <time.h> #include <stdlib.h> #include <math.h> //################################################################ // Start of PAPI related variables //################################################################ #include <papi.h> #include <stdio.h> #include <stdlib.h>...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
slam_residuals.h
#ifndef SLAM_RESIDUALS_H #define SLAM_RESIDUALS_H #include <vector> #include "../util/slam_types.h" #include "./data_structures.h" #include "Eigen/Geometry" #include "ceres/ceres.h" /* This file contains all the residuals (error functions) used in the * optimization process to solve for the maximum likelihood map. ...
hash_table.h
/** * @file hash_table.h * @brief HashTable Class. * @author Yu Peng (ypeng@cs.hku.hk) * @version 1.0.0 * @date 2011-08-03 */ #ifndef __CONTAINER_HASH_TABLE_H_ #define __CONTAINER_HASH_TABLE_H_ #include <omp.h> #include <stdint.h> #include <cstddef> #include <functional> #include <istream> #include <ostream> ...
GB_binop__lxor_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
problem.p4.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
morph_library2.h
#ifndef MORPH_LIBRARY_H #define MORPH_LIBRARY_H #include "CImgFloatWrapper.h" #include "loewner_declaration.h" #include "conversions.h" #include "morph_color_matrix.h" #include "morph_circle.h" #include "morph_smallest_circle_mask.h" #include "einstein_operations.h" #include "omp.h" #include <stdio.h> #include <stdl...
GB_binop__bset_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
dgeqrs.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/zgeqrs.c, normal z -> d, Fri Sep 28 17:38:05 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...