source stringlengths 3 92 | c stringlengths 26 2.25M |
|---|---|
fit_1d-response.c | // gcc -Wall -O2 -fopenmp --std=gnu11 -shared -Wl,-soname,fit_1d-response -o fit_1d-response.so -fPIC fit_1d-response.c
#include <complex.h>
#include <stdio.h>
#include <math.h>
#if _OPENMP
#include <omp.h>
#endif
void comp_dft_for_secspec (int ntime, int nfreq, int nr,
double r0, doubl... |
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.
//
//===-------------------------------------------------------... |
GB_binop__isne_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-... |
private_mapping.c | // RUN: %libomptarget-compile-run-and-check-generic
#include <assert.h>
#include <stdio.h>
int main() {
int data1[3] = {1}, data2[3] = {2}, data3[3] = {3};
int sum[16] = {0};
#pragma omp target teams distribute parallel for map(tofrom \
: sum... |
reduction-task-1.c | int v;
extern void foo (int);
void
bar (void)
{
int i;
#pragma omp for reduction (task, +: v)
for (i = 0; i < 64; i++)
foo (i);
#pragma omp sections reduction (task, +: v)
{
foo (-2);
#pragma omp section
foo (-3);
}
#pragma omp parallel reduction (task, +: v)
foo (-1);
#pragma omp par... |
single-2.c | #include <stdlib.h>
int
main (void)
{
int i;
i = 4;
#pragma omp single copyprivate (i)
{
i = 6;
}
if (i != 6)
abort ();
return 0;
}
|
effect.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
task-taskwait.c | /*
Copyright (c) 2015-2019, Lawrence Livermore National Security, LLC.
Produced at the Lawrence Livermore National Laboratory
Written by Simone Atzeni (simone@cs.utah.edu), Joachim Protze
(joachim.protze@tu-dresden.de), Jonas Hahnfeld
(hahnfeld@itc.rwth-aachen.de), Ganesh Gopalakrishnan, Zvonimir
Rakamaric, Dong H. A... |
triangle_counting.h | /*
* triangle_counting.h
* LLAMA Graph Analytics
*
* Copyright 2014
* The President and Fellows of Harvard College.
*
* Copyright 2014
* Oracle Labs.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
packed_stream.h | /*
* Firepony
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notic... |
openmp-ex15.c | /* This example for computing pi is adapted from Hager & Wellein, Listing 6.2.
*
* We compute $\pi = \int_0^1 \frac{4}{1 + x^2} dx$.
*
* In this example we use a midpoint rule.
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <tictoc.h>
int main(int argc, char **argv)
{
i... |
parRelax.h |
#define TOKENPASTE(x, y, z) x ## y ##_## z
#define applyHybridKaczmarz(T,S) TOKENPASTE(applyHybridKaczmarz_, T, S)
void applyHybridKaczmarz(ValName,IndName)(spIndType *rowptr , spValType *valA ,spIndType *colA, long long numDomains, long long domainLength ,
unsigned int *ArrIdxs, spValType *x, spValType *b, l... |
matrix.c |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "base.h"
#include "matrix.h"
#include "util.h"
#include "timer.h"
#include "splatt_lapack.h"
#include "splatt_debug.h"
#include <math.h>
... |
veb-involutions.h | /*
* Copyright 2018-2021 Kyle Berney
*
* 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 agreed to ... |
GB_unaryop__abs_int32_int32.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
cancel-taskgroup-1.c | /* { dg-do run } */
/* { dg-set-target-env-var OMP_CANCELLATION "true" } */
#include <stdlib.h>
#include <omp.h>
struct T { struct T *children[2]; int val; };
struct T *
search (struct T *tree, int val, int lvl)
{
if (tree == NULL || tree->val == val)
return tree;
struct T *ret = NULL;
int i;
for (i = 0;... |
Error_Analysis.h | /***************************************************************************
* Copyright (C) 2009-2012 by Florian Goth *
* fgoth@wthp095 *
* *
* All rights reserved. *
* ... |
mandel-omp-taskloop-v2.c | /*
* Sequential Mandelbrot program
*
* This program computes and displays all or part of the Mandelbrot
* set. By default, it examines all points in the complex plane
* that have both real and imaginary parts between -2 and 2.
* Command-line parameters allow zooming in on a specific part of
* this range.
... |
forces.c | #include <omp.h>
/*
* Compute forces and accumulate the virial and the potential
*/
extern double epot, vir;
void
forces(int npart, double x[], double f[], double side, double rcoff, double **ftemp, int nthreads){
int i, myid;
#pragma omp single
{
vir = 0.0;
epot = 0.0;
... |
convolution_7x7.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 ... |
colorspace.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% ... |
bml_import_ellsort_typed.c | #include "../../macros.h"
#include "../../typed.h"
#include "../bml_allocate.h"
#include "../bml_logger.h"
#include "../bml_types.h"
#include "bml_allocate_ellsort.h"
#include "bml_import_ellsort.h"
#include "bml_types_ellsort.h"
#include <complex.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#ifdef _O... |
Parser.h | //===--- Parser.h - C Language Parser ---------------------------*- 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
//
//===---------------------------... |
hmacSHA1_fmt_plug.c | /*
* This software is Copyright (c) 2012, 2013 magnum, 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.
*
* Originally based on hmac-md5 by Bartavelle
*/
#if FMT_EXTERNS_H
extern struct ... |
GB_Global.c | //------------------------------------------------------------------------------
// GB_Global: global values in GraphBLAS
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identifier: Apache-2... |
GB_unop__identity_uint8_uint8.c | //------------------------------------------------------------------------------
// GB_unop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://... |
parfor.h | // Copyright 2019 Google LLC. 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
GB_binop__eq_fp32.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX... |
wand-view.c | /*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% %
% W W AAA N N DDDD ... |
GB_unaryop__abs_uint64_int32.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_unaryop__lnot_uint8_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... |
opencl_dashlane_fmt_plug.c | /*
* JtR OpenCL format to crack Dashlane Password Manager databases
*
* 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 p... |
vseprefine.c | /**
* @file vseprefine.c
* @brief Vertex separator refinement routines
* @author Dominique LaSalle <mtmetis@domnet.org>
* Copyright 2014, Regents of the University of Minnesota
* @version 1
* @date 2014-10-13
*/
#ifndef MTMETIS_REFINE_C
#define MTMETIS_REFINE_C
#include "vseprefine.h"
#include "check.h"... |
laplace2d.c | /*
* Copyright 2012 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 ... |
GB_unaryop__lnot_uint32_uint8.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
GB_unaryop__abs_uint8_uint8.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http... |
imginputfileconn.h | /**
* DeepDetect
* Copyright (c) 2014 Emmanuel Benazera
* Author: Emmanuel Benazera <beniz@droidnik.fr>
*
* This file is part of deepdetect.
*
* deepdetect 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 F... |
GB_unaryop__identity_int32_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... |
kmp_atomic_float10_max_min.c | // RUN: %libomp-compile -mlong-double-80 && %libomp-run
// UNSUPPORTED: gcc
// REQUIRES: x86-registered-target
#include <stdio.h>
#include <omp.h>
// Used to detect architecture
#include "../../src/kmp_platform.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void* ident_t;
extern void __kmpc_atomic_float10_max(id... |
pIMH.h | #ifndef pIMH_hpp
#define pIMH_hpp
#include "Distributions.h"
#include<mkl.h>
#include<omp.h>
#include<stdio.h>
#include<random>
#include<numeric>
#include<vector>
#include<array>
#include<utility>
using namespace std;
namespace Markov
{
/**
*@author: Emily Jakobs
*@brief: a class to run the perfect inde... |
GB_unaryop__identity_uint32_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... |
centr.h | namespace TSnap {
/////////////////////////////////////////////////
// Node centrality measures (See: http://en.wikipedia.org/wiki/Centrality)
/// Returns Degree centrality of a given node NId.
/// Degree centrality if a node is defined as its degree/(N-1), where N is the number of nodes in the network.
double... |
layout.h | //
// layout.h
// forcelayout.cc
//
// Created by Andrei Kashcha on 5/30/16.
// Copyright (c) 2015 Andrei Kashcha. All rights reserved.
//
#ifndef __layout__
#define __layout__
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <numeric>
#include "nangraph.cc/graph.h"
#include "random.cc/ra... |
2-3.c | #include <omp.h>
#include <stdio.h>
int main() {
#pragma omp parallel num_threads(2)
#pragma omp single
for (int i = 0; i < 100; i++) {
int id = omp_get_thread_num();
printf("T%d:i%d ", id, i);
fflush(stdout);
}
}
|
androidfde_fmt_plug.c | /* androidfde.c
*
* hashkill - a hash cracking tool
* Copyright (C) 2010 Milen Rangelov <gat3way@gat3way.eu>
*
* Modified for JtR and made stuff more generic
* This software is Copyright (c) 2013 Dhiru Kholia <dhiru at openwall.com>
*
* This program is free software; you can redistribute it and/or modify
* it ... |
deconvolution_4x4.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 ... |
coordinate_common.h | /*!
* Copyright 2018 by Contributors
* \author Rory Mitchell
*/
#pragma once
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include <limits>
#include "./param.h"
#include <xgboost/common/random.h>
namespace xgboost {
namespace linear {
struct CoordinateParam : public dmlc::Parameter<... |
parallel_matrix.c | /*
Parallel implementation of matrix multiplication using OpenMP
compile using:
gcc -fopenmp parallel_matrix.c
*/
#include<stdio.h>
#include <omp.h>
// prints the matrix
void matrix_print(int p, int q, int m[][q])
{
int i,j;
for(i = 0; i < p; i++)
{
for(j = 0; j<q; j++)
{
... |
fdp.c | #include <math.h>
#include <string.h>
#include <stdio.h>
#include "types.h"
#include "util.h"
#include "vector.h"
#include "atom.h"
#include "random.h"
#include "fdp.h"
#include "main.h"
////////////////////////////////////////////////////////////
// Force-directed placement code.
////////////////////////////////////... |
geopm_sched.c | /*
* Copyright (c) 2015 - 2022, 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 condition... |
pi_spmd_simple_padded.c | /*
NAME: PI SPMD ... a simple version.
This program will numerically compute the integral of
4/(1+x*x)
from 0 to 1. The value of this integral is pi -- which
is great since it gives us an easy way to check the answer.
The program was parallelized using OpenMP and an SPMD
alg... |
hmvm_omp.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <omp.h>
#include "hacapk.h"
// ######## ######## ######## ########
void hmvm_omp_1
(double *zau, const matrix *mat, const double *zu)
{
#pragma omp parallel
{
int ip,il,it;
int ndl,ndt,nstrtl,nstrtt,kt,itl,itt,ill;
double *zaut, *zbut;
int ls,... |
leader_elect_dp.c | #include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include "ompdist/graph.h"
#include "ompdist/graph_gen.h"
#include "ompdist/utils.h"
#include "ompdist/msr.h"
#include "config.h"
typedef struct {
int x; // candidate leader
int new_x; // temporary value
} processor;
/**
* initial... |
dtradd.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/ztradd.c, normal z -> d, Fri Sep 28 17:38:03 2018
*
**/
#include "plasma.h"
#include "plasma_async.h"
#inc... |
sse4_2.h |
/*!
* \defgroup SSE4_2 SSE4.2
* \brief SIMD interface for SSE4.2 (128-bit wide vector registers)
*
* Interface Legend:\n
* simd_*_iXX = signed XX-bit integers\n
* simd_*_uXX = unsigned XX-bit integers\n
* simd_*_fXX = floating-point XX-bit elements\n
* simd_*_XX = unsigned/signed XX-bit integers\n
* ... |
conv1x1s1_sgemm_neon_interleave.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 ... |
heat-1dp.dtile.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))
/*
* Discretized 2D heat equation stencil with non periodic boundary conditions
* Adapt... |
SpatialConvolutionMM.c | #include <string.h>
#include "../thnets.h"
static void nn_unfolded_copy(THFloatTensor *finput, THFloatTensor *input,
int kW, int kH, int dW, int dH, int padW, int padH,
int nInputPlane, int inputWidth, int inputHeight,
int outputWidth, int outputHeight)
{
long k;
float *input_data = THFloatTensor_data(input);
fl... |
GB_binop__times_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-... |
decoder.c | /*! @file
* @brief
*
* @version 1.0.0
*
* (C) Copyright 2017 GoPro Inc (http://gopro.com/).
*
* 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... |
GB_unaryop__lnot_uint64_fp64.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_unaryop__ainv_int32_int16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved.
// http... |
pi.c | // This code was based on
// http://software.intel.com/en-us/articles/writing-parallel-programs-a-multi-language-tutorial-introduction/
#include "omp.h"
#include "stdio.h"
#include "hooks_base.h"
long num_steps;
double step;
void main(int argc, char* argv[])
{
int i;
double x, pi, sum = 0.0;
if (argc > 1)
... |
munit.c | /* Copyright (c) 2013-2018 Evan Nemerson <evan@nemerson.com>
*
* 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... |
GB_binop__ne_int64.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX... |
density.h | #ifndef __DENSITY_H__
#define __DENSITY_H__
#include <algorithm>
#include "Node.h"
#include "wtime.h"
#if 0
#define SLOW
#endif
struct Density
{
typedef boundary<float> Boundary;
Particle::Vector density;
Boundary BBox; /* bounding box */
struct cmp_particle_key
{
bool operator () (const Particle ... |
psgd_sampled.c | /*
Sparse Binary Matrix Factorization
Fit through projected sub-gradient descent, sampling missing entries at random in each iteration.
Writen for C99 standard.
BSD 2-Clause License
Copyright (c) 2019, David Cortes
All rights reserved.
Redistribution and use in source and binary forms, with or without
modi... |
GB_binop__div_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-... |
hdp.c | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <inttypes.h>
#include "hdp.h"
#include "hdp_math_utils.h"
#include "sonLib.h"
#include "ranlib.h"
#define N_IG_NUM_PARAMS 4
#ifndef MINUS_INF
#define MINUS_INF -0.5 * DBL_MAX
#endif
#ifndef M_PI
#define M_PI 3.1415926535897932384626... |
GB_unaryop__abs_fp32_int16.c | //------------------------------------------------------------------------------
// GB_unaryop: hard-coded functions for each built-in unary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http... |
ccsd_pack.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... |
GB_unop__minv_fp32_fp32.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... |
utils.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <complex.h>
#include <math.h>
#include <omp.h>
#include <time.h>
#include <mkl.h>
#include <mkl_types.h>
#include "utils.h"
#define PI 3.14159265358979323846
#define CCONST 0.262465831
#define OPSIZE 9
void affine_transform(double* out, double* op, d... |
GB_unop__cos_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... |
ast-dump-openmp-distribute-simd.c | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s
void test_one(int x) {
#pragma omp distribute simd
for (int i = 0; i < x; i++)
;
}
void test_two(int x, int y) {
#pragma omp distribute simd
for (int i = 0; i <... |
LCC04HCPTraversal.h | /**
* @file LCC04HCPTraversal.h
* @author sabrinakrallmann
* @date 30.03.2020
*/
#pragma once
#include "autopas/containers/cellPairTraversals/C08BasedTraversal.h"
#include "autopas/containers/linkedCells/traversals/LCC08CellHandler.h"
#include "autopas/containers/linkedCells/traversals/LCTraversalInterface.h"
#in... |
ars_vectorized_environment.h | #ifndef ARS_VECTORIZED_ENVIRONMENT_H
#define ARS_VECTORIZED_ENVIRONMENT_H
#include <algorithm>
#include <thread>
#include <functional>
#include <vector>
#include "ars_config.h"
#include "visualizer/opengl/utils/tiny_logging.h"
/// @param[in] nb_elements : size of your for loop
/// @param[in] functor(start, end) :
//... |
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... |
powerlawRashba.h | /***************************************************************************
* Copyright (C) 2014 by Florian Goth *
* fgoth@wthp095 *
* *
* All rights reserved. *
* ... |
GB_binop__isge_uint16.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http:... |
2intersect.h | /* SPDX-License-Identifier: MIT
*
* 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, publish, ... |
GB_binop__bxor_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... |
for_parallel.c | #include <stdio.h>
#include <errno.h> // for errno
#include <math.h>
#include <limits.h> // for INT_MAX
#include <stdlib.h> // for strtol
#include <time.h>
#include <omp.h>
int numThreads = 1;
void freeMatrix(double** matrix, long lins){
for (long i = 0; i < lins; ++i) {
free(matrix[i]);
}
free(m... |
mergesam.c | #define _MODULE_GMAPPER
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <assert.h>
#include <ctype.h>
#include <omp.h>
#include "mergesam.h"
#include "sam2pretty_lib.h"
#include "file_buffer.h"
#include "fastx_readnames.h"
#include "sam_reader.h"
#include "../co... |
GB_unop__identity_uint32_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... |
oracle_fmt_plug.c | /*
* This software is Copyright (c) 2004 bartavelle, <simon at banquise.net>, 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.
*
* UTF-8 support: Copyright magnum 2012 and hereby released to t... |
GB_binop__isne_int32.c | //------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
// SPDX-... |
oneWayFunction.c | // Copyright (c) 2016-2018 HDCH Foundation Ltd.
#include "oneWayFunction.h"
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifndef MAC_OSX
#include <omp.h>
#endif
#include "my_time.h"
#include "common.h"
// OpenSSL Library
#include "c_sha1.h"
#include "c_sha256.h"
... |
cpalamem_simple.c | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <spllt_iface.h>
#include <omp.h>
#include <cpalamem_macro.h>
#include <mat_csr.h>
#include <mat_load_mm.h>
#include <cpalamem_handler.h>
#include <cpalamem_instrumentation.h>
#define USAGE "Usage %s -m <matrixFileName> [--nrhs <integer DEFAULT:%d>] ... |
GB_binop__bshift_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... |
pr26943-2.c | /* PR c++/26943 */
/* { dg-do run } */
extern int omp_set_dynamic (int);
extern void abort (void);
int a = 8, b = 12, c = 16, d = 20, j = 0;
char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d";
int
main (void)
{
int i;
omp_set_dynamic (0);
#pragma omp parallel for shared (a, e) firstprivate (b, f) \
last... |
core_cttmlq.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/core_blas/core_zttmlq.c, normal z -> c, Fri Sep 28 17:38:25 2018
*
**/
#include <plasma_core_blas.h>
#include "pla... |
msgpass_sumprod.c | #define INF 1E20
#include <math.h>
#include "mex.h"
double square(double x) { return x*x; }
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
double *pr_in;
double offset, s... |
Jacobi1D-DiamondByHand-OMP_dyn.test.c | /******************************************************************************
* Jacobi1D benchmark
* Tiled using diamond slabs coded by hand
*
* Usage:
* make omp
* export OMP_NUM_THREADS=8
* bin/Jacobi1D-DiamondSlabByHand-OMP \
* `cat src/Jacobi1D-DiamondSlabByHand-OMP.perfexecopts`
* For a run on 8 threads... |
is.c | /*************************************************************************
* *
* N A S P A R A L L E L B E N C H M A R K S 3.0 *
* *
* ... |
GB_binop__cmplx_fp32.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__eq_fp32.c |
//------------------------------------------------------------------------------
// GB_binop: hard-coded functions for each built-in binary operator
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX... |
MRF-GCO.h | #pragma once
#include "BaseMRF.h"
#include "Log.h"
#include "GCoptimization.h"
#include <vector>
#include <map>
//#include <google/heap-profiler.h>
#include <limits.h>
#include <time.h>
namespace SRS{
/** \brief
* Wrapper for Olga Vekslers Multilabel graph cut library
*/
template<class TGraphModel>
class GCO... |
flush1.c | //Transpose without locks or critical
#include<stdio.h>
#include<time.h>
#include<omp.h>
void main()
{
int a[5][5],b[5][5],c[5][5],temp=0,ch;
printf("Menu\n1.Express Mode\n2.Custom Mode\n");
printf("Enter your choice:");
scanf("%d",&ch);
if(ch == 1)
{
int l = 1;
for(int i=0;i<5;i++)
{
for(int j=0;j<5... |
convolution_1x1_pack8to1_int8.h | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2022 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.