source stringlengths 3 92 | c stringlengths 26 2.25M |
|---|---|
trsm_x_coo_u_hi_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 *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy)
{
ALPHA_INT m = A->rows;
int num_t... |
target.c | #include <stdio.h>
#include <stdlib.h>
int main (int argc, char** argv) {
int i;
int a[3] = {3, 4, 5};
int b = 4;
int c = 6;
int d = 8;
// 4, 6, 8
printf("Test0 %d, %d, %d.\n", b, c, d);
#pragma omp target map(to: b) map(from: c) map(tofrom: d)
#pragma omp parallel for
for (i = 0; i <... |
openmp-ex00.c | /* Hello threads: adapted from Edmond Chow's OpenMP notes */
#include <stdio.h>
int main(void)
{
printf ("You're all individuals!\n");
/* create a team of threads for the following structured block */
#pragma omp parallel
{
printf("Yes, we're all individuals!\n");
}
/* team of threads join master thread ... |
rwpng.c | /*---------------------------------------------------------------------------
pngquant: RGBA -> RGBA-palette quantization program rwpng.c
---------------------------------------------------------------------------
© 1998-2000 by Greg Roelofs.
© 2009-2014 by Kornel Lesiński.
All rights res... |
irbuilder_unroll_unroll_partial_factor.c | // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs
// RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
// expected-no-diagnostics
#ifnd... |
convolutiondepthwise_5x5_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 ... |
thr_omp.h | /* -*- c++ -*- -------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
Steve Plimpton, sjplimp@sandia.gov
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-A... |
cc_cpufn.c | #include <stdlib.h>
#include <string.h>
#include <math.h>
#include "cc_assert.h"
#include "util_log.h"
#include "cc_cpufn.h"
#define UNSUPPORTED_DTYPE_LOG(dt) \
utlog_format(UTLOG_ERR, \
"cc_cpufn: unsupported dtype [%x]@%s: %d\n",\
dt, __FILE__, __LINE__);
#define CC_CPU_RELU_CASE_TEMP(_dt) \
fo... |
vtp_fmt_plug.c | /*
* Cracker for MD5 based authentication in VTP.
*
* This software is Copyright (c) 2014 Alexey Lapitsky <lex at
* realisticgroup.com> and Dhiru Kholia <dhiru at openwall.com>, and it is
* hereby released to the general public under the following terms:
*
* Redistribution and use in source and binary forms, wit... |
countsketch.h | #ifndef COUNTSKETCH_H
#define COUNTSKETCH_H
extern "C" {
/*!
* Class representing a CountSketch linear transform. The transform is defined as a sparse
* matrix of size r*n with only one non-zero element per column. It is stored in memory as a
* 3-level vector (vector of vectors of vectors). The top level ve... |
ten_tusscher_3_sachetto.c | #include "model_common.h"
#include <assert.h>
#include <stdlib.h>
#include "ten_tusscher_3_sachetto.h"
GET_CELL_MODEL_DATA(init_cell_model_data) {
assert(cell_model);
if(get_initial_v)
cell_model->initial_v = INITIAL_V;
if(get_neq)
cell_model->number_of_ode_equations = NEQ;
}
SET_ODE_IN... |
mxEvaluate.c | #include "../../SWEAbstractNumFluxSolver1d/private/SWENumFlux1d.h"
void evaluateHLLFormula(const double hmin, ///< water threshold
const double gra, ///< gravity acceleration
const double hM, ///< local water depth
const double qnM, ///< local... |
O4Indirect3D.c | #include <mpi.h>
#include "grid.h"
extern struct {
char *name;
int loc;
int dim;
union {
GVAL *restrict * restrict p2;
GVAL *restrict * restrict * restrict p3;
} data_pointer;
} *gv_temp;
extern struct {
char *name;
int loc;
int dim;
union {
GVAL *restrict * ... |
residual_based_bdf_scheme.h | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Vicente Mataix Ferrandiz
//
#if !defined(KRATOS... |
GB_unop__ainv_int8_int8.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... |
matrixstrassen.h | /**
* @file matrixstrassen.h matrix strassen operations.
* @author TPOC: contact@palisade-crypto.org
*
* @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
GraphReconstructor.h | //
// Copyright (C) 2015-2020 Yahoo Japan 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 applicab... |
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_... |
reduce.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... |
GB_unop__identity_uint8_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... |
sol1.c | /**
* \file
* \brief [Problem 23](https://projecteuler.net/problem=23) solution
* \author [Krishna Vedala](https://github.com/kvedala)
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#ifdef _OPENMP
#include <omp.h>
#endif
/**
* Returns:
* -1 if N is deficient
* 1 if N is abundant
* 0 if N is perf... |
par_csr_matrix.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)
**************************************... |
displacement_lagrangemultiplier_contact_criteria.h | // KRATOS ___| | | |
// \___ \ __| __| | | __| __| | | __| _` | |
// | | | | | ( | | | | ( | |
// _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
//
// License: BSD License
// ... |
GB_unop__minv_int32_int32.c | //------------------------------------------------------------------------------
// GB_unop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://... |
nvptx_target_printf_codegen.c | // Test target codegen - host bc file has to be created first.
// RUN: %clang_cc1 -verify -fopenmp -x c -triple powerpc64le-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cuda -emit-llvm-bc %s -o %t-ppc-host.bc
// RUN: %clang_cc1 -verify -fopenmp -x c -triple nvptx64-unknown-unknown -fopenmp-targets=nvptx64-nvidia-cud... |
irbuilder_unroll_partial_heuristic_runtime_for.c | // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs
// RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s
// expected-no-diagnostics
// RE... |
pfmg_setup_rap7.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... |
kpoint.c | /* Copyright (C) 2008 Atsushi Togo */
/* All rights reserved. */
/* This file is part of spglib. */
/* 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 abov... |
OmpForInitLink.c | int x;
int main() {
int i;
#pragma omp for
for (i = 0; i < 10; i++) {
}
#pragma omp for
for (i = 0; i < 10; i++) {
continue;
}
#pragma omp for
for (i = 0; i < 10; i++) {
if (1) {
continue;
}
}
#pragma omp for
for (i = 0; i < 10; i++) {
int x;
x = 10;
}
}
|
TEST_OPENMP_NEW.c | #include <omp.h>
//include <omp.h>
#include "CORAL_lulesh_2.0.3_mk.h"
void initialize_array_randomly(int *mat,int n,int max_value)
{
for (int i = 0; i < n; i++) {
mat[i] = rand() % max_value;
}
}
void initialize_array_sequentialy(int *mat,int n)
{
#pragma omp parallel default(none) shared(n,mat)
{
#pr... |
GB_full_add_template.c | //------------------------------------------------------------------------------
// GB_full_add_template: phase2 for C=A+B, C<M>=A+B, C<!M>=A+B, C is full
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
//... |
GB_unaryop__minv_uint8_uint16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http... |
d2p.c |
/////////////////////////// 8INF854 - ARCHITECTURES PARRALLELES - DEVOIR #2 ///////////////////////////////////
///////////////////////////// d2p.c - Corentin RAOULT - Adrien Cambillau /////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
////////////////////// déclaratio... |
elastic-so12-mpi.c | #define _POSIX_C_SOURCE 200809L
#include "stdlib.h"
#include "math.h"
#include "sys/time.h"
#include "xmmintrin.h"
#include "pmmintrin.h"
#include "mpi.h"
#include "omp.h"
struct dataobj
{
void *restrict data;
int * size;
int * npsize;
int * dsize;
int * hsize;
int * hofs;
int * oofs;
} ;
struct neighbo... |
wavelet_.c | #include "wavelet_.h"
#include "hwPerf.h"
//DEF TRASFORMATA
//static void dwt_step (const gsl_wavelet * w, double *a, size_t stride, size_t n, gsl_wavelet_direction dir, gsl_wavelet_workspace * work);
/*__attribute__ ((aligned (8))) __attribute__ ((section(".heapsram")))*/
static void
dwt_step (const gsl_wavelet * ... |
GB_binop__eq_fp64.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX... |
test.c | #include <stdio.h>
#define N 1024
#pragma omp requires unified_shared_memory
#define TEST_SIMPLE_NW 1
#define TEST_LOOP 1
#define TEST_LOOP_NW 1
int a[N], b[N];
int aa[N], bb[N];
int main() {
int i;
int error, totError = 0;
#if TEST_SIMPLE_NW
for (i=0; i<N; i++) a[i] = b[i] = i;
// all... |
opencl_pem_fmt_plug.c | /*
* JtR OpenCL format to crack PEM files.
*
* This software is Copyright (c) 2017, Dhiru Kholia <dhiru at openwall.com>,
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* The OpenC... |
query.c | #define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#include <zlib.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <libgen.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <sys/ty... |
ellipticBuildContinuous.c | /*
The MIT License (MIT)
Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus
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 restriction, including wi... |
RegTree.h | #ifndef _SQB_REGTREE_H_
#define _SQB_REGTREE_H_
// This file is part of SQBlib, a gradient boosting/boosted trees implementation.
//
// Copyright (C) 2012 Carlos Becker, http://sites.google.com/site/carlosbecker
//
// SQBlib is free software: you can redistribute it and/or modify
// it under the terms of the GNU Gener... |
Sections.c | /** This Program uses Sections Construct with Private, FirstPrivate, LastPrivate, Reductions and Nowait.
* Sai Suraj
* 07/09/2021
**/
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
void function1()
{
for (int i = 0; i <= 4; i++)
{
printf("\n Hello world!");
printf("\nSection 1 i... |
flux_calc_kernel_c.c | /*Crown Copyright 2012 AWE.
*
* This file is part of CloverLeaf.
*
* CloverLeaf is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your option)
* any later version.
*
* Clo... |
dropout-inl.h | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
EppsteinSubGraphAdaptive.h | #pragma once
#include "../general.h"
#include <gms/algorithms/preprocessing/preprocessing.h>
namespace BkEppsteinSubGraphAdaptive
{
template <int Boundary, class SGraph, class Set = typename SGraph::Set>
std::vector<Set> mceBench(const SGraph &rgraph, const pvector<NodeId> &ordering)
{
#ifdef BK_COUNT
... |
simplex.h | /* Copyright (c) 2007-2012 Eliot Eshelman
*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is d... |
convolution_pack4_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 ... |
GB_unop__log10_fp64_fp64.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... |
pfmg_setup.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... |
hope.c | typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
typedef long long __int64_t;
typedef unsigned long long __uint64_t;
typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural_t;
... |
GB_ewise_slice.c | //------------------------------------------------------------------------------
// GB_ewise_slice: slice the entries and vectors for an ewise operation
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// ht... |
local_estimator.h | /*
* estimator.h
*
* Created on: Mar 22, 2012
* Author: aitor
*/
#ifndef REC_FRAMEWORK_LOCAL_ESTIMATOR_H_
#define REC_FRAMEWORK_LOCAL_ESTIMATOR_H_
#include <pcl/apps/3d_rec_framework/feature_wrapper/normal_estimator.h>
#include <pcl/filters/uniform_sampling.h>
#include <pcl/surface/mls.h>
#include <pcl/key... |
NPKICrack.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <inttypes.h>
#include <time.h>
#include <omp.h>
#include "Seed.h"
#include "Hash.h"
#include "BasicIO.h"
#include "ErrorHandle.h"
#include "NPKICrack.h"
// 이 static 전역변수들은 한번 값을 쓰면 변경되지 않는다.
static uint8_t charset_dic[0x100] = {0}... |
GB_unop__erf_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://... |
convolution_3x3_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 ... |
median.c | /*
* File: median.c
*
* MATLAB Coder version : 3.0
* C/C++ source code generated on : 15-Nov-2015 19:51:15
*/
/* Include Files */
#include "rt_nonfinite.h"
#include "yaapt.h"
#include "median.h"
#include "yaapt_emxutil.h"
/* Function Definitions */
/*
* Arguments : const emxArray_real_T *x
* ... |
GB_binop__lt_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-... |
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... |
solving_strategy.h | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Riccardo Rossi
//
//
#if !defined(KRATOS_SOLVING... |
convolution-3d.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... |
gramdecomp.c | // Copyright (c) 2018-2019 Osamu Hirose
//
// 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 restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
Fig_12.18_ompParVecPi.c | #include<stdio.h>
#include <omp.h>
static long num_steps = 100000000;
double step;
int main ()
{
int i;
double x, pi, sum = 0.0;
step = 1.0f / (double) num_steps;
#pragma omp parallel for simd private(x) reduction(+:sum)
for (i = 0; i < num_steps; i++) {
x = (i + 0.5f) * step;
sum += 4.0f /... |
dot.c | // Jacobi 3D skeleton program
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "timing.h"
int main(int argc, char** argv) {
double wct_start,wct_end,cput_start,cput_end,runtime,r;
int iter,size,i,j,k,n;
double *f1, *f2;
iter = 1000;
double mintime = 4.0;
if (argc != ... |
GxB_IndexUnaryOp_xtype_name.c | //------------------------------------------------------------------------------
// GxB_IndexUnaryOp_xtype_name: return the type_name of x for z=f(x,thunk)
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
//... |
control_tool_no_ompt_support.c | // RUN: %libomp-compile-and-run
#include <omp.h>
int main()
{
#pragma omp parallel num_threads(1)
{
omp_control_tool(omp_control_tool_flush, 1, NULL);
}
return 0;
}
|
FFVILS.h | #ifndef FFVILS_H
#define FFVILS_H
#include <cmath>
#include <cfloat>
#include "BlockManager.h"
#include "LocalScalar3D.h"
#include "real.h"
#include "blas.h"
#include "bils.h"
#include "comm.h"
class FFVILS {
public:
FFVILS() {
}
~FFVILS() {
}
private:
bool IsConverged(
BlockManager& blockManager,... |
pi5.c | /*
* This code calculates pi using the formula to calculate
* the atan(z) which is the integral from 0 to z of 1/(1+x*x)
* times dx. atan(1) is 45 degrees or pi/4
*/
#include <omp.h>
static long num_steps = 100000; /* number of intervals */
double step; /* the size of the interva... |
addred.c | #include<stdio.h>
#define N 1000000000
int main()
{
long int i,a[N],sum=0,local=0;
#pragma omp parallel for
for(i=0;i<N;i++)
{
a[i]=i+1;
}
#pragma omp parallel
{
#pragma omp for reduction(+:sum)
for(i=0;i<N;i++)
{
sum+=a[i];
}
}
printf("Sum=%ld \n",sum);
return 0;
}
|
dfwavelet.c | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#ifdef USE_OPENMP
#include <omp.h>
#endif
#include "dfwavelet.h"
#ifdef USE_CUDA
#include "dfwavelet_kernels.h"
#endif
#define str_eq(s1,s2) (!strcmp ((s1),(s2)))
/******** Header *********/
static vo... |
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)
#... |
cache.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
omp_trap3.c | /* File: omp_trap3.c
* Purpose: Estimate definite integral (or area under curve) using the
* trapezoidal rule. This version uses a parallel for directive
*
* Notes:
* 1. The function f(x) is hardwired.
* 2. In this version, it's not necessary for n to be
* evenly divisible by thread_c... |
facedetectcnn.h | /*
By downloading, copying, installing or using the software you agree to this license.
If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement For libfacedetection
(3-clause BSD License)
Copyright (c) 2018-2019, Shiqi Yu, all ... |
GB_unaryop__lnot_uint64_int64.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
GB_apply_op.c | //------------------------------------------------------------------------------
// GB_apply_op: typecast and apply a unary or binary operator to an array
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// ... |
parallel.c | /*
* Copyright (c) 2014 ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <bomp_internal.h>
... |
gemm.h | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
data.h | /*!
* Copyright (c) 2015 by Contributors
* \file data.h
* \brief The input data structure of xgboost.
* \author Tianqi Chen
*/
#ifndef XGBOOST_DATA_H_
#define XGBOOST_DATA_H_
#include <dmlc/base.h>
#include <dmlc/data.h>
#include <rabit/rabit.h>
#include <xgboost/base.h>
#include <xgboost/span.h>
#include <xgboos... |
array_sum.c | #include <stdio.h>
#include <omp.h>
int main()
{
int cursum, total,n;
int a[5]={1,2,3,4,5};
n = sizeof(a)/sizeof(int);
#pragma omp parallel private(cursum) shared(total)
{
cursum = 0;
total = 0;
#pragma omp for
for(int i = 0; i <= n; i++)
{
... |
struct.c | // RUN: %libomptarget-compile-generic -fopenmp-extensions
// RUN: %libomptarget-run-generic | %fcheck-generic -strict-whitespace
// amdgcn does not have printf definition
// XFAIL: amdgcn-amd-amdhsa
#include <omp.h>
#include <stdio.h>
#define CHECK_PRESENCE(Var1, Var2, Var3) \
... |
meta_when_param.c | int main()
{
int n = 10;
#pragma omp metadirective when(user={condition(n>5)}: parallel for)
for(int i=0; i<n; i++)
;
return 0;
}
|
deconv_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... |
ntlmv1_mschapv2_fmt_plug.c | /*
* Previous files MSCHAPv2_fmt_plug.c and NETNTLM_fmt_plug.c now merged into
* this one file, sharing functions.
*
* NETNTLM_fmt.c -- NTLM Challenge/Response
* Written by JoMo-Kun <jmk at foofus.net> in 2007
* and placed in the public domain.
*
* This algorithm is designed for performing brute-force cracking ... |
hci.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... |
search.h | // -*- C++ -*-
// Copyright (C) 2007-2013 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... |
gbdt.h | #ifndef LIGHTGBM_BOOSTING_GBDT_H_
#define LIGHTGBM_BOOSTING_GBDT_H_
#include <LightGBM/boosting.h>
#include <LightGBM/objective_function.h>
#include <LightGBM/prediction_early_stop.h>
#include <LightGBM/json11.hpp>
#include "score_updater.hpp"
#include <cstdio>
#include <vector>
#include <string>
#include <fstream>
... |
host_teams_numa_affinity.c | #include <stdlib.h>
#include <stdio.h>
#include <omp.h>
#include <sys/time.h>
#define N 1000000000
int main() {
long int n = N;
int *a = (int *)malloc(n*sizeof(int));
int err = 0;
struct timeval start, stop;
double elapsed;
for (long int i = 0; i < n; i++)
a[i] = 1;
gettimeofday(&start, NULL);
... |
GB_binop__le_int64.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-... |
wino_conv_kernel_1_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... |
MS_OpenMP_dynamic.c | /*
* ompd Mandelbort sort
*
*/
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
typedef struct complexType
{
double real, imag;
} Compl;
int main(int argc, char *argv[])
{
// ----------input---------------
int number_thread = atoi(argv[1]);
double leftR = atof(argv[2]);
... |
core_zhessq.c | /**
*
* @file
*
* PLASMA is a software package provided by:
* University of Tennessee, US,
* University of Manchester, UK.
*
* @precisions normal z -> c
*
**/
#include <plasma_core_blas.h>
#include "plasma_types.h"
#include "core_lapack.h"
#include <math.h>
/*********************************************... |
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
//
//===---------------------------... |
level.c | //------------------------------------------------------------------------------------------------------------------------------
// Samuel Williams
// SWWilliams@lbl.gov
// Lawrence Berkeley National Lab
//------------------------------------------------------------------------------------------------------------------... |
hello-1.c | /*
* test the simplest case, no variable handling
By C. Liao
*/
#include <stdio.h>
#ifdef _OPENMP
#include <omp.h>
#endif
int main(void)
{
#pragma omp parallel
{
printf("Hello,world!");
}
return 0;
}
|
3loops.c | /* Test if the loop index variables are treated as private variables
* */
#include <stdio.h>
#if defined (_OPENMP)
#include <omp.h>
#endif
int main(void)
{
int i,jj,kkk;
double a[10][9][8];
#pragma omp parallel for
for(i=0;i<10;i++){
for(jj=0;jj<9;jj++){
for (kkk=0;kkk<8;kkk++){
a[i][jj][kkk... |
GB_binop__rdiv_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:... |
rawMD4_fmt_plug.c | /*
* This file is part of John the Ripper password cracker,
* Copyright (c) 2010 by Solar Designer
* Copyright (c) 2011, 2012 by magnum
*
* Use of Bartavelle's mmx/sse2/intrinsics and reduced binary size by
* magnum in 2011-2012.
*
* OMP added May 2013, JimF
*/
#if FMT_EXTERNS_H
extern struct fmt_main fmt_raw... |
GB_binop__bget_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... |
preprocess-1.c | /* { dg-do preprocess } */
void foo (void)
{
int i1, j1, k1;
#define p parallel
#define P(x) private (x##1)
#define S(x) shared (x##1)
#define F(x) firstprivate (x##1)
#pragma omp p P(i) \
S(j) \
F(k)
;
}
/* { dg-final { scan-file preprocess-1.i "(^|\n)#pragma omp parallel private \\(i1\\) shared \\(j1\\) fir... |
psd.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.