source
stringlengths
3
92
c
stringlengths
26
2.25M
GB_unaryop__minv_uint32_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http...
hmvm_mkl_cblas.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> #include <mkl.h> #include "hacapk.h" // ######## ######## ######## ######## ######## ######## ######## ######## // mkl cblas, parallel (multi-threaded cblas) // ######## ######## ######## ######## ######## ######## ######## ######## void hmv...
LAGraph_bfs_pushpull.c
//------------------------------------------------------------------------------ // LAGraph_bfs_pushpull: push-pull breadth-first search //------------------------------------------------------------------------------ /* LAGraph: graph algorithms based on GraphBLAS Copyright 2020 LAGraph Contributors. ...
argon2_fmt_plug.c
/* * This software is Copyright (c) 2016 Agnieszka Bielec <bielecagnieszka8 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. * * merged argon2d and argon2i into a single f...
ConvolutionCol2Im.h
// -------------------------------------------------------------------------- // Binary Brain -- binary neural net framework // // Copyright (C) 2018-2019 by Ryuji Fuchikami // https://github.com/ryuz // ryuji.fuchikami@n...
temporal_mean_method.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Suneth Warnakulasuriya (https://github.com/suneth...
GB_binop__lt_uint8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
gru_utils_fp16.h
// Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
deconvolution_pack16.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 ...
testing_dpotrf.c
/** * * @file example_dpotrf.c * * PLASMA testing routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @brief Example of Cholesky factorization * * @version 2.6.0 * @author Bilel Hadri * @date 2010-11-15 * @generated d Tu...
8.c
/* Используя возможности OpenMP, написать программу умножения матрицы на вектор. Сравнить время выполнения последовательной и параллельных программ. */ #include <stdio.h> #include <omp.h> #include <time.h> #define N 100 #define M 112 int main(int argc, char *argv[]) { // Инициализация static long matrix[N][M...
2mm.c
/** * 2mm.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@students.ic....
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
tmandel2.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. ...
Example_declare_variant.2.c
/* * @@name: declare_variant.2c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_5.0 */ #include <omp.h> void base_saxpy(int, float, float *, float *); void avx512_saxpy(int, float, float *, float *); #pragma omp declare variant( avx512_saxpy ) \ match( dev...
GB_unaryop__lnot_int16_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
3DConvolution.c
/** * 3DConvolution.c: This file was adapted from PolyBench/GPU 1.0 test suite * to run on GPU with OpenMP 4.0 pragmas and OpenCL driver. * * http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU * * Contacts: Marcio M Pereira <mpereira@ic.unicamp.br> * Rafael Cardoso F Sousa <rafael.cardoso@st...
minusminus-orig-yes.c
/* Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at the Lawrence Livermore National Laboratory Written by Chunhua Liao, Pei-Hung Lin, Joshua Asplund, Markus Schordan, and Ian Karlin (email: liao6@llnl.gov, lin32@llnl.gov, asplund1@llnl.gov, schordan1@llnl.gov, karlin1@llnl.gov) LLNL-CODE-73214...
convolution_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 ...
activations.c
#include "activations.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> char *get_activation_string(ACTIVATION a) { switch(a){ case LOGISTIC: return "logistic"; case LOGGY: return "loggy"; case RELU: return "relu"; c...
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...
fx.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
issue_001.c
#include <stdio.h> #include "assert.h" #include <unistd.h> // 920 fails #define TRIALS 919 // 6000 fails #define N 64*5000 int main() { int fail = 0; double A[N], B[N], C[N]; for (int i = 0; i < N; i++) { A[i] = 0.0; B[i] = 0.0; C[i] = 1.0; } int nte = 32; int tl = 64; int blockSize = tl; ...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
GB_unop__signum_fc32_fc32.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...
owl_ndarray_maths_map_omp.h
/* * OWL - OCaml Scientific and Engineering Computing * Copyright (c) 2016-2022 Liang Wang <liang@ocaml.xyz> */ #ifdef OWL_ENABLE_TEMPLATE #ifndef INIT // Because some functions do not really utilise this, #define INIT // so define an empty string as default. #endif #include "owl_core_engine.h" #include "owl_omp_...
vulnerability_map.c
/* Usage: <program.exe> <file with circuit> <output file> <iteration number> Example: reliablity.exe "c432.txt" "out.txt" 10000 if <iteration number> == -1 then check all possible input vectors Example: reliablity.exe "c432.txt" "out.txt" -1 Circuit format example: 5 N1 N2 N3 N6 N7 2 N22 N23 6 NAND N1 N3 N10 ...
GB_unop__ainv_uint32_uint32.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...
gridsys.c
/* Copyright (C) 2021 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...
DRACC_OMP_002_Buffer_Overflow_Tasking_yes.c
/* Causing a buffer overflow on the accelerator with recursive tasks in line 17. */ #include <stdio.h> #define C 1024 #pragma omp declare target int counter = 0; int rekurs(){ for(int i = 0; i<C; i++){ #pragma omp atomic counter++; #pragma omp task rekurs(); ...
outer_mult_profile.h
#include "CSC.h" #include "CSR.h" #include "Triple.h" #include "radix_sort/radix_sort.hpp" #include "utility.h" #include <algorithm> #include <iostream> #include <omp.h> #include <unistd.h> #include <cstring> using namespace std; static uint32_t nrows_per_blocker; static uint32_t ncols_per_blocker; static uint32_t n...
GB_unaryop__lnot_bool_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...
ctl_fragment.c
/********************************************************************[libaroma]* * Copyright (C) 2011-2015 Ahmad Amarullah (http://amarullz.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 Lic...
atomic-11.c
/* { dg-do run } */ extern void abort (void); int x = 6; float y; int main (void) { int v; float f; #pragma omp atomic read v = x; if (v != 6) abort (); #pragma omp atomic write x = 17; #pragma omp atomic read v = x; if (v != 17) abort (); #pragma omp atomic update x++; #pragma...
GB_AxB_colscale_meta.c
//------------------------------------------------------------------------------ // GB_AxB_colscale_meta: C=A*D where D is a square diagonal matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
blas.c
#include "blas.h" #include "utils.h" #include <math.h> #include <assert.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void reorg_cpu(float *x, int out_w, int out_h, int out_c, int batch, int stride, int forward, float *out) { int b,i,j,k; int in_c = out_c/(stride*stride); ...
bodysystemcpu_impl.h
/* * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
colorspace.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
sparse_tsne_user_def_probabilities_inl.h
/* * * Copyright (c) 2014, Nicola Pezzotti (Delft University of Technology) * 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 ...
vector.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...
batchnormp.c
#include <TH/TH.h> #include "batchnormp.h" #define THNN_CHECK_SHAPE(I1, I2) \ if (I1 != NULL && I2 != NULL && !THFloatTensor_isSameSizeAs(I1, I2)) \ { \ THDescBuff s1 = THFloatTensor_sizeDesc(I1); \ THDescBuff s2 = THFloatTensor_sizeDesc(I2); \ THError(#I1 " and " #I2 " shapes do n...
GB_unaryop__identity_fp64_bool.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
DRB048-firstprivate-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...
multi_device.h
// // Created by ss on 18-6-18. // #ifndef THUNDERGBM_MULTI_DEVICE_H #define THUNDERGBM_MULTI_DEVICE_H #include "thundergbm/common.h" //switch to specific device and do something, then switch back to the original device //FIXME make this macro into a function? #define DO_ON_DEVICE(device_id, something) \ do { \ ...
GB_unaryop__minv_fp32_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...
lapack_wrapper.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...
utils.c
#include "defs.h" double get_seconds() { struct timeval tp; gettimeofday(&tp, NULL); return (double) (tp.tv_sec + ((1e-6)*tp.tv_usec)); } void prefix_sums(LONG_T *input, LONG_T* result, LONG_T* p, LONG_T n) { LONG_T i; #ifdef _OPENMP LONG_T j, r, start, end, add_value; int tid, nthre...
mgm.c
#include <stdio.h> #include <math.h> #include "utils.h" #include "grid.h" #include "intergrid.h" #include "smoothers.h" typedef enum {V,W,S} CYCLE; typedef enum {JACOBI,CHEBYSHEV} METHOD; void get_options( int *iters, int *nc, double *mineigen, int *lmax, int *nu1, int *nu2, int *nuc, CYCLE *cycle, METHOD *smoot...
pi_omp_threads.c
/* This program will numerically compute the integral of 4/(1+x*x) from 0 to 1. History: Written by Tim Mattson, 11/99. Configure eclipse based: https://medium.com/swlh/openmp-on-ubuntu-1145355eeb2 */ #include <omp.h> #include <stdio.h> #include <unistd.h> #include <stdint.h> // Declare variables...
wpapmk.h
/* * This software is Copyright (c) 2012 Lukas Odzioba <lukas dot odzioba at gmail dot com> * and Copyright (c) 2012-2017 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. * * hccap ...
GB_binop__rminus_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-...
10.c
/* Написать программу, в которой объявить и присвоить начальные значения массиву целых чисел a[30], для инициализации значений использовать генератор случайных чисел. Используя конструкцию omp parallel for и omp atomic вычислить количество элементов массива, числовые значения которых кратны 9. Количество нитей задать с...
matrixstrassen.h
// @file matrixstrassen.h matrix strassen operations. // @author TPOC: contact@palisade-crypto.org // // @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the...
GB_bitmap_assign_M_sub_template.c
//------------------------------------------------------------------------------ // GB_bitmap_assign_M_sub_template: traverse M for GB_SUBASSIGN //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Lice...
print.c
// RUN: %libomp-tool -DFIRST_TOOL -o %t.first.tool.so %s && \ // RUN: %libomp-tool -DSECOND_TOOL -o %t.second.tool.so %s && \ // RUN: %libomp-compile && \ // RUN: env OMP_TOOL_LIBRARIES=%t.first.tool.so \ // RUN: PRINT_TOOL_LIBRARIES=%t.second.tool.so \ // RUN: %libomp-run | %sort-threads | FileCheck %s // For GCC we ...
oneWayFunction.c
// Copyright (c) 2017-2018 The Popchain Core Developers #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_s...
GB_subassign_10.c
//------------------------------------------------------------------------------ // GB_subassign_10: C(I,J)<M,repl> = A ; using S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com ...
DemBonesExt.h
/////////////////////////////////////////////////////////////////////////////// // Dem Bones - Skinning Decomposition Library // // Copyright (c) 2019, Electronic Arts. All rights reserved. // /////////////////////////////////////////////////////////////////////////////...
profile.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
saxpy.c
/* * File: saxpy.cu * Author: Don't Know but Malcolm Davis Modify it * Course: Computer Architecture II * Created on May 23, 2018 * Simple SAXPY(Single-precision Alpha*X Plus Y) operation with OpenCL * Modified the hello.c example provided * * Ussage: * ./argv[0] for default parameters and random vectors o...
GB_binop__bxor_uint64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
GB_binop__minus_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
openmp.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <pthread.h> #include <omp.h> #include <math.h> typedef double TYPE; #define MAX_DIM 4096*4096 #define MAX_VAL 10 #define MIN_VAL 1 #define ITERATIONS 1 TYPE** randomSquareMatrix(int dimension); TYPE** zeroSquareMatrix(int dimensio...
main-demo.c
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <ummap/ummap.h> #include <ioc-client.h> #include <time.h> #include <assert.h> //gcc -g main-demo.c -I$HOME/test-rdma/usr2/include -L$HOME/test-rdma/usr2/lib -L$HOME/test-rdma/usr2/lib64 -lummap-io -lioc-client -lfabric -o demo //gcc -g main-demo.c -I...
libSHCITools.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_binop__bor_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...
sptensor.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...
fused_rowwise_nbit_conversion_ops.h
#pragma once #include <algorithm> #include <vector> #ifdef _OPENMP #include <omp.h> #endif #include "caffe2/core/context.h" #include "caffe2/core/logging.h" #include "caffe2/core/operator.h" // for param_search_greedy #include "caffe2/operators/fused_rowwise_nbitfake_conversion_ops.h" #include "caffe2/...
sgm.h
#ifndef RECONSTRUCTION_BASE_SEMI_GLOBAL_MATCHING_ #define RECONSTRUCTION_BASE_SEMI_GLOBAL_MATCHING_ #include <iostream> #include <fstream> #include <cassert> #include <Eigen/Core> #include <Eigen/StdVector> #include <opencv2/core/core.hpp> //#define COST_CENSUS //#define COST_ZSAD #define COST_CNN namespace recon {...
GB_binop__min_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
ten_tusscher_2004_epi_S1_7.c
//Original Ten Tusscher #include <assert.h> #include <stdlib.h> #include "ten_tusscher_2004_epi_S1_7.h" GET_CELL_MODEL_DATA(init_cell_model_data) { assert(cell_model); if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode_equations = NEQ; } //TODO:...
omp_task_if.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <math.h> #include "omp_testsuite.h" #include "omp_my_sleep.h" int test_omp_task_if() { int condition_false; int count; int result; count=0; condition_false = (count == 1); #pragma omp parallel { #pragma omp single { #pragma omp t...
VerletClusterListsRebuilder.h
/** * @file VerletClusterListsRebuilder.h * @author humig * @date 29.07.19 */ #pragma once #include "VerletClusterLists.h" #include "autopas/utils/Timer.h" #include "autopas/utils/inBox.h" namespace autopas { template <class Particle> class VerletClusterLists; namespace internal { /** * Helper class for rebu...
Diffusion_Inpaint_core.c
/* * This work is part of the Core Imaging Library developed by * Visual Analytics and Imaging System Group of the Science Technology * Facilities Council, STFC * * Copyright 2017 Daniil Kazantsev * Copyright 2017 Srikanth Nagella, Edoardo Pasca * * Licensed under the Apache License, Version 2.0 (the "License")...
6437.c
/* * Compile using the command: * `cc 27Stencil.c -o oa -fopenmp -lm` */ #include <math.h> #include <omp.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #ifdef _OPENACC #include <openacc.h> #endif #define DEFAULT_DATASIZE 1048576 /* Default datasize. */ #define DEFAULT_REPS 10 ...
GB_unaryop__ainv_bool_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...
black-scholes.c
/* * Copyright (C) 2014-2015, 2018 Intel Corporation * * SPDX-License-Identifier: MIT */ #include <omp.h> #include <mathimf.h> #include "euro_opt.h" #ifdef __DO_FLOAT__ # define EXP(x) expf(x) # define LOG(x) logf(x) # define SQRT(x) sqrtf(x) # define ERF(x) erff(x) # define INVSQRT(x...
openmp_wc.c
/* Suggested makefile: ---------- P=openmp_wc objects=string_utilities.o CFLAGS=`pkg-config --cflags glib-2.0` -g -Wall -std=gnu99 -O3 -fopenmp LDLIBS=`pkg-config --libs glib-2.0` -fopenmp $(P): $(objects) ---------- */ #include "stopif.h" #include "wordcount.c" int main(int argc, char **argv){ argc--; argv++...
trsm_x_bsr_u_lo_row.c
#include "alphasparse/opt.h" #include "alphasparse/kernel.h" #include "alphasparse/util.h" alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_BSR *A, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, ALPHA_Number *y, const ALPHA_INT ldy) { const ALPHA_INT num_thread = alpha_g...
opi.c
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char **argv){ long long int Ninside = 0; // number of random points inside 1/4 circle long long int Ntests = 1000000000; long long n; int Nthreads = atoi(argv[1]); omp_set_num_threads(Nthreads); double estpi = 0; ...
parallel_for_ordered.c
#include <stdio.h> #include <math.h> #include "omp_testsuite.h" static int last_i = 0; /*! Utility function: returns true if the passed argument is larger than the argument of the last call of this function. */ static int check_i_islarger2 (int i) { int islarger; islarger = (i > last_i); last_i = i; r...
DeclOpenMP.h
//===--- OpenMP.h - Classes for representing OpenMP directives ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
custom_functions.h
// // Project Name: Kratos // Last Modified by: $Author: G.Casas (gcasas@cimmne.upc.edu) $ // Date: $Date: 2011-6-13 08:56:42 $ // Revision: $Revision: 1.5 $ // // //README::::look to the key word "VERSION" if you want to find all the points where you have to change something...
shared_update.c
// RUN: %libomptarget-compile-run-and-check-generic // REQUIRES: unified_shared_memory // amdgpu runtime crash // UNSUPPORTED: amdgcn-amd-amdhsa // UNSUPPORTED: amdgcn-amd-amdhsa-newRTL #include <stdio.h> #include <omp.h> // --------------------------------------------------------------------------- // Various defi...
GB_concat_sparse_template.c
//------------------------------------------------------------------------------ // GB_concat_sparse_template: concatenate a tile into a sparse matrix //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX...
GB_unop__frexpe_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...
pluq_mmpf.c
/******************************************************************* * * M4RI: Linear Algebra over GF(2) * * Copyright (C) 2008 Martin Albrecht <M.R.Albrecht@rhul.ac.uk> * * Distributed under the terms of the GNU General Public License (GPL) * version 2 or higher. * * This code is distributed i...
validator.c
// // Created by chaos on 2/23/2021. // #include "validator.h" #ifdef USE_MPI #include <mpi.h> #endif #include <string.h> #include "crypto/cipher.h" #include "crypto/ec.h" #include "crypto/hash.h" #include "seed_iter.h" int CryptoFunc_aes256(const unsigned char* curr_seed, void* args) { CipherValidator* v = (C...
convolution_sgemm_pack4_bf16s.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 ...
libimagequant.c
/* ** © 2009-2018 by Kornel Lesiński. ** © 1989, 1991 by Jef Poskanzer. ** © 1997, 2000, 2002 by Greg Roelofs; based on an idea by Stefan Schneider. ** ** See COPYRIGHT file for license. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include ...
nested_loop.c
#include <stdio.h> #include "assert.h" #include <unistd.h> #define TRIALS 1 #define N 960 int main() { int fail = 0; double A[N], B[N], C[N]; for (int i = 0; i < N; i++) { A[i] = 0.0; B[i] = 0.0; C[i] = 1.0; } int nte = 32; int tl = 6; int blockSize = 5; int Inner=0, Outer=0; int wayou...
nr_sgx_direct.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...
WaveFunctionComponent.h
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 Jeongnim Kim and QMCPACK developers. // // File developed by: Ken Esler...
comm.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 ...
GB_unop__atanh_fc32_fc32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
imd_colrad.h
#include "imd.h" #include <sys/time.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_errno.h> // #define USEFLOAT // hauptsächlich in der funktion genexptint. Profiling zeigte, dass // hier die meiste zeit verbraucht wird -> float verdoppelt performance #ifdef USEFLOAT typedef float Real; #de...
conv3x3s1_pack1to4_neon.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
main.c
#define __STDC_WANT_LIB_EXT2__ 1 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <assert.h> #include <unistd.h> #include <getopt.h> #include <omp.h> #include "samrecord.h" #include "align.h" #include "barcodes.h" #include "util.h" #include "main.h" // preprocess #include "cpp/m...
gimple.h
/* Modula-3: modified */ /* Gimple IR definitions. Copyright 2007, 2008, 2009, 2010, 2011, 2012 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 Lic...
onyx_if.c
/* * Copyright (c) 2010 The VP8 project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing...