source
stringlengths
3
92
c
stringlengths
26
2.25M
parallel_for.h
/*! * Copyright (c) 2021 by Contributors * \file runtime/container.h * \brief Defines the container object data structures. */ #ifndef DGL_RUNTIME_PARALLEL_FOR_H_ #define DGL_RUNTIME_PARALLEL_FOR_H_ #include <dmlc/omp.h> #include <algorithm> #include <string> #include <cstdlib> #include <exception> #include <vect...
GB_unop__isfinite_bool_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...
spacetime_heat_initial_m0_kernel_antiderivative.h
/* Copyright (c) 2020, VSB - Technical University of Ostrava and Graz 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: * Redistributions of source code must retain the above copyr...
3d7pt_var.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil with variable coefficients * Adapted from PLUTO and Po...
draw.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
convolution_3x3_pack4_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 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 ...
Integral.c
/* Sequential code to compute the integral f(x) = 4.0/1 + x^2. From 0 to 1. Solving the integral numerically gives the value of Pi. */ #include <stdio.h> #include "time.h" int main(void){ // long num_steps = 1000000000; // long num_steps = 100000000; double step; double x, integral...
GB_unop__identity_int8_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...
matrix.c
#include "matrix.h" /* * matrix.c * * Copyright (c) 2014, Rafat Hussain * License : BSD 3-Clause * See COPYRIGHT for more details */ typedef struct { float* a; int b; } vipair; float macheps() { float macheps; macheps = 1.0; while ((macheps + 1.0) > 1.0) { macheps = macheps / 2...
perfect_number.c
/* vim: set ft=c sw=4 ts=4: */ /* perfect_number.c * Perfect number calculation in C */ #include "perfect_number.h" #include <stdio.h> #include "dynarr/DG_dynarr.h" /** perfect number predicate */ bool is_perfect(unsigned n) { unsigned sum = 0; for (unsigned i = 1; i < n; i++) { if (n % i == 0) ...
nodal_two_step_v_p_strategy_for_FSI.h
// // Project Name: KratosPFEMFluidDynamicsApplication $ // Last modified by: $Author: AFranci $ // Date: $Date: June 2018 $ // Revision: $Revision: 0.0 $ // // #ifndef KRATOS_NODAL_TWO_STEP_V_P_STRATEGY_FOR_FSI_H #defi...
omp_bug1_fix.c
/****************************************************************************** * FILE: omp_bug1.c * DESCRIPTION: * This example attempts to show use of the parallel for construct. However * it will generate errors at compile time. Try to determine what is causing * the error. See omp_bug1fix.c for a corrected...
2mm.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 "pol...
GB_unop__minv_uint16_uint16.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...
convolutiondepthwise_5x5_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_unaryop__ainv_int16_int8.c
//------------------------------------------------------------------------------ // GB_unaryop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http...
AssemblerParallel.h
// // AssemblerParrallel.h // Gauss // // Created by David Levin on 6/6/17. // // #ifndef AssemblerParallel_h #define AssemblerParallel_h #ifdef GAUSS_OPENMP #include <omp.h> #include <Assembler.h> #include <CoreDefines.h> #include <Utilities.h> #include <UtilitiesOMP.h> #include <World.h> namespace Gauss { ...
ids.c
#include "globals.h" /* Set IDs with spacing so an ID domain decomposition is more balanced */ void Make_IDs() { printf ( "Make IDs ..." ); fflush ( stdout ); #pragma omp parallel for for ( int ipart = Param.Npart; ipart < Param.Npart; ipart++ ) { P[ipart].ID = ipart + 1; } size_t de...
GB_binop__bshift_uint16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. // SPDX...
GB_unop__minv_int64_int64.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...
main_mini_morus.c
#include "main_mini_morus.h" void copy_word(state_words* to, const state_words* from) { *to = *from; } void save_state(state* state_saved, state state, int i) { copy_word(&state_saved[i][0], &state[0]); copy_word(&state_saved[i][1], &state[1]); copy_word(&state_saved[i][2], &state[2]); copy_word(&state_save...
CPUMatrixImpl.h
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // // CPUMatrix.h : template implementation of all matrix functions on the CPU side // #pragma once #include "Basics.h" #include "File.h" #include "CPUMatrix.h"...
opi.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> int main(int argc, char **argv) { //seed random number generator // Q2b: get the number of threads to run with from agrv and // add OpenMP API code to set number of threads here int Nthreads = atoi(argv[1]); // tells openMP to use...
lagrange.c
#include "lagrange.h" #include "../../comms.h" #include "../../shared.h" #include "hale.h" #include <float.h> #include <math.h> // Performs the Lagrangian step of the hydro solve void lagrangian_phase(Mesh* mesh, UnstructuredMesh* umesh, HaleData* hale_data) { predictor(mesh, umesh, hale_data)...
GB_binop__land_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http:...
search.h
// -*- C++ -*- // Copyright (C) 2007, 2008 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the terms // of the GNU General Public License as published by the Free Software // Foundation; either version ...
pst_fmt_plug.c
/* PST cracker patch for JtR. Hacked together during July of 2012 by * Dhiru Kholia <dhiru.kholia at gmail.com> * * Optimizations and shift to pkzip CRC32 code done by JimF * * This software is Copyright (c) 2012, Dhiru Kholia <dhiru.kholia at gmail.com> * and it is hereby released to the general public under the...
GB_binop__le_int16.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
contact_residualbased_elimination_builder_and_solver_with_constraints.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Vicente Mataix Ferrandiz // // #if !d...
opencl_tc_fmt_plug.c
/* * TrueCrypt volume OpenCL support to John The Ripper (RIPEMD-160 only) * * Based on CPU format originally written by Alain Espinosa <alainesp at * gmail.com> in 2012. * Copyright (c) 2015, magnum * Redistribution and use in source and binary forms, with or without * modification, are permitted. */ #if HAVE_...
lcs.c
/* Dynamic Programming solution to find length of the longest common substring Adapted from http://www.geeksforgeeks.org/longest-common-substring/ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> /* SPEED UP: 1.84 TEMPO SEQUENCIAL (omp_get_wtime) LCSubStr: 3.33 sec TEMPO PARALEL...
bml_copy_ellsort_typed.c
#include "../../macros.h" #include "../../typed.h" #include "../bml_allocate.h" #include "../bml_copy.h" #include "../bml_types.h" #include "bml_allocate_ellsort.h" #include "bml_copy_ellsort.h" #include "bml_types_ellsort.h" #include <complex.h> #include <stdlib.h> #include <string.h> /** Copy an ellsort matrix - re...
atlasmm.c
/* Hi, everybody! * ===================================================================================== * * Filename: MMmultiple.c * * Description: Do Matrix Multiplication C = A x B with A and B blocks generated by * mkmatrices.c. * * Version: 1.0 * Created: 09/21/2016 22:53:...
GB_unop__identity_fc64_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...
loops_course_test.c
#include <stdio.h> #include <math.h> #include <malloc.h> #include <string.h> #define N 729 #define reps 1000 #include <omp.h> double a[N][N], b[N][N], c[N]; int jmax[N]; void init1(void); void init2(void); void runloop(int); void loop1chunk(int, int); void loop2chunk(int, int); void valid1(void); void valid2(v...
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 ta...
interpolation_v4.c
//------------------------------------------------------------------------------------------------------------------------------ // Samuel Williams // SWWilliams@lbl.gov // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------...
GB_apply_op.c
//------------------------------------------------------------------------------ // GB_apply_op: typecast and apply a unary or binary operator to an array //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // ...
GB_unop__isfinite_bool_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...
ExampleReservoirs_Shared.h
/** * grove: ExampleReservoirs_Shared.h * Copyright (c) Torr Vision Group, University of Oxford, 2017. All rights reserved. */ #ifndef H_GROVE_EXAMPLERESERVOIRS_SHARED #define H_GROVE_EXAMPLERESERVOIRS_SHARED #include <ORUtils/PlatformIndependence.h> #define ALWAYS_ADD_EXAMPLES 0 namespace grove { /** * \brief...
schelude-clause-guide.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif main(int argc, char **argv) { int i, n=16,chunk,a[n],suma=0; if(argc < 2) { fprintf(stderr,"\nFalta iteraciones y/o chunk \n"); exit(-1); } //n = atoi(argv[1]); if (n>20) n=20; chunk = atoi(...
AnisotropyFibreCase.h
#ifndef ANISOTROPYFIBRECASE_H #define ANISOTROPYFIBRECASE_H #include "geometry.h" #include <cstdio> #include <fstream> #include "vec.h" #include "randomnumber.h" #include "distribution.h" #include "cell.h" #include "descriptor.h" #include "block3D.h" #include "fibreset.h" #include "omp.h" template <typename Descripto...
trmm_x_coo_u_hi_row.c
#include "alphasparse/kernel.h" #include "alphasparse/util.h" #include "alphasparse/opt.h" #include <memory.h> alphasparse_status_t ONAME(const ALPHA_Number alpha, const ALPHA_SPMAT_COO *mat, const ALPHA_Number *x, const ALPHA_INT columns, const ALPHA_INT ldx, const ALPHA_Number beta, ALPHA_Number *y, const ALPHA_INT ...
GB_binop__ne_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...
main.c
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <math.h> #include <SDL2/SDL.h> #include <SDL2/SDL_timer.h> #ifdef _OPENMP #include <omp.h> #else #ifndef _ESCAPE_OPENMP #define omp_get_num_threads() 1 #define omp_get_thread_num() 0 #define omp_get_m...
decl2.c
/* Process declarations and variables for C++ compiler. Copyright (C) 1988-2018 Free Software Foundation, Inc. Hacked by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
engalmod.c
/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /** @file engalmod.c @brief c-routines for function calls from Fortran in an enhanced galmod environment This module contains two functions that provide a very specialised chisquare evaluation when comparing an observed cube with a c...
GB_binop__minus_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-...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
gctpc_ll2xy.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "proj.h" #include "grb2.h" #include "wgrib2.h" #include "fnlist.h" /* gctpc_aux.c interface routines to the gctpc library 2/2012 Public Domain Wesley Ebisuzaki gctpc_get_latlon: fill grid with lat/lon values mercator pola...
mic_iloop.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef VECTOR_SIZE #define VECTOR_SIZE 100 #endif #ifdef _OPENMP #include <omp.h> #endif void count_sort(int a[], int n) { int i, j, count; int *temp = malloc(n*sizeof(int)); #pragma offload target(mic) in(a:length(n)) out(temp:length(n)) { #prag...
3d7pt.lbpar.c
#include <omp.h> #include <math.h> #define ceild(n,d) ceil(((double)(n))/((double)(d))) #define floord(n,d) floor(((double)(n))/((double)(d))) #define max(x,y) ((x) > (y)? (x) : (y)) #define min(x,y) ((x) < (y)? (x) : (y)) /* * Order-1, 3D 7 point stencil * Adapted from PLUTO and Pochoir test bench * * Tare...
convolution_winograd_transform_pack4.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
GB_binop__plus_uint8.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_3x3_pack4to1_bf16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 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 ...
mkl_util.h
/* Copyright 2017 The TensorFlow 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 a...
convolution_1x1_pack8to4_fp16s.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2020 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 ...
ompnumthread.c
/* * $PIP_license: <Simplified BSD License> * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the follow...
bks_fmt_plug.c
/* * This software is Copyright (c) 2016, Dhiru Kholia <dhiru.kholia at gmail.com>, * and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, * are permitted. */ #if FMT_EXTERNS_H extern struct fmt_main fmt_bks; ...
noatomic.c
#include <stdio.h> #include <stdlib.h> #include <omp.h> main() { float *x,*y,*work1,*work2; float sum; int *index; int n,i; n=1000; x=(float*)malloc(n*sizeof(float)); y=(float*)malloc(n*sizeof(float)); work1=(float*)malloc(n*sizeof(float)); work2=(float*)malloc(n*sizeof(fl...
SpatialAveragePooling.c
#include <math.h> #include "../thnets.h" int nnload_SpatialAveragePooling(struct module *mod, struct nnmodule *n) { struct table *t = n->table; mod->type = MT_SpatialAveragePooling; mod->updateOutput = nn_SpatialAveragePooling_updateOutput; struct SpatialAveragePooling *m = &mod->SpatialAveragePooling; m->padW = ...
for-3.c
void bar (int); int a[256]; void foo (int j) { int i; #pragma omp for for (i = 0; i != 64; i = i + 4) /* { dg-error "increment is not constant 1 or -1" } */ bar (i); #pragma omp for for (i = 128; i != 64; i = i - 4) /* { dg-error "increment is not constant 1 or -1" } */ bar (i); #pragma omp for ...
8580.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...
shear.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
declare_variant_messages.c
// RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp -x c -std=c99 -fms-extensions -Wno-pragma-pack %s // RUN: %clang_cc1 -triple=x86_64-pc-win32 -verify -fopenmp-simd -x c -std=c99 -fms-extensions -Wno-pragma-pack %s #pragma omp declare // expected-error {{expected an OpenMP directive}} int foo(void); #pra...
GB_binop__isne_int8.c
//------------------------------------------------------------------------------ // GB_binop: hard-coded functions for each built-in binary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-...
syrk.c
/** * syrk.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...
GB_unop__abs_bool_bool.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved. // http://...
Sema.h
//===--- Sema.h - Semantic Analysis & AST Building --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
ecryptfs_fmt_plug.c
/* Cracker for eCryptfs ~/.ecryptfs/wrapped-passphrase. * * We attack "login passphrase" instead of "mount passphrase" (and which could * be 128-bit random key!). * * "ecryptfs_unwrap_passphrase -> generate_passphrase_sig" in * src/libecryptfs/key_management.c is important. * * Do we need to do full decryption ...
aix_smd5_fmt_plug.c
/* AIX smd5 cracker patch for JtR. Hacked together during April of 2013 by Dhiru * Kholia <dhiru at openwall.com>. * * This software is Copyright (c) 2013 Dhiru Kholia <dhiru at openwall.com> and * it is hereby released to the general public under the following terms: * Redistribution and use in source and binary ...
omp_sections_reduction.c
// RUN: %libomp-compile-and-run #include <stdio.h> #include <math.h> #include "omp_testsuite.h" int test_omp_sections_reduction() { int sum; int known_sum; double dpt,dsum; double dknown_sum; double dt=0.5; /* base of geometric row for + and - test*/ double rounding_error= 1.E-9; int diff; double ddiff...
psrs_sort.c
#include <omp.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> /* headers */ int fcompare(const void *ptr2num1, const void *ptr2num2); float *merge(float *left, float *right, int l_end, int r_end); float *merge_sort(float *arr, int size); void insertion_sort(float *arr, int n); void calc...
hopscotch_hash.c
/****************************************************************************** * Copyright (c) 1998 Lawrence Livermore National Security, LLC and other * HYPRE Project Developers. See the top-level COPYRIGHT file for details. * * SPDX-License-Identifier: (Apache-2.0 OR MIT) ***************************************...
hello_omp.c
/* Hello World OpenMP * * Compile on Triton as: * gcc -fopenmp hello_omp.c -o hello_omp * * degtyai1, Wed, 28 May 2014 12:47:47 +0300 * tuomiss1, Mon, 08 Jun 2020 * */ #include <stdio.h> #if defined(_OPENMP) #include <omp.h> #endif int main(void) { #if defined(_OPENMP) #pragma omp parallel printf("Hell...
GB_unop__log1p_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...
fft-cuda.c
/* Copyright 2013, 2015. The Regents of the University of California. * Copyright 2019. Uecker Lab, University Medical Center Göttingen. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2012-2019 Martin Uecker <martin.uecker...
multiplayer.h
//Windiarta - 2006535792 void multi(int refresh) { int sizey = 24; int sizex = 40; int x, y, yi; char world[sizey][sizex]; char world2[sizey][sizex]; char player = 'A'; char playerLaser = '^'; char enemy = 'M'; char enemyShielded = 'O'; char enemyLaser = 'v'; ...
tinyexr.h
#ifndef TINYEXR_H_ #define TINYEXR_H_ /* Copyright (c) 2014 - 2021, 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 th...
deconvolution_pack1to4.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 ...
weightCl.c
// % function [wcl,pc]= weightCl(E,no_allcl) // %========================================================================== // % FUNCTION: wcl = weightCl(E) // % DESCRIPTION: This function computes weight for each pair of clusters using // % their shared members (Jaccard Coefficient) // % // % INPUTS: E ...
lapw_mex.c
#include <inttypes.h> #include <math.h> #include <omp.h> #include "mex.h" #define PI 3.14159265358979323846 #define TAU (2*PI) #define WRAPF(u) (((u) < -(float)PI) || ((u) > (float)PI)) #define WRAPD(u) (((u) < -(double)PI) || ((u) > (double)PI)) void lapwf(float *du, const float *u, const double *h, const size_t ...
GxB_IndexUnaryOp_ytype_name.c
//------------------------------------------------------------------------------ // GxB_IndexUnaryOp_ytype_name: return the type_name of y for z=f(x,i,j,y) //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved. //...
rg_filter.c
////////////////////////////////////// // Cunren Liang, NASA JPL/Caltech // Copyright 2015-2018... ////////////////////////////////////// #include "resamp.h" #include <fftw3.h> #include <omp.h> #define SWAP4(a) (*(unsigned int *)&(a) = (((*(unsigned int *)&(a) & 0x000000ff) << 24) | ((*(unsigned int *)&(a)...
SpMat.h
/****************************************************************************** * ** Copyright (c) 2016, Intel Corporation ** * ** All rights reserved. ** * ** ...
transform.c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
pwsafe_fmt_plug.c
/* Password Safe and Password Gorilla cracker patch for JtR. Hacked together * during May of 2012 by Dhiru Kholia <dhiru.kholia at gmail.com>. * * Optimization patch during January of 2013 by Brian Wallace <brian.wallace9809 at gmail.com>. * * This software is Copyright (c) 2012-2013 * Dhiru Kholia <dhiru.kholia ...
scheduled-clause.c
#include <stdio.h> #include <stdlib.h> #ifdef _OPENMP #include <omp.h> #else #define omp_get_thread_num() 0 #endif int main(int argc, char **argv) { int i, n=200,chunk,a[n],suma=0; if(argc < 3) { fprintf(stderr,"\nFalta iteraciones o chunk \n"); exit(-1); } n = atoi(argv[1]); if (n>2...
openmp.c
#include <stdlib.h> #include <stdio.h> #include <time.h> #include <omp.h> #define PRINTABLE_TIME(_x) ((long double) (clock() - _x)/CLOCKS_PER_SEC) int main(int argc, char const *argv[]) { size_t N, NUM_THREADS, i, sec_p = 0, p = 0, *A; clock_t cl; if (argc < 3) { prin...
rkb_screen.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...
4718.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...
vector.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) **************************************...
convolution_1x1.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 ...
GB_unop__acos_fp64_fp64.c
//------------------------------------------------------------------------------ // GB_unop: hard-coded functions for each built-in unary operator //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPDX-Li...
GB_bitmap_select_template.c
//------------------------------------------------------------------------------ // GB_bitmap_select_template: C=select(A,thunk) if A is bitmap or full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. // SPD...
residual_based_bossak_velocity_scheme.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Jordi Cotela // ...
convolutiondepthwise_5x5.h
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2018 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 ...
mixed_tentusscher_myo_epi_2004_S1_18.c
// Scenario 1 - Mixed-Model TenTusscher 2004 (Myocardium + Epicardium) // (AP + max:dvdt) #include <stdio.h> #include "mixed_tentusscher_myo_epi_2004_S1_18.h" GET_CELL_MODEL_DATA(init_cell_model_data) { if(get_initial_v) cell_model->initial_v = INITIAL_V; if(get_neq) cell_model->number_of_ode...
integration_point_to_node_transformation_utility.h
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: Michael Andre, https://github....
DRB037-truedepseconddimension-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...