source
stringlengths
3
92
c
stringlengths
26
2.25M
computeQ-brisbane.c
/*************************************************************************** *cr *cr (C) Copyright 2007 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ********************************************************************...
keepass_fmt_plug.c
/* KeePass cracker patch for JtR. Hacked together during May of * 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * Support for cracking KeePass databases, which use key file(s), was added by * m3g9tr0n (Spiros Fraganastasis) and Dhiru Kholia in September of 2014. * * Support for all types of keyfile within K...
hermm_c_dia_n_lo_col.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif #include <memory.h> #include <stdlib.h> alphasparse_status_t ONAME(const ALPHA_Complex alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Complex *x, const ALPHA_INT columns, const ALPHA_INT ld...
pr35738.c
/* PR c/35738 */ /* { dg-do compile } */ /* { dg-options "-fopenmp" } */ void foo (void); void bar (void *p) { int i = 0; char q[10]; #pragma omp atomic i += q; /* { dg-warning "makes integer from pointer without a cast" } */ #pragma omp atomic i += foo; /* { dg-warning "makes integer from pointer without a...
oskar_dftw_m2m_2d_omp.c
/* * Copyright (c) 2013, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list ...
module_bl_mynn_retrieve_exchange_coeffs_impl.h
#ifndef __MODULE_BL_MYNN_RETRIEVE_EXCHANGE_COEFFS_IMPL_H__ #define __MODULE_BL_MYNN_RETRIEVE_EXCHANGE_COEFFS_IMPL_H__ /* File granularity version */ #ifndef MODULE_BL_MYNN_RETRIEVE_EXCHANGE_COEFFS_IMPL_VERSION_MAJOR #define MODULE_BL_MYNN_RETRIEVE_EXCHANGE_COEFFS_IMPL_VERSION_MAJOR 1 #endif #ifndef MODULE_B...
build.c
/** * @file * @author Ryan Moore * @brief I contain the build function for ONF. */ #include <assert.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <rya_file.h> #include <rya_format.h> #include "build.h" #include "array.h" #include "const.h" #include "file.h" #include ...
task_types.c
// RUN: %libomp-compile-and-run | %sort-threads | FileCheck %s // REQUIRES: ompt #include "callback.h" #include <omp.h> #include <math.h> void print_task_type(int id) { #pragma omp critical { int task_type; char buffer[2048]; ompt_get_task_info(0, &task_type, NULL, NULL, NULL, NULL); format_task_t...
parallel-3.c
// { dg-do compile } extern int printf (const char *, ...); int main (void) { double d = 6; int i = 1; #pragma omp parallel shared(d) private(i) num_threads (4 + i) { i = 4; printf ("%s %d %g\n", "Hello, World!", i, d); } return 0; }
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_binop__copysign_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...
threading.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...
jacobi-block-task.c
# include "poisson.h" /* #pragma omp task/taskwait version of SWEEP. */ void sweep_block_task (int nx, int ny, double dx, double dy, double *f_, int itold, int itnew, double *u_, double *unew_, int block_size) { int it; int block_x, block_y; if (block_size == 0) block_size = nx; i...
lastpass_cli_fmt_plug.c
/* * LastPass CLI cracker patch for JtR. * * This software is Copyright (c) 2017, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * * Redistribution and use in source and binary forms, with or without modification, * are permitted. */ #if F...
k-nearest_gpu.c
/* Erro parar gerar struct. Erro na anotação dos parâmetros This program performs K nearest neighbors on the GPU with dynamically allocated matrices. Author: Gleison Souza Diniz Mendon?a Date: 04-01-2015 version 2.0 Run: ipmacc k-nearest_gpu.c -o k-nearest ./k-nearest matrix-size ...
9693.c
// this source is derived from CHILL AST originally from file '/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c' as parsed by frontend compiler rose void kernel_heat_3d(int tsteps, int n, double A[200 + 0][200 + 0][200 + 0], double B[200 + 0][200 + 0][200 + 0])...
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 // //===---------------------------...
string_graph.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <emmintrin.h> #include "string_graph.h" #include "index.h" inline INDEX_TYPE_T OCCx (u64 ** OCC_bitmap, INDEX_TYPE_T * OCC_sample, int nt, INDEX_TYPE_T pos) { INDEX_TYPE_T occ2 = 0; u64 occ_bitmap; int off; occ2...
GB_binop__hypot_fp32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
cg.20190417_static1.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <unistd.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_PA...
GB_AxB_saxpy3_cumsum.c
//------------------------------------------------------------------------------ // GB_AxB_saxpy3_cumsum: finalize nnz(C(:,j)) and find cumulative sum of Cp //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. /...
effect.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
affine.c
//IN method. //Affine transformation (weights and biases) of Ni inputs to No outputs. //Input X has Ni neurons and output Y has No neurons. //Each output neuron has a bias term, so B is a vector of length No. //The vecs of length Ni are always contiguous in memory, such that: //If col-major: Y[:,l] = W' * X[:,l] + B...
main.c
#include <malloc.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "MyUtils.h" // 线程数 int n_threads = 1; // 命令行参数 #define THREAD_NUM_ARG 1 #define DIR_ARG 2 #define DICT_ARG 3 #define RES_ARG 4 // 字典文件内容读取缓存 #define DICT_FILE_BUFFER_SIZE 1000000 char dict_file_buffer[DICT_FILE_BUFFER_SIZE]; int m...
threshold.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
csr_matop.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) **************************************...
GB_unaryop__lnot_uint32_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...
test.c
#include <stdio.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (992) #define INIT() INIT_LOOP(N, {C[i] = 1; D[i] = i; E[i] = -i;}) #define ZERO(X) ZERO_ARRAY(N, X) int main(void) { check_offloading...
updater_quantile_hist.h
/*! * Copyright 2017-2022 by XGBoost Contributors * \file updater_quantile_hist.h * \brief use quantized feature values to construct a tree * \author Philip Cho, Tianqi Chen, Egor Smirnov */ #ifndef XGBOOST_TREE_UPDATER_QUANTILE_HIST_H_ #define XGBOOST_TREE_UPDATER_QUANTILE_HIST_H_ #include <rabit/rabit.h> #inclu...
nstream-target.c
/// /// Copyright (c) 2019, 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 ...
task2.c
#include <stdio.h> #include <time.h> #include <omp.h> #define N 800 int function_call(int j){ int a; a = 2*2+j; return a; } int main() { int i,j; int a[N][N]; int b[N][N]; int c[N][N]; double secs = 0; clock_t begin = clock(); #pragma omp parallel num_threads(2) { ...
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...
v_add.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> #define ARRAY_SIZE 10000000 #define REPEAT 100 void v_add_naive(double *x, double *y, double *z) { #pragma omp parallel { for (int i = 0; i < ARRAY_SIZE; i++) z[i] = x[i] + y[i]; } } // Edit this function (Method 1) void v_add_optimi...
iw_core.c
/* // Copyright 2016-2017 Intel Corporation All Rights Reserved. // // The source code, information and material ("Material") contained herein is // owned by Intel Corporation or its suppliers or licensors, and title // to such Material remains with Intel Corporation or its suppliers or // licensors. The Material con...
ft_ao.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 required ...
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...
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-...
ast-dump-openmp-target-teams.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(void) { #pragma omp target teams ; } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-op...
relic_core.c
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (C) 2007-2017 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute...
carray_element.c
/* --------------------------------------------------------------------------- carray_element.c This file is part of Ruby/CArray extension library. Copyright (C) 2005-2020 Hiroki Motoyoshi ---------------------------------------------------------------------------- */ #include "ruby.h" #include "carray.h" /...
GB_unop__atan_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
constitute.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_hyper_prune.c
//------------------------------------------------------------------------------ // GB_hyper_prune: remove empty vectors from a hypersparse Ap, Ah list //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // htt...
ceil_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...
omp3-4.c
#include<stdio.h> #ifndef N #define N 500 #endif int a[N][N], b[N][N], c[N][N]; int main() { int i, j, k, sum; #pragma omp parallel sections { #pragma omp section { int i, j; for (i = 0; i < N; i++) for (j = 0; j < N; j++) a[i][j] = i + j; } #pragma omp section ...
ttables.h
// Copyright 2013 by Chris Dyer // // 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 i...
StereoSGM.h
// Copyright � Robert Spangenberg, 2014. // See license.txt for more details #pragma once #include <vector> #include <list> #include <string.h> #include <fstream> #include <algorithm> class StereoSGMParams_t { public: uint16 P1; // +/-1 discontinuity penalty uint16 InvalidDispCost; // init val...
nn_openmp.c
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <omp.h> #ifdef GEM5_WORK #include <stdint.h> void m5_dumpreset_stats(uint64_t ns_delay, uint64_t ns_period); void m5_work_begin(uint64_t workid, uint64_t threadid); void m5_work_end(uint64_t workid, uint64_t thr...
grid_ao_drv.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...
generator.h
// Copyright (c) 2015, The Regents of the University of California (Regents) // See LICENSE.txt for license details #ifndef GENERATOR_H_ #define GENERATOR_H_ #include <algorithm> #include <cinttypes> #include <iostream> #include <random> #include "graph.h" #include "pvector.h" #include "util.h" /* GAP Benchmark Su...
SectionsBeginLink.c
int x; int main() { #pragma omp sections { #pragma omp section { int x; } } }
pzlansy.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> s d c * **/ #include "plasma_async.h" #include "plasma_context.h" #include "plasma_descriptor.h" #include "plasma_internal.h" #include "plasma_types.h" #in...
GB_binop__isgt_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
ktuple_pair.c
/* -*- mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /********************************************************************* * Clustal Omega - Multiple sequence alignment * * Copyright (C) 2010 University College Dublin * * Clustal-Omega is free software; you can redistribute it and...
DRB072-taskdep1-orig-no.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...
opt_heat1d_2oa.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)) #include <stdlib.h> #include <string.h> #include <stdio.h> #include <math.h> #include <sy...
ast-dump-openmp-target-exit-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 exit data map(from \ : x) } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> ...
GB_binop__lt_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
lrthresh_intel.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <limits.h> #include <complex.h> #include <mkl.h> #include <math.h> #include <omp.h> #include <sys/time.h> void mysvthresh(complex float *buf, MKL_INT _M, MKL_INT _N, float *s, complex float *u, complex float *vt, complex float *work, ...
Atomic.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <omp.h> #define TOTAL 500000000 int main(int argc, char* argv[]){ if (argc!=2) return 1; const int threads_num=atoi(argv[1]); long sum=0; #pragma omp parallel num_threads(threads_num) { long localsum=0; unsigned int seed=t...
mmul_omp.c
/* This file is part of ParTI!. ParTI! is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ParTI! is distributed...
Scene.h
/* * Most basic scenegraph - just a vector of all entities */ #pragma once // Include GLM #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> using namespace glm; #include "Shader.h" #include "Camera.h" #include "Light.h" #include "PhysicManager.h" #include "RigidBody.h" ...
Cluster.h
// // Created by Alessandro Sestini on 08/11/17. // #ifndef K_MEANS_MIO_CPP_CLUSTER_H #define K_MEANS_MIO_CPP_CLUSTER_H #include <queue> #include "Point.h" #include <omp.h> class Cluster { public: Cluster(double x_coord, double y_coord){ new_x_coord = 0; new_y_coord = 0; size = 0; ...
GB_atomics.h
//------------------------------------------------------------------------------ // GB_atomics.h: definitions for atomic operations //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifier...
buf_compress.h
#line 1 "begin.c (amalgamated)" // stdarc.c // - rlyeh, public domain // // current file format: // header : [1<<block_size:8][1<<excess:8] // chunk : [len:32] [fmt:4|lvl:4] [data:X] // // @todo: new format // header : [1<<block_size:8][1<<excess:8] // chunk : [len:32][fmt|lvl:8][data:X][fmt|lvl:8][crc:32] /...
Rasterizer.h
#ifndef RASTERIZER_INCLUDED #define RASTERIZER_INCLUDED #include <vector> #include <omp.h> #include "../Util/Geometry.h" #include "../SignalProcessing/CubeGrid.h" template< class Real > void Rasterize( Point3D< Real > v1 , CubeGrid< char >& grid , Real scale=Real(1.) ); temp...
FirstProgram.c
#include<stdio.h> #include<omp.h> int main(){ const int T = 10000; int sum; sum = 0; // Simple accumulation loop // (Note in Fortran we can use a built-in for this, but // ignore that for this demo) #pragma omp parallel for reduction(+:sum) for(int i = 1; i <= T; i++){ sum = sum + i; } prin...
rose_scalar_true.c
/* * Scalar-to-scalar dependencies * */ #include "omp.h" int a[100]; void foo2() { int i; int tmp; #pragma omp parallel for private (tmp,i) for (i = 0; i <= 99; i += 1) { tmp = a[i] + i; a[i] = tmp; } } void foo() { int i; int tmp; #pragma omp parallel for private (i) lastprivate (tmp) ...
omp_alloc.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <stdint.h> #include <omp.h> #include "omp_testsuite.h" #define ARRAY_SIZE 10000 int test_omp_alloc() { int err; int i, j; int *shared_array; const omp_allocator_t *allocator; const omp_allocator_t *test_allocator; // Currently, only default memor...
jacobi-ompacc-v2.c
// Naive version without any optimizations // test mapped static arrays without array section info specified. #include <stdio.h> #include <math.h> #include <assert.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif // Add timing support #include <sys/time.h> double time_stamp() { struct timeval t; do...
einterp_mex.c
/* Copyright (c) 2012 by Marcin Krotkiewski, University of Oslo See ../License.txt for License Agreement. */ #include "einterp.h" void interpolate(f_interp func, t_opts opts, Uint n_dofs, const t_mesh mesh, const Double *values, const Double *markers, const dimType *element_id, const Ulong n_markers, Dou...
cp-tree.h
/* Definitions for C++ parsing and type checking. Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. GCC is free software...
Example_target.5.c
/* * @@name: target.5c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ #define THRESHOLD1 1000000 #define THRESHOLD2 1000 extern void init(float*, float*, int); extern void output(float*, int); void vec_mult(float *p, float *v1, float *v2, int N) { int i; init(v1, v...
rg_filter.c
////////////////////////////////////// // Cunren Liang, NASA JPL/Caltech // Copyright 2015-2018... ////////////////////////////////////// #include "resamp.h" #include <fftw3.h> #include <omp.h> int rg_filter(char *inputfile, int nrg, int nout, char **outputfile, float *bw, float *bc, int nfilter, int nff...
es5.h
#ifndef ES5_H #define ES5_H #include <iostream> #include <omp.h> #include <cstdlib> using namespace std; class GameOfLife { private: bool **attuale; long int celle; unsigned nmt; void genera(); void iniziaPartita(); void stampaCelle(); void next(); unsigned check(lon...
find.h
// -*- C++ -*- // Copyright (C) 2007, 2008, 2009 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 ve...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
GB_binop__gt_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
cross_entropy_loss.c
#include <cdnn/model.h> #include <cdnn/loss.h> extern __Model__ * m; loss_layer * loss_layer_ = NULL; void forward_pass_L2_LOSS(){ int number_of_examples = m->y_train_mini_batch[m->current_mini_batch]->shape[1]; // int number_of_examples = m->Y_train->shape[1]; dARRAY * loss = NULL; dARRAY * Y = m->y_train_mi...
omp_section_private.c
<ompts:test> <ompts:testdescription>Test which checks the omp section private directive by upcounting a variable in a to several sections splitted loop.</ompts:testdescription> <ompts:ompversion>2.0</ompts:ompversion> <ompts:directive>omp section private</ompts:directive> <ompts:dependences>omp critical</ompts:dependen...
PmlPstd.h
#pragma once #include "Grid.h" #include "FieldSolver.h" #include "PmlSpectralTimeStraggered.h" #include "Constants.h" namespace pfc { class PmlPstd : public PmlSpectralTimeStraggered<GridTypes::PSTDGridType> { public: PmlPstd(SpectralFieldSolver<GridTypes::PSTDGridType>* solver, Int3 sizePML) : ...
tree.h
/*! * Copyright (c) 2016 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_TREE_H_ #define LIGHTGBM_TREE_H_ #include <LightGBM/dataset.h> #include <LightGBM/meta.h> #include <string> #include <map> #includ...
hstio.c
/* ** Allen Farris - Original Implementation. ** ** M.D. De La Pena, 25 February 1998: Modified use of "long" to "int" to ** enforce compatibility with SPP/IRAF. Removed numeric.h - not used. ** ** Version 2.0, 23 March 1998: ** M.D. De La Pena: Added structures SingleGroupLine, FloatHdrLine, and ** ShortHdrLine....
test.c
#include <stdio.h> #include <omp.h> #pragma omp requires unified_shared_memory #include "../utilities/check.h" #include "../utilities/utilities.h" #define TRIALS (1) #define N (1024*3) #define INIT() INIT_LOOP(N, {C[i] = 1; D[i] = i; E[i] = -i;}) #define ZERO(X) ZERO_ARRAY(N, X) int main(void) { check_offloa...
master_taskloop_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -triple x86_64-unknown-unknown -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -triple x86_64-unknown-unknown -verify %s -Wuninitialized void xxx(int argc) { int x; // expected-note {{initialize the variable 'x' to silence this warning}} #pragma om...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
3d7pt_var.c
/* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Pochoir test bench * * Tareq Malas */ #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #ifdef LIKWID_PERFMON #include <likwid.h> #endif #include "print_utils.h" #define TESTS 2 #define MAX(a,b) ((a) > (b) ? a : b) #...
GB_unop__identity_uint16_int64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
csr_matmultivec.c
/****************************************************************************** * Copyright (c) 1998 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) ***************************************...
memory_simd_fma.c
#include <immintrin.h> #include <stdio.h> void convert_memory_simd_fma(unsigned char *img, int width, int height, int channels, int threads, unsigned char *result) { // 128 bit registers, 32 bit floats => 4 int floats_per_operation = 4; int size = width * height; int pixel_per_thread_unaligned = size ...
otfft_sixstep0s.h
/****************************************************************************** * OTFFT Sixstep of Square Version 6.5 * * Copyright (c) 2015 OK Ojisan(Takuya OKAHISA) * Released under the MIT license * http://opensource.org/licenses/mit-license.php *******************************************************************...
mongodb_fmt_plug.c
/* Cracker for both MongoDB system and sniffed network hashes. Hacked together * during November of 2012 by Dhiru Kholia <dhiru at openwall.com>. * * Based on https://github.com/cyberpunkych/attacking_mongodb * * Hash format for MongoDB system hashes: user:$mongodb$0$user$hash * Hash format for MongoDB network ha...
task-two.c
/* * task-two.c -- Archer testcase */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // // See tools/archer/LICENSE.txt for details. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //==...
GB_extract_vector_list.c
//------------------------------------------------------------------------------ // GB_extract_vector_list: extract vector indices for all entries in a matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved....
mandelbrot.c
/* * mandelbrot.c: adaptive mesh refinement (AMR) * (c)2010-2018 Seiji Nishimura * $Id: mandelbrot.c,v 1.1.1.3 2018/09/11 00:00:00 seiji Exp seiji $ */ #include <math.h> #include <stdlib.h> #include <pixmap.h> #include <palette.h> #include <stdbool.h> // for adaptive mesh refinement #define MIN_GRID (0x01<<2) #de...
GB_binop__iseq_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
Example_reduction.1.c
/* * @@name: reduction.1c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_3.1 */ #include <math.h> void reduction1(float *x, int *y, int n) { int i, b, c; float a, d; a = 0.0; b = 0; c = y[0]; d = x[0]; #pragma omp parallel for private(i) shared(x, y, n) \ ...
3d7pt.c
/* * Order-1, 3D 7 point stencil * 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) #define MIN(a,b) ((a) < (b) ...
estimate_dt_utilities.h
/* ============================================================================== KratosIncompressibleFluidApplication 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...