source stringlengths 3 92 | c stringlengths 26 2.25M |
|---|---|
ml_mg_utils.h | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
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 <LightGBM/bin.h>
#include <LightGBM/meta.h>
#include <LightGBM/utils... |
myFunc.h | #ifndef USE_CUDA
#define __device__
#endif
#define restrict
#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 al... |
deprecate.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
trsm_x_coo_n_hi_col.c | #include "alphasparse/kernel.h"
#include "alphasparse/util.h"
#include "alphasparse/opt.h"
#include <memory.h>
alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy)
{
ALPHA_INT m = A-... |
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.
//
//===-------------------------------------------------------... |
calc_pi_reduction.c | #define _POSIX_C_SOURCE 200112L
//Johannes Hartmann, Jonas Einig
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <ctype.h>
#include <math.h>
#include <omp.h>
void getparams(int argc, char **argv, int *iterations);
int isNumber(char *number);
void calculatePi(int iterations);
in... |
GB_binop__max_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-... |
a_numbers.c | #include <stdio.h>
#include <stdlib.h>
#include <omp.h>
void print_array(int **a, const int length)
{
for (int y = 0; y < length; y++)
{
for (int x = 0; x < length; x++)
{
printf("%d ", a[y][x]);
}
printf("\n");
}
printf("\n");
}
int main(const int argc, const char *argv[])
{
if (argc < 3)
{
printf... |
GB_unaryop__identity_int8_bool.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
example_polygon_rotation.c | #include <stdio.h>
#include "rasterizer.h"
int main() {
const int w = 1000;
const int h = 1000;
// load alice polygon model from STL file
Polygon *polygon = PolygonReadSTL("models/alice.stl");
// define camera
Camera *camera = CameraPerspectiveProjection(V(2, 0, 0), V(0, 0, 0), V(0, 1, 0), w, h, 0.1, 10... |
GB_binop__plus_int16.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_binop__plus_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-... |
omp-num-thread.c |
#include <stdio.h>
#include <omp.h>
int main()
{
printf("from main, MNT = %d\n", omp_get_max_threads());
#pragma omp parallel
{
printf("NT = %d\n", omp_get_max_threads());
}
return 0;
}
|
sweep_small_systems.h | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
Example_taskloop.2.c | /*
* @@name: taskloop.2c
* @@type: C
* @@compilable: yes
* @@linkable: no
* @@expect: success
* @@version: omp_4.5
*/
#include <stdio.h>
#define T 16
#define N 1024
void parallel_work() {
int x1 = 0, x2 = 0;
#pragma omp parallel shared(x1,x2) num_threads(T)
{
#pragma omp taskloop
fo... |
truedepseconddimension-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_AxB_saxpy3_symbolic.c | //------------------------------------------------------------------------------
// GB_AxB_saxpy3_symbolic: symbolic analysis for GB_AxB_saxpy3
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://suit... |
cache.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
program_evaluator.h | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2010, 2011, 2012 Google Inc. All rights reserved.
// http://code.google.com/p/ceres-solver/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... |
GB_unop__identity_bool_uint8.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... |
GB_unaryop__ainv_int32_int64.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http... |
parallel_all_edge_cnc.h | #pragma once
#include <mutex>
#include "libpopcnt.h"
#include "util/search/search_util.h"
#include "util/intersection/intersection_util.h"
#include "util/serialization/pretty_print.h"
#include "util/timer.h"
#include "util/util.h"
#include "util/containers/boolarray.h"
#include "util/intersection/set_inter_cnt_utils... |
q_helper.h | /*!
* Copyright (c) 2017 by Contributors
* \file q_helper.h
* \brief Quantization helper function
* \author HPI-DeepLearning
*/
#ifndef MXNET_Q_HELPER_H
#define MXNET_Q_HELPER_H
#include "../../src/operator/mshadow_op.h"
#include <mshadow/tensor.h>
#include <mshadow/expression.h>
namespace mxnet {
namespace op {... |
GB_unop__identity_fp64_bool.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... |
GeneralMatrixMatrix.h | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file... |
ast-dump-openmp-target-data.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(int x) {
#pragma omp target data map(x)
;
}
// CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc>
// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-... |
configurator.c | /* Simple tool to create config.h.
* Would be much easier with ccan modules, but deliberately standalone.
*
* Copyright 2011 Rusty Russell <rusty@rustcorp.com.au>. MIT license.
*
* c12r_err, c12r_errx functions copied from ccan/err/err.c
* Copyright Rusty Russell <rusty@rustcorp.com.au>. CC0 (Public domain) Lice... |
core_zgelqt.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 <omp.h>
/********************... |
matrix_cpu_omp.c | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <omp.h>
///
/// function name: cpu_matrix_mult
///
/// description: dot product of two matrix (not only square) in CPU,
/// for validating GPU results
///
/// parameters:
/// &a CPU host pointer to a m X... |
ejercicio_06.c |
/* EJERCICIO 6
* Hacer un programa en OpenMP que resuelva la siguiente ecuación: y=x3+5x-30 para x de -100 a 100.
* - Encuentrar el número de raices usando 4 threads con parallel sections. [✔]
*/
// Librerias
#include <omp.h>
#include <stdio.h>
... |
semantics.c | /* Perform the semantic phase of parsing, i.e., the process of
building tree structure, checking semantic consistency, and
building RTL. These routines are used both during actual parsing
and during the instantiation of template functions.
Copyright (C) 1998-2018 Free Software Foundation, Inc.
Written ... |
schedule.c |
#include <stdio.h>
#include <omp.h>
int
main (void)
{
int tid, i;
#pragma omp parallel private(tid)
{
tid = omp_get_thread_num();
printf("static scheduler ...\n");
#pragma omp for schedule(static) // schedule(static|dynamic)
for (i = 0; i < 12; i++) {
printf("tid %d prints %d\n", tid, i);
}
printf("... |
atomic.c |
#include <stdio.h>
#include <omp.h>
int
main (void)
{
int count = 0;
int i = 0;
#pragma omp parallel shared(count)
{
#pragma omp for
for (i = 0; i < 10000; i++) {
/* if you don't use atomic operation here, the result will
* be not 10000 */
#pragma omp atomic update
count += 1;
}
if (0 == omp_... |
GB_unaryop__minv_int64_uint16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
encode_file.c | #include <ristretto_elgamal.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
/*
* A user uploads Ristretto encoded points to the server.
*/
size_t ristretto_elgamal_return_point_num(size_t filesize) {
size_t num_of_58_ciphertext_group = ceil(filesize / 1827.0);
/*
* Return 59 Ristretto... |
convolution_1x1_pack8.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 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 ... |
eddy_diff_caleddy_impl.h |
#ifndef __EDDY_DIFF_CALEDDY_IMPL_H__
#define __EDDY_DIFF_CALEDDY_IMPL_H__
#ifndef EDDY_DIFF_CALEDDY_IMPL_VERSION_MAJOR
#define EDDY_DIFF_CALEDDY_IMPL_VERSION_MAJOR 1
#endif
#ifndef EDDY_DIFF_CALEDDY_IMPL_VERSION_MINOR
#define EDDY_DIFF_CALEDDY_IMPL_VERSION_MINOR 0
#endif
#ifndef EDDY_DIFF_CALEDDY_IMPL_P... |
mandel_omp_nox_static.c | /* Sequential Mandlebrot program */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <omp.h>
#include <time.h>
#define X_RESN 1000 /* x resolution */
#define Y_RESN 1000 /* y resolution */
#define MAX_ITER (2000)
// ref: https://stackoverflow.com/questions/6749621/how-to-create-a... |
simple_knl_test.c | #include "sg.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TEST_LEN 1073741824
int main() {
struct timespec start, end;
size_t size = 1024;
double *a, *b, *c;
size_t i, m;
double delta;
sg_init(0);
while(size < 1073741824) {
a = malloc(size * sizeof(double));
... |
shear.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
outer_profile2.h | #include "CSC.h"
#include "CSR.h"
#include "Triple.h"
#include "radix_sort/radix_sort.hpp"
#include "vergesort/vergesort.h"
#include "pdqsort/pdqsort.h"
#include "cpp-TimSort/include/gfx/timsort.hpp"
#include "utility.h"
#include <algorithm>
#include <iostream>
#include <fstream>
#include <omp.h>
#include <unistd.h>
... |
msgmerge.c | /* GNU gettext - internationalization aids
Copyright (C) 1995-1998, 2000-2010, 2012 Free Software Foundation, Inc.
This file was written by Peter Miller <millerp@canb.auug.org.au>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... |
GB_binop__times_fc64.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-... |
bfs-parallel.h | #include <omp.h>
#include <vector>
//#//////////////////////////////////////////////
/// Breath-First-Search class.
/// The class is meant for executing many BFSs over a fixed graph. This means that the class can keep the hash tables and queues initialized between different calls of the DoBfs() function.
template<clas... |
mixed_tentusscher_myo_epi_2004_S2_20.c | // Scenario 2 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium)
// (AP + max:dvdt + Rc)
#include <stdio.h>
#include "mixed_tentusscher_myo_epi_2004_S2_20.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_o... |
master-combined-1.c | void bar (int *);
void
foo (int *a)
{
int i, j, k, u = 0, v = 0, w = 0, x = 0, y = 0, z = 0;
#pragma omp parallel master default(none) private (k)
bar (&k);
#pragma omp parallel default(none) firstprivate(a) shared(x, y, z)
{
#pragma omp master taskloop reduction (+:x) default(none) firstprivate(a)
f... |
GB_binop__bset_int16.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_binop__bset_int16.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http:... |
GB_unop__identity_uint16_bool.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... |
cuda-drv.c | //
// cuda driver routines in C
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#ifdef _OPENMP
#include <omp.h>
#endif
#ifdef USE_MPI
#include <mpi.h>
#else
#include "mpi-dummy.h"
#endif
#include "cuda-drv.h"
#include "cudal... |
VerletClusterListsTest.h | /**
* @file VerletClusterListsTest.h
* @author nguyen
* @date 21.10.18
*/
#pragma once
#include <gtest/gtest.h>
#include "AutoPasTestBase.h"
#include "autopas/autopasIncludes.h"
#include "autopas/cells/FullParticleCell.h"
#include "autopas/containers/verletClusterLists/traversals/VerletClustersColoringTraversal.h... |
DRB098-simd2-orig-no.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... |
spotrs.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/zpotrs.c, normal z -> s, Fri Sep 28 17:38:02 2018
*
**/
#include "plasma.h"
#include "plasma_async.h"
#inc... |
GB_binop__first_bool.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX... |
rose_dep_distance.c | /*
*Test dependence distance
* */
#include "omp.h"
void foo()
{
int i;
int a[100];
/* Constant offset*/
for (i = 0; i <= 98; i += 1) {
a[i + 3] = a[i - 5] + 1;
}
}
void foo2(int j,int k)
{
int i;
int a[100];
/*variable offset*/
for (i = 0; i <= 98; i += 1) {
a[i + j] = a[i + k] + 1;
}
}
in... |
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.
//
//===-------------------------------------------------------... |
cpunetworkexecutor.h | #pragma once
#include "cpunetwork.h"
namespace NEAT {
//Don't need any special qualifiers for CPU
#define __net_eval_decl
//---
//--- CLASS CpuNetworkExecutor
//---
template<typename Evaluator>
class CpuNetworkExecutor : public NetworkExecutor<Evaluator> {
public:
... |
softplus_ref.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
assign_h_by_distance_process.h | /*
==============================================================================
KratosPFEMApplication
A library based on:
Kratos
A General Purpose Software for Multi-Physics Finite Element Analysis
Version 1.0 (Released on march 05, 2007).
Copyright 2007
Pooyan Dadvand, Riccardo Rossi
pooyan@cimne.upc.edu
rrossi@c... |
quantized_conv2d.h | /* Copyright 2018 The Blueoil Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
calc_residual.h | #pragma omp target teams num_teams((NUM*NUM/2)/BLOCK_SIZE) thread_limit(BLOCK_SIZE)
{
Real sum_cache[BLOCK_SIZE];
#pragma omp parallel
{
int lid = omp_get_thread_num();
int tid = omp_get_team_num();
int gid = tid * BLOCK_SIZE + lid;
int row = (gid % (NUM/2)) + 1;
int col = (gid / (NUM/2)) + 1;... |
enhance.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
fft5d.c | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2012, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, l... |
sort.c |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "sort.h"
#include "timer.h"
#include "io.h"
#include "thd_info.h"
/********************************************************************... |
stencil2D.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <omp.h>
#define I(i, j) ((N) * (i) + (j))
#define NUM_ITERATIONS 1000
#define N 2000
void stencil2D(double* G1, double* G2) {
for (size_t it = 0; it < NUM_ITERATIONS; it++) {
for (size_t i = 1; i < N - 1; i++) {
... |
huffman.h | /**
* @file Huffman.h
* @author Sheng Di
* @date Aug., 2016
* @brief Header file for the exponential segment constructor.
* (C) 2016 by Mathematics and Computer Science (MCS), Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#ifndef RIPPLES_HUFFMAN_H
#define RIPPLES_HUFFMAN_H
... |
nstream-ua-target.c | ///
/// Copyright (c) 2019, Intel Corporation
/// Copyright (c) 2021, NVIDIA
///
/// 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
/// n... |
raytracing.c | #include <stdio.h>
#include <stdlib.h>
#include "math-toolkit.h"
#include "primitives.h"
#include "raytracing.h"
#include "idx_stack.h"
#define MAX_REFLECTION_BOUNCES 3
#define MAX_DISTANCE 1000000000000.0
#define MIN_DISTANCE 0.00001
#define SAMPLES 4
#define SQUARE(x) (x * x)
#define MAX(a, b) (a > b ? a : b)
/* ... |
GroupCloseness.h | /*
* GroupCloseness.h
*
* Created on: 03.10.2016
* Author: elisabetta bergamini
*/
#ifndef GROUPCLOSENESS_H_
#define GROUPCLOSENESS_H_
#include <numeric>
#include "../base/Algorithm.h"
#include "../graph/Graph.h"
namespace NetworKit {
/**
* @ingroup centrality
*/
class GroupCloseness : public Algorith... |
master_taskloop_simd_misc_messages.c | // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -verify=expected,omp45 -triple x86_64-unknown-unknown %s -Wuninitialized
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify=expected,omp50 -triple x86_64-unknown-unknown %s -Wuninitialized
// RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=45 -v... |
PeptideIndexing.h | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
symgs.c | //------------------------------------------------------------------------------------------------------------------------------
// Samuel Williams
// SWWilliams@lbl.gov
// Lawrence Berkeley National Lab
//------------------------------------------------------------------------------------------------------------------... |
fs_strategy.h | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Jordi Cotela
//
#ifndef KRATOS_FS_STRATEGY_H
#d... |
nlk_vocabulary.c | /******************************************************************************
* NLK - Neural Language Kit
*
* Copyright (c) 2014 Luis Rei <me@luisrei.com> http://luisrei.com @lmrei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fi... |
key_recovery.c | /********************************************************************
* Practical key-recovery attack against FlexAEAD-64
* Variant attack applicable to FlexAE
*
* Written in 2020 by Gaëtan Leurent <gaetan.leurent@inria.fr>
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and r... |
problem.sine.c | //------------------------------------------------------------------------------------------------------------------------------
// Samuel Williams
// SWWilliams@lbl.gov
// Lawrence Berkeley National Lab
//------------------------------------------------------------------------------------------------------------------... |
GB_unop__identity_fp64_int16.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... |
GB_unop__sinh_fp64_fp64.c | //------------------------------------------------------------------------------
// GB_unop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://... |
Lorenz_psi6phi_rhs__add_gauge_terms_to_A_i_rhs.h | static inline REAL avg(const REAL f[PLUS2+1][PLUS2+1][PLUS2+1],const int imin,const int imax, const int jmin,const int jmax, const int kmin,const int kmax);
#define MINUS2 0
#define MINUS1 1
#define PLUS0 2
#define PLUS1 3
#define PLUS2 4
// The "I" suffix denotes interpolation. In other words, these
// definiti... |
GB_unop__sqrt_fp64_fp64.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... |
triplet.c | /* Copyright (C) 2015 Atsushi Togo */
/* All rights reserved. */
/* These codes were originally parts of spglib, but only develped */
/* and used for phono3py. Therefore these were moved from spglib to */
/* phono3py. This file is part of phonopy. */
/* Redistribution and use in source and binary forms, with or witho... |
sunmd5_fmt_plug.c | /*
* First cut, which was oSSL only, and done in 2 source files, by
* Bartavelle (please change to proper cite).
* Corrections, and re-write into SSE2, JimF.
*
* This software was written by Bartavelle <cite> and JimF
* jfoug AT cox dot net, in 2012 for CMIYC-12. No copyright is claimed,
* and the software is h... |
spi.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <omp.h>
int main(int argc, char **argv) {
float x = omp_get_wtime();
//seed random number generator
// Q2b: get the number of threads to run with from agrv and
// add OpenMP API code to set number of threads here
int Nthreads = atoi(argv[1]);... |
zlook_ahead_update.c |
/************************************************************************/
/*! @file
* \brief Look-ahead update of the Schur complement.
*
* <pre>
* -- Distributed SuperLU routine (version 4.0) --
* Lawrence Berkeley National Lab, Univ. of California Berkeley.
* August 15, 2014
*
*/
#ifdef ISORT
while (j < nu... |
as400_des_fmt_plug.c | // AS/400 DES plugin for JtR
// This software is Copyright (c) 2016 Rob Schoemaker (@5up3rUs3r) and Bart Kulach (@bartholozz)
// 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.
//
// See http... |
minimal.c | /*! @copyright (c) 2017 King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
*
* STARS-H is a software package, provided by King Abdullah
* University of Science and Technology (KAUST)
*
* @file src/applications/minimal.c
* @version 1.3.0
* @author ... |
loopA2.c | /*************************************************************************
DESCRIPTION:
Parallelizing an inner loop with dependences
Backward dependency
for (iter=0; iter<numiter; iter++) {
for (i=0; i<size-1; i++) {
V[i] = f( V[i], V[i+1] );
}
}
Method: Eliminate dependences by duplicating... |
lbm.c | /* $Id: lbm.c,v 1.6 2004/05/03 08:23:51 pohlt Exp $ */
/*############################################################################*/
#include "lbm.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
/*############################################################################*/
#define DFL1 (1.0/ 3.0)
... |
hoImageRegTransformation.h | /** \file hoImageRegTransformation.h
\brief Define the base class for the geometric transformation in gadgetron registration
\author Hui Xue
*/
#ifndef hoImageRegTransformation_H_
#define hoImageRegTransformation_H_
#pragma once
#include "hoNDArray.h"
#include "hoNDImage.h"
#include "hoMatrix.h"
#include ... |
ams.c | /******************************************************************************
* Copyright 1998-2019 Lawrence Livermore National Security, LLC and other
* HYPRE Project Developers. See the top-level COPYRIGHT file for details.
*
* SPDX-License-Identifier: (Apache-2.0 OR MIT)
**************************************... |
cg.20190412_parallel_block.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "globals.h"
#include "randdp.h"
#include "timers.h"
#include <omp.h>
//---------------------------------------------------------------------
#define CACHE_LINE_SIZE_PAD 128
#define INT_PAD_SIZE CACHE_LINE_SIZE_PAD/sizeof(int)
#define DOUBLE_PAD_SIZE CA... |
projectuas_kelompok 5.c |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
typedef struct Items{ //sebagai list item yang dijual (-oleh Rain)
char name[25];
int price;
int stok;
}items;
struct solditems{ // sebagai catatan penjualan (-oleh Rain)
char name[25];
int amount;
};
struct node{ ... |
tree-parloops.c | /* Loop autoparallelization.
Copyright (C) 2006-2018 Free Software Foundation, Inc.
Contributed by Sebastian Pop <pop@cri.ensmp.fr>
Zdenek Dvorak <dvorakz@suse.cz> and Razya Ladelsky <razya@il.ibm.com>.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms ... |
for-simd.c | void foo(int n, double x[n])
{
#pragma omp for simd
for (int i=0; i<n; i++) {
x[i] *= 2.0;
}
}
|
grid_basis.c | /* Copyright 2014-2018 The PySCF Developers. 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 requi... |
GrB_Monoid_wait.c | //------------------------------------------------------------------------------
// GrB_Monoid_wait: wait for a user-defined GrB_Monoid to complete
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-Li... |
main.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "omp.h"
#include "functions.h"
int main (int argc, char **argv) {
int Nthreads = 1;
omp_set_num_threads(Nthreads);
//seed value for the randomizer
double seed = clock(); //this will make your program run... |
DRB042-3mm-tile-no.c | /**
* 3mm.c: This file is part of the PolyBench/C 3.2 test suite.
* with tiling 16x16 and nested SIMD
*
* Contact: Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://polybench.sourceforge.net
* License: /LICENSE.OSU.txt
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <m... |
donde.c | /* donde.c
* A hybrid MPI / OpenMP program that reports the CPU where each thread
* of each rank is executing. Used to assist in determining correct
* binding behavior.
* Rory Kelly
* 3 May 2017
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sched.h>
#include <unistd.h>
#include <mpi.h>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.