source
stringlengths
3
92
c
stringlengths
26
2.25M
lotus85_fmt_plug.c
/* * This software is Copyright (c) 2013 Sébastien Kaczmarek <skaczmarek@quarkslab.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. * * Fixed the format to crack multiple hashes + ...
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...
sort.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...
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_unop__carg_fp32_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...
distort.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_winograd_transform_pack8_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 ...
GB_binop__land_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
assignment.h
/* Portions Copyright 2019-2021 Xuesong Zhou and Peiheng Li, Cafer Avci * If you help write or modify the code, please also list your names here. * The reason of having Copyright info here is to ensure all the modified version, as a whole, under the GPL * and further prevent a violation of the GPL. * * More about...
displacement_lagrangemultiplier_frictional_contact_criteria.h
// KRATOS ______ __ __ _____ __ __ __ // / ____/___ ____ / /_____ ______/ /_/ ___// /________ _______/ /___ ___________ _/ / // / / / __ \/ __ \/ __/ __ `/ ___/ __/\__ \/ __/ ___/ / / / ___/ __/ / / / ___/ __ `/ / // / /___/ /_...
mxnet_op.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 ...
GxB_Vector_Option_get.c
//------------------------------------------------------------------------------ // GxB_Vector_Option_get: get an option in a vector //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identifie...
ast-dump-openmp-target-teams-distribute.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target teams distribute for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp target teams distribute for...
kernel_GICOV.h
#pragma omp target teams distribute parallel for thread_limit(work_group_size) for (int gid = 0; gid < global_work_size; gid++) { // Determine this thread's pixel int i = gid/local_work_size + MAX_RAD + 2; int j = gid%local_work_size + MAX_RAD + 2; // Initialize the maximal GICOV score to 0 float max_GICOV = 0...
irbuilder_unroll_partial_heuristic_constant_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs // RUN: %clang_cc1 -fopenmp-enable-irbuilder -verify -fopenmp -fopenmp-version=51 -x c -triple x86_64-unknown-unknown -emit-llvm %s -o - | FileCheck %s // expected-no-diagnostics // RE...
GB_unop__identity_fc64_uint16.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...
paint.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % PPPP AAA IIIII N N TTTTT ...
c_jacobi02.c
/* *********************************************************************** This program is part of the OpenMP Source Code Repository http://www.pcg.ull.es/ompscr/ e-mail: ompscr@etsii.ull.es Copyright (c) 2004, OmpSCR Group All rights reserved. Redistribution and use in source and ...
par_mod_lr_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) **************************************...
composite.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
roi_align.c
#include <TH/TH.h> #include <math.h> #include <omp.h> void ROIAlignForwardCpu(const float* bottom_data, const float spatial_scale, const int num_rois, const int height, const int width, const int channels, const int aligned_height, const int aligned_width, const float * botto...
util.h
#ifndef MATH_UTIL_H #define MATH_UTIL_H namespace math { namespace util { inline std::vector<std::string> variable_names(const arma::uword dim) { std::vector<std::string> variables; if (dim == 1) { variables = {"x"}; } else if (dim == 2) { variables = {"x", "y"}; } else if (dim == 3) { variables...
prior_box_op.h
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
convolutiondepthwise_3x3_pack4.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 ...
GB_unop__conj_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...
test11.h
#define HYPRE_SMP_PRIVATE HYPRE_BOX_SMP_PRIVATE,hypre__nx,hypre__ny,hypre__nz #ifdef HYPRE_USING_OPENMP #ifndef HYPRE_SMP_REDUCTION_OP #pragma omp parallel for private(HYPRE_SMP_PRIVATE) schedule(static) #endif #ifdef HYPRE_SMP_REDUCTION_OP #pragma omp parallel for private(HYPRE_SMP_PRIVATE) \ reduction(HYPRE_SMP_RED...
bli_dotv_bgq_int.c
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redist...
convolution_5x5.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 ...
Scalar3DUpdater3.h
/// /// @file Scalar3DUpdater3.h /// @brief スカラデータクラス仮想セルアップデータ /// #ifndef SCALAR_3D_UPDATER3_H #define SCALAR_3D_UPDATER3_H #include "BCMTools.h" #include "VCUpdater.h" #include "Scalar3D.h" #include "real.h" #ifdef BCMT_NAMESPACE namespace BCMT_NAMESPACE { #endif /// スカラデータクラス仮想セルアップデータ. /// /// @note 通信と補間...
69b71f_so4_adv.c
#define _POSIX_C_SOURCE 200809L #include "stdlib.h" #include "math.h" #include "sys/time.h" #include "xmmintrin.h" #include "pmmintrin.h" #include "omp.h" #include <stdio.h> #define min(a, b) (((a) < (b)) ? (a) : (b)) #define max(a, b) (((a) > (b)) ? (a) : (b)) struct dataobj { void *restrict data; int *size;...
wand-view.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % W W AAA N N DDDD ...
main.c
// // main.c // N-Body // // Authors: // Emanuele Del Sozzo, Marco Rabozzi, Lorenzo Di Tucci // {emanuele.delsozzo, marco.rabozzi, lorenzo.ditucci}@polimi.it // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/time.h> #include <unistd.h> #include <omp.h> #include "support...
update_ops_dm.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "constant.h" #include "update_ops_dm.h" #include "utility.h" #ifdef _OPENMP #include <omp.h> #endif void dm_normalize(double norm, CTYPE* state, ITYPE dim) { const ITYPE loop_dim = dim; const double normalize_factor = 1. / norm; ITYPE state_index_...
soal.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <windows.h> #include <omp.h> #include "headers/ProsesSoal.h" #include "headers/Login.h" //#include "WriteAndGrade.h" int main(){ //login_prompt(); float nilai; queue *q; q = malloc(sizeof(queue)); initialize(q); ...
evolve_turing.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <time.h> #include <omp.h> #include "turing.h" #include "evolve_turing.h" #include "pqueue.h" #include "common.h" tTransTableItem * Pregen_tuples; int Pregen_tuples_cnt; #pragma omp threadprivate(Pregen_tuples, Pregen_tuples_cnt) i...
mdp_vec.h
#pragma once #include "mdp.h" #include <omp.h> #include <unistd.h> /* Vectorized version of the MDPEnv_cpp env which uses OpenMP to run on multiple CPUs */ template <typename E, typename S = typename E::state_type, typename A = typename E::action_type, typename O = typename E::obs_type, typename ...
taiko_ranking_score.c
/* * Copyright (©) 2015-2016 Lucas Maugère, Thomas Mijieux * * 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 require...
sort.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...
DRB008-indirectaccess4-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...
J2OrbitalSoA.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: Jeongnim ...
math_utils.c
#include "math_utils.h" #include <stdio.h> #include <math.h> unsigned int seed = 1; // rand no funciona bien en paralelo, asi que he buscado otra solucion // https://www.bnl.gov/bnlhpc2013/files/pdf/OpenMPTutorial.pdf // https://en.wikipedia.org/wiki/Lehmer_random_number_generator void setSeed(int newSeed) { if ...
simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s -Wuninitialized // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify %s -Wuninitialized void xxx(int argc) { int x; // expected-note {{initialize the variable 'x' to silence this warning}} #pragma omp simd for (int i = 0; i < 10; ++i) argc = x; // expecte...
axpy_simd.c
/* * AXPY Y[N] = Y[N] + a*X[N] */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/timeb.h> #include <stdbool.h> #include <string.h> #include <omp.h> #include "../constants.h" /* read timer in second */ double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + ...
GB_binop__bclr_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...
HYPRE_struct_int.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...
pr57824.c
/* PR preprocessor/57824 */ /* { dg-do compile } */ /* { dg-options "-std=gnu99 -fopenmp" { target c } } */ /* { dg-options "-std=c++11 -fopenmp" { target c++ } } */ void bar (); void foo () { #pragma omp parallel num_threads(sizeof R"( abc )") bar (); }
pr39591-3.c
/* PR other/39591 */ /* { dg-do run } */ /* { dg-options "-O2" } */ extern void abort (void); int err, a[40]; void __attribute__((noinline)) foo (int *array) { #pragma omp task { int j; for (j = 0; j < sizeof array / sizeof array[0]; j++) if (array[j] != 0x55555555) #pragma omp atomic err++; } } ...
CCHMetric.h
#pragma once #include <algorithm> #include <cassert> #include <cstdint> #include <utility> #include <vector> #include "Algorithms/CCH/CCH.h" #include "Algorithms/CH/CH.h" #include "DataStructures/Containers/ConcurrentLocalIdMap.h" #include "DataStructures/Graph/Attributes/TraversalCostAttribute.h" #include "DataStruc...
fft.c
/* Copyright 2013-2014. The Regents of the University of California. * Copyright 2016-2018. Martin Uecker. * Copyright 2018. Massachusetts Institute of Technology. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2011-2018 ...
GB_binop__bshift_int32.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
Example_teams.5.c
/* * @@name: teams.5c * @@type: C * @@compilable: yes * @@linkable: no * @@expect: success * @@version: omp_4.0 */ 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, v2, N); #pragma omp target teams map(to: v1[0:N], ...
lbfgsbsolver.h
// CppNumericalSolver #include <iostream> #include <list> #include <Eigen/LU> #include "isolver.h" #include "../linesearch/morethuente.h" #ifndef LBFGSBSOLVER_H_ #define LBFGSBSOLVER_H_ namespace cppoptlib { template<typename Dtype> class LbfgsbSolver : public ISolver<Dtype, 1> { // last updates std::list<Vector<Dt...
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) ...
facedetectcnn.h
/* By downloading, copying, installing or using the software you agree to this license. If you do not agree to this license, do not download, install, copy or use the software. License Agreement For libfacedetection (3-clause BSD License) Copyright (c) 2018-2019, Shiqi Yu, all ...
GB_binop__cmplx_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-...
app_main.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "bmp_interface.h" #include <omp.h> extern int __htc_get_unit_count(); extern int global_radius; int app_main(int argc, char **argv) { uint32_t bufsize = 1000; // Allocate target temp buffer. extern void *stencil_cp_alloc(size_t); u...
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) ...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
projectuas_kelompok 5.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> typedef struct Items{ //sebagai list item yang dijual (-oleh Rain) char name[25]; int price; int stok; }items; struct solditems{ // sebagai catatan penjualan (-oleh Rain) char name[25]; int amount; }; struct node{ ...
hamiltonian.c
#include "cloud.h" double compute_hamiltonian (int Np, double k, const double *X[3], const double *U[3]) { double h = 0.; #pragma omp parallel for for (int i = 0; i < Np; i++) { /* for every particle */ h += 0.5 * (U[0][i]*U[0][i] + U[1][i]*U[1][i] + U[2][i]*U[2][i]); /* kinetic energy */ if (k) { ...
generator_spgemm_csc_asparse.c
/****************************************************************************** ** Copyright (c) 2015-2018, Intel Corporation ** ** All rights reserved. ** ** ** ...
bml_normalize_dense_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_add.h" #include "../bml_allocate.h" #include "../bml_normalize.h" #include "../bml_parallel.h" #include "../bml_types.h" #include "bml_add_dense.h" #include "bml_allocate_dense.h" #include "bml_getters_dense.h" #include "bml_normalize_dense.h" #include...
ast-dump-openmp-cancel.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 parallel { #pragma omp cancel parallel } } // CHECK: TranslationUnitDecl {{.*}} <<invalid sloc>> <invalid sloc> // CHECK: `-FunctionDe...
displacement_lagrangemultiplier_residual_contact_criteria.h
// KRATOS ___| | | | // \___ \ __| __| | | __| __| | | __| _` | | // | | | | | ( | | | | ( | | // _____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS // // License: BSD License // ...
remesh.h
#pragma once #include <functional> #include <numeric> #include <algorithm> #include <utility> #include "../progress.h" #include "../conan/mvector.h" #include "../conan/boxconfig.h" #include "../conan/ndspace.h" #include "../cvector/cvector.h" #include "decomposition.h" using Conan::mVector; using Conan::BoxConfig; t...
Graph.h
/****************************************************************************** ** Copyright (c) 2015, Intel Corporation ** ** All rights reserved. ** ** ** ...
5-2.c
#include <omp.h> #include <stdio.h> int main() { int w = 10; #pragma omp parallel num_threads(2) #pragma omp for firstprivate(w) for (int i = 0; i < 100; i++) { int id = omp_get_thread_num(); printf("T%d:ai%d w=%d\n", id, i, w++); } printf("W=%d\n", w); }
inference_helper.h
/* Copyright 2021 iwatake2222 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 in writing, soft...
loop-construct-matvect-openmp3x.c
/**************************************************************************** OpenMP-3.0 Example Codes Beta-v1.0 File : loop-construct-matvect-openmp3x.c Date :Aug 2011 Description : The program perform the matrix vector multiplication in parallel using t...
bufradixsort.c
#include "bufradixsort.h" #include "bufradixsort_common.h" #include "bufradixsort_histo.h" #include "bufradixsort_relocate.h" #include <limits.h> #include <stdint.h> #include <string.h> #ifdef _OPENMP #include <omp.h> #endif #if BUFRADIXSORT_DEBUG #include <stdio.h> #include <sys/time.h> #endif static unsigned int ...
ast-dump-openmp-target-teams-distribute-parallel-for-simd.c
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck --match-full-lines -implicit-check-not=openmp_structured_block %s void test_one(int x) { #pragma omp target teams distribute parallel for simd for (int i = 0; i < x; i++) ; } void test_two(int x, int y) { #pragma omp target team...
yolov2_forward_network_quantized.c
#include "additionally.h" // some definitions from: im2col.h, blas.h, list.h, utils.h, activations.h, tree.h, layer.h, network.h // softmax_layer.h, reorg_layer.h, route_layer.h, region_layer.h, maxpool_layer.h, convolutional_layer.h #define GEMMCONV #define W_MAX_VAL (256/2 - 1) // 7-bit (1-bit sign) #define I...
descriptor.h
#pragma once #include <volk.h> #include <glm/glm.hpp> #include <utility> #include <vector> #include <string_view> #include <map> #include "device.h" #include "locator.h" #include "swapchain.h" #include "mesh.h" struct StructDescriptorSetLayout { VkDescriptorSetLayout layout; std::vector<VkDescriptorType> ty...
H2ERI-HF-JK.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <omp.h> #include "TinyDFT.h" #include "H2ERI.h" void TinyDFT_copy_shells_to_H2ERI(TinyDFT_p TinyDFT, H2ERI_p h2eri) { h2eri->natom = TinyDFT->natom; h2eri->nshell = TinyDFT->nshell; h2e...
GB_unop__identity_uint8_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...
lloyds_slow_par.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <stdbool.h> #include <omp.h> #include "csvparser.h" void vector_init(double *a, int length) { for (int i = 0; i < length; i++) { a[i] = 0; } } void vector_copy(double *dst, double *src, int length) { for (int i = 0; i < len...
GB_unaryop__minv_int64_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...
zero_omp.c
/* * File: zero_omp.c * Author: Philip Mucci * mucci@cs.utk.edu * Mods: Nils Smeds * smeds@pdc.kth.se * Anders Nilsson * anni@pdc.kth.se */ /* This file performs the following test: start, stop and timer functionality for 2 slave OMP threads - It attempts to use the follo...
polish.c
/* * Copyright (C) 2018 by Benedict Paten (benedictpaten@gmail.com) * * Released under the MIT license, see LICENSE.txt */ #include <getopt.h> #include <stdio.h> #include <ctype.h> #include <memory.h> #include <hashTableC.h> #include <unistd.h> #include <time.h> #include "marginVersion.h" #include "margin.h" #inc...
GB_binop__minus_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-...
neutral.c
#include "neutral.h" #include "../../comms.h" #include "../../params.h" #include "../../shared.h" #include "../../shared_data.h" #include "../neutral_interface.h" #include <assert.h> #include <float.h> #include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #ifdef MPI #include "mpi.h" #endif // Perf...
ZQ_CNN_MTCNN_NCHWC.h
#ifndef _ZQ_CNN_MTCNN_NCHWC_H_ #define _ZQ_CNN_MTCNN_NCHWC_H_ #pragma once #include "ZQ_CNN_Net_NCHWC.h" #include "ZQ_CNN_BBoxUtils.h" #include <omp.h> namespace ZQ { class ZQ_CNN_MTCNN_NCHWC { public: using string = std::string; ZQ_CNN_MTCNN_NCHWC() { min_size = 60; thresh[0] = 0.6; thresh[1] = 0.7;...
qp_map.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <float.h> #include "qpoint.h" #include "fast_math.h" #include "vec3.h" #include "quaternion.h" #include "chealpix.h" #ifdef _OPENMP #include <omp.h> #endif qp_det_t * qp_init_det(quat_t q_off, double weight, double gain, mueller_t mueller) { qp_det_...
DRB053-inneronly1-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...
hermv_c_csc_u_hi.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include <memory.h> #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif static alphasparse_status_t hermv_csc_u_hi_unroll(const ALPHA_Number alpha, const ALPHA_SPMAT_CSC *A, const ALPHA_Number *x, ...
reduction-6.c
/* { dg-do run } */ extern void abort (void); int j; float f; int main () { j = -10000; f = 1024.0; int i; #pragma omp parallel for reduction (min:f) reduction (max:j) for (i = 0; i < 4; i++) switch (i) { case 0: if (j < -16) j = -16; break; case 1: if (f > -2.0) f = -2.0; break; case 2: ...
openmp2.c
#include <math.h> #include <omp.h> void cholesky(double *A, double *L, int n) { for (int j = 0; j < n; j++) { double s = 0; for (int k = 0; k < j; k++) { s += L[j * n + k] * L[j * n + k]; } L[j * n + j] = sqrt(A[j * n + j] - s); #pragma omp parallel for for (int i = j + 1; i < n; i++) { double s = 0;...
hoImageRegWarper.h
/** \file hoImageRegWarper.h \brief Define the class to perform image warpping using the geometric transformation in gadgetron registration \author Hui Xue */ #ifndef hoImageRegWarper_H_ #define hoImageRegWarper_H_ #pragma once #include "hoNDArray.h" #include "hoNDImage.h" #include "hoNDInterpolator.h" #i...
GB_unaryop__ainv_uint32_uint8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
pooling_hcl_arm_int8.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 ma...
3d25pt_var.c
/* * Order-1, 3D 25 point stencil with axis-symmetric ariable 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) >...
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...
kernels.c
/*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ********************************************************************...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
strass.c
/* * Matrices multiplication algorithms: a simple, strassen, and Intel BLAS * * This file is part of solution of a Intel Winter Summer School problem * Copyright (c) 2010 Roman Tsisyk <roman@tsisyk.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification,...
GB_binop__isne_fp64.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_unaryop__abs_bool_fp32.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
GB_unaryop__abs_int64_int16.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
NonlinearSolver_FastL.h
/* +-----------------------------------+ | | | *** L factor nonlinear solver *** | | | | Copyright (c) -tHE SWINe- 2013 | | | | NonlinearSolver_Fas...
GB_subref_phase0.c
//------------------------------------------------------------------------------ // GB_subref_phase0: find vectors of C = A(I,J) and determine I,J properties //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. ...