source
stringlengths
3
92
c
stringlengths
26
2.25M
sldtestunit.c
#include <stdio.h> // printf #include <inttypes.h> // uint64_t and int64_t vars displaying on printf // currently unused #include <stdlib.h> // atoi atof #include <math.h> #include "sldouble.h" #ifdef _WIN32 #include <Windows.h> int gettimeofday(struct timeval * tp...
macro-2.c
// { dg-do compile } #define p parallel #define s(x) shared(x##1, x##2) #define d(x) default(x) void bar(int, int, int, int); void foo(void) { int a1, a2, b1, b2; #pragma omp p s(a) s(b) d(none) bar(a1, a2, b1, b2); }
omp-simd-clone.c
/* OMP constructs' SIMD clone supporting code. Copyright (C) 2005-2017 Free Software Foundation, Inc. This file is part of GCC. GCC 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, or (at your ...
modifier_view.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2015, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and us...
sufsort_utils.h
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. 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,...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
dahua_fmt_plug.c
/* * Format for cracking Dahua hashes. * * http://www.securityfocus.com/archive/1/529799 * https://github.com/depthsecurity/dahua_dvr_auth_bypass * * 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: * * Redist...
AI_model1.c
#include"AI.h" #include <omp.h> #define MAXSTEP 3 //#define CHECK_SCORE //This is for simple spawn //the simulation function for the branches in the searching tree int ai_model1_simulate(GameState *gameState, Player *player, int depth) { if(depth<=0)return ai_sum_scores(gameState,player); int MaxScore=-60000...
csr_matvec.c
/*BHEADER********************************************************************** * Copyright (c) 2006 The Regents of the University of California. * Produced at the Lawrence Livermore National Laboratory. * Written by the HYPRE team. UCRL-CODE-222953. * All rights reserved. * * This file is part of HYPRE (see ht...
convolution_1x1_int8.h
// SenseNets is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2018 SenseNets Technology Ltd. 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 of t...
runtime_error.c
// RUN: %libomp-compile-and-run 2>&1 | sort | FileCheck %s // REQUIRES: ompt #include <string.h> #include <stdio.h> #include "callback.h" // TODO: use error directive when compiler suppors typedef void ident_t; extern void __kmpc_error(ident_t *, int, const char *); int main() { #pragma omp parallel num_threads(2) ...
GrB_Scalar_nvals.c
//------------------------------------------------------------------------------ // GrB_Scalar_nvals: number of entries in a sparse GrB_Scalar //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License...
idasFoodWeb_bnd_omp.c
/* * ----------------------------------------------------------------- * Programmer(s): Daniel R. Reynolds and Ting Yan @ SMU * Based on idaFoodWeb_bnd.c and parallelized with OpenMP * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2019, Lawr...
RangeDrivenOctree.h
/// \ingroup base /// \class ttk::RangeDrivenOctree /// \author Julien Tierny <julien.tierny@lip6.fr> /// \date March 2015. /// /// \brief TTK optional package for octree based range queries in bivariate /// volumetric data. /// /// This class accelerates range-driven queries in bivariate volumetric data. /// This cl...
trace.c
#include "trace.h" #include <omp.h> Event events[MAXTHREADS][MAXEVENTS]; int nevents[MAXTHREADS]; void trace_init(){ int i; #pragma omp master { /* strcpy(colors[0], "#d38d5f"); */ /* strcpy(colors[1], "#ffdd55"); */ /* strcpy(colors[2], "#8dd35f"); */ /* strcpy(colors[3], "#80b3ff"); */ /*...
convolution_sgemm_pack4to8_fp16s.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 ...
tp_pointcloud_obstacle_barnes_hut_0.h
#pragma once #include "rsurface_types.h" #include "surface_energy.h" #include "helpers.h" #include "bct_constructors.h" #include "optimized_bct_types.h" #include "optimized_cluster_tree.h" #include "derivative_assembler.h" namespace rsurfaces { // 0-th order multipole approximation of tangent-point energy cl...
zgeqrf.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma.h" #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include ...
881.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
sdp.c
/* Solve a semidefinite programming problem using the algorithm of Helmberg, Rendl, Vanderbei, and Wolkowicz. Note: This version of the code uses predictor correct steps. Usage: Return codes: 0 Success. 1 Success. The problem is primal infeasibile, and we ...
omp.cats
#ifndef OPENMP_OMP_CATS #define OPENMP_OMP_CATS /* ****** ****** */ #include <omp.h> /* ****** Utilities ****** */ #define atscntrb_openmp_STR(x) #x #define atscntrb_openmp_STRINGIFY(x) atscntrb_openmp_STR(x) #define atscntrb_openmp_CONCATFUN(X, Y) X ( Y ) /* ****** OpenMP Directives (#pragmas) ****** */ #define...
binbased_projection.h
// KRATOS __ __ _____ ____ _ _ ___ _ _ ____ // | \/ | ____/ ___|| | | |_ _| \ | |/ ___| // | |\/| | _| \___ \| |_| || || \| | | _ // | | | | |___ ___) | _ || || |\ | |_| | // |_| |_|_____|____/|_| |_|___|_| \_|\____| APPLICATION // // License: BSD License // ...
poly_driver.c
#include <stdlib.h> #include "util.h" #include "poly_driver.h" void poly(const int n, VARR sum, const VARR x, const FLOAT_TYPE * restrict P) { __builtin_assume_aligned(x,ALIGN); __builtin_assume_aligned(P,ALIGN); __builtin_assume_aligned(sum,ALIGN); VARR tmp __attribute__ ((aligned (ALIGN))) = {0.0}; ...
Example_device.1.c
/* * @@name: device.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ #include <stdio.h> #include <omp.h> #pragma omp declare target void vec_mult(float *p, float *v1, float *v2, int N); extern float *p, *v1, *v2; extern int N; #pragma omp end declare target extern void i...
bml_transpose_ellsort_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_parallel.h" #include "../bml_transpose.h" #include "../bml_types.h" #include "bml_allocate_ellsort.h" #include "bml_transpose_ellsort.h" #include "bml_types_ellsort.h" #include <complex.h> #include <math.h> #include <stdli...
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) #...
utils.h
// Copyright (c) 2019 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 ...
kmeans_clustering.c
/*****************************************************************************/ /*IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. */ /*By downloading, copying, installing or using the software you agree */ /*to this license. If you do not agree to this license, do not download, */ ...
omp_matvec.c
/****************************************************************************** * OpenMP Example - Matrix-vector multiplication - C/C++ Version * FILE: omp_matvec.c * DESCRIPTION: * This example multiplies all row i elements of matrix A with vector * element b(i) and stores the summed products in vector c(i). A to...
omp_for_schedule_dynamic.c
// RUN: %libomp-compile-and-run /* * Test for dynamic scheduling with chunk size * Method: caculate how many times the iteration space is dispatched * and judge if each dispatch has the requested chunk size * unless it is the last one. * It is possible for two adjacent chunks are assigned to the same threa...
expected_output.c
#include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <polybench.h> #include "mvt.h" /** * 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 */ /*mvt....
declare_mapper_messages.c
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 100 %s // RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 100 %s int temp; // expected-note {{'temp' declared here}} struct vec { // expected-note {{definition of 'struct vec' is not complete until the cl...
GB_unop__identity_uint16_uint16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
suma_vector.c
#include <stdio.h> #include <stdlib.h> #include "omp.h" /* Basado en el tutorial: http://openmp.org/mp-documents/omp-hands-on-SC08.pdf */ void suma(double *A, double *B, double *C, int n_points); double *reserva(int n_points); void print(double *x, int n_points); void main (){ double *A, *B, *C; int n_points...
interpolate_op.h
/* Copyright (c) 2018 PaddlePaddle 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...
eavlInfoTopologyGatherMapOp.h
// Copyright 2010-2014 UT-Battelle, LLC. See LICENSE.txt for more information. #ifndef EAVL_INFO_TOPOLOGY_GATHER_MAP_OP_H #define EAVL_INFO_TOPOLOGY_GATHER_MAP_OP_H #include "eavlCUDA.h" #include "eavlCellSet.h" #include "eavlCellSetExplicit.h" #include "eavlCellSetAllStructured.h" #include "eavlDataSet.h" #include "...
target.c
#include <stdio.h> #include "assert.h" #include <unistd.h> #pragma omp declare target void vmul(int*a, int*b, int*c, int N){ #pragma omp parallel for for(int i=0;i<N;i++) { c[i]=a[i]*b[i]; } } #pragma omp end declare target
spmv_N_thread_static.c
/* ********************************************* * 314 Principles of Programming Languages * * Fall 2016 * ********************************************* * * Read a real (non-complex) sparse matrix from a Matrix Market (v. 2.0) file * and a vector from a txt file, perform matrix mu...
GB_unaryop__abs_fp64_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...
progress_counter.h
#ifndef TEX_PROGRESSCOUNTER_HEADER #define TEX_PROGRESSCOUNTER_HEADER #include <atomic> #include <fstream> #include <iostream> #include <sstream> #include "util/timer.h" #include <cmath> enum ProgressCounterStyle{ ETA, SIMPLE }; static const std::string clear = "\r" + std::string(80,' ') + "\r"; /* * 显示处理进度...
ParallelAlgorithms.c
/* ============================================================================ Author : Roberto Diaz Morales ============================================================================ Copyright (c) 2016 Roberto Díaz Morales Permission is hereby granted, free of charge, to any person obtaining a copy of ...
test.c
// RUN: %libomptarget-compile-run-and-check-aarch64-unknown-linux-gnu // RUN: %libomptarget-compile-run-and-check-powerpc64-ibm-linux-gnu // RUN: %libomptarget-compile-run-and-check-powerpc64le-ibm-linux-gnu // RUN: %libomptarget-compile-run-and-check-x86_64-pc-linux-gnu #define IN_PARALLEL 0 #include <omp.h> #includ...
pr66142.c
/* PR middle-end/66142 */ /* { dg-do compile } */ /* { dg-additional-options "-ffast-math -fopenmp-simd" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ struct A { float x, y; }; struct B { struct A t, w; }; static inline float bar (const struct B *x) { struct A r; float b, c, d; r.x = x->t....
Example_udr.2.c
/* * @@name: udr.2.c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ #include <stdio.h> #include <limits.h> struct point { int x; int y; }; #pragma omp declare reduction(min : struct point : \ omp_out.x = omp_in.x > omp_out.x ? omp_out.x : omp_in.x, \ ...
mxEvaluateSurfValue.c
#ifdef _OPENMP #include <omp.h> #endif #include "mex.h" #include "blas.h" #define NRHS 4 #define NLHS 2 // #define DEBUG void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { /* check input & output */ if (nrhs != NRHS) { mexPrintf("Matlab:%s:InvalidNumberInput,\n", __FILE__); m...
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...
pr96424.c
/* PR tree-optimization/96424 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -O0 -fexceptions -fnon-call-exceptions -fprofile-use -Wno-missing-profile" } */ void foo (void) { int i, j; #pragma omp for collapse (2) for (i = 0; i < 10; ++i) for (j = 0; j <= i; ++j) ; } void bar (void) { int i, j; ...
utils.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "utils.h" // #include "lapacke.h" /* Auxiliary routine: printing a matrix */ // void print_matrix( char* desc, lapack_int m, lapack_int n, double* a, lapack_int lda ) // { // lapack_int i, j; // printf( "\n %s\n", desc ); // ...
3d7pt.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 * Adapted from PLUTO and Pochoir test bench * * Tare...
GB_binop__lt_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-...
DRB018-plusplus-orig-yes.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
_utils.c
/* Generated by Cython 0.28.5 */ /* BEGIN: Cython Metadata { "distutils": { "depends": [ "mnnpy/_utils.h" ], "extra_compile_args": [ "-O2", "-ffast-math", "-march=native", "-fopenmp" ], "extra_link_args": [ ...
GB_unaryop__identity_int32_fp32.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_unop__bnot_uint16_uint16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
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. // //===-------------------------------------------------------...
unfold.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/unfold.c" #else /* note: due to write issues, this one cannot be parallelized as well as unfolded_copy */ void THNN_(unfolded_acc)( THTensor *finput, THTensor *input, int kW, int kH, int dW, int dH, ...
omp3-2.c
#include<stdio.h> #ifndef N #define N 5000 #endif #define M 1000000000 int a[N][N], b[N][N]; int main() { int i, j, x, y, sum; #pragma omp parallel sections { #pragma omp section for (i = 0; i < N; i++) for (j = 0; j < N; j++) a[i][j] = i + j; #pragma omp section for (x = 0; x < N...
comms.h
/* //@HEADER // ***************************************************************************** // // HPCGraph: Graph Computation on High Performance Computing Systems // Copyright (2016) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government r...
openmp2.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <sys/sysconf.h> int main (int argc, char *argv[]) { int nthreads, tid; printf("SC_NPROCESSORS_ONLN: %d\n", sysconf (_SC_NPROCESSORS_ONLN)); printf("SC_NPROCESSORS_CONF: %d\n", sysconf (_SC_NPROCESSORS_CONF)); #pragma omp parallel default(sh...
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) >...
simdtruedep-var-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...
convolutiondepthwise_3x3_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 ...
run-on-cpu.c
/* * Copyright 2016 Vanya Yaneva, The University of Edinburgh * * 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 b...
smg_residual_unrolled.c
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
omp_flush.c
#include <stdio.h> #include <unistd.h> #include <omp.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" int check_omp_flush (FILE * logFile) { int result1 = 0; int result2 = 0; int dummy; #pragma omp parallel { int rank; rank = omp_get_thread_num (); #pragma omp barrier if (rank == 1) {...
spectra.c
#include "common.h" typedef struct { int l; RunParams *par; char *tr1; char *tr2; } IntClPar; static double cl_integrand(double lk,void *params) { double d1,d2; IntClPar *p=(IntClPar *)params; double k=pow(10.,lk); double pk=csm_Pk_linear_0(p->par->cpar,k); d1=transfer_wrap(p->l,k,p->par,p->tr1,0); ...
dynamic_fmt.c
/* * This software was written by Jim Fougeron jfoug AT cox dot net * in 2009-2013. No copyright is claimed, and the software is hereby * placed in the public domain. In case this attempt to disclaim * copyright and place the software in the public domain is deemed * null and void, then the software is Copyright (...
duplex.c
/* * compute the duplex structure of two RNA strands, * allowing only inter-strand base pairs. * see cofold() for computing hybrid structures without * restriction. * * Ivo Hofacker * Vienna RNA package */ #if...
serial_tree_learner.h
#ifndef LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #define LIGHTGBM_TREELEARNER_SERIAL_TREE_LEARNER_H_ #include <LightGBM/utils/random.h> #include <LightGBM/utils/array_args.h> #include <LightGBM/tree_learner.h> #include <LightGBM/dataset.h> #include <LightGBM/tree.h> #include "feature_histogram.hpp" #include "spli...
oracle12c_fmt_plug.c
/* * This software is Copyright (c) 2015, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, * are permitted. * * https://www.trustwave.com/Resources/SpiderLabs-Bl...
master_taskloop_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -triple x86_64-unknown-unknown -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -triple x86_64-unknown-unknown -verify %s -Wuninitialized void xxx(int argc) { int x; // expected-note {{initialize the variable 'x' to silence this warning}} #pragma om...
GrB_Type_wait.c
//------------------------------------------------------------------------------ // GrB_Type_wait: wait for a user-defined GrB_Type to complete //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Licens...
decorate.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
conv_kernel_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...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- 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 // //===---------------------------...
archive_blake2sp_ref.c
/* BLAKE2 reference source code package - reference C implementations Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under the terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at your option. The terms of these licenses can be found at: - CC0 1.0 Universal :...
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-...
GB_unop__identity_int64_fc32.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...
target.c
// RUN: %libomptarget-compile-aarch64-unknown-linux-gnu -fopenmp-version=51 // RUN: %libomptarget-run-fail-aarch64-unknown-linux-gnu 2>&1 \ // RUN: | %fcheck-aarch64-unknown-linux-gnu // RUN: %libomptarget-compile-powerpc64-ibm-linux-gnu -fopenmp-version=51 // RUN: %libomptarget-run-fail-powerpc64-ibm-linux-gnu 2>&1 \...
ordered3.c
#include <stdio.h> #include <omp.h> int main (void) { int i,j, myval; #pragma omp parallel for private(myval) ordered(2) for(i=1; i<=100; i++) for(j=1; j<=100; j++) { myval=i*j; #pragma omp ordered { printf("%d %d\n", i, myval); } } return 0; }
SymOp.h
void forward(double *y, const double *x, int n){ #pragma omp parallel for for(int i=0;i<n;i++){ y[i*9] = x[6*i+0]; y[i*9+1] = x[6*i+1]; y[i*9+2] = x[6*i+2]; y[i*9+3] = x[6*i+1]; y[i*9+4] = x[6*i+3]; y[i*9+5] = x[6*i+4]; y[i*9+6] = x[6*i+2]; y[i*9+7] = x[6*i+4]; y[i*9+8] = x[6*i+5...
cov_fcts.h
/*! * This file is part of GPBoost a C++ library for combining * boosting with Gaussian process and mixed effects models * * Copyright (c) 2020 Fabio Sigrist. All rights reserved. * * Licensed under the Apache License Version 2.0. See LICENSE file in the project root for license information. */ #ifndef GPB_COV_FUNCTION...
phpassMD5_fmt_plug.c
/* * This software was written by Jim Fougeron jfoug AT cox dot net in 2009. * No copyright is claimed, and the software is hereby placed in the public * domain. In case this attempt to disclaim copyright and place the software in * the public domain is deemed null and void, then the software is Copyright * (c) 2...
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, ...
rect2lune.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "compearth.h" #ifdef COMPEARTH_USE_MKL #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wreserved-id-macro" #pragma clang diagnostic ignored "-Wstrict-prototypes" #endif #include <mkl_cblas.h> #ifdef __clang__ #pragma cla...
mypaint-tiled-surface.c
/* libmypaint - The MyPaint Brush Library * Copyright (C) 2007-2014 Martin Renold <martinxyz@gmx.ch> et. al. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
oskar_evaluate_cross_power_omp.c
/* * Copyright (c) 2014-2015, The University of Oxford * 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 ...
primo_numeros_reduction.c
#include <stdio.h> #include <math.h> #include <omp.h> typedef unsigned long long Entero_grande; //#define N 100000000ULL #define N 100000000ULL int primo(Entero_grande n) { int p; Entero_grande i, s; p = (n % 2 != 0 || n == 2); if (p) { s = sqrt(n); for (i = 3; p && i <= s; i += 2) if (n % i ...
data.c
#include "data.h" #include "utils.h" #include "image.h" #include "cuda.h" #include <stdio.h> #include <stdlib.h> #include <string.h> pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; list *get_paths(char *filename) { char *path; FILE *file = fopen(filename, "r"); if(!file) file_error(file...
gemm.c
#include "gemm.h" #include "utils.h" #include "im2col.h" #include "dark_cuda.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <float.h> #include <string.h> #include <stdint.h> #ifdef _WIN32 #include <intrin.h> #endif #if defined(_OPENMP) #include <omp.h> #endif #define TILE_M 4 // 4 ops #define TIL...
matrix.c
// // Created by vmachado on 2/11/20. // #include "matrix.h" matrix* matrix_alloc(int rows, int columns) { int len = rows * columns; matrix *out = aalloc(sizeof(*out)); out->data = aalloc(sizeof(float) * len); out->rows = rows; out->columns = columns; return out; } static inline matrix *in...
GB_binop__eq_int64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
eval.c
/***************************************************************************** * * Elmer, A Finite Element Software for Multiphysical Problems * * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland * * This library is free software; you can redistribute it and/or * modify it under the term...
ReebSpace.h
/// \ingroup base /// \class ttk::ReebSpace /// \author Julien Tierny <julien.tierny@lip6.fr> /// \date October 2015. /// /// \brief TTK processing package that efficiently computes the Reeb space of /// bivariate volumetric data. /// /// The Reeb space is a useful topological abstraction of bivariate scalar /// fie...
q_rhashmap_mk_hash.tmpl.c
#include "q_rhashmap_common.h" #include "_q_rhashmap_mk_hash___K__.h" //------------------------------------------------------ int q_rhashmap_mk_hash___K__( __KEYTYPE__ *keys, // input [nkeys] uint32_t nkeys, // input uint64_t hmap_hashkey, // input uint32_t *hashes// output ) { int status ...
Example_threadprivate.1.c
/* * @@name: threadprivate.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success */ int counter = 0; #pragma omp threadprivate(counter) int increment_counter() { counter++; return(counter); }
GB_unop__bnot_uint8_uint8.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...
lu.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - LU This benchmark is an OpenMP C version of the NPB LU code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
single.c
#include<stdio.h> #include<omp.h> int main() { #pragma omp parallel { #pragma omp single { printf("Top Secret\n"); } // We have an implicit barrier here to ensure that the single thread is executed before continuing printf("Don't tell it to anyone\n"); } ...