source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_unop__round_fc32_fc32.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...
GB_unaryop__identity_int64_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...
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> #...
fourier.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
compare.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unop__log10_fc64_fc64.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...
myFunc.h
//#define __declspec(x) // Rob Farber #include <stdlib.h> #include <string.h> #include <stdint.h> #include <malloc.h> #include <math.h> #include <omp.h> #define MIC_DEV 0 #define ALLOC alloc_if(1) free_if(0) #define FREE alloc_if(0) free_if(1) #define REUSE alloc_if(0) free_if(0) // Use a struct to pass and get data...
GB_unop__minv_int32_int32.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...
senha-openmp.c
/* Henrique Noronha Facioli * RA: 157986 * Lab 6 - Quebrar senha arquivo ZIP * Para está abordagem o será usado openmp tasks em que será criada uma fila * de tamanho 500000 e cada uma das taskas será encarregada de executar a aber- * tura e leitura do arquiv (parte mais demorada). Será utilizada uma variável * sh...
mixed_tentusscher_myo_epi_2004_S3_1.c
// Scenario 3-1 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt + Rd) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S3_1.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_...
convolution_pack4to1_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
parte1.c
#include <stdio.h> static long num_steps = 1000000; double step; void main(){ int i; double x, pi, sum = 0.0; step = 1.0/(double) num_steps; #pragma omp parallel for reduction(+:sum) private(x) for (i=0;i< num_steps; i++) { x = (i+0.5)*step; sum = sum + 4.0/(1.0+x*x); } pi = step * sum; printf("Pi = %g\n", pi...
reduce_demo.c
//------------------------------------------------------------------------------ // GraphBLAS/Demo/Program/reduce_demo: reduce a matrix to a scalar //------------------------------------------------------------------------------ #include "GraphBLAS.h" // #define N 65536 #define N 16384 int main (void) { #if ...
compute.c
#include <sys/time.h> #include <math.h> #include <stdlib.h> #include "omp.h" #include "compute.h" #ifdef GEN_PICTURES static void do_draw(const struct parameters *p, size_t key, size_t h, size_t w, double (*restrict g)[h][w]) { begin_picture(key, w-2, h-2, p->io_tmin, p->io_tmax); siz...
GB_subassign_08s_and_16.c
//------------------------------------------------------------------------------ // GB_subassign_08s_and_16: C(I,J)<M or !M> += A ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Id...
ex5.c
#include <stdio.h> #include <omp.h> #include "timer.h" int main(int argc, char **argv) { const long N = 10000; const long M = 100000; double tempo, fim, inicio; int i, j, cont; GET_TIME(inicio); #pragma omp parallel for for (i = 0; i < N; i++) fo...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
add_matrices.c
#include<stdio.h> #include<omp.h> #define EME 300 #define ENE 300 #define N EME*ENE void set_matrix(int *); void add_matrix(int *, int *); void print_matrix(int *); int main(){ int A[EME][ENE], B[EME][ENE], *a, *b; double start = omp_get_wtime(); set_matrix(A); set_matrix(B); printf("MATRIX A\n"); //print_matri...
GB_unaryop__minv_int64_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
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...
concat_bn_relu.h
#pragma once #include <immintrin.h> #include <ATen/ATen.h> #include <ATen/ExpandUtils.h> #include <ATen/Parallel.h> #include <c10/util/SmallVector.h> #include <limits> #include "utils.h" namespace torch_ipex { namespace cpu { namespace kernel { namespace vec { namespace vec512 { using Tensor = at::Tensor; template...
omp_task.c
<ompts:test> <ompts:testdescription>Test which checks the omp task directive. The idea of the tests is to generate a set of tasks in a single region. We let pause the tasks generated so that other threads get sheduled to the newly opened tasks.</ompts:testdescription> <ompts:ompversion>3.0</ompts:ompversion> <ompts:dir...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
GB_unaryop__ainv_int8_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
3d25pt.c
/* * Order-2, 3D 25 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)...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- 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_kernel_SIMD.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <time.h> #include <omp.h> #include "H2Pack.h" #include "H2Pack_kernels.h" #include "parse_scalar_params.h" #include "direct_nbody.h" static void Gaussian_3D_eval_std_d(KRNL_EVAL_PARAM) { EXTR...
average_omp.h
#pragma once #include "exblas/exdot_omp.h" #include "config.h" #include "vector_categories.h" #ifdef MPI_VERSION #include "exblas/mpi_accumulate.h" #endif //MPI_VERSION namespace dg { template<class value_type> void transpose_dispatch( OmpTag, unsigned nx, unsigned ny, const value_type* RESTRICT in, value_type* RESTR...
gdal_et_pot_d.c
#include<stdio.h> #include<omp.h> #include<math.h> #include "gdal.h" #include "et_pot_d.h" void usage() { printf( "-----------------------------------------\n"); printf( "--Modis Processing chain--OpenMP code----\n"); printf( "-----------------------------------------\n"); printf( "./et_pot_d inRnetd inLst\n"); ...
Efficient_RANSAC.h
// Copyright (c) 2015 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL$ // $Id$ // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : Sven Oesau, Yannick Verdie, Clément Jamin, Pierre Alliez // #ifndef CGAL_SHAP...
logramp.c
#include<Python.h> #include<numpy/arrayobject.h> #include<math.h> #include<omp.h> #define IND(a,i) *((double *)(a->data+i*a->strides[0])) static PyObject *logramp(PyObject *self, PyObject *args, PyObject *keywds); static PyObject *logramp(PyObject *self, PyObject *args, PyObject *keywds) { PyObject *etc; PyArray...
GB_unop__abs_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...
GB_unop__ceil_fc32_fc32.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...
tnc.c
/* tnc : truncated newton bound constrained minimization using gradient information, in C */ /* * Copyright (c) 2002-2005, Jean-Sebastien Roy (js@jeannot.org) * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Sof...
ten_tusscher_2004_epi_S2_19.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S2_19.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } //TODO...
GB_emult_03_template.c
//------------------------------------------------------------------------------ // GB_emult_03_template: C<M>= A.*B, M sparse/hyper, A and B bitmap/full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // S...
mafilltcompmain.c
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2015 Guido Dhondt */ /* This program is free software; you can redistribute it and/or */ /* modify it under the terms of the GNU General Public License as */ /* pub...
pcgstrf.c
/*! \file Copyright (c) 2003, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from U.S. Dept. of Energy) All rights reserved. The source code is distributed under BSD license, see the file License.txt at the top-level director...
fill_ints.c
/* * Author: Qiming Sun <osirpt.sun@gmail.com> */ #include <stdlib.h> #include <complex.h> #include "config.h" #include "cint.h" #define NCTRMAX 72 static void axpy_s1(double complex **out, double *in, double complex *expLk, int nkpts, int comp, size_t off, size_t ni...
GB_Matrix_extractElement.c
//------------------------------------------------------------------------------ // GB_Matrix_extractElement: x = A(row,col) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier: Apach...
GB_binop__minus_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-...
morphology.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
calculate_water_fraction.h
#if !defined(KRATOS_CALCULATE_WATER_FRACTION_UTILITY_INCLUDED ) #define KRATOS_CALCULATE_WATER_FRACTION_UTILITY_INCLUDED // System includes #include <string> #include <iostream> #include <algorithm> // Project includes #include "includes/define.h" #include "pfem_2_application.h" #include "utilities/math_utils.h" #in...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
updater_basemaker-inl.h
/*! * Copyright 2014 by Contributors * \file updater_basemaker-inl.h * \brief implement a common tree constructor * \author Tianqi Chen */ #ifndef XGBOOST_TREE_UPDATER_BASEMAKER_INL_H_ #define XGBOOST_TREE_UPDATER_BASEMAKER_INL_H_ #include <xgboost/base.h> #include <xgboost/tree_updater.h> #include <vector> #incl...
GB_unop__identity_bool_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...
lis_input_mm.c
/* Copyright (C) 2002-2012 The SSI Project. 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 of condition...
matrix.c
#include "private/lacore_private.h" #include <stdlib.h> /* // Not well defined functions. Make them clear and write this file again #define cast_and_transpose(type, in, out)\ do{\ int i, j, c;\ int ChannelSize = rows(in)*cols(in);\ for(c=0; c < channels(in); c++) {\ type *in_data = data(in);\ ...
types-rng.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "config.h" #include "io.h" #include "jump.h" #include "malloc.h" #include "random.h" #include "seed.h" #include "version.h" #include "SFMT.h" #include "SFMT-jump.h" const char * const TOOL = "types-rng"; _Noreturn static void usage(void) { versio...
AsynchronousGibbsSampler.h
#ifndef __COGAPS_ASYNCHRONOUS_GIBBS_SAMPLER_H__ #define __COGAPS_ASYNCHRONOUS_GIBBS_SAMPLER_H__ #include "../atomic/ConcurrentAtomicDomain.h" #include "../atomic/ProposalQueue.h" #include "../data_structures/Matrix.h" #include "../math/Math.h" #include "../math/VectorMath.h" #include "../math/MatrixMath.h" #i...
linked_omp25.c
#include <stdlib.h> #include <stdio.h> #include "omp.h" #define N 5 #define FS 38 #define NMAX 10 struct node { int data; int fibdata; struct node* next; }; int fib(int n) { int x, y; if (n < 2) { return (n); } else { x = fib(n - 1); y = fib(n - 2); return ...
silly-sort.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main() { int i, j, n = 10000; int nthreads = 2; // Allocate input, output and position arrays int *in = (int *)calloc(n, sizeof(int)); int *out = (int *)calloc(n, sizeof(int)); int **pos = (int **)calloc(nthreads, sizeof(int *)); // Ini...
compare.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
attack_mp.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <math.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <omp.h> #include "util.h" int main(int argc, char *argv[]) { char* input_fileName1 = argv[1]; ...
hello1.c
#include <stdio.h> #include <omp.h> int main(void) { omp_set_num_threads(8); //I have set the number of threads =4, you can change this. #pragma omp parallel printf("Hello, world.\n"); return 0; }
integral_solution_parallel.c
// integral_solution_parallel.c // compile with: /openmp /* ############################################################################# ## DESCRIPTION: Integral Solutin in Parallel using OpenMP - PI Value. ## NAME: integral_solution_parallel.c ## AUTHOR: Lucca Pessoa da Silva Matos ## DATE: 10.04.2020 ## VERSION: 1....
PolyaGammaPar.h
// -*- mode: c++; -*- //////////////////////////////////////////////////////////////////////////////// // Copyright 2012 Nick Polson, James Scott, and Jesse Windle. // This file is part of BayesLogit. // BayesLogit is free software: you can redistribute it and/or modify it under // the terms of the GNU Gen...
parallel_dgemm.c
/* Copyright 2018 Los Alamos National Laboratory * Copyright 2009-2018 Purdue University and Purdue University Research Foundation * * 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 L...
statistic.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
main.c
#pragma clang diagnostic push #pragma ide diagnostic ignored "openmp-use-default-none" #include <stdio.h> #include <malloc.h> #include <omp.h> #include <stdlib.h> #include "omp.h" void merge(int *array, const int *arraySize, int *tmp, const int *tmpSize, int *result) { int i = 0; while (array <= arraySize &&...
fig4.58-critical-region-minval.c
/* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 2009 Sun Microsystems, Inc. All rights reserved. The contents of this file are subject to the terms of the BSD License("BSD")(the "License"). You can obtain a copy of the License at: http://www.opensparc.net/pubs/t1/licenses/BSD+_Lice...
Matriplex.h
#ifndef RecoTracker_MkFitCore_src_Matriplex_Matriplex_h #define RecoTracker_MkFitCore_src_Matriplex_Matriplex_h #include "MatriplexCommon.h" namespace Matriplex { //------------------------------------------------------------------------------ template <typename T, idx_t D1, idx_t D2, idx_t N> class Matriplex...
tinyexr.h
/* Copyright (c) 2014 - 2015, Syoyo Fujita All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
rawSHA512_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...
sectionsConstruct.c
int main() { int x = 10; #pragma omp parallel { int localX; #pragma omp sections { #pragma omp section { localX = 10; } #pragma omp section { localX = 5; } #pragma omp section { localX = 2; } } } x = 20; }
ast-dump-openmp-teams-distribute-parallel-for.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target #pragma omp teams distribute parallel for for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp targ...
ext_kernels.h
#pragma once #include <stdbool.h> void initialise_device_memory(void); #pragma omp declare target void zero_edge_flux_buffers(void); #pragma omp end declare target void zero_flux_moments_buffer(void); void zero_flux_in_out(void); void zero_scalar_flux(void); void calc_inner_source(void); void calc_outer_source(void...
eigrp_fmt_plug.c
/* * Cracker for EIGRP (Cisco's proprietary routing protocol) MD5 + HMAC-SHA-256 authentication. * http://tools.ietf.org/html/draft-savage-eigrp-00 * * This is dedicated to Darya. You inspire me. * * This software is Copyright (c) 2014, Dhiru Kholia <dhiru [at] openwall.com>, * and it is hereby released to the g...
md5.c
/* * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc. * MD5 Message-Digest Algorithm (RFC 1321). * * Homepage: * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5 * * Author: * Alexander Peslyak, better known as Solar Designer <solar at openwall.com> * * ...
displacement_lagrangemultiplier_residual_frictional_contact_criteria.h
// KRATOS ______ __ __ _____ __ __ __ // / ____/___ ____ / /_____ ______/ /_/ ___// /________ _______/ /___ ___________ _/ / // / / / __ \/ __ \/ __/ __ `/ ___/ __/\__ \/ __/ ___/ / / / ___/ __/ / / / ___/ __ `/ / // / /___/ /_...
finder.c
#include "allvars.h" #include "finder.h" void FindCenters() { int i; clock_t t; fprintf(logfile,"\n SELECTING UNDERDENSE REGIONS \n"); t = clock(); NumVoid = 0; for (i=0; i<NumTrac; i++) { if (Tracer[i].Delta <= DeltaSeed) { Void.push_back(voids()); Void[NumVoid].Pos[0] = T...
GB_binop__isne_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...
DRB051-getthreadnum-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...
ompt-signal.h
/* * ompt-signal.h -- Header providing low-level synchronization for tests */ //===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is a copy from runtime/test/ompt/ // //===-----------------------------------------...
pubkeylp.h
/** * @file pubkeylp.h -- Public key type for lattice crypto operations. * @author TPOC: contact@palisade-crypto.org * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permit...
intruder.c
/* ============================================================================= * * intruder.c * * ============================================================================= * * Copyright (C) Stanford University, 2006. All Rights Reserved. * Author: Chi Cao Minh * * =======================================...
GB_binop__bxnor_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_binop__isge_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-...
omp_array.c
/****************************************************************************** * * FILE: omp_array.c * * DESCRIPTION: * * Array addition - C/C++ Version * * This is a simple array adition running with omp * * AUTHOR: Victor Rodriguez * * LAST REVISED: 04/06/05 * *****************************************...
main_direct_method.c
/* #include <stdio.h> */ /* #include <stdlib.h> */ /* #include <string.h> */ #include <sys/stat.h> #include "direct_method.h" #include "IO.h" #include "mpi.h" #include "omp.h" int nb_proc; int my_rank; long long unsigned int test; /* Buffer des Pj et Fj pour les calculs distants */ extern COORDINATES_T *pj_pos_x;...
query.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <netdb.h> #include <arpa/inet.h> #include <strings.h> #include <string.h> #include <errno.h> #include <signal.h> #include <time.h> #include <stda...
depend-3.c
/* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void bar (int a[10][10][10]); void foo (int a[10][10][10], int **b, int x) { int c[10][10][10]; #pragma omp task depend(out: a[2:4][3:0][:7]) /* { dg-error "zero length array section" } */ bar (a); #pragma omp task depend(inout: b[:7][0:0][:0]) /* { dg-...
corr_mat.c
#include <time.h> #include "corr_mat.h" static inline void _vvmul( float * restrict X, float * restrict Y, uint32_t n, double * restrict Z ) { // #pragma omp simd for ( uint32_t i = 0; i < n; i++ ) { Z[i] = X[i] * Y[i]; } } static inline void _sum( double * restrict X, uint32_t ...
templatemath.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * Copyright (c) 2019 Konduit K.K. * * 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.apa...
TaskEndLink.c
int x; int main() { #pragma omp task { 11; } #pragma omp task { int x; } }
compressor_zfp.h
/** * Copyright 2019 The Gamma Authors. * * This source code is licensed under the Apache License, Version 2.0 license * found in the LICENSE file in the root directory of this source tree. */ #pragma once #ifdef WITH_ZFP #include <limits.h> #include <math.h> #include <omp.h> #include "compressor.h" #include "...
convolutiondepthwisebnrelu_3x3.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
triad.h
#ifndef TRIAD_H #define TRIAD_H namespace TSnap { ///////////////////////////////////////////////// // Triads and clustering coefficient /// Computes the average clustering coefficient as defined in Watts and Strogatz, Collective dynamics of 'small-world' networks. ##TSnap::GetClustCf template <class PGraph...
convolution_1x1_packnto1.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- 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 // //===---------------------------...
polybench.c
/** * This version is stamped on May 10, 2016 * * Contact: * Louis-Noel Pouchet <pouchet.ohio-state.edu> * Tomofumi Yuki <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /* polybench.c: this file is part of PolyBench/C */ #include <stdio.h> #include <string.h> #include <stdlib.h> #in...
GB_binop__bor_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_binop__iseq_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-...
Layer_LSTM.h
// // smarties // Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland. All rights reserved. // Distributed under the terms of the MIT license. // // Created by Guido Novati (novatig@ethz.ch). // #ifndef smarties_LSTMLayer_h #define smarties_LSTMLayer_h #include "Layers.h" namespace smarties { class LSTMLayer: p...
declare-variant-11.c
/* { dg-do compile } */ /* { dg-additional-options "-foffload=disable -fdump-tree-gimple" } */ /* { dg-additional-options "-mavx512bw -mavx512vl" { target { i?86-*-* x86_64-*-* } } } */ void f01 (void); void f02 (void); #pragma omp declare variant (f01) match (device={isa(avx512f,"avx512vl")}) #pragma omp declare vari...
declare_simd_aarch64_warning_advsimd.c
// REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -fopenmp %s -S -o %t -verify // RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -fopenmp-simd %s -S -o %t -verify #pragma omp declare simd simdlen(6) double foo(float x); // expected-warning@...
requantize_leakyrelu_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 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 ...
par_add_cycle.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) **************************************...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...