source
stringlengths
3
92
c
stringlengths
26
2.25M
raytracer.h
#pragma once #include "resource.h" #include <linalg.h> #include <memory> #include <omp.h> #include <random> #include <time.h> using namespace linalg::aliases; namespace cg::renderer { struct ray { ray(float3 position, float3 direction) : position(position) { this->direction = normalize(direction); } float3 po...
ex7.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include "timer.h" int main(int argc, char **argv) { const long N = 10000; const long M = 1000000; double tempo, fim, inicio; int i, j, cont, T; T = atoi(argv[1]); GET_TIME(inicio); for (i = 0; i < N; i++) ...
THTensorConv.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/THTensorConv.c" #else /* 2D Input, 2D kernel : convolve given image with the given kernel. */ TH_API void THTensor_(validXCorr2Dptr)(real *r_, real alpha, real *t_, long ir, long ic, ...
BKTree.h
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef _SPTAG_COMMON_BKTREE_H_ #define _SPTAG_COMMON_BKTREE_H_ #include <stack> #include <string> #include <vector> #include <shared_mutex> #include "../VectorIndex.h" #include "CommonUtils.h" #include "QueryResultSet.h...
geo_region_growing.h
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistribut...
GB_binop__bxnor_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
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...
hello_hybrid.c
#include <stdio.h> #include "mpi.h" #include <omp.h> int main(int argc, char *argv[]) { int numprocs, rank, namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; int iam = 0, np = 1; MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &numprocs); MPI_Comm_rank(MPI_COMM_WORLD, &rank); MPI_Get_processor...
image.c
#ifndef TH_GENERIC_FILE #define TH_GENERIC_FILE "generic/image.c" #else #undef MAX #define MAX(a,b) ( ((a)>(b)) ? (a) : (b) ) #undef MIN #define MIN(a,b) ( ((a)<(b)) ? (a) : (b) ) #undef TAPI #define TAPI __declspec(dllimport) #ifndef M_PI #define M_PI 3.14159265358979323846 #endif static void image_(Main_op_va...
expected_output.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> //--------------------------------------------------------------------- // program SP //--------------------------------------------------------------------- //---------- // Class S: //---------- //---------- // Class W: ...
feature.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
visualize.c
/***************************************************************************** * x264: h264 encoder ***************************************************************************** * Copyright (C) 2005 Tuukka Toivonen <tuukkat@ee.oulu.fi> * * This program is free software; you can redistribute it and/or modify * it ...
resize.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
gpg_fmt_plug.c
/* GPG cracker patch for JtR. Hacked together during Monsoon of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com> . * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com> * and is based on, * * pgpry - PGP private key recovery * Copyright (C) 2010 Jonas Gehring * * This program is f...
hecmw_partition.c
/***************************************************************************** * Copyright (c) 2019 FrontISTR Commons * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #define INAGAKI_PARTITIONER #include <stdio.h> #inc...
GB_binop__land_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-...
repeat_base.h
// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2013, Knut Reinert, FU Berlin // All rights reserved. // // Redistribution and us...
mpy_lowlevel_strided_loops.h
#ifndef __MPY_LOWLEVEL_STRIDED_LOOPS_H #define __MPY_LOWLEVEL_STRIDED_LOOPS_H #include <npy_config.h> /* * This function pointer is for unary operations that input an * arbitrarily strided one-dimensional array segment and output * an arbitrarily strided array segment of the same size. * It may be a fully general ...
diagmm_x_coo_u_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *y, const ALPHA_INT ldy) { ALPHA_INT...
GB_positional_op_ip.c
//------------------------------------------------------------------------------ // GB_positional_op_ip: C = positional_op (A), depending only on i //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
pooling_layer.h
//Tencent is pleased to support the open source community by making FeatherCNN available. //Copyright (C) 2018 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 o...
distribute-1.c
int s1, s2, s3, s4, s5, s6, s7, s8; #pragma omp declare target (s1, s2, s3, s4, s5, s6, s7, s8) void f1 (void) { int i; #pragma omp distribute for (i = 0; i < 64; i++) ; #pragma omp distribute private (i) for (i = 0; i < 64; i++) ; #pragma omp distribute for (int j = 0; j < 64; j++) ; #prag...
parallel_for_sum.c
#include <stdio.h> int main(void){ int total = 0; int n_iter = 1000000; #pragma omp parallel for for(int i=0; i<n_iter; i++){ total++; } printf("Value: %d", total); return 0; }
blackscholes.c
// Copyright (c) 2007 Intel Corp. // Black-Scholes // Analytical method for calculating European Options // // // Reference Source: Options, Futures, and Other Derivatives, 3rd Edition, Prentice // Hall, John C. Hull, #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #ifdef ENABLE_PARSEC_H...
GB_unaryop__identity_uint8_uint32.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_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
cpd_hicoo.c
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
Searching.202007281234.only_gather_top_m.h
// // Created by Zhen Peng on 7/28/2020. // #ifndef BATCH_SEARCHING_SEARCHING_H #define BATCH_SEARCHING_SEARCHING_H #include <vector> #include <boost/dynamic_bitset.hpp> //#include <boost/sort/sort.hpp> #include <iostream> #include <fstream> #include <unordered_map> #include <immintrin.h> #include <cstring> #include ...
Example_tasking.7.c
/* * @@name: tasking.7c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_3.0 */ int tp; #pragma omp threadprivate(tp) int var; void work() { #pragma omp task { /* do work here */ #pragma omp task { tp = 1; /* do work here */ #pragma omp t...
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__abs_uint64_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...
convolution_sgemm_packn_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 ...
DRB084-threadprivatemissing-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
GB_binop__bor_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-...
rt_dlauum.c
#include "runtime.h" void RT_CORE_dlauum(Quark *quark, Quark_Task_Flags *task_flags, PLASMA_enum uplo, int n, int nb, double *A, int lda) { plasma_context_t *plasma; plasma = plasma_context_self(); if (plasma->runtime == PLASMA_QUARK) { QUARK_CORE_dlauum(quark, task_f...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__ainv_int32_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
tool_available.c
// The OpenMP standard defines 3 ways of providing ompt_start_tool: // 1. "statically-linking the tool’s definition of ompt_start_tool into an OpenMP application" // RUN: %libomp-compile -DCODE -DTOOL && %libomp-run | FileCheck %s // Note: We should compile the tool without -fopenmp as other tools developer // w...
dgelqf.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/zgelqf.c, normal z -> d, Fri Sep 28 17:38:01 2018 * **/ #include "plasma.h" #include "plasma_async.h" #inc...
generator.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <random> #include <iostream> #include "graph.h" #include "pvector.h" #include "util.h" #include <boost/rando...
task_codegen.c
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c -emit-llvm %s -o - | FileCheck %s // RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -emit-pch -o %t %s // RUN: %clang_cc1 -fopenmp -x c -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s // expected-...
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) #...
convert_csc_x_coo.c
#include "alphasparse/format.h" #include <stdlib.h> #include <alphasparse/opt.h> #include <alphasparse/util.h> #include <memory.h> static int col_first_cmp(const ALPHA_Point *a, const ALPHA_Point *b) { if (a->y != b->y) return a->y - b->y; return a->x - b->x; } alphasparse_status_t ONAME(const ALPHA_S...
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) #...
GB_unop__identity_int16_bool.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...
CostEvaluatorFull.h
/********************************************************************************************************************** This file is part of the Control Toolbox (https://adrlab.bitbucket.io/ct), copyright by ETH Zurich, Google Inc. Authors: Michael Neunert, Markus Giftthaler, Markus Stäuble, Diego Pardo, Farbod Farshi...
shared_update.c
// RUN: %libomptarget-compile-run-and-check-generic // REQUIRES: unified_shared_memory // amdgcn does not have printf definition // XFAIL: amdgcn-amd-amdhsa #include <stdio.h> #include <omp.h> // --------------------------------------------------------------------------- // Various definitions copied from OpenMP RT...
o5logon_fmt_plug.c
/* Cracker for Oracle's O5LOGON protocol hashes. Hacked together during * September of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * O5LOGON is used since version 11g. CVE-2012-3137 applies to Oracle 11.1 * and 11.2 databases. Oracle has "fixed" the problem in version 11.2.0.3. * * This software is Copyri...
DRACC_OMP_042_Wrong_ordered_clause_Inter_yes.c
/* Data race between the values in countervar leading to changing results, by utilising the ordered construct the execution will be sequentially consistent. */ #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #define N 42000 int countervar[N]; int init(){ for(int i=0; i<N; i++){ countervar[i]=0...
core_zlantr.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> c d s * **/ #include "core_blas.h" #include "plasma_types.h" #include "plasma_internal.h" #include "core_lapack.h" #include <math.h> /*******************...
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) #...
pt_mat.h
// -*- mode:c++;c-basic-offset:4 -*- #ifndef INCLUDED_PT_MAT_H__ #define INCLUDED_PT_MAT_H__ #include <config.h> /*! \file \brief Generic parallel transport. */ #include <util/gjp.h> #include <comms/scu.h> #include <util/omp_wrapper.h> #include <vector> #include <cstddef> CPS_START_NAMESPACE // namespace pt_g...
transpose.h
// This code is part of the Problem Based Benchmark Suite (PBBS) // Copyright (c) 2011-2016 Guy Blelloch and the PBBS team // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restri...
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 * * Redistribution an...
GB_binop__bor_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-...
HeatStencil.c
#include <errno.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define RESOLUTION_WIDTH 50 #define RESOLUTION_HEIGHT 50 #define HEAT_SOURCE_TEMP 333.00f // 273 + 60 K #define DELTA_TIME 0.02f #define PERROR fprintf(stderr, "%s:%d: error: %s\n", __FILE__, __LINE__, st...
master.c
// OpenMP Master Example #include <omp.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char** argv ) { int num_threads = 0; // Number of Threads int thread_id = 0; // ID Number of Running Thread #pragma omp parallel private( num_threads, thread_id ) { // Get the Thread Number thre...
mclib.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <glob.h> #include <unistd.h> #include <dirent.h> #include "hdf5.h" #include <math.h> #include <time.h> #include <gsl/gsl_math.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_blas.h> #include <gsl/gsl_vect...
axpy_ompacc.c
// Experimental test input for Accelerator directives // simplest scalar*vector operations // Liao 1/15/2013 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> /* change this to do saxpy or daxpy : single precision or double precision*/ #define REAL double #define VEC_LEN 1024000 //use a fix...
nodes.c
#include "nodes.h" #include "../../../comms.h" #include "../../../profiler.h" #include "../../nodes_data.h" #include "../../nodes_interface.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // Solve the unstructured diffusion problem void solve_unstructured_diffusion_2...
pmmomp.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif #include <string.h> void printMatriz (int n, int **m) { int i, j; for (i=0; i<n; i++) { for (j=0; j<n; j++) printf("%d ", m[i][j]); printf("\n"); } } int main(int argc, char const *argv[]) { i...
distributed_sort.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #define AROW 3 #define ACOL 10000 #define MAX_VALUE 10 int compare_ints (const void *a, const void *b) { const int *da = (const int *) a; const int *db = (const int *) b; return (*da > *db) - (*da < *db); } int* sort(int* row) { ...
GB_cast_array.c
//------------------------------------------------------------------------------ // GB_cast_array: typecast an array //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 /...
ft.c
/*-------------------------------------------------------------------- NAS Parallel Benchmarks 3.0 structured OpenMP C versions - FT This benchmark is an OpenMP C version of the NPB FT code. The OpenMP C 2.3 versions are derived by RWCP from the serial Fortran versions in "NPB 2.3-serial" developed by N...
trilinos_residual_criteria.h
// KRATOS _____ _ _ _ // |_ _| __(_) (_)_ __ ___ ___ // | || '__| | | | '_ \ / _ \/ __| // | || | | | | | | | | (_) \__ // |_||_| |_|_|_|_| |_|\___/|___/ APPLICATION // // License: BSD License // Kratos default license: kratos/license.txt // ...
SimplexNoiseKernel.h
/**************************************************************************** ** Copyright 2019 The Open Group ** Copyright 2019 Bluware, Inc. ** ** 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...
energy.h
#pragma once #include "space.h" #include <Eigen/Dense> #ifdef ENABLE_POWERSASA #include <power_sasa.h> #endif namespace Faunus { namespace ReactionCoordinate { struct ReactionCoordinateBase; } namespace Energy { class Energybase { public: enum keys { OLD, NEW, NONE }; keys key = NONE; std::string na...
GB_unaryop__identity_bool_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_binop__iseq_uint16.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_subassign_04.c
//------------------------------------------------------------------------------ // GB_subassign_04: C(I,J) += A ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com See Gra...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_emult_04_template.c
//------------------------------------------------------------------------------ // GB_emult_04_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...
GB_binop__band_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_extractTuples.c
//------------------------------------------------------------------------------ // GB_extractTuples: extract all the tuples from a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Ide...
softmax.h
// Copyright 2018 Xiaomi, Inc. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
lis_precon_iluk.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...
constr_dens.c
// for license information, see the accompanying LICENSE file #include "vars_nuclear.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <complex.h> #include <assert.h> #include <mpi.h> extern double pi ; double minr( double , double ) ; void grid3( double * , double * , double * , const int...
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. // //===-------------------------------------------------------...
pr68640.c
/* { dg-do compile } */ /* { dg-options "-O2 -fopenmp -fdump-tree-ealias-all" } */ #define N 1024 int foo (int *__restrict__ ap) { int *bp = ap; #pragma omp parallel for for (unsigned int idx = 0; idx < N; idx++) ap[idx] = bp[idx]; } /* { dg-final { scan-tree-dump-times "clique 1 base 1" 2 "ealias" } } */ /*...
single3.c
/* */ #include <stdio.h> #include <omp.h> #include<assert.h> int a; int b; int main(void) { #pragma omp parallel { #pragma omp single { int num_threads = 2; } #pragma omp single nowait copyprivate(a,b) { int num_threads = 3; } } return 0; }
trilinos_residual_criteria.h
// KRATOS _____ _ _ _ // |_ _| __(_) (_)_ __ ___ ___ // | || '__| | | | '_ \ / _ \/ __| // | || | | | | | | | | (_) \__ // |_||_| |_|_|_|_| |_|\___/|___/ APPLICATION // // License: BSD License // Kratos default license: kratos/license.txt // ...
cg.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "globals.h" #include "randdp.h" #include "timers.h" //--------------------------------------------------------------------- /* common / main_int_mem / */ static int colidx[NZ]; static int rowstr[NA+1]; static int iv[NA]; static int arow[NA]; static int...
matrix.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
feature_group.h
/*! * Copyright (c) 2017 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_FEATURE_GROUP_H_ #define LIGHTGBM_FEATURE_GROUP_H_ #include <cstdio> #include <memory> #include <vector> #include <LightGBM/bin.h>...
main.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> int main(int argc, const char *argv[]) { int i; double x; double pi; long steps = 1000000000; if (argc > 1) { steps = atoi(argv[1]); } else { printf("Use: %s [puntos]\n", argv[0]); } double step = 1.0 /...
distort.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
LAGraph_pagerankx4.c
//------------------------------------------------------------------------------ // LAGraph_pagerankx4: pagerank using a real semiring //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2020 LAGraph Contributors. (se...
bml_allocate_ellpack_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_types.h" #include "bml_allocate_ellpack.h" #include "bml_types_ellpack.h" #include <complex.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <assert.h> #ifdef _OPENMP #include <omp.h> #endif /** Clea...
trmv_c_csr_u_lo_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include <stdlib.h> static alphasparse_status_t trmv_x_csr_u_lo_conj_omp(const ALPHA_Number alpha, ...
mysql_netauth_fmt_plug.c
/* Cracker for MySQL network authentication hashes. Hacked together * during May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and ...
mandelbrot-4.c
/* The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ contributed by Paolo Bonzini further optimized by Jason Garrett-Glaser pthreads added by Eckehard Berns further optimized by Ryan Henszey modified by Samy Al Bahra (use GCC atomic builtins) modified by Kenneth Jonsson */ ...
wre.c
#include "wre.h" #include "wmm.h" #include "wor.h" void wdre (const size_t n, wide K2[static restrict 1], wide RE[static restrict 1], wide OU[static restrict 1], wide OV[static restrict 1], const double A11[static restrict 1], const double A21[static restrict 1], const double A12[static restrict 1], const double A22...
GB_unaryop__ainv_bool_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...
CGOpenMPRuntime.h
//===----- CGOpenMPRuntime.h - Interface to OpenMP Runtimes -----*- 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 // //===---------------------------...
Example_target_mapper.1.c
/* * @@name: target_mapper_map.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_5.0 */ #include <stdlib.h> #include <stdio.h> #define N 100 typedef struct myvec{ size_t len; double *data; } myvec_t; #pragma omp declare mapper(myvec_t v) \ map(v, v...
convolution_1x1.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 ...
pdf_fmt.c
/** * Copyright (C) 2006 Henning Norén * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is dis...
transpose.c
/* Copyright (c) 2013, Intel Corporation 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 the following disclaimer...
_hypre_utilities.h
/*** DO NOT EDIT THIS FILE DIRECTLY (use 'headers' to generate) ***/ #ifndef hypre_UTILITIES_HEADER #define hypre_UTILITIES_HEADER #include "HYPRE_utilities.h" #ifdef HYPRE_USING_OPENMP #include <omp.h> #endif #ifdef __cplusplus extern "C" { #endif /****************************************************************...
GB_binop__minus_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...