source
stringlengths
3
92
c
stringlengths
26
2.25M
NETNTLMv2_fmt_plug.c
/* * NETNTLMv2_fmt.c -- NTLMv2 Challenge/Response * * Written by JoMo-Kun <jmk at foofus.net> in 2009 * and placed in the public domain. * * Modified for performance, OMP and utf-8 support by magnum 2010-2011 * * This algorithm is designed for performing brute-force cracking of the NTLMv2 * challenge/response ...
SpinTemperatureBox.c
// Re-write of find_HII_bubbles.c for being accessible within the MCMC // Grids/arrays that only need to be initialised once (i.e. the lowest redshift density cube to be sampled) double ***fcoll_R_grid, ***dfcoll_dz_grid; double **grid_dens, **density_gridpoints; double *Sigma_Tmin_grid, *ST_over_PS_arg_grid, *dstarl...
attribute.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
omp_fill_taskqueue.c
// RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=0 %libomp-run // RUN: %libomp-compile && env KMP_ENABLE_TASK_THROTTLING=1 %libomp-run #include<omp.h> #include<stdlib.h> #include<string.h> /** * Test the task throttling behavior of the runtime. * Unless OMP_NUM_THREADS is 1, the master thread pushes tasks ...
GB_unaryop__identity_fp32_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...
wbb3_fmt_plug.c
/* WoltLab Burning Board 3 (WBB3) cracker patch for JtR. Hacked together during * May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution...
omp_bugparfoc.c
#include <omp.h> #include <stdio.h> #include <stdlib.h> int main (int argc, char *argv[]) { const size_t N = 100; const size_t chunk = 3; int i, tid; float a[N], b[N], c[N]; for (i = 0; i < N; ++i) { a[i] = b[i] = (float)i; } #pragma omp parallel for \ shared(a,b,c) \ pri...
seqio.h
/* * * seqio.hpp * Sequence reader and buffer class * */ #pragma once // C/C++/C++11/C++17 headers #include <cstddef> #include <string> #include <vector> #include <iterator> #include <zlib.h> #include <stdio.h> #include <string.h> #include "kseq.h" #include <stdint.h> KSEQ_INIT(gzFile, gzrea...
randarray.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #include <unistd.h> #include <math.h> #include "timer.h" #ifdef WITH_OPENMP #include <omp.h> #else // stubs for compiling without omp #define omp_get_thread_num() 0 #define omp_set_num_threads(...) #endif #ifdef WITH_MD5 #include <openssl...
lattice.h
/***************************************************************************** * * ALPS/looper: multi-cluster quantum Monte Carlo algorithms for spin systems * * Copyright (C) 1997-2016 by Synge Todo <wistaria@comp-phys.org> * * This software is published under the ALPS Application License; you * can use, redistribute ...
ej3.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <unistd.h> #define TAM 4096 void rellenarArray(float *V){ for(int i=0;i<TAM;++i) *(V+i)=100.0f; } int main() { int number; double start; float *a = (float *)malloc(sizeof(float)*TAM); float *b = (float *)malloc(sizeof(float)*TAM); float *c = (f...
matrix.h
/****************************************************************************************************************/ /* */ /* OpenNN: Open Neural Networks Library ...
bfs_simple.c
/* Copyright (C) 2010-2011 The Trustees of Indiana University. */ /* */ /* Use, modification and distribution is subject to the Boost Software */ /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */ /* http:...
ompprag1.c
#define N 10 int a[N]; int main() { int i; #pragma omp parallel for for (i=0; i<N; i++) a[i]=i; }
GB_unaryop__minv_int32_uint32.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_unop__minv_int16_int16.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
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...
evolve.h
#define FLOAT double #define CLFLOAT cl_double #define CLFLOAT4 cl_double4 #define DOUBLE long double #define INT int #define UINT unsigned int #define LONG long #define ULONG unsigned long #define RVTIMESTEP #define RATIMESTEP #define RARVRATIO 1. #define MPWORKLIMIT 1000 #define CLWORKLIMIT 40000 #define MAXLEVE...
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. // //===-------------------------------------------------------...
minimal.c
/*! @copyright (c) 2017 King Abdullah University of Science and * Technology (KAUST). All rights reserved. * * STARS-H is a software package, provided by King Abdullah * University of Science and Technology (KAUST) * * @file src/applications/minimal.c * @version 1.3.0 * @author ...
GB_binop.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-...
convolution_winograd_transform_pack4.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 ...
sor_jacobi.c
#include <stdio.h> #include <math.h> #include <string.h> #include <omp.h> //#define M 500 double compute_error(double solution[][M + 2], double u[][M + 2], const int m); int sor(double unew[][M + 2], double uold[][M + 2], double solution[][M + 2], const double tol, const int m, const double h2, const double omega); ...
1.hello.c
#include <stdio.h> #include <omp.h> /* Q1: How many times will you see the "Hello world!" */ /* message if the program is executed with "./1.hello"? */ /* Q2: Without changing the program, how to make it to */ /* print 4 times the "Hello World!" message? */ int main () { #pra...
ransac.h
#pragma once #include <algorithm> #include <iostream> #include <numeric> #include <tuple> #include <vector> #include <misc3d/logging.h> #include <misc3d/utils.h> #include <open3d/geometry/PointCloud.h> #include <Eigen/Core> #define EPS 1.0e-8 namespace misc3d { namespace common { /** * @brief base primitives mod...
FunctorsOpenMP.h
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
distort.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
GB_unaryop__ainv_int16_uint32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
GB_unop__tan_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
gimple.h
/* Gimple IR definitions. Copyright (C) 2007-2014 Free Software Foundation, Inc. Contributed by Aldy Hernandez <aldyh@redhat.com> This file is part of GCC. GCC 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 Foundati...
openmp.c
// RUN: %clang_cc1 -mllvm -emptyline-comment-coverage=false -fopenmp -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -emit-llvm-only -main-file-name openmp.c %s | FileCheck %s // CHECK: openmp.c:{{.+}}omp_outlined{{.+}}: // CHECK: File 0, 10:3 -> 10:31 // CHECK: File 0, 10:19 -> 10:24 // CHECK: Fi...
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) #...
convolution_sgemm_int8.h
// BUG1989 is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2019 BUG1989. 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 of the License at // //...
multiway_mergesort.h
/*************************************************************************** * include/stxxl/bits/parallel/multiway_mergesort.h * * Parallel multiway mergesort. * Extracted from MCSTL - http://algo2.iti.uni-karlsruhe.de/singler/mcstl/ * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C...
dds.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
deconvolution_pack8to16.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 ...
GB_unaryop__identity_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_binop__lt_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
prepress.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
colorspace.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
main.c
/* ============================================================================ Name : main.c Author : Arthur Bauville Version : Copyright : Description : ============================================================================ */ #include "stokes.h" int main(int argc, char *argv[]) {...
ordering_op-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 ...
three_step_v_p_strategy.h
// // Project Name: KratosPFEMFluidDynamicsApplication $ // Last modified by: $Author: AFranci $ // Date: $Date: June 2021 $ // Revision: $Revision: 0.0 $ // // #ifndef KRATOS_THREE_STEP_V_P_STRATEGY_H #define KRATOS_TH...
random_number_generator.h
/* * SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu> * SPDX-License-Identifier: BSD-3-Clause * SPDX-FileType: SOURCE * * This program is free software: you can redistribute it and/or modify it * under the terms of the license found in the LICENSE.txt file in the root * directory...
libperf_int.h
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2015. ALL RIGHTS RESERVED. * Copyright (C) The University of Tennessee and The University * of Tennessee Research Foundation. 2016. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifndef LIBPERF_INT_H_ #define LIBPERF_INT_H_ #include <tools/p...
begin_declare_variant_messages.c
// RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp -x c -std=c99 -fms-extensions -Wno-pragma-pack %s // RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp-simd -x c -std=c99 -fms-extensions -Wno-pragma-pack %s #pragma omp begin // expected-error {{expected an OpenMP directive}} #pragma omp end declare...
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 check_results(double* A){ for...
project.c
//----------------------------------------------------------------------------- // project.c // // Project: EPA SWMM5 // Version: 5.1 // Date: 03/19/14 (Build 5.1.000) // 04/14/14 (Build 5.1.004) // 09/15/14 (Build 5.1.007) // 03/19/15 (Build 5.1.008) // ...
par_interp.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) **************************************...
phonon.c
/* Copyright (C) 2015 Atsushi Togo */ /* All rights reserved. */ /* This file is part of phonopy. */ /* 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 abo...
convolution_int8.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_binop__iseq_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
convolution_winograd_dot_pack4_fp16s.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 ...
sgbuf.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #endif #include "sgtype.h" #include "sgbuf.h" #include "mt64.h" #include "vrand.h" void random_data(sgData_t *buf, size_t len){ #ifdef _OPENMP int nt = omp_get_max_threads(); #else int nt = 1; #endif #pragma omp parallel for num_threads(nt)...
residualbased_newton_raphson_mpc_contact_strategy.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
GB_unop__exp_fp32_fp32.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...
Ccorrelation_p.c
#include <Python.h> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include "numpy/arrayobject.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <ctype.h> #include <math.h> #ifdef _OPENMP #include <omp.h> #endif /* This program mainly comes from http://bioinfadmin.cs.ucl....
GB_binop__band_uint32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
colorspace.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
hugepages.c
#include "sicm_low.h" #include "sicm_impl.h" #include <stdio.h> #include <time.h> #include <sys/mman.h> #ifndef MAP_HUGE_SHIFT #include <linux/mman.h> #endif // 20 MiB #define SZ 20971520 int main() { struct sicm_device_list devices = sicm_init(); unsigned int start, end; unsigned int i; printf("%d\n", MAP_H...
csr_mult_double.h
// Copyright 2022 Shabunin Vladislav #ifndef MODULES_TASK_2_SHABUNIN_V_CSR_MULT_DOUBLE_CSR_MULT_DOUBLE_H_ #define MODULES_TASK_2_SHABUNIN_V_CSR_MULT_DOUBLE_CSR_MULT_DOUBLE_H_ #include <omp.h> #include <random> #include <stdexcept> #include <utility> #include <vector> class RandomDouble { public: static double Nex...
DRB077-single-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...
simd.h
#pragma once #if (__x86_64__ || __i386__) #include <cpuid.h> #include <x86intrin.h> #endif #define TILE (128 * 1024 * 1024) #if defined(__AVX512__) or defined(__AVX256__) #define ROUND_DOWN(size, step) ((size) & ~((step)-1)) #if defined(__AVX512__) #define SIMD_STORE(a, d) _mm512_storeu_ps(a, d) #define SIMD_LOAD(x...
GB_unop__identity_fc32_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://...
conv3x3s2_sse.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. // Copyright (C) 2019 BUG1989. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in...
GB_unop__identity_fp32_uint32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
common.c
#include "common.h" #include "linsys.h" /* contains routines common to direct and indirect sparse solvers */ #define MIN_SCALE (1e-3) #define MAX_SCALE (1e3) #define NUM_SCALE_PASSES 1 /* additional passes don't help much */ scs_int SCS(copy_a_matrix)(ScsMatrix **dstp, const ScsMatrix *src) { scs_int Anz = src->p[s...
GB_unaryop__identity_fp64_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
3d25pt.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-2, 3D 25 point stencil * Adapted from PLUTO and Pochoir test bench * * Tar...
DRB053-inneronly1-orig-no.c
/* Copyright (C) 1991-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it andor modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the L...
GrB_Matrix_export.c
//------------------------------------------------------------------------------ // GrB_Matrix_export: export a matrix in CSR, CSC, FullC, FullR, or COO format //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved...
GB_subassign_18.c
//------------------------------------------------------------------------------ // GB_subassign_18: C(I,J)<!M,repl> = A ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http://suitesparse.com ...
t_cholmod_super_numeric.c
/* ========================================================================== */ /* === Supernodal/t_cholmod_super_numeric =================================== */ /* ========================================================================== */ /* -------------------------------------------------------------------------...
GB_binop__rdiv_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
mandelbrot.c
#include "common_types.h" #include "graymap.h" #include "graymap_alleg.h" #include "paledit.h" #include <allegro.h> #include <math.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> void blur(BITMAP* src, BITMAP* dst) { int lim_w = src->w > dst->w ? src->w : dst->w; int lim_h = src->h > dst->h ?...
GB_unaryop__ainv_fp32_int64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
mask-pack.c
/* { dg-do compile } */ /* { dg-options "-mavx512bw -O3 -fopenmp-simd -fdump-tree-vect-details" } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 10 "vect" } } */ /* { dg-final { scan-assembler-not "maskmov" } } */ #define LENGTH 1000 long l1[LENGTH], l2[LENGTH]; int i1[LENGTH], i2[LENGTH]; short s1[LENG...
GB_unop__identity_fp32_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...
base_serialized.h
#include "callback.h" #include <omp.h> int main() { unsigned int i; #pragma omp parallel for num_threads(1) schedule(SCHEDULE) for (i = 0; i < 1; i++) { } // Check if libomp supports the callbacks for this test. // CHECK-NOT: {{^}}0: Could not register callback 'ompt_callback_parallel_begin' // CHECK...
ResultHandler.h
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* * Structures that collect search results from distance computations */ #pragma once #include <faiss/impl/AuxIndexStructures...
GB_binop__bshift_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
cpu_adam.h
#pragma once #define NOMINMAX // Windows idiosyncrasy // https://stackoverflow.com/questions/4913922/possible-problems-with-nominmax-on-visual-c #include <cuda_fp16.h> #include <cuda_runtime_api.h> #include <stdio.h> #include <cassert> #include "cuda.h" #include "custom_cuda_layers.h" #include "sim...
uvp.c
#include "helper.h" #include <math.h> #include <omp.h> #define fluid 4096 //pow2(2,12); #define air 8192 struct fgh_params{ double Re; double GX; double GY; double GZ; double alpha; double dt; double dx; double dy; double dz; int imax; int jmax; int kmax; double ***U; double ***V; double ***W; double...
GB_unop__identity_int16_uint32.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...
3d25pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 25 point stencil with axis-symmetric ariable coefficients * Adapted fr...
SpVec.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
divsufsort.c
#ifndef USE_EXTERNAL_ZSTD /* * divsufsort.c for libdivsufsort-lite * Copyright (c) 2003-2008 Yuta Mori All Rights Reserved. * * 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 * ...
for_schedule_static.c
/* * * For static scheduling we check whether the chunks have the requested size, * with the legal exception of the last chunk. * Modified by Chunhua Liao */ #include <stdio.h> #include <omp.h> #include <unistd.h> #include <stdlib.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" #define CFSMAX_SIZE 1000 /***...
target_exit_data_map_messages.c
// RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - %s // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp -ferror-limit 100 -o - -x c++ %s // RUN: %clang_cc1 -triple x86_64-apple-macos10.7.0 -verify -fopenmp-simd -ferror-limit 100 -o - %s // RUN: %clang_cc1 -tr...
mmc.c
/******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2007, 2008 Gregory Bard <bard@fordham.edu> * Copyright (C) 2008 Martin Albrecht <M.R.Albrecht@rhul.ac.uk> * * Distributed under the terms of the GNU General Public Lic...
GB_binop__copysign_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
Primal_Dual_LOOPLESS.h
#ifndef PRIMAL_DUAL_LOOPLESS_H #define PRIMAL_DUAL_LOOPLESS_H #include "problem_data.h" #include <string> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <stdio.h> /* printf */ #include <time.h> #include <fstream> #include <algorithm> #include <iomanip> #include <ctime> #include <s...
GB_unop__ceil_fp32_fp32.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...
libgomp.h
/* Copyright (C) 2005-2017 Free Software Foundation, Inc. Contributed by Richard Henderson <rth@redhat.com>. This file is part of the GNU Offloading and Multi Processing Library (libgomp). Libgomp is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
dummy.h
#pragma once #include<iomanip> #include"util.h" namespace DAMCREM{ inline const std::string& Scheme::scheme_name() noexcept { static const std::string name = "dummy"; return name; } inline void Scheme::encode(Plaintext &v0, const std::vector<double> &v1, size_t nt) const { v0.scheme_info = &scheme_info_; ...
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...
vanilla_sum_prod3.c
#include "q_incs.h" #include "vanilla_sum_prod3.h" extern uint64_t num_ops; static inline void _vvmul( float * restrict X, double * restrict Y, uint32_t n, double * restrict Z ) { #pragma omp simd for ( uint32_t i = 0; i < n; i++ ) { Z[i] = X[i] * Y[i]; } // num_ops += n; } static inl...
init_ops_random.c
#include <stdio.h> #include <stdlib.h> #include "init_ops.h" #include "utility.h" #include <time.h> #include <limits.h> #ifdef _OPENMP #include <omp.h> #endif // state randomization unsigned long xor128(unsigned long* state); double random_uniform(unsigned long* state); double random_normal(unsigned long* state); void...
ioc-bandwidth-threads.c
//gcc -fopenmp ioc-bandwidth-threads.c -I$HOME/test-rdma/usr2/include -lioc-client -L$HOME/test-rdma/usr2/lib -Wl,-rpath,$HOME/test-rdma/usr2/lib -o ioc-bandwidth-threads #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdbool.h> #include <ioc-client.h> #include <time.h> #include <omp.h> const si...