sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
9cc3c40690f26d8cbc6cc49beea2f0a69c9115ee1fa6a9d78ed1cd4f06127290
CUDA
8,600
282
// @file nnpooling.cu // @brief Pooling block // @author Andrea Vedaldi /* Copyright (C) 2014-17 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnpooling.hpp" #include "impl/disp...
61a6b7fc8de973e688bfed8405b0d63ee5ef46a56f402765149d5662be24f4ea
CUDA
8,746
235
// @file nnbias_cudnn.cu // @brief biasolution block CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2015-17 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnbias.hpp" #i...
0711727b56fe6a8e60325f4e961177990676e80eba87dad2aa9dca0a3dd17289
CUDA
8,765
236
// @file nnpooling_cudnn.cu // @brief Pooling layer CuDNN. // @author Andrea Vedaldi /* Copyright (C) 2015-17 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnpooling.hpp" #include "datacu.hpp"...
9a7c3eb4ebc59b957f72859dcfe34db2611be5b3257734bac6862faabac513eb
CUDA
8,773
209
#include "../../gpu_utils/gpu_utils.h" #include "../../monodomain/constants.h" #include <stddef.h> #include <assert.h> #include <stdlib.h> #include <math.h> #include "minimal_model.h" #include <stdio.h> extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using Minimal Model Mix...
d164ce6bd094e5a3455b4dde27a0ca0370f30ffdae5375829dbee4dc27d632c7
CUDA
8,988
303
// @file nnconv.cu // @brief Convolution block // @author Andrea Vedaldi // @author Max Jaderberg /* Copyright (C) 2014 Andrea Vedaldi and Max Jaderberg Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the...
d9465fdb4d772b80abec981701356604ce67dd0cc478a7440100d1d5ac444976
CUDA
9,009
302
// @file vl_nnbnorm.cu // @brief Batch normalization MEX wrapper // @author Sebastien Ehrhardt // @author Andrea Vedaldi /* Copyright (C) 2015 Sebastien Ehrhardt and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING f...
317229dc7c828dc9fd34f333a64bc46591113d79e888ae15e23d598f578158b7
CUDA
9,011
179
/* * This file is part of NAStJA. * * Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #inc...
e6285822ddcf90cb87d71ce13a92f05679698924c1320318e0d77e577204b9db
CUDA
9,036
236
/* This file is part of WhiskEras 2.0. WhiskEras 2.0 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 3 of the License, or (at your option) any later version. WhiskEras 2.0 ...
a86eb08f19b102928b1ddda0bcfd44f7a11d68cf04a77895b113b098f4ff2856
CUDA
9,075
193
if (layer == 0) { sv(0) = -86.98548236471670236369; // membrane_v sv(1) = 8.794382251905570768710; // ions_na_junc sv(2) = 8.793353652846489509900; // ions_na_sl sv(3) = 8.793536430319569774380; // ions_na_i sv(4) = 134.38543516665100696628; // ions_k_i sv(5) = 0.000114443087435669990; // ions_ca_junc sv(6...
ae5feac7a926cdf4e9e9ba00ca8e6157af5093a8ac55282650527142e5394bc8
CUDA
9,139
253
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file,...
51149ac4c84de77c81cc67088d1def3c1cc61c06dc171bb474b296dc534a8923
CUDA
9,195
315
// @file vl_nnpool.cu // @brief Pooling block MEX wrapper // @author Andrea Vedaldi // @author Karel Lenc /* Copyright (C) 2014-15 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "...
5ade8f3517bc8aceafd14bde01f4a306e744affc71f8deb6d38f7a5ca6ee25d8
CUDA
9,241
243
// @file nnpooling_blas.cu // @brief Pooling block CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #if !defined(ENABLE_G...
2abff2b7fd095feecbfca3f9b87b425c5d291a483d31a1c63ba6245e002a7153
CUDA
9,463
424
// // CUDA implementation of FIM (Fast Iterative Method) for Eikonal equations // // Copyright (c) Won-Ki Jeong (wkjeong@unist.ac.kr) // // 2016. 2. 4 // #include "cuda_fim_kernel.h" __device__ real get_time_eikonal(real a, real b, real c, real s) { real ret, tmp; // a > b > c if(a < b) { tmp = a; a = b; b = tmp;...
9edd0265c9d488a4da5eb8352e053bc5e930869f46ae0f20aed6dac7acf27803
CUDA
9,548
319
// @file vl_nnpool.cu // @brief Pooling block MEX wrapper // @author Andrea Vedaldi // @author Karel Lenc /* Copyright (C) 2014-15 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "...
1f8b742b49264a03d1d6dc9c226d616376033cb41678ae4390e0f94f1fa21b5f
CUDA
9,861
316
// @file vl_nnbnorm.cu // @brief Batch normalization MEX wrapper // @author Sebastien Ehrhardt // @author Andrea Vedaldi /* Copyright (C) 2015 Sebastien Ehrhardt and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING f...
267a910859cbf563f59ecd039c1eddc684ae3017b0647385c08dcd3f3458a060
CUDA
10,022
234
#include <arbor/fvm_types.hpp> #include <arbor/gpu/gpu_api.hpp> #include <arbor/gpu/gpu_common.hpp> #include "matrix_common.hpp" #include "diffusion.hpp" namespace arb { namespace gpu { namespace kernels { /// GPU implementation of Hines matrix assembly. /// Fine layout. /// For a given time step size dt: /// - u...
ef1928dd66a56435d6d23daed0a7854634d886bc4914ced0d2a2da44f733ae90
CUDA
10,110
235
#include <torch/extension.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/SparseTensorUtils.h> #include <ATen/ParallelOpenMP.h> #include <tuple> #include <iostream> namespace at { using namespace at::sparse; // tuned on ctd chemical-gene, disease-gene const int kWarpWorkload = 64; __global__ void divide_spars...
1be1ff3ba653428380d90cc18c04971599a377552a434a18165c61b9c9cd3429
CUDA
10,224
204
#include "ToRORd_fkatp_endo.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if(threadID < num_volumes) { *((real *)((char *)sv...
24eec629257ce4a0450b656b48b062a95887132ce3a4a55fa4f92c0ee0d8592c
CUDA
10,259
386
// @file datacu.cu // @brief Basic data structures (CUDA support) // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #ifndef ENABLE_GPU #error "datacu.cu ca...
6b7cdda5800505dfc4dfb6280d35fb3f1e92f176e2127932ed7cab4925df1b4d
CUDA
10,550
225
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
4812e0ae325e9752219901af1c0f2ad95265e1d81bc90bebec10c75a516119a2
CUDA
10,617
263
#include <arbor/fvm_types.hpp> #include <arbor/gpu/gpu_api.hpp> #include <arbor/gpu/gpu_common.hpp> #include "matrix_common.hpp" #include "matrix_fine.hpp" namespace arb { namespace gpu { namespace kernels { /// GPU implementation of Hines matrix assembly. /// Fine layout. /// For a given time step size dt: /// ...
ec9f475b09deaa74f81cf15c6e44bf5cb522662c46d0d0068f2f26be6b8c2a0f
CUDA
10,723
262
/***************************************************************************** * * GPU memory allocation, initialization, and transfer (Host <--> GPU) * ****************************************************************************/ /* * This file is part of GPUMCML. * * GPUMCML is free software: you can redistribu...
8b44a99168abf5b2c450fa8f7d3f1de63cf230ecfc04586995d8ed74b23d827b
CUDA
11,144
330
#include "ATen/ATen.h" #include "ATen/AccumulateType.h" #include "ATen/cuda/CUDAContext.h" #include <THC/THCDeviceUtils.cuh> #include <cuda.h> #include <cuda_runtime.h> #include <cuda_bf16.h> #include "type_shim.h" namespace { // This is the un-specialized struct. Note that we prevent instantiation of this // struc...
0e34c391887e469eb4d1a065a12366a711ebcd0c46236d24be73dbb362b8e4d4
CUDA
11,536
374
// @file nnnormalizelp.cu // @brief Batch normalization block // @author Andrea Vedaldi /* Copyright (C) 2017 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnnormalizelp.hpp" #include "impl/di...
b5a4daf3dce51847577d2f2c40103f3bef02037b4b1f2e5cc8c1fb85ab78c17c
CUDA
11,610
191
#include "../../gpu_utils/gpu_utils.h" #include "luo_rudy_1991.h" #include <stddef.h> #include <stdint.h> extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using luo_rudy_1991 GPU model\n"); uint32_t num_volumes = solver->original_num_cells; // execution configurati...
009531b9d3a73da007aa9e0faf8793f7a106c8ffbd7c29edd1a65cea5e402662
CUDA
11,632
301
// @file nnbilinearsampler_cudnn.cu // @brief BilinearSampler CuDNN-based implementation. // @author Ankush Gupta, Andrea Vedaldi /* Copyright (C) 2016-17 Ankush Gupta and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COP...
48aee523a2ea6633da0330ee2ff9474b074b0d97ca252a1f30b7100372dea07c
CUDA
11,732
178
/* * This file is part of NAStJA. * * Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #inc...
01148a652fce02ac99ca85204d7c796fab36224e2c6bd34cbe3068a2c7713641
CUDA
11,836
395
// @file nnnormalizelp_gpu.cu // @brief Batch normalization block // @author Andrea Vedaldi /* Copyright (C) 2017 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnnormalizelp.hpp" #include "dat...
e7ca290253c827f61cde8cc2d9ac3f65cca6558db876cb2f4e2a655470b7f9f9
CUDA
12,047
151
#include "Maleckar2009.h" #include <stddef.h> #include <stdint.h> #define sv(i) *((real *)((char *)sv + pitch * (i)) + thread_id) __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int thread_id = blockDim.x * blockIdx.x + threadIdx.x; ...
b920ca3b8341cc84c4fab61c266da5fa210f71fe7f47d70b8d31b7b4d962cbde
CUDA
12,061
369
// @file bilinearsampler_gpu.cu // @brief Bilinear sampler CUDA implementation // @author Ankush Gupta // @author Andrea Vedaldi /* Copyright (C) 2016- Ankush Gupta and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYIN...
c69df796d213d02b9974228c8733dfd87ff8996b210b2ce9010e455113c213ed
CUDA
12,162
305
// @file nnbilinearsampler_cudnn.cu // @brief BilinearSampler CuDNN-based implementation. // @author Ankush Gupta, Andrea Vedaldi /* Copyright (C) 2016- Ankush Gupta, Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING ...
37473041ca3be64290da931ece11e8c0715593c2c941d763fccf93c8bed5d3d8
CUDA
12,197
367
// @file bilinearsampler_gpu.cu // @brief Bilinear sampler CUDA implementation // @author Ankush Gupta // @author Andrea Vedaldi /* Copyright (C) 2016- Ankush Gupta and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYIN...
6c5702f5c17b78c947d67fd12776e71a1ead67a80d9faaf783751b7012d3bf92
CUDA
12,538
361
// @file nnroipooling.cu // @brief ROI pooling block // @author Hakan Bilen // @author Abishek Dutta // @author Andrea Vedaldi /* Copyright (C) 2016-17 Hakan Bilen, Abishek Dutta, and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license ...
04813e63616330da025dd50c4fabc4bb423b5a88344d37d2c23fe2334f132058
CUDA
12,604
494
#ifndef __CUDACC__ # error "A C or C++ compiler has been selected for CUDA" #endif /* Version number components: V=Version, R=Revision, P=Patch Version date components: YYYY=Year, MM=Month, DD=Day */ #if defined(__NVCC__) # define COMPILER_ID "NVIDIA" # if defined(_MSC_VER) # define SIMULATE_ID "MSVC" # eli...
8859058b6db9a4a0bb723cea779214f3140470b1d35f30b01786219fcf428662
CUDA
12,714
415
// @file nnpooling_gpu.cu // @brief Pooling block GPU. // @author Andrea Vedaldi // @author Karel Lenc /* Copyright (C) 2014-17 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnp...
5037d6fb8513559e9eb279861d8529cdd454489181e6fe3f3a49c70df8464a38
CUDA
12,814
335
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
78b3002a5a73f59d84a01502dc2c7c2bc2d04c32ea87afe670dd54c20db0f53f
CUDA
13,003
384
// @file roipooling_gpu.cu // @brief Region of interest pooling block implementation (GPU) // @author Hakan Bilen // @author Abishek Dutta // @author Andrea Vedaldi /* Copyright (C) 2016 Hakan Bilen, Abishek Dutta, and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available ...
4509ea52e98001da6de3015d06745286dbab1a321731831d1c7abea44ffb7eb0
CUDA
13,221
387
// @file nnroipooling_gpu.cu // @brief ROI pooling block (GPU) // @author Hakan Bilen // @author Abishek Dutta // @author Andrea Vedaldi /* Copyright (C) 2016-17 Hakan Bilen, Abishek Dutta, and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BS...
99410fa590b6e994f97a12e9dde0649c101753d97675983a261eacc85263c094
CUDA
13,245
417
// @file nnconvt.cu // @brief Convolution transpose block MEX wrapper // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "bits/mexutils.h" #includ...
81cf30b789324c49bb67d6c7a3d47f10729b9c0f7b6ebe5dab3fc706f9c04187
CUDA
13,534
482
// @file datamex.cu // @brief Basic data structures (MEX support) // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "datamex.hpp" #if ENABLE_GPU #...
6456b17e4085ebb2a7b658bc9f3fc251d1f886796f170b195ee801cee67d476b
CUDA
13,571
423
// @file nnconvt.cu // @brief Convolution transpose block MEX wrapper // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "bits/mexutils.h" #includ...
78eb7d045574c46fec37aafbe99645228a621f32e6e5b3d6aa1b1ee7c47a9eae
CUDA
13,597
477
/** @file vl_imreadjpeg.cu ** @brief Load images asynchronously ** @author Andrea Vedaldi **/ /* Copyright (C) 2014-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "bits/impl/tinythread.h" ...
34bdd14c5dca2996ea807a07157e9fb9f9ccdcbd8ba0ca704541d9af09bd8ba8
CUDA
13,682
420
// @file pooling_gpu.cu // @brief Pooling block implementation (GPU) // @author Andrea Vedaldi // @author Karel Lenc /* Copyright (C) 2014-16 Andrea Vedaldi and Karel Lenc. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ ...
164e55e8275a8e6180e5e40868ec62eb1a2eb6b3272cebb2a9035c54cf97630e
CUDA
13,812
284
/* This file is part of WhiskEras 2.0. WhiskEras 2.0 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 3 of the License, or (at your option) any later version. WhiskEras 2.0 ...
8318ef0f89ed72c793762e3bedbdcc7da48fe03a0d6d42b04d24efa11c7a294b
CUDA
13,820
425
// @file nnnormalize.cu // @brief Normalization block // @author Andrea Vedaldi /* Copyright (C) 2014-17 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnnormalize.hpp" #include "impl/dispatche...
08b378ced013acbf831971ea27e07f0f58bd1d13c68231fac2ec9b907573b60c
CUDA
13,891
396
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file,...
22ccd347ada88f2fe2da615c931ad4f940a25d494dd99bebd6cca88f9b688a04
CUDA
13,945
374
/***************************************************************************** * * Main control of MCMLGPU * ========================================================================= * ****************************************************************************/ /* * This file is part of GPUMCML. * * GPUMCML is...
cdd773992e004f783a6ec21211390f5928d5d7db4073797884e03f89e68ed8fa
CUDA
14,145
296
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
d4d6355e6782c98ae6b2f694932cd96e1b37d59c00c0fa6ae668a9f00e57e68c
CUDA
14,540
373
#include "courtemanche_ramirez_nattel_1998.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_volumes) { *((r...
25f4fcae08c7ee48e8d87ab77a2b98e103cc256ad055106a116a316ba8d0090f
CUDA
14,573
319
#include <iostream> #include "ATen/ATen.h" #include "ATen/AccumulateType.h" #include "ATen/cuda/CUDAContext.h" #include <cuda.h> #include <cuda_runtime.h> #include <cuda_bf16.h> #include "util.h" template <int Dim_, int VecSize_, int BatchesPerBlock_, int WarpsForOneBatchPerBlock_> struct LNParameters { static con...
ad16119efe8ff34ff083cce5b095f3d5b187b8356f5ff6322da496bea8f68559
CUDA
14,790
637
// @file data.cu // @brief Basic data structures // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "data.hpp" #include <cassert> #include <cstdlib...
ff8c49f5875cceefb5531bf426edde502212bf49bb6a37d28b6755d6f345ce3c
CUDA
14,853
638
// @file data.cu // @brief Basic data structures // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "data.hpp" #include <cassert> #include <cstdlib...
849ad215e07b91d8f03f3de6bf8a449f1ef1d67ad9120a8a4a6e1f4206dd3bda
CUDA
15,063
526
#include "ten_tusscher_2004.h" __constant__ size_t pitch; extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { size_t pitch_h; uint32_t num_volumes = solver->original_num_cells; #ifdef ENDO log_info("Using ten Tusscher 2004 ENDO GPU model\n"); #endif #ifdef EPI ...
b2249330233dc225bf278ff52cd200d5b3ab49a078c68854afceed0364f42bcc
CUDA
15,073
522
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "ten_tusscher_2004_epi.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using ten Tusscher 2004 epi GPU model\n"); uint32_t num_volumes = solver->original_num_cells; // exec...
664801e0d396855e0a8206f74e2b2a4263079060c360d26efb242850767788e1
CUDA
15,147
278
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "difrancesco.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using DiFrancesco & Noble 1985 GPU model\n"); uint32_t num_volumes = solver->original_num_cells; // execution c...
813004fcbb677c0e1f47dfc4f948acc9a1531325d4c4f99ec5c366a47e2ab831
CUDA
15,262
442
// @file nnbnorm.cu // @brief Batch normalization block // @author Sebastien Ehrhardt // @author Andrea Vedaldi /* Copyright (C) 2015-17 Sebastien Ehrhardt and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING fil...
f1f9b47995bfac3fd44f282c31365383d9b4daec38ec4ec5564dd38d33a6d8e3
CUDA
15,351
279
#include <vector> #include <iostream> #include <ATen/ATen.h> #include <ATen/cuda/CUDAGeneratorImpl.h> #include <ATen/cuda/detail/IndexUtils.cuh> #include <ATen/cuda/detail/TensorInfo.cuh> #include <cuda.h> #include <cuda_runtime.h> #include <cuda_fp16.h> #include <cuda_bf16.h> #include <cuda_profiler_api.h> #include <...
ec9dbe0897ce933ebd01e4d6f7ae419a87815155a070fd93a9aa8b32866f968c
CUDA
15,972
243
/* This file is part of WhiskEras 2.0. WhiskEras 2.0 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 3 of the License, or (at your option) any later version. WhiskEras 2.0 ...
ab90b8c4cb3d3fffbeba0a4ecad0c05e93f108866b119a57bfb2a6ae094bb53f
CUDA
16,513
503
// @file nnconv.cu // @brief Convolution block MEX wrapper // @author Andrea Vedaldi // @author Max Jaderberg /* Copyright (C) 2014 Andrea Vedaldi and Max Jaderberg Copyright (C) 2015 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license...
b8183be56c5e6d53e223b7d9e851e2add3010fc989b64ef4c2a9092a2b06e3a3
CUDA
16,609
462
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2015-2016 Gael Guennebaud <gael.guennebaud@inria.fr> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file...
d06c991a9091cccd499a746637b5ae9b14cfaea460bcf537e09fa1276bfd426c
CUDA
17,161
479
// @file nnbnorm_cudnn.hpp // @brief bnorm CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2016 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnbnorm_cudnn.hpp" #include...
f0e3c1cdc3b1201dbc9447f547e6f647389345e813827407199e5377c4ac80bd
CUDA
17,659
522
// @file nnconv.cu // @brief Convolution block MEX wrapper // @author Andrea Vedaldi // @author Max Jaderberg /* Copyright (C) 2014 Andrea Vedaldi and Max Jaderberg Copyright (C) 2015 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license...
54fbe89ed5fc6bc0a8d1411a320aaa6e0d27f10bd0b3c8dedb9f958263ddc2a5
CUDA
17,797
500
// @file nnbnorm_cudnn.hpp // @brief bnorm CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2016-17 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "nnbnorm.hpp" #inclu...
24f3cc17e9af5eb9f1713b51348ceb07d669fd8ca42b44dc86e7c3fb30b334ca
CUDA
18,116
460
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifdef USE_CUDA #include <LightGBM/cuda/cuda_tree.hpp> namespace Li...
b6da790549948454d980e4e7b15132edbd1ed0c3b210f0f41397c913552a428e
CUDA
18,428
475
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "CRN2017_TASK1_IKACh.h" __constant__ size_t pitch; __constant__ real abstol; __constant__ real reltol; __constant__ real max_dt; __constant__ real min_dt; __constant__ uint8_t use_adpt; size_t pitch_h; extern "C" SET_ODE_IN...
741b62751fd9f97550e82970be4ccd652c3a350ea453d9ed16f445e9fcec1220
CUDA
18,771
509
// @file nnconv.cu // @brief Convolution block // @author Andrea Vedaldi // @author Max Jaderberg /* Copyright (C) 2014 Andrea Vedaldi and Max Jaderberg. Copyright (C) 2015-17 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see th...
9919c8405f7e305f9b1a3e2db6d2c7ad70e5ed50b17e8d0be8a3bfd6fbf10c3d
CUDA
18,982
477
// Copyright (c) 2026 Rohit Jena. All rights reserved. // // This file is part of FireANTs, distributed under the terms of // the FireANTs License version 1.0. A copy of the license can be found // in the LICENSE file at the root of this repository. // // IMPORTANT: This code is part of FireANTs and its use, reproduct...
1e18672a4428ceb72d1e2b7813ccdfe88e41e32bc38308bb0e97d284179e9361
CUDA
19,742
415
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
881b047b6d70faf56ffcba9a0865b6698714f9cd6d523d4a5da22b8132166134
CUDA
20,253
416
/* * This file is part of NAStJA. * * Copyright 2016 - 2021 Marco Berghoff and the NAStJA Core Developers * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #inc...
4f5aa6ca063992956d45bc1df40eec0cedbca8d5e7d87e557c639d66e48b0907
CUDA
20,315
659
// @file im2row_gpu.cu // @brief Stack image patches as matrix rows (GPU) // @author Andrea Vedaldi /* Copyright (C) 2014-15 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include "im2row.hpp" #include ...
8b0d04d3263975572993f4334cf8420753c068f1a1e12fb900c3fea33b7e95c9
CUDA
21,179
404
#include <stddef.h> #include <stdint.h> #include "ten_tusscher_2006.h" __constant__ size_t pitch; extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { size_t pitch_h; log_info("Using ten Tusscher 2006 GPU model\n"); uint32_t num_volumes = solver->original_num_cells; // ex...
0b9ae5bb6883a776348345a822f1e7f293776e2c41df9d488adbaa97edc435ee
CUDA
22,279
498
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file,...
5fca4102d69ed126daa47bd7fc7082de235d597ef78e54d3871d4c34e3e26027
CUDA
22,920
543
// @file nnconv_cudnn.cu // @brief Convolution block CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #if !defined(ENABLE_GPU)...
3eed737b68e00f6d2576bc0727cb1df6b1c8db1ccc094b707237fdec252f8ff1
CUDA
23,116
451
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All rights ...
ac2412ea378f9add334cfac28f0073e8d9e7bde5a6258a37bba0ad35cf8eb6b1
CUDA
23,674
551
// @file nnconv_cudnn.cu // @brief Convolution block CuDNN-based implementation. // @author Andrea Vedaldi /* Copyright (C) 2015-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #if !defined(ENABLE_GPU)...
4bde466d75591ca2ade19da4d0ed9ed51e06ded95999e2b7491102623ea60e08
CUDA
24,378
482
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. */ #ifdef USE_CUDA #include "cuda_regression_objective.hpp" #include ...
e6b3fdbf39f342684d1f656cdcb987e0315eba887003d35f9218095987f96dce
CUDA
25,651
721
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "Ohara_Rudy_2011.h" __device__ int celltype_gpu = 0; extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using Ohara Rudy 2011 GPU model\n"); uint32_t num_volumes = solver->original_nu...
2d12eeeb1b9c88eb62df496982a4be8c848db2302271e0798b8c6bb87763dcb4
CUDA
25,660
553
// Copyright (c) 2026 Rohit Jena. All rights reserved. // // This file is part of FireANTs, distributed under the terms of // the FireANTs License version 1.0. A copy of the license can be found // in the LICENSE file at the root of this repository. // // IMPORTANT: This code is part of FireANTs and its use, reproduct...
935f7606ded89613a1c47a6e471fa70953fc5ebf3ebf3630def67166ee5d2ffb
CUDA
26,344
907
#include "Tworld.h" #include <stddef.h> #include <stdint.h> __constant__ size_t pitch; __constant__ real abstol; __constant__ real reltol; __constant__ real max_dt; __constant__ real min_dt; __constant__ uint8_t use_adpt; size_t pitch_h; #define sv(i) *((real *)((char *)sv + pitch * (i)) + thread_id) __global_...
d04d555a4f2e6fb5043a3b901a5043423ae78b36d230507962f3f29fc4b0b684
CUDA
26,516
699
/***************************************************************************** * * Kernel code for GPUMCML * ========================================================================= * Featured Optimizations: * 1) Shared memory cache for high fluence region * 2) Reduced divergence * 3) Optimized atomicAdd *...
6acd97557229189b5de8d482b0f9876869d4bdf09c33c7514c8df7c3f062df4f
CUDA
27,118
666
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "li_rudy_2011.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using Li & Rudy 2011 GPU model\n"); uint32_t num_volumes = solver->original_num_cells; // execution configurat...
7eb8a9d2ab442d0fa801d72fd128feaf491af860e3b032a1071308c2ae84eaaf
CUDA
27,597
928
#include <stddef.h> #include <stdint.h> #include "mixed_tentusscher_myo_epi_2004.h" __constant__ size_t pitch; size_t pitch_h; extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { log_info("Using mixed version of TenTusscher 2004 myocardium + epicardium GPU model\n\n"); uint32_t n...
2154cd0f4f5a37ba08f73c5801b1ae87f873833a950b0e4458c1dc80476d89a3
CUDA
28,438
621
// Copyright (c) 2026 Rohit Jena. All rights reserved. // // This file is part of FireANTs, distributed under the terms of // the FireANTs License version 1.0. A copy of the license can be found // in the LICENSE file at the root of this repository. // // IMPORTANT: This code is part of FireANTs and its use, reproduct...
e18aab2312e39fd54d68d28f045056563e7b059d8f64435fe160a59d087ef046
CUDA
30,134
424
#include "../../gpu_utils/gpu_utils.h" #include <stddef.h> #include <stdint.h> #include "bondarenko_2004.h" __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_vo...
e959ba4d96649ea804c6289a1bdc696a20ce214e8d27a03b77835f4c238144be
CUDA
30,726
964
#ifndef __CUDACC__ # error "A C or C++ compiler has been selected for CUDA" #endif /* Version number components: V=Version, R=Revision, P=Patch Version date components: YYYY=Year, MM=Month, DD=Day */ #if defined(__NVCC__) # define COMPILER_ID "NVIDIA" # if defined(_MSC_VER) # define SIMULATE_ID "MSVC" # eli...
2641ce837f24a566e8a2b6764be5b1f98305700816323a8fc5d28f9c5f2511a9
CUDA
34,324
810
#include "ToRORd_fkatp_mixed_endo_mid_epi_GKsGKrtjca_adjustments.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_vol...
c4d84bd9526c18e99726ecc139e285bfefb5b97c832fc4512e0c62d69b24e4b0
CUDA
34,470
913
#include "trovato_2019.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_volumes) { real STATES[NEQ]; ...
497eba54bac6f59707811f011acdccf327b642384cfd9fa7d8dcb09fdf1d3721
CUDA
34,713
666
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
67131842c0b9ec69604f23ddf2236a00c3449b840d01cc23e0ec680e18f6b99b
CUDA
36,478
860
#include "ToRORd_Land_mixed_endo_mid_epi.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_volumes) { // Defau...
7e1a299320191180c150d1d24a723d9ee2c7a7c7dab1d00ec8aedde0c8887672
CUDA
42,688
1,021
#include "trovato_2020.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_volumes) { // Default initial condit...
474851c4928614ca55fcb6d5dad7ca4ba2686fc5ca654bc6d2bc8172abf777c7
CUDA
43,358
1,188
// @file nnbnorm_gpu.cu // @brief Batch normalization block GPU. // @author Sebastien Ehrhardt // @author Andrea Vedaldi /* Copyright (C) 2015-17 Sebastien Ehrhardt and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYIN...
5f1cf91fdffb5ba88fa28d5495e681d4dadea9be268cf77b83e0fe6917589111
CUDA
44,052
1,474
/** @file vl_imreadjpeg.cu ** @brief Load and transform images asynchronously ** @author Andrea Vedaldi **/ /* Copyright (C) 2014-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include <assert.h> ...
1b9ab3fe55af48cd474adf88dba59cb9f8acd7c5dadef83da2777ce550a091ac
CUDA
44,118
1,470
/** @file vl_imreadjpeg.cu ** @brief Load and transform images asynchronously ** @author Andrea Vedaldi **/ /* Copyright (C) 2014-16 Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see the COPYING file). */ #include <assert.h> ...
b6f57f7c1c76809451a72ba4e5c959f75cac1b58d58a99f292f8cd58b600fc0d
CUDA
44,526
1,094
#include "ToRORd_dynCl_mixed_endo_mid_epi.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; if (threadID < num_volumes) { for (in...
ed68c37c1d5ccd20db2e28ed30beb8d3348dc2c6d8c830308c3609fe7655e6b7
CUDA
45,573
1,215
// @file bnorm_gpu.cu // @brief Batch normalization implementation (GPU) // @author Sebastien Ehrhardt // @author Andrea Vedaldi /* Copyright (C) 2015-16 Sebastien Ehrhardt and Andrea Vedaldi. All rights reserved. This file is part of the VLFeat library and is made available under the terms of the BSD license (see...
bbeb2db5360257fafd60277648178107377bed0d13f83becd629cfa307755d41
CUDA
46,769
1,119
#include "ToRORd_fkatp_mixed_endo_mid_epi.h" #include <stddef.h> #include <stdint.h> __global__ void kernel_set_model_initial_conditions(real *sv, int num_volumes, size_t pitch, bool use_adpt_dt, real min_dt) { int threadID = blockDim.x * blockIdx.x + threadIdx.x; // Default initial conditions (endocardium ce...
cdb3ed5d8406bfe369dd0d2944069427c714a78162b17434275f88f4bc9e0260
CUDA
55,931
963
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
0fe04af68201567b1c53b8463454c4011727d6bbc448e90a7b06038b41e644a8
CUDA
56,284
1,169
/*! * Copyright (c) 2021-2026 Microsoft Corporation. All rights reserved. * Copyright (c) 2021-2026 The LightGBM developers. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for * license information. * Modifications Copyright(C) 2023 Advanced Micro Devices, Inc. All righ...
bad512e0f905b8b941e0dd9670c19660901e8c808e7a7e9f39ba0ddd4b18b003
CUDA
60,089
1,643
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file,...
4291be3ad775cbae8efa88171a85fff7b58e011e5d575c8dbc65a00a6426f4ce
CUDA
61,406
1,440
// Copyright (c) 2026 Rohit Jena. All rights reserved. // // This file is part of FireANTs, distributed under the terms of // the FireANTs License version 1.0. A copy of the license can be found // in the LICENSE file at the root of this repository. // // IMPORTANT: This code is part of FireANTs and its use, reproducti...