source
stringlengths
3
92
c
stringlengths
26
2.25M
main_seqval2.c
/* Copyright (C) 2010 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:...
mesh_rezone.c
#include "../../shared.h" #include "hale.h" // Correct the subcell data by the determined fluxes void correct_for_fluxes(const int ncells, const int* cells_to_nodes_offsets, double* subcell_mass, double* subcell_mass_flux, double* subcell_ie_mass, double* subcell_ie_mass...
DRB009-lastprivatemissing-orig-yes.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...
tinyexr.h
/* Copyright (c) 2014 - 2019, Syoyo Fujita and many contributors. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this l...
special_random_ops.h
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
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) ...
lock-nested-unrelated.c
/* * lock-nested-unrelated.c -- Archer testcase */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // // See tools/archer/LICENSE.txt for details. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exce...
gsrb.ompfor.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
copyin-1.c
/* { dg-do run } */ /* { dg-options "-O2" } */ /* { dg-require-effective-target tls_runtime } */ #include <omp.h> #include <stdlib.h> int thr = 32; #pragma omp threadprivate (thr) int main (void) { int l = 0; omp_set_dynamic (0); omp_set_num_threads (6); #pragma omp parallel copyin (thr) reduction (||:l) {...
pr26943-3.c
/* PR c++/26943 */ /* { dg-do run } */ extern int omp_set_dynamic (int); extern void omp_set_nested (int); extern int omp_get_thread_num (void); extern void abort (void); extern void GOMP_barrier (void); int a = 8, b = 12, c = 16, d = 20, j = 0, l = 0; char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d"; volatile...
progress-new.c
/* * Copyright (c) 2009, 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #include <assert.h>...
GB_binop__max_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...
q1.c
#include <math.h> #include <omp.h> #include <stdio.h> #include <stdlib.h> #include "common.h" typedef struct { f64 time; f64 result; } integration_result; const f64 CONST_E = 2.71828; const f64 CONST_PI = 3.14159; const i32 REPEAT_COUNT = 512; f64 graph_function(f64 x) { return (3 * CONST_E * x * x * x) ...
convolution_sgemm.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 ...
phostone.c
// Normal compile // Intel: // mpiicc -fopenmp phostone.c -o phostone // gcc: // mpicc -fopenmp phostone.c -o phostone // // To compile without openmp // Intel: // mpiicc -fopenmp-stubs phostone.c -o purempi // gcc: // mpicc -DSTUBS phostone.c -o purempi // // #ifdef FORCEIT #define _GNU_SOURCE #endif #include...
ccsd_t.c
/* * */ #include <stdlib.h> #include <string.h> #include "config.h" #include "np_helper/np_helper.h" #include "vhf/fblas.h" /* * 4 * w + w.transpose(1,2,0) + w.transpose(2,0,1) * - 2 * w.transpose(2,1,0) - 2 * w.transpose(0,2,1) * - 2 * w.transpose(1,0,2) */ static void permute3(double *out, double *w, int n) {...
cc_bmm_bg_op.h
#ifndef CAFFE2_FB_OPERATORS_CC_BMM_BG_H_ #define CAFFE2_FB_OPERATORS_CC_BMM_BG_H_ #include "caffe2/core/context.h" #include "caffe2/core/operator.h" #include "caffe2/core/types.h" #include "caffe2/utils/math.h" #include "c10/util/irange.h" namespace caffe2 { using T = float; using TInd = int; using Engine = DefaultE...
GB_unaryop__lnot_fp64_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...
GB_unaryop__lnot_uint16_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__rminus_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
convolution_2x2_pack8.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 ...
convolution_sgemm_pack4to1.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 ...
sample.c
#include <math.h> #include <stdlib.h> #include <stdio.h> #include <dirent.h> #include <string.h> #include <sndfile.h> #include <x86intrin.h> #include <stdbool.h> #include "sample.h" #include "global.h" #include "controls.h" #include "conftuning.h" #include "rclowpass.h" #include "mem.h" // ---------------------------...
mpncflint.c
/* $Header$ */ /* mpncflint -- netCDF file interpolator */ /* Purpose: Linearly interpolate a third netCDF file from two input files */ /* Copyright (C) 1995--present Charlie Zender This file is part of NCO, the netCDF Operators. NCO is free software. You may redistribute and/or modify NCO under the terms of t...
pbkdf2-hmac-sha512_fmt_plug.c
/* This software is Copyright (c) 2012 Lukas Odzioba <ukasz@openwall.net> * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without * modification, are permitted. * * Based on hmac-sha512 by magnum * * Minor fixes, format uni...
GB_binop__bor_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...
sxc_fmt_plug.c
/* SXC cracker patch for JtR. Hacked together during Summer 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 and use in source and b...
matmul_double.c
/* * Square matrix multiplication * A[N][N] * B[N][N] = C[N][N] * */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/timeb.h> #include <malloc.h> #define N 1024 //#define N 16 // read timer in second double read_timer() { struct timeb tm; ftime(&tm); return (double) tm.time + (d...
GB_binop__minus_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...
mult_omp.c
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include "Matrix.h" #define CHUNKSIZE 16 // The Matrix struct; typedef struct { double** M; // The actual matrix int nrow; // Number of rows int ncol; // Number of columns } Matrix; void Matrix_init(Matrix* m, int nrow, int ncol) { m->nrow = nrow; m->nc...
gravity.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #include "avx.h" #include "avx_type.h" #include "gravity.h" #define IPARA 2 #define JPARA 4 #define SEC 2.0 #define THD 3.0 #define JMEMSIZE 262144 #define ALIGN32 __attribute__ ((aligned(32))) #define ALIGN128 __attribute__ ((aligned(128))...
irbuilder_nested_parallel_for.c
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // RUN: %clang_cc1 -verify -fopenmp -fopenmp-enable-irbuilder -x c++ -emit-llvm %s -triple x86_64-unknown-unknown -fexceptions -fcxx-exceptions -o - | FileCheck --check-prefixes=CHECK %s // RUN: %clang_cc1 -fopenmp -fopenmp-enable-irbuilder -...
FeldmanDkg.h
#pragma once #include <memory> #include <polycrypto/PolyCrypto.h> #include <polycrypto/DkgCommon.h> #include <polycrypto/AbstractPlayer.h> #include <xutils/Log.h> #include <xutils/Timer.h> namespace Dkg { using libpolycrypto::Fr; using libpolycrypto::G1; using libpolycrypto::multiExp; class FeldmanPublicParameter...
test.c
#include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { int a = 1; int b = 2; #pragma omp parallel #pragma omp single { #pragma omp target enter data nowait map(to: a) depend(out: a) #pragma omp task depend(inout: a) shared(b) { b++; } #pragma omp target exit data nowait ma...
raytracer.c
#include <math.h> #include <omp.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "vector.h" #include "colour.h" #include "geometry.h" #include "scenery.h" #include "writebmp.h" extern Scenery scene[100]; extern size_t scene_ctr; static Colour ambient_light = {0.2, 0.2, 0.2}...
spts_syncfree_serialref.h
#ifndef _SPTS_SYNCFREE_SERIALREF_ #define _SPTS_SYNCFREE_SERIALREF_ #include "common.h" #include "utils.h" #include "tranpose.h" int spts_syncfree_analyser(const int *cscRowIdx, const int m, const int n, const int nnz, ...
stokeslet_rsrc_cell.c
#include "mex.h" #include "mex_compat.h" #include "math.h" #include "cell_list.h" #ifdef INTEL_MKL #include "mkl.h" #endif #define X prhs[0] // Source locations #define F prhs[1] // Source strengths #define RC prhs[2] // Ewald Param #define XI prhs[3] // Ewald Param #define BOX prhs[4] // domain size #define ...
cryptocontext.h
// @file cryptocontext.h -- Control for encryption 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 provide...
track_ellipse_gpu.c
#include "track_ellipse.h" // Host and device arrays to hold matrices for all cells // (so we can copy to and from the device in a single transfer) // The number of work items per work group #define LOCAL_WORK_SIZE 256 #define FP_TYPE float #define FP_CONST(num) num##f #define PI_FP32 FP_CONST(3.14159) #define ONE_O...
example_03-ArrayOfStructs-Naive-Omp-SIMD.c
/* * SPDX-License-Identifier: BSD-3-Clause * * example_03-ArrayOfStructs-Naive-Omp-SIMD.c : * Example of SPH Density Calculation using a * naive implementation of the main density loop, * no neighbours earch, and Array of Structs (AoS) * data layout, OpenMP parallelization and SIMD * ...
SplineC2RAdoptor.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: Jeremy Mc...
GB_thread_local.c
//------------------------------------------------------------------------------ // GB_thread_local: manage thread-local storage //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // http://suitesparse.com S...
instruments.h
/* * This file is part of Quantum++. * * MIT License * * Copyright (c) 2013 - 2019 Vlad Gheorghiu (vgheorgh@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restr...
fill.h
#pragma once #include <vector> #include <unordered_map> #include <algorithm> #include <omp.h> #include "_cuda.h" using std::vector; using std::unordered_map; using std::max; template <class T> void fill(T *x, int N, T v) { for (int i=0; i<N; i++) x[i] = v; } template <class T> void fill(vector<T>& x, T v) {...
GB_subassign_07.c
//------------------------------------------------------------------------------ // GB_subassign_07: C(I,J)<M> += scalar ; no S //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suitesparse.com Se...
GB_unop__identity_fc64_int8.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...
expected_output.c
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <math.h> //--------------------------------------------------------------------- // program UA //--------------------------------------------------------------------- //---------- // Class S: //---------- //---------- // Class W...
mat_mul_cetus.c
/* Copyright (C) 1991-2012 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...
GB_ewise_slice.c
//------------------------------------------------------------------------------ // GB_ewise_slice: slice the entries and vectors for an ewise operation //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2019, All Rights Reserved. // ht...
core_zgessq.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @precisions normal z -> c d s * **/ #include <math.h> #include "core_blas.h" #include "plasma_types.h" #include "core_lapack.h" /************************************************...
server.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <netdb.h> #include <strings.h> #include <string.h> #include <assert.h> #include <signal.h> #include <errno.h> #include <sys/stat.h> #inclu...
test32.c
#include<stdio.h> #include<omp.h> #include<unistd.h> int main () { int x = 0; #pragma omp parallel { int i; for (i = 0; i < 4; i++) { #pragma omp single nowait { printf("Starting omp-single of iteration %d executed by %d\n", i, omp_get_thread_num()); #pragma omp atomic update x = x + 1; if (i =...
convolution_3x3_int8.h
// BUG1989 is pleased to support the open source community by supporting ncnn available. // // Copyright (C) 2019 BUG1989. All rights reserved. // 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 /...
parallel_section_lastprivate.c
/* This file contains all checks for the section construct without the checks for the reduction clauses: ordered: checks that the execution is equivalent to the serial case */ #include <stdio.h> #include "omp_testsuite.h" int check_parallel_section_lastprivate (FILE * logFile) { int sum = 0; int sum0 = 0;...
cache.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
print.c
/* Copyright (c) 2010-2011, Jun Namikawa <jnamika@gmail.com> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "A...
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_dense_subassign_05d_template.c
//------------------------------------------------------------------------------ // GB_dense_subassign_05d_template: C<M> = x where C is dense //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://suite...
BucketOP.h
#ifndef BucketOP #define BucketOP /* * BucketOP.h: * a bucket operation, for padding mainly * usually an inputleaf node, degree = 0 * * Created on: Apr 21, 2017 * Author: mszhang */ //#include "Eigen/Dense" #include "MyLib.h" #include "Node.h" #include "Graph.h" //using namespace Eigen; class BucketNode ...
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 ...
dropout_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...
target_teams_distribute_parallel_for_simd_misc_messages.c
// RUN: %clang_cc1 -fsyntax-only -fopenmp -verify %s // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute parallel for simd'}} #pragma omp target teams distribute parallel for simd // expected-error@+1 {{unexpected OpenMP directive '#pragma omp target teams distribute parallel for s...
GB_unop__identity_int64_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...
EmbeddingBag.h
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
GB_unop__identity_uint16_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX-Li...
v_p_strategy.h
// // Project Name: KratosPFEMFluidDynamicsApplication $ // Last modified by: $Author: AFranci $ // Date: $Date: January 2016 $ // Revision: $Revision: 0.0 $ // // #ifndef KRATOS_V_P_STRATEGY_H #define KRATOS_V_P_STRATEGY_...
HestonInnerLoop.h
//Declare function -- calculates a heston european option price double HestonInnerLoop(double S, double K, double r, double T, double IV, int OptionType, double Kappa, double Theta, double Gamma, double Rho, int ChunkSize, int M); double HestonInnerLoop(double S, double K, double r, double T, double IV, int OptionType...
tree-vect-loop.c
/* Loop Vectorization Copyright (C) 2003-2020 Free Software Foundation, Inc. Contributed by Dorit Naishlos <dorit@il.ibm.com> and Ira Rosen <irar@il.ibm.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...
tlr_potrf.h
#ifndef __H2OPUS_TLR_POTRF_H__ #define __H2OPUS_TLR_POTRF_H__ #include <h2opus/core/hara_util.cuh> #include <h2opus/util/error_approximation.h> #include <h2opus/util/host_ara.h> #include <h2opus/core/tlr/tlr_defs.h> #include <h2opus/core/tlr/tlr_struct.h> #include <h2opus/core/tlr/tlr_trsm.h> #include <h2opus/core/tl...
compare.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
original.c
/* POLYBENCH/GPU-OPENMP * * This file is a part of the Polybench/GPU-OpenMP suite * * Contact: * William Killian <killian@udel.edu> * * Copyright 2013, The University of Delaware */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> /* Include polybench common header. */ #include <po...
stat_ops.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "stat_ops.h" #include "utility.h" #include "constant.h" double expectation_value_X_Pauli_operator(UINT target_qubit_index, const CTYPE* state, ITYPE dim); double expectation_value_Y_Pauli_operator(UINT target_qubit_index, const CTYPE...
Compute.h
#ifndef COMPUTE_H_INCLUDED #define COMPUTE_H_INCLUDED #include <stdio.h> #include <stdlib.h> #include <SDL2/SDL.h> #include <math.h> #include <omp.h> #include <time.h> #include <immintrin.h> #include "Grad.h" inline static __m256d fsqrt(__m256d val) { return _mm256_castsi256_pd(0x1ff7770000000000+(_mm25...
A2_5.c
// gcc -std=c99 -Wall -lm -fopenmp A2_5.c -o go #include <stdio.h> #include <math.h> #include <omp.h> #include <time.h> #include <stdlib.h> double mean(int, double *); double sd(int, double *); double ttest(int, int, double *, double *); int main(int argc, char *argv[]) { FILE *fid; int nr = 0; char buf[255...
BiOP.h
#ifndef BIOP_H_ #define BIOP_H_ /* * BiOP.h: * a simple feed forward neural operation, binary input. * * Created on: June 11, 2017 * Author: mszhang */ #include "Param.h" #include "MyLib.h" #include "Node.h" #include "Graph.h" #include "ModelUpdate.h" class BiParams { public: Param W1; Param W2; ...
cryptocontext.h
/** * @file cryptocontext.h -- Control for encryption operations. * @author TPOC: contact@palisade-crypto.org * * @section LICENSE * * @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)) * All rights reserved. * Redistribution and use in source and binary forms, with or without modificati...
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 ...
GB_unop__identity_int32_int8.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...
main_openmp.c
// gcc -O3 main_openmp.c -fopenmp -o openmp // ./openmp 10000 100 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> typedef unsigned long long int uli; typedef struct problem{ int nb_bits; int size_bitarray; int population_size; uli *solution; uli **bitarrays; int *distances; int *so...
francis.c
// // Created by Anas Francis on 04/05/2021. // #include <stdlib.h> #include <stdio.h> #include <math.h> #include "mpi.h" #include <time.h> #include <sys/time.h> #include <string.h> #include <limits.h> int rank; int numproc; int r; int int_size_of_mat; int N; #define INFINI LONG_MAX #define ALLOC_SIZE 2 struct t_tab...
thread_number.c
#include <stdio.h> #include <omp.h> int main(){ #pragma omp parallel num_threads(4) { int ID = omp_get_thread_num(); printf("Thread number = %d\n", ID); } printf("----------------------------\n"); omp_set_num_threads(3); #pragma omp parallel { int ID = omp_get_thr...
Parser.h
//===--- Parser.h - C Language Parser ---------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
mypaint-tiled-surface.c
/* libmypaint - The MyPaint Brush Library * Copyright (C) 2007-2014 Martin Renold <martinxyz@gmx.ch> et. al. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
pslange.c
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/compute/pzlange.c, normal z -> s, Fri Sep 28 17:38:12 2018 * **/ #include "plasma_async.h" #include "plasma_contex...
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 ...
pcptdesdecryptcfbcaomp.c
/******************************************************************************* * Copyright 2002-2019 Intel Corporation * All Rights Reserved. * * If this software was obtained under the Intel Simplified Software License, * the following terms apply: * * The source code, information and material ("Material") co...
utils.c
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <omp.h> void print_mat(int n , int** mat) { int i,j; for (i = 0; i < n; i++){ printf("%X: ",mat[i]); for (j = 0; j < n; j++){ printf("%d ",mat[i][j]); } printf("\n"); } printf("\n"); } void f...
GB_unop__identity_int32_fc64.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...
GB_unaryop__abs_int16_fp64.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
ssempush2.c
/* SSE2 C Library for Skeleton 2D Electrostatic OpenMP/Vector PIC Code */ /* written by Viktor K. Decyk, UCLA and Ricardo Fonseca, ISCTE */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <complex.h> #include <math.h> #include <xmmintrin.h> #include "ssempush2.h" void cfft2r2x(float complex f[], i...
pad.h
// Copyright 2018 Xiaomi, Inc. 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 applicab...
GB_unop__identity_fc64_int64.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...
GB_unop__identity_uint16_int32.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
reduction.h
// Copyright 2019-2020 ETH Zurich and the DaCe authors. All rights reserved. #ifndef __DACE_REDUCTION_H #define __DACE_REDUCTION_H #include <cstdint> #include "types.h" #include "math.h" // for ::min, ::max #ifdef __CUDACC__ #include "../../../external/cub/cub/device/device_segmented_reduce.cuh" #include "....
rawKeccak_512_fmt_plug.c
/* Keccak-512 cracker patch for JtR. Hacked together during January of 2013 * by Dhiru Kholia <dhiru.kholia at gmail.com>. * * This file is part of John the Ripper password cracker, * Copyright (c) 2012 by Solar Designer * based on rawMD4_fmt.c code, with trivial changes by groszek. */ #if FMT_EXTERNS_H extern s...
symm_x_dia_n_lo_row_conj.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #ifdef _OPENMP #include <omp.h> #endif alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_DIA *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number ...
ASTMatchers.h
//===- ASTMatchers.h - Structural query framework ---------------*- 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 // //===---------------------------...
convolution_hybrid.c
// // convolution.c // // Base code created by Josep Lluis Lerida on 11/03/15. // Base code updated by Vitor da Silva on 17/04/2021 // // Created by Josep Lluis Lerida on 11/03/15. // Updated by Vitor da Silva on 17/04/2021 // Hybrid OMP and MPI solution implemented by Albert Pérez & Francesc Contreras 11/06/2021 //...
layerramdistancetransform.h
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2017-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
image.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...