hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
120f7988fe2ecb9137c6caa31fb9f7398a287b8b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/BatchNormalization.cu" #else #define DeviceTensor3 THCDeviceTensor<real, 3> #define DeviceTensor1 THCDeviceTensor<real, 1> template <int Dim> static THCDeviceTensor<real, ...
120f7988fe2ecb9137c6caa31fb9f7398a287b8b.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/BatchNormalization.cu" #else #define DeviceTensor3 THCDeviceTensor<real, 3> #define DeviceTensor1 THCDeviceTensor<real, 1> template <int Dim> static THCDeviceTensor<real, Dim> THNN_(devicetensor)(THCState *state, THCTensor *t) { if (!t) { return THCDevi...
4bce74da3098c86549d7e40e5b6bfe1bb4367530.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /// /// vecMaxKernel00.cu : code computes partiol answer per each thread. /// By Waruna Ranasinghe /// Created: 15 Aug 2017 /// Last Modified: /// The code computes partial answer for reduction over max per a thread. /// Each t...
4bce74da3098c86549d7e40e5b6bfe1bb4367530.cu
/// /// vecMaxKernel00.cu : code computes partiol answer per each thread. /// By Waruna Ranasinghe /// Created: 15 Aug 2017 /// Last Modified: /// The code computes partial answer for reduction over max per a thread. /// Each thread computes max of a consective chunck of data of size C. /// The memory loads are no...
6ece75ff14ba962e7e72c707c901f8f4127e5eb1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "FixChargeEwald.h" #include "BoundsGPU.h" #include "cutils_func.h" #include "cutils_math.h" #include "GridGPU.h" #include "State.h" #include <hipfft.h> #include "globalDefs.h" #include <fstream> #include "Virial.h" #includ...
6ece75ff14ba962e7e72c707c901f8f4127e5eb1.cu
#include "FixChargeEwald.h" #include "BoundsGPU.h" #include "cutils_func.h" #include "cutils_math.h" #include "GridGPU.h" #include "State.h" #include <cufft.h> #include "globalDefs.h" #include <fstream> #include "Virial.h" #include "helpers.h" #include "PairEvaluatorNone.h" #include "EvaluatorWrapper.h" // #include <...
e72dc233157857864e360dbbe211e9d22dc354ae.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include "cutil_inline.h" #include "Mandelbrot_kernel.h" #include "Mandelbrot_kernel.cu" // The Mandelbrot CUDA GPU thread function /* Version using software scheduling of thread blocks. The idea he...
e72dc233157857864e360dbbe211e9d22dc354ae.cu
#include <stdio.h> #include "cutil_inline.h" #include "Mandelbrot_kernel.h" #include "Mandelbrot_kernel.cu" // The Mandelbrot CUDA GPU thread function /* Version using software scheduling of thread blocks. The idea here is to launch of fixed number of worker blocks to fill the machine, and have each ...
c040706a0b564077157142f371db780fe2f21a29.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "matrixblockdiagmultiply.kernel.h" __global__ void MatrixBlockDiagMultiplyKernel(Matrix A, Matrix B, Matrix C, int blocksize) { float sum = 0; int from, to; int i = blockIdx.y * blockDim.y + threadIdx.y; int j = blockI...
c040706a0b564077157142f371db780fe2f21a29.cu
#include "matrixblockdiagmultiply.kernel.h" __global__ void MatrixBlockDiagMultiplyKernel(Matrix A, Matrix B, Matrix C, int blocksize) { float sum = 0; int from, to; int i = blockIdx.y * blockDim.y + threadIdx.y; int j = blockIdx.x * blockDim.x + threadIdx.x; from = blocksize * (j / blocksize); to = from + bloc...
de2a819b0995e9ada7d3fb98053c8f6384c01ebb.hip
// !!! This is a file automatically generated by hipify!!! #include "cupoch/visualization/shader/image_shader.h" #include <algorithm> #include "cupoch/geometry/image.h" #include "cupoch/visualization/shader/shader.h" #include "cupoch/visualization/utility/color_map.h" #include "cupoch/utility/range.h" #include "cupoc...
de2a819b0995e9ada7d3fb98053c8f6384c01ebb.cu
#include "cupoch/visualization/shader/image_shader.h" #include <algorithm> #include "cupoch/geometry/image.h" #include "cupoch/visualization/shader/shader.h" #include "cupoch/visualization/utility/color_map.h" #include "cupoch/utility/range.h" #include "cupoch/utility/platform.h" #include <cuda_runtime.h> #include <c...
f267e1462000499e925a24329b81e6437985cc5a.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <iomanip> #include <iostream> #include "gpu.cuh" template <typename Dtype> void print(const thrust::device_vector<Dtype> &v) { for (size_t i = 0; i < v.size(); i++) std::cout << " " << std::fixed << std::setprecision(3) << v[i...
f267e1462000499e925a24329b81e6437985cc5a.cu
#include <cstdio> #include <iomanip> #include <iostream> #include "gpu.cuh" template <typename Dtype> void print(const thrust::device_vector<Dtype> &v) { for (size_t i = 0; i < v.size(); i++) std::cout << " " << std::fixed << std::setprecision(3) << v[i]; std::cout << "\n"; } template void print(const thrust...
2899418c138624730d6682abcc14c115e542cb68.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // -*- Mode: C++ ; c-file-style:"stroustrup"; indent-tabs-mode:nil; -*- #include <stdio.h> #include <stdlib.h> #include "Model.cu" #define DTYPE @DataType@ __shared__ DTYPE * inputPtr; // Macro to get data value. #define get(xar...
2899418c138624730d6682abcc14c115e542cb68.cu
// -*- Mode: C++ ; c-file-style:"stroustrup"; indent-tabs-mode:nil; -*- #include <stdio.h> #include <stdlib.h> #include "Model.cu" #define DTYPE @DataType@ __shared__ DTYPE * inputPtr; // Macro to get data value. #define get(xarg,yarg)(GetInputValue(input_size, inputPtr, \ ((int...
236f240514aa23186789321ea693d8ee988e2c1b.hip
// !!! This is a file automatically generated by hipify!!! // CUDA Device Query #include <stdio.h> // Print device properties void printDevProp(hipDeviceProp_t devProp) { printf("Major revision number: %d\n", devProp.major); printf("Minor revision number: %d\n", devProp.minor); printf(...
236f240514aa23186789321ea693d8ee988e2c1b.cu
// CUDA Device Query #include <stdio.h> // Print device properties void printDevProp(cudaDeviceProp devProp) { printf("Major revision number: %d\n", devProp.major); printf("Minor revision number: %d\n", devProp.minor); printf("Name: %s\n", devProp.name); p...
e9fe3c71e34292251d0d502be623406acfa26df9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBA...
e9fe3c71e34292251d0d502be623406acfa26df9.cu
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC. // Produced at the Lawrence Livermore National Laboratory. // Written by the LBANN Research Team (B. Van Essen, et al.) listed in // the CONTRIBUTORS file. <lbann-dev@l...
a7107149d9da26cc8226ad6766820116b3d99f45.hip
// !!! This is a file automatically generated by hipify!!! // C++ #include <iostream> #include <string> #include <random> // C #include <stdlib.h> #include <stdio.h> #include <math.h> #include <limits.h> // CUDA #include <hip/hip_runtime.h> #include <hiprand/hiprand_kernel.h> #include <hip/hip_runtime_api.h> // For...
a7107149d9da26cc8226ad6766820116b3d99f45.cu
// C++ #include <iostream> #include <string> #include <random> // C #include <stdlib.h> #include <stdio.h> #include <math.h> #include <limits.h> // CUDA #include <cuda.h> #include <curand_kernel.h> #include <cuda_profiler_api.h> // Force -Wall after this point, VC only (Check https://gcc.gnu.org/onlinedocs/gcc/Diag...
f525626a1812b6dd1b45320ec3376bf57f682424.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> // Initialize host vectors void init(int *a, int *b, int n) { for (int i=0; i < n; ++i) { a[i] = i; b[i] = n-i; } } // Check result correctness void check(int *c, int n) { int i = 0; while (i <...
f525626a1812b6dd1b45320ec3376bf57f682424.cu
#include <stdio.h> #include <cuda.h> // Initialize host vectors void init(int *a, int *b, int n) { for (int i=0; i < n; ++i) { a[i] = i; b[i] = n-i; } } // Check result correctness void check(int *c, int n) { int i = 0; while (i < n && c[i] == n) { ++i; } if (i == n) printf("Ok\n"); el...
bd6832b97d2391c677d5c9d12f5814cccf734d42.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2020, NVIDIA CORPORATION. * * 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/li...
bd6832b97d2391c677d5c9d12f5814cccf734d42.cu
/* * Copyright (c) 2020, NVIDIA CORPORATION. * * 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 ...
2dd6b01560c75f960ae6e136ab87f0f3472ac6db.hip
// !!! This is a file automatically generated by hipify!!! #include "THHTensorMath.h" #include "THHGeneral.h" #include "THHTensorCopy.h" #include "THHApply.cuh" #include "THHNumerics.cuh" #include "THHTensorMath.cuh" #include "THHThrustAllocator.cuh" #include "THHTensor.hpp" #include "THHStream.hpp" #include <thrust/c...
2dd6b01560c75f960ae6e136ab87f0f3472ac6db.cu
#include "THCTensorMath.h" #include "THCGeneral.h" #include "THCTensorCopy.h" #include "THCApply.cuh" #include "THCNumerics.cuh" #include "THCTensorMath.cuh" #include "THCThrustAllocator.cuh" #include "THCTensor.hpp" #include "THCStream.hpp" #include <thrust/copy.h> #include <thrust/count.h> #include <thrust/device_pt...
464df4954784d55b392da2f014e62c63fa6152ec.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <cusp/complex.h> #include <cusp/blas.h> #include<cusp/csr_matrix.h> #include<cusp/multiply.h> #include <cusp/array1d.h> #include <cusp/copy.h> #include <thrust/device_ptr.h> #include "mex.h" #include "gpu/mxGPUArray.h" /*...
464df4954784d55b392da2f014e62c63fa6152ec.cu
#include <cuda.h> #include <cusp/complex.h> #include <cusp/blas.h> #include<cusp/csr_matrix.h> #include<cusp/multiply.h> #include <cusp/array1d.h> #include <cusp/copy.h> #include <thrust/device_ptr.h> #include "mex.h" #include "gpu/mxGPUArray.h" /* Input Arguments */ #define A prhs[0] #define XV prhs[3] /* Output...
929c73ba8cd9148673193d82af49ae3133ffa3df.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/Context.h> #include <ATen/hip/HIPContext.h> #include <c10/util/Exception.h> #include <ATen/native/sparse/hip/SparseHIPBlas.cuh> #include <TH/THGeneral.h> #include <hipsparse.h> namespace at { namespace native { namespace sparse { namespace cud...
929c73ba8cd9148673193d82af49ae3133ffa3df.cu
#include <ATen/Context.h> #include <ATen/cuda/CUDAContext.h> #include <c10/util/Exception.h> #include <ATen/native/sparse/cuda/SparseCUDABlas.cuh> #include <TH/THGeneral.h> #include <cusparse.h> namespace at { namespace native { namespace sparse { namespace cuda { std::string cusparseGetErrorString(cusparseStatus_...
6648269fcdf6e3cb909834e9d2ef73ab7b430e55.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Definition Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that w...
6648269fcdf6e3cb909834e9d2ef73ab7b430e55.cu
/* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Definition Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we have used in the previous assignment. To store this extra information we use si...
1fa448092aae697ea7885c1d58a0b5f751ea7f76.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************* * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
1fa448092aae697ea7885c1d58a0b5f751ea7f76.cu
/************************************************************************* * Copyright (c) 2015-2016, NVIDIA CORPORATION. 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...
67e6c80de841090d1245f0fe2f95c8d82544fc75.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "imageBlurKernel.cu" #include<chrono> #include<iostream> using na...
67e6c80de841090d1245f0fe2f95c8d82544fc75.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "imageBlurKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
accaac453509b318d9d77bd796f6bb4efb3f9dee.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <string.h> #include <sys/time.h> #include "Graph.h" using namespace std; #define BlockSize 128 #define Bsize_maximum 128 // ---------------------------------------------------------...
accaac453509b318d9d77bd796f6bb4efb3f9dee.cu
#include <iostream> #include <fstream> #include <string.h> #include <sys/time.h> #include "Graph.h" using namespace std; #define BlockSize 128 #define Bsize_maximum 128 // -------------------------------------------------------------------------- // double cpuSecond() { struct timeval tp; gettimeofday( &tp, NU...
ab6c441ba1361340c4c9299c29f19ab48c115d5c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h> #include <torch/library.h> #include <THH/THHAtomics.cuh> #include "cuda_helpers.h" namespace vision { namespace ops ...
ab6c441ba1361340c4c9299c29f19ab48c115d5c.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <c10/cuda/CUDAGuard.h> #include <torch/library.h> #include <THC/THCAtomics.cuh> #include "cuda_helpers.h" namespace vision { namespace ops { namespace { template <typename T> __device__ T bilinear_interpolate( const T* input, int height, ...
bad60c7eaf1cc49c18e4b01fc2d815ed8ea58850.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <math.h> #include <hip/hip_runtime.h> #include <rocblas.h> #define N 1000000 #define checkCUDA(expression) \ { \ hipError_t sta...
bad60c7eaf1cc49c18e4b01fc2d815ed8ea58850.cu
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <math.h> #include <cuda_runtime.h> #include <cublas_v2.h> #define N 1000000 #define checkCUDA(expression) \ { \ cudaError_t status = (expression); \ if (status != cudaSuccess)...
f065103be316f3c5fa276ba5b112b0a8c2da085e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <ctype.h> #include "cu.h" #include "base.h" #include "prna.h" #include "util.h" #include "param.h" /* penalty for a helix te...
f065103be316f3c5fa276ba5b112b0a8c2da085e.cu
#include <math.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <ctype.h> #include "cu.h" #include "base.h" #include "prna.h" #include "util.h" #include "param.h" /* penalty for a helix terminated by a pair containing a U */ DEV static real_t terminal_U_penalty(const base_t *...
4ceb1a170b327384f25cc939411cdec727178e2b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "vectorLength.cu" #include<chrono> #include<iostream> using names...
4ceb1a170b327384f25cc939411cdec727178e2b.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "vectorLength.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,...
fdb840064679ce5e55db289e44fc5d532f2d4ad8.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "floattoint.cu" #include<chrono> #include<iostream> using namespa...
fdb840064679ce5e55db289e44fc5d532f2d4ad8.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "floattoint.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
60413dbe61c0ae4416c83840cce93e0d5e680d4c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "TopForcing.cu" #include<chrono> #include<iostream> using namespa...
60413dbe61c0ae4416c83840cce93e0d5e680d4c.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "TopForcing.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
Optimizer.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Optimizer.cuh" __global__ void gradient_descent_kernal(const val_t* deltas, val_t* weigts, size_t weightsSize, val_t alpha, val_t lambda) { for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < weightsSize; i += blo...
Optimizer.cu
#include "Optimizer.cuh" __global__ void gradient_descent_kernal(const val_t* deltas, val_t* weigts, size_t weightsSize, val_t alpha, val_t lambda) { for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < weightsSize; i += blockDim.x * gridDim.x) { weigts[i] = weigts[i] - alpha * (deltas[i] + lambda * weigts[i]...
43a2315bd1a1c6db53f33cf5ffe70cf272b22ff8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_minus_2_b; int xdim0_update_halo_kernel4_minus_2_b_h = -1; __constant__ int ydim0_update_halo_kernel4_minus_2_b; int ydim0_update_halo_kernel4_minus_2_b_h ...
43a2315bd1a1c6db53f33cf5ffe70cf272b22ff8.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_minus_2_b; int xdim0_update_halo_kernel4_minus_2_b_h = -1; __constant__ int ydim0_update_halo_kernel4_minus_2_b; int ydim0_update_halo_kernel4_minus_2_b_h = -1; __constant__ int xdim1_update_halo_kernel4_minus_2_b; int xdim1_update_halo_kernel...
626acd5cb3c9681fce747fb5f56ae251fe57c83c.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) NVIDIA Corporation and Microsoft Corporation 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/li...
626acd5cb3c9681fce747fb5f56ae251fe57c83c.cu
/* Copyright (c) NVIDIA Corporation and Microsoft Corporation 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 ag...
b630839c7033b4cb060728d20c1f60b625d31812.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<cuda.h> #include<time.h> #include<math.h> __global__ void zad3(float *a,float *b,float *c, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if(idx<N) c[idx] = a[idx] + b[idx]; } int main(void)...
b630839c7033b4cb060728d20c1f60b625d31812.cu
#include<stdio.h> #include<cuda.h> #include<time.h> #include<math.h> __global__ void zad3(float *a,float *b,float *c, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if(idx<N) c[idx] = a[idx] + b[idx]; } int main(void) { clock_t t1,t2; float *a_h,*b_h,*c_h; float *a_d,*b_d,*c_d; const int N = 50000000; c...
601f1368b20d36db746957ec23346396ba86376c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/softmax_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void SoftmaxLossForwardGPU(co...
601f1368b20d36db746957ec23346396ba86376c.cu
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/softmax_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void SoftmaxLossForwardGPU(const int nthreads, const Dtype* prob_data, const Dtype* label, Dtype* loss, ...
1bf312a8ad9ea583ff5b9c3a18dc18deb3e86e0e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* ------------ * This code is provided solely for the personal and private use of * students taking the CSC367H1 course at the University of Toronto. * Copying for purposes other than this use is expressly prohibited. * All f...
1bf312a8ad9ea583ff5b9c3a18dc18deb3e86e0e.cu
/* ------------ * This code is provided solely for the personal and private use of * students taking the CSC367H1 course at the University of Toronto. * Copying for purposes other than this use is expressly prohibited. * All forms of distribution of this code, whether as given or with * any changes, are express...
d87f37223f7d7e9f23f9d978980c66ec43f8a403.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" ////////////////////////////////////////////////////////////////////////////////////////// // miniCFD // Author: Omitted ////////////////////////////////////////////////////////////////////////////////////////// #include <stdlib.h>...
d87f37223f7d7e9f23f9d978980c66ec43f8a403.cu
////////////////////////////////////////////////////////////////////////////////////////// // miniCFD // Author: Omitted ////////////////////////////////////////////////////////////////////////////////////////// #include <stdlib.h> #include <math.h> #include <stdio.h> #include <ctime> #include <iostream> #define gpuE...
0a1cd96cf655cc2d4bd348cd34542112f0cb3127.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernel.h" #define TX 32 #define TY 32 #define DIM 2100 struct hipComplex { float r; float i; __device__ hipComplex( float a, float b ) : r(a), i(b) {} __device__ float magnitude2( void ) { re...
0a1cd96cf655cc2d4bd348cd34542112f0cb3127.cu
#include "kernel.h" #define TX 32 #define TY 32 #define DIM 2100 struct cuComplex { float r; float i; __device__ cuComplex( float a, float b ) : r(a), i(b) {} __device__ float magnitude2( void ) { return r * r + i * i; } __device__ cuComplex operator*(const cuComplex& a) { ...
e5bc1727172ff3530aa0e2cc4c53c03b615b8555.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * 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.o...
e5bc1727172ff3530aa0e2cc4c53c03b615b8555.cu
/* * Copyright (c) 2020-2022, NVIDIA CORPORATION. * * 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...
b3802388f5fbd0d5fa85586fac4b2a89ef3c2976.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef unsigned long long ul; typedef unsigned int uint; int banyakdata = 1024; int dimensigrid = 8; int dimensibl...
b3802388f5fbd0d5fa85586fac4b2a89ef3c2976.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef unsigned long long ul; typedef unsigned int uint; int banyakdata = 1024; int dimensigrid = 8; int dimensiblok = 128; typedef struct { char size; uint* value; }big; t...
0233d4af0c75d481ceea5b518f0cefc3217e1760.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include "omp.h" #include <hip/hip_runtime.h> #include <fstream> #include "mainJobA_godunov.cpp" #include "helperJobB_kernel.cu" int main(int argc, char *argv[]) { //software backbone/infrastructure that allows mainJobA to carry on while h...
0233d4af0c75d481ceea5b518f0cefc3217e1760.cu
#include <iostream> #include "omp.h" #include <cuda.h> #include <fstream> #include "mainJobA_godunov.cpp" #include "helperJobB_kernel.cu" int main(int argc, char *argv[]) { //software backbone/infrastructure that allows mainJobA to carry on while helperJobB works asynchronously to update //the computationally costly...
672095be50e3f07eaa998f9b903b95a4d351b292.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "timer.h" #include <iostream> #include <fstream> using namespace std; //gigabyte = 1 << 30; #if defined(_DEBUG) #define GIGA 1 << 20 #else #define GIGA 1 << 30 #endif const char*...
672095be50e3f07eaa998f9b903b95a4d351b292.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "timer.h" #include <iostream> #include <fstream> using namespace std; //gigabyte = 1 << 30; #if defined(_DEBUG) #define GIGA 1 << 20 #else #define GIGA 1 << 30 #endif const char* filepath = "C:/Users/educ/Documents/enwiki-latest-abstract.xm...
2bea8697230b4df053e26dc1fa4cc64d30e90c80.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) 2017 Darius Rckert * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/cuda/cudaHelper.h" #include "saiga/cuda/cusparseHelper.h" #include "saiga/cuda/dot.h" #include...
2bea8697230b4df053e26dc1fa4cc64d30e90c80.cu
/** * Copyright (c) 2017 Darius Rückert * Licensed under the MIT License. * See LICENSE file for more information. */ #include "saiga/cuda/cudaHelper.h" #include "saiga/cuda/cusparseHelper.h" #include "saiga/cuda/dot.h" #include "saiga/cuda/tests/test.h" #include "saiga/cuda/tests/test_helper.h" #include "saiga/cu...
fa5915438546056761d93a58c1422079d7cb4ae9.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * 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.o...
fa5915438546056761d93a58c1422079d7cb4ae9.cu
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * 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...
c1d159abc366e94b6086b2e5648d62b408603884.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (C) 2010 by Vitsios Dimitrios * * 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 restriction, includi...
c1d159abc366e94b6086b2e5648d62b408603884.cu
/* * Copyright (C) 2010 by Vitsios Dimitrios * * 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 restriction, including without limitation the rights * to use, copy, modify, ...
e3245f1eb3b40033f3ed20764f93cd3065b6d03b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" extern "C" extern "C" extern "C" extern "C" extern "C" extern "C" //=== Vector arithmetic ====================================================== extern "C" extern "C" exte...
e3245f1eb3b40033f3ed20764f93cd3065b6d03b.cu
#include "includes.h" extern "C" extern "C" extern "C" extern "C" extern "C" extern "C" //=== Vector arithmetic ====================================================== extern "C" extern "C" extern "C" extern "C" extern "C" extern "C" //=== Vector-and-scalar arithmetic ==...
ad37b0ad3df41c0a3d07f965a794d90879ab99c6.hip
// !!! This is a file automatically generated by hipify!!! /* Defines the matrix operations for sequential dense with CUDA */ #include <petscpkg_version.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/ #include <petsccublas.h> /* cublas definiti...
ad37b0ad3df41c0a3d07f965a794d90879ab99c6.cu
/* Defines the matrix operations for sequential dense with CUDA */ #include <petscpkg_version.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/ #include <petsccublas.h> /* cublas definitions are here */ #include <petsc/private/cudavecimpl.h> #if...
520e76cf331ca25996eaf3853db9be3bfb217e3b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "cu_leaky_relu.cu" #include<chrono> #include<iostream> using name...
520e76cf331ca25996eaf3853db9be3bfb217e3b.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "cu_leaky_relu.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24...
862d612c23d715a2938eea541c944a249412e59e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef _BITONIC_SORT_ #define _BITONIC_SORT_ #include "stdlib.h" #include "stdio.h" #include "string.h" #include "bitonicSort_kernel.cu" #include "math.h" #include "assert.h" #include "mapImpl.cu" #include "GPU_Dll.h" /* @ d_Rin...
862d612c23d715a2938eea541c944a249412e59e.cu
#ifndef _BITONIC_SORT_ #define _BITONIC_SORT_ #include "stdlib.h" #include "stdio.h" #include "string.h" #include "bitonicSort_kernel.cu" #include "math.h" #include "assert.h" #include "mapImpl.cu" #include "GPU_Dll.h" /* @ d_Rin, the input pointer array. @ rLen, the number of tuples. @ d_Rout, the output pointer ar...
1a2b050d7f6a92ee5fa741f0c36f8e230a17e4aa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019, NVIDIA CORPORATION. * * 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 * *...
1a2b050d7f6a92ee5fa741f0c36f8e230a17e4aa.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * 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 ...
f1d60bb67c3a8cb87bfc46d2291660f7ac13d946.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "THHUNN.h" #include "common.h" #include "THHDeviceTensor.cuh" #include "THHDeviceTensorUtils.cuh" #include "THHDeviceUtils.cuh" #include "THHReduceApplyUtils.cuh" #include <THH/THHApply.cuh> #include "THHHalf.h" #include "...
f1d60bb67c3a8cb87bfc46d2291660f7ac13d946.cu
#include "THCUNN.h" #include "common.h" #include "THCDeviceTensor.cuh" #include "THCDeviceTensorUtils.cuh" #include "THCDeviceUtils.cuh" #include "THCReduceApplyUtils.cuh" #include <THC/THCApply.cuh> #include "THCHalf.h" #include "THCHalfAutoNumerics.cuh" #include "THCAtomics.cuh" template <typename Dtype> __global__...
6f272fe2180d5d48108564d47535b74d7be4936c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.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 lic...
6f272fe2180d5d48108564d47535b74d7be4936c.cu
/* * 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 ...
6455bcc61ab9df01abadbae4d1a3e0d2960f51b2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from magmablas/zlaswp.cu, normal z -> d, Mon Jun...
6455bcc61ab9df01abadbae4d1a3e0d2960f51b2.cu
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from magmablas/zlaswp.cu, normal z -> d, Mon Jun 25 18:24:13 2018 @author Stan Tomov @author Mathieu Faverge ...
5e373e13a77118cf57f504863e5ffd76ebbdb874.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * 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 ...
5e373e13a77118cf57f504863e5ffd76ebbdb874.cu
/* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * 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...
b8dd85f90fd208143bb94b21f4fa35bde10e918b.hip
// !!! This is a file automatically generated by hipify!!! /* ** Ben Pittman ** Greg Smith ** Calvin Winston Fei ** Term Project - board.cpp ** Static class for checking solutions. ** Assumptions: Assumes valid board size and 1D memory allocation */ #include <stdio.h> #include <iostream> #include <set> #include "hip/h...
b8dd85f90fd208143bb94b21f4fa35bde10e918b.cu
/* ** Ben Pittman ** Greg Smith ** Calvin Winston Fei ** Term Project - board.cpp ** Static class for checking solutions. ** Assumptions: Assumes valid board size and 1D memory allocation */ #include <stdio.h> #include <iostream> #include <set> #include "cuda_runtime.h" #include "device_launch_parameters.h" const int...
5fcb85d2958ba13e9ea3518df5580cb129a3dacf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) 2016-present, Facebook, Inc. * * 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 * * ...
5fcb85d2958ba13e9ea3518df5580cb129a3dacf.cu
/** * Copyright (c) 2016-present, Facebook, Inc. * * 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 ag...
7cab030930ab404fd286f7cb18bc4b6029ab10d9.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> __global__ void dkernel(){ printf("Hi from thread id %d\n", threadIdx.x); } int main() { hipLaunchKernelGGL(( dkernel), dim3(1),dim3(32), 0, 0, ); hipDeviceSynchronize(); return 0; }
7cab030930ab404fd286f7cb18bc4b6029ab10d9.cu
#include <stdio.h> #include <cuda.h> __global__ void dkernel(){ printf("Hi from thread id %d\n", threadIdx.x); } int main() { dkernel<<<1,32>>>(); cudaDeviceSynchronize(); return 0; }
e4982b89c0d1aec55520b8641e653de399a75ebd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************************************* ******************************* BLUEBOTTLE-1.0 ******************************** *********************************************************************...
e4982b89c0d1aec55520b8641e653de399a75ebd.cu
/******************************************************************************* ******************************* BLUEBOTTLE-1.0 ******************************** ******************************************************************************* * * Copyright 2012 - 2014 Adam Sierakowski, The Johns Hopkins University ...
935a2ff6a2d5ce06fa601a490b78272a6c576d75.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "roi_align_gradient_op.h" #include <stdio.h> #include <cfloat> #include "caffe2/core/context_gpu.h" #include "caffe2/utils/math.h" namespace caffe2 { namespace { template <typename T> inline __device__ T gpu_atomic_add(...
935a2ff6a2d5ce06fa601a490b78272a6c576d75.cu
#include "roi_align_gradient_op.h" #include <stdio.h> #include <cfloat> #include "caffe2/core/context_gpu.h" #include "caffe2/utils/math.h" namespace caffe2 { namespace { template <typename T> inline __device__ T gpu_atomic_add(const T val, T* address); template <> inline __device__ float gpu_atomic_add(const floa...
88ceafba728016b7802cc0ece16fb23cf370f3da.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> __global__ void matAdd(float *matrixA, float *matrixB, float *matrixC, int matSize) { int threadCol = blockIdx.x * blockDim.x + threadIdx.x; int threadRow = blockIdx.y * blockDim.y + thr...
88ceafba728016b7802cc0ece16fb23cf370f3da.cu
#include<stdio.h> #include<stdlib.h> __global__ void matAdd(float *matrixA, float *matrixB, float *matrixC, int matSize) { int threadCol = blockIdx.x * blockDim.x + threadIdx.x; int threadRow = blockIdx.y * blockDim.y + threadIdx.y; int indexOfMatrix = threadCol + threadRow * matSize; if(threadCol < ...
3c56edc585f56e4653863d29607f8a194b95e565.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * GridTools * * Copyright (c) 2014-2023, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include "gtest/gtest.h" #include <cstdlib...
3c56edc585f56e4653863d29607f8a194b95e565.cu
/* * GridTools * * Copyright (c) 2014-2023, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include "gtest/gtest.h" #include <cstdlib> #include <gridtools/common/atomic_functions.hpp> #include <gridtools/common/cuda_util....
2c31c1204c0272fa7f59daf135ca19c07724abce.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019, NVIDIA CORPORATION. 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 * * ht...
2c31c1204c0272fa7f59daf135ca19c07724abce.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. 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...
25f06aeca66415f426ed909396ca63e5744ae1ee.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/reciprocal_op.h" #include <algorithm> #include <functional> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { template <typename T> __global__ void ReciprocalGradientCUDAKernel(const...
25f06aeca66415f426ed909396ca63e5744ae1ee.cu
#include "caffe2/operators/reciprocal_op.h" #include <algorithm> #include <functional> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { template <typename T> __global__ void ReciprocalGradientCUDAKernel(const int N, const T* dY, const T* Y, T* dX) { CUDA_1D_KERNEL_LOOP(i, N) { #if __CUDA_ARCH_...
ac91954f055b3ee212d90bfdaa62e010c097ed4b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include <hip/hip_runtime_api.h> //#include <cutil.h> #include <hip/hip_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 196608 int num_blocks; int num_th...
ac91954f055b3ee212d90bfdaa62e010c097ed4b.cu
#include <stdio.h> #include <iostream> #include <cuda_profiler_api.h> //#include <cutil.h> #include <cuda_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 196608 int num_blocks; int num_threads_per_block; int num_iterations; int divergence; float* h_A...
f2f8e8c373fb9b0244c9292b4391a6955420bd39.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <cutil.h> #include <math.h> // Includes #include <stdio.h> #include "../include/ContAcq-IntClk.h" //#include "REPEATL.h" #include "../include/REPEATR.h" // includes, project #include "../include/sdkHelper.h" // h...
f2f8e8c373fb9b0244c9292b4391a6955420bd39.cu
#include <stdio.h> #include <stdlib.h> #include <cutil.h> #include <math.h> // Includes #include <stdio.h> #include "../include/ContAcq-IntClk.h" //#include "REPEATL.h" #include "../include/REPEATR.h" // includes, project #include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#in...
afd5d3ba3993a448eb3c1a8a13a0f4f154b88bdd.hip
// !!! This is a file automatically generated by hipify!!! //pass //--blockDim=32 --gridDim=2 #include <hip/hip_runtime.h> __device__ void write(int* A, int idx, int temp) { A[idx] = temp; } __device__ int read(int* A, int idx) { return A[idx + 1]; } __global__ void race (int* A) { int tid = threadIdx.x; in...
afd5d3ba3993a448eb3c1a8a13a0f4f154b88bdd.cu
//pass //--blockDim=32 --gridDim=2 #include <cuda.h> __device__ void write(int* A, int idx, int temp) { A[idx] = temp; } __device__ int read(int* A, int idx) { return A[idx + 1]; } __global__ void race (int* A) { int tid = threadIdx.x; int bid = blockIdx.x; int idx = blockDim.x * bid + tid; int temp =...
c28e1aeae8b51917bc97a56409c6840b15725c2a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" namespace caffe { // CUDA kernele for forward template <typename Dtype> __global__ void PReLUForward(const int n, const int chan...
c28e1aeae8b51917bc97a56409c6840b15725c2a.cu
#include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" namespace caffe { // CUDA kernele for forward template <typename Dtype> __global__ void PReLUForward(const int n, const int channels, const int dim, const Dtype* in, Dtype* out, const Dtype* slope_data, const...
ee572d8fc927dcfe3c2714f75a5d8f231437ed3f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Created by will on 20-1-9. // #include "CUDATSDFIntegrator.h" // CUDA kernel function to integrate a TSDF voxel volume given depth images and color images __global__ void IntegrateDepthMapKernel(float* d_cam_K, float* d_pose...
ee572d8fc927dcfe3c2714f75a5d8f231437ed3f.cu
// // Created by will on 20-1-9. // #include "CUDATSDFIntegrator.h" // CUDA kernel function to integrate a TSDF voxel volume given depth images and color images __global__ void IntegrateDepthMapKernel(float* d_cam_K, float* d_pose, float* d_depth, uchar4* d_color, float voxel_...
ff0ce452d2ed4823ad630f291de9644275023c3c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "convultion.hpp" #include "cuda_timer.hpp" #include <stdio.h> #include <iostream> #include <fstream> #include <cassert> #include <memory> #include <sstream> #include <cassert> using n...
ff0ce452d2ed4823ad630f291de9644275023c3c.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "convultion.hpp" #include "cuda_timer.hpp" #include <stdio.h> #include <iostream> #include <fstream> #include <cassert> #include <memory> #include <sstream> #include <cassert> using namespace std; STiming MesureMethodsTimings(istream &input, bo...
cd16e5dd0c22799b800444c368e4de2e6cb531a3.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <assert.h> #include <string.h> #include <stdio.h> #include <limits.h> #include <ctype.h> //#include <cutil.h> removed in CUDA 5.0 #include <math.h> #include "rocblas.h" #include "hip/hip_runtime.h" #include "../include/cuSVMuti...
cd16e5dd0c22799b800444c368e4de2e6cb531a3.cu
#include <stdlib.h> #include <assert.h> #include <string.h> #include <stdio.h> #include <limits.h> #include <ctype.h> //#include <cutil.h> removed in CUDA 5.0 #include <math.h> #include "cublas.h" #include "cuda.h" #include "../include/cuSVMutil.h" /*This mixed-precision matrix-vector multiplication algorithm is...
e124b42a8b2223c542319f127fe1d62da4de95d8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * \file dnn/src/cuda/batched_matrix_mul/helper.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable...
e124b42a8b2223c542319f127fe1d62da4de95d8.cu
/** * \file dnn/src/cuda/batched_matrix_mul/helper.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed o...
e400d883bf200c2495a0fa5029d20b2f1ed3464c.hip
// !!! This is a file automatically generated by hipify!!! #include <chrono> #include <iostream> #include <cstdlib> #include <hip/hip_runtime.h> #include "kernels.h" // thread block size #define BLOCK_SIZE 256 template <typename T> inline void memcpyH2D(T *d, const T *h, const int n) { hipMemcpy(d, h, n * sizeof(T)...
e400d883bf200c2495a0fa5029d20b2f1ed3464c.cu
#include <chrono> #include <iostream> #include <cstdlib> #include <cuda.h> #include "kernels.h" // thread block size #define BLOCK_SIZE 256 template <typename T> inline void memcpyH2D(T *d, const T *h, const int n) { cudaMemcpy(d, h, n * sizeof(T), cudaMemcpyHostToDevice); } template <typename T> void test (const ...
b114ed3aabd91d5c377fc078ca9b00e283e5f59f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Lab 5, image filters with CUDA. // Compile with a command-line similar to Lab 4: // nvcc filter.cu -c -arch=sm_30 -o filter.o // g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter // o...
b114ed3aabd91d5c377fc078ca9b00e283e5f59f.cu
// Lab 5, image filters with CUDA. // Compile with a command-line similar to Lab 4: // nvcc filter.cu -c -arch=sm_30 -o filter.o // g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter // or (multicore lab) // nvcc filter.cu -c -arch=sm_20 -o filter.o // g++ filter.o milli.c r...
92c9d9ef05ab5449399d822150844910500feb96.hip
// !!! This is a file automatically generated by hipify!!! #ifndef _BACKPROP_CUDA_KERNEL_H_ #define _BACKPROP_CUDA_KERNEL_H_ #include <stdio.h> #include "backprop.h" #include "math.h" #include "hip/hip_runtime.h" #define OPT2 #ifdef OPT1 __global__ void bpnn_layerforward_CUDA(float *input_cuda, ...
92c9d9ef05ab5449399d822150844910500feb96.cu
#ifndef _BACKPROP_CUDA_KERNEL_H_ #define _BACKPROP_CUDA_KERNEL_H_ #include <stdio.h> #include "backprop.h" #include "math.h" #include "cuda.h" #define OPT2 #ifdef OPT1 __global__ void bpnn_layerforward_CUDA(float *input_cuda, float *output_hidden_cuda, float *input_hidden_cuda, ...
c05324ffbd6b1c1d947410564fc6888cdfe47d37.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * simulate a cellular automaton with periodic boundaries (torus-like) * serial version * * (c) 2016 Felix Kubicek (Cuda port, optimization, e.g.: state field as bitmap) * (c) 2016 Steffen Christgau (C99 port, modularization)...
c05324ffbd6b1c1d947410564fc6888cdfe47d37.cu
/* * simulate a cellular automaton with periodic boundaries (torus-like) * serial version * * (c) 2016 Felix Kubicek (Cuda port, optimization, e.g.: state field as bitmap) * (c) 2016 Steffen Christgau (C99 port, modularization) * (c) 1996,1997 Peter Sanders, Ingo Boesnach (original source) * * command line argu...
2c8c05ea81a517d6b8c2e27d5badf65379f004c5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
2c8c05ea81a517d6b8c2e27d5badf65379f004c5.cu
/****************************************************************************** * Copyright 2018 The Apollo 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 ...
9ec93453c077d0514885c804327e4ca910e6972c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the Lice...
9ec93453c077d0514885c804327e4ca910e6972c.cu
/* Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the "license" file acco...
5d8e3c912756f055d805b61af53c822cb333d522.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/flatten_op.h" #include "caffe2/operators/minmax_ops.h" #include "caffe2/operators/utility_ops.h" #include "caffe2/utils/math.h" #include <thrust/device_vector.h> #incl...
5d8e3c912756f055d805b61af53c822cb333d522.cu
#include "caffe2/core/context_gpu.h" #include "caffe2/operators/flatten_op.h" #include "caffe2/operators/minmax_ops.h" #include "caffe2/operators/utility_ops.h" #include "caffe2/utils/math.h" #include <thrust/device_vector.h> #include <thrust/sequence.h> #include <thrust/sort.h> #include <thrust/system/cuda/execution_...
66c8053880a6fac8ea9a5f53af3672386abf5ddd.hip
// !!! This is a file automatically generated by hipify!!! /* by Qin Yu, Apr 2019 */ #include <fstream> using namespace std; #include <hip/hip_runtime.h> #include <hip/hip_cooperative_groups.h> namespace cg = cooperative_groups; #define CUPRINTF(fmt, ...) printf("[%d, %d]:\t" fmt, \ ...
66c8053880a6fac8ea9a5f53af3672386abf5ddd.cu
/* by Qin Yu, Apr 2019 */ #include <fstream> using namespace std; #include <cuda.h> #include <cooperative_groups.h> namespace cg = cooperative_groups; #define CUPRINTF(fmt, ...) printf("[%d, %d]:\t" fmt, \ blockIdx.y*gridDim.x+blockIdx.x,\ threadIdx...
3f2b5263edbdeb5b7c7bb1d4dc7393e0c78bf1a9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <assert.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <stdexcept> // Intentionally not including header since it is meant for gcc consumption. // #include "cudaWrappers.h" #include "cudaCommon.hu" ...
3f2b5263edbdeb5b7c7bb1d4dc7393e0c78bf1a9.cu
#include <assert.h> #include <float.h> #include <stdio.h> #include <stdlib.h> #include <stdexcept> // Intentionally not including header since it is meant for gcc consumption. // #include "cudaWrappers.h" #include "cudaCommon.hu" #include "cudaFolds.hu" #include "cudaGmm.hu" #include "cudaMVNormal.hu" #include "gmm.h...
ae3aced482e6fce0716262ab0769409b4a223e0f.hip
// !!! This is a file automatically generated by hipify!!! /** * @file CudauUtils.h * @author Liran Nachman (lirannh@gmail.com) * @brief * @version 0.1 * @date 2019-07-27 * * @copyright Copyright (c) 2019 * */ #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "cudaUtils.h" #includ...
ae3aced482e6fce0716262ab0769409b4a223e0f.cu
/** * @file CudauUtils.h * @author Liran Nachman (lirannh@gmail.com) * @brief * @version 0.1 * @date 2019-07-27 * * @copyright Copyright (c) 2019 * */ #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "cudaUtils.h" #include "kernel.h" cudaError_t FreeFunction(double * dev_W, double ...
634e78d110ecfa5d369411279c0aa8f457310cf2.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "parallelMeanUnroll2.cu" #include<chrono> #include<iostream> usin...
634e78d110ecfa5d369411279c0aa8f457310cf2.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "parallelMeanUnroll2.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,1...
2fc836b2c7c7a292a38874ead4712779338f489f.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "gpu_stencil37_hack1_cp_cols.cu" #include<chrono> #include<iostre...
2fc836b2c7c7a292a38874ead4712779338f489f.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "gpu_stencil37_hack1_cp_cols.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,...
a79ff7b80ea0cc103dab9f65e606b6e4bab10995.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "layer.h" #include <iostream> #include <fstream> #include <string> #include <exception> // Constructor Layer::Layer(int M, int N, int O) { this->M = M; this->N = N; this->O = O; float h_bias[N]; float h_weight[N][M];...
a79ff7b80ea0cc103dab9f65e606b6e4bab10995.cu
#include "layer.h" #include <iostream> #include <fstream> #include <string> #include <exception> // Constructor Layer::Layer(int M, int N, int O) { this->M = M; this->N = N; this->O = O; float h_bias[N]; float h_weight[N][M]; output = NULL; preact = NULL; bias = NULL; weight = NULL; for (int i = 0; i < ...
18a64874b1758a29f79b354494bf353c01e4363f.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/InitialTensorOptions.h> #include <ATen/SparseCsrTensorImpl.h> #include <ATen/SparseCsrTensorUtils.h> #include <ATen/...
18a64874b1758a29f79b354494bf353c01e4363f.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/InitialTensorOptions.h> #include <ATen/SparseCsrTensorImpl.h> #include <ATen/SparseCsrTensorUtils.h> #include <ATen/SparseTensorUtils.h> #include <ATen/WrapDimUtilsMulti.h> #i...
53ffc7bef7ae4c47df52e1defaf68fad11289c92.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "intersection.h" #include "optimization.h" #include "mirrored_memory.h" #include "kernel_common.h" namespace dart { // -=-=-=-=-=-=-=-=-=- kernels -=-=-=-=-=-=-=-=-=- __global__ void gpu_selfIntersectionCount(const floa...
53ffc7bef7ae4c47df52e1defaf68fad11289c92.cu
#include "intersection.h" #include "optimization.h" #include "mirrored_memory.h" #include "kernel_common.h" namespace dart { // -=-=-=-=-=-=-=-=-=- kernels -=-=-=-=-=-=-=-=-=- __global__ void gpu_selfIntersectionCount(const float4 * testSites, const int nSites, ...
0fe77c5fa7680e513a4783acdb6a600231b02083.hip
// !!! This is a file automatically generated by hipify!!! #include "WTGPUChunk.cuh" WTGPUChunkData::WTGPUChunkData(int argGPUId, int argWordLength, int argMaxChunkWTLength, int argWTLength, int argNumOfWordS) { GPUId = argGPUId; wordLength = argWordLength; maxChunkWTLength = argMaxChunkWTLength; WTLength = arg...
0fe77c5fa7680e513a4783acdb6a600231b02083.cu
#include "WTGPUChunk.cuh" WTGPUChunkData::WTGPUChunkData(int argGPUId, int argWordLength, int argMaxChunkWTLength, int argWTLength, int argNumOfWordS) { GPUId = argGPUId; wordLength = argWordLength; maxChunkWTLength = argMaxChunkWTLength; WTLength = argWTLength; numOfWordS = argNumOfWordS; } void WTGPUChun...
e8f27d68b4211b8530df42fc9cf6d3bd1973a233.hip
// !!! This is a file automatically generated by hipify!!! //#include "device.h" //#include <cutil.h> //#include <cutil_math.h> //#include <cutil_inline_runtime.h> //#include <cutil.h> //#include <cutil_math.h> //#include <cutil_inline_runtime.h> #include <hip/hip_runtime_api.h> #include <hip/hip_runtime.h> #include <...
e8f27d68b4211b8530df42fc9cf6d3bd1973a233.cu
//#include "device.h" //#include <cutil.h> //#include <cutil_math.h> //#include <cutil_inline_runtime.h> //#include <cutil.h> //#include <cutil_math.h> //#include <cutil_inline_runtime.h> #include <cuda_runtime_api.h> #include <cuda_runtime.h> #include <cuda.h> #include <curand.h> __global__ void g_draw(cudaSurfaceOb...
7aa318ac6375e5e5ae1211d74f049d9f1bb0c97a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /************************************************************* * Copyright (c) 2017, Palo Alto Research Center. * * All rights reserved. * ******************************************...
7aa318ac6375e5e5ae1211d74f049d9f1bb0c97a.cu
/************************************************************* * Copyright (c) 2017, Palo Alto Research Center. * * All rights reserved. * *************************************************************/ #include "hml_quick_sort.h" #include "hml_triangle_count.h" #inclu...
db182addc51fd470f2558a639c59d835ab3246f3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), t...
db182addc51fd470f2558a639c59d835ab3246f3.cu
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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 restriction, including without limitation the * right...
04cbe9b906e04a24460489ee009f8482bac42272.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernel_hip.cuh" #define THREADS_PER_BLOCK 1024 __global__ void Fadd_kernel(const dtype* x, const dtype* y, dtype* r, int size) { int index = threadIdx.x + blockIdx.x * blockDim.x; if(index < size) { r[index] = x[ind...
04cbe9b906e04a24460489ee009f8482bac42272.cu
#include "kernel.cuh" #define THREADS_PER_BLOCK 1024 __global__ void Fadd_kernel(const dtype* x, const dtype* y, dtype* r, int size) { int index = threadIdx.x + blockIdx.x * blockDim.x; if(index < size) { r[index] = x[index] + y[index]; } } void Fadd_impl(const dtype* x, const dtype* y, dtype* r, int size) { ...
ddaaa3aa6787622c68252e93ef22984679b4fe28.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void big_kernel(Cell *cells, int *cnumPars,Cell *cells2, int *cnumPars2,struct kernel_consts *dev,int *border) { int ix; int iy; int iz; int nx = blockDim.x * gridDim.x; int ny = blockDim.y * gridDim...
ddaaa3aa6787622c68252e93ef22984679b4fe28.cu
__global__ void big_kernel(Cell *cells, int *cnumPars,Cell *cells2, int *cnumPars2,struct kernel_consts *dev,int *border) { int ix; int iy; int iz; int nx = blockDim.x * gridDim.x; int ny = blockDim.y * gridDim.y; int nz = blockDim.z * gridDim.z; ix = blockIdx.x * blockDim.x + threadIdx.x...
4c42ac254ede5b54acc26f19178e814d8b6f0545.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2008-2009 NVIDIA Corporation * * 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.or...
4c42ac254ede5b54acc26f19178e814d8b6f0545.cu
/* * Copyright 2008-2009 NVIDIA Corporation * * 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...
b8303d42b6c09bcde279f8b6e7dd1154df137145.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef TFHE_TEST_ENVIRONMENT #include <cstdlib> #include <iostream> #include <random> #include <cassert> #include "tfhe_core.h" #include "numeric_functions.h" #include "lweparams.h" #include "lwekey.h" #include "lwesamples.h" #inc...
b8303d42b6c09bcde279f8b6e7dd1154df137145.cu
#ifndef TFHE_TEST_ENVIRONMENT #include <cstdlib> #include <iostream> #include <random> #include <cassert> #include "tfhe_core.h" #include "numeric_functions.h" #include "lweparams.h" #include "lwekey.h" #include "lwesamples.h" #include "lwekeyswitch.h" #include "lwe-functions.h" #include "lwebootstrappingkey.h" #inclu...
afb98b4ab1813ede714890b4f6a956a08757f0a0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Purpose: Time square matrix multiplication usingh CPU, GPU, cblas ddot, cblas daxpy, cublas ddot, cublas daxpy. * Author: Gurpal Singh * Date: April 6, 2017 * ME 571 Project 2 */ #include <stdio.h> #include...
afb98b4ab1813ede714890b4f6a956a08757f0a0.cu
/* * Purpose: Time square matrix multiplication usingh CPU, GPU, cblas ddot, cblas daxpy, cublas ddot, cublas daxpy. * Author: Gurpal Singh * Date: April 6, 2017 * ME 571 Project 2 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/resource.h> #include <time.h> #include "time...
c3d57c6e88b2fad792f97d46ea1fa7f0b09222ab.hip
// !!! This is a file automatically generated by hipify!!! /* * SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
c3d57c6e88b2fad792f97d46ea1fa7f0b09222ab.cu
/* * SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lic...
229ead661309d78924d4cb0afdab056d783d2881.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2012-2013 The Ohio State University. 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...
229ead661309d78924d4cb0afdab056d783d2881.cu
/* Copyright (c) 2012-2013 The Ohio State University. 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...
80142320634420447af30e6ed0ec6d9643f4f694.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* ============================================================================ Name : binconnected_components.cu Author : Diptanshu, Gaurav Version : Copyright : (c) 2018 Description : CUDA compute reciproca...
80142320634420447af30e6ed0ec6d9643f4f694.cu
/* ============================================================================ Name : binconnected_components.cu Author : Diptanshu, Gaurav Version : Copyright : (c) 2018 Description : CUDA compute reciprocals ============================================================================ */ #in...
c897959016f9febdd0d637484a65e1ffb17833c9.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/NativeFunctions.h> #include <ATen/hip/HIPApplyUtils.cuh> #include <ATen/AccumulateType.h> #include <ATen/hip/HIPGeneratorImpl.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/hip/...
c897959016f9febdd0d637484a65e1ffb17833c9.cu
#include <ATen/Dispatch.h> #include <ATen/ExpandUtils.h> #include <ATen/NativeFunctions.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include <ATen/AccumulateType.h> #include <ATen/cuda/CUDAGeneratorImpl.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/cuda/DistributionTemplates.h> #include <curand.h> #include...
2bd89a243ba48f0cf768cc958717daf4f465dc4d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuta/reduce.cuh" namespace cuta { namespace reduce { namespace { template <typename T> __device__ T warpSum(T value) { for (int i = warpSize / 2; i >= 1; i /= 2) { // Butterfly Reduction (This is beautiful.) ...
2bd89a243ba48f0cf768cc958717daf4f465dc4d.cu
#include "cuta/reduce.cuh" namespace cuta { namespace reduce { namespace { template <typename T> __device__ T warpSum(T value) { for (int i = warpSize / 2; i >= 1; i /= 2) { // Butterfly Reduction (This is beautiful.) value += __shfl_xor_sync(0xffffffff, value, i, warpSize); } return value; } } // n...
6ee7109d622c57f9752e01ec80b01657dbc073ed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define CUDA_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; \ i < (n); \ i += blockDim.x * gridDim.x) #define INDEX(b,c,h,w,chan...
6ee7109d622c57f9752e01ec80b01657dbc073ed.cu
#define CUDA_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; \ i < (n); \ i += blockDim.x * gridDim.x) #define INDEX(b,c,h,w,channels,height,width) ((b * channels + c) * height + h) * width+ w extern "C" __global__ ...
baeca4886525297273f3b89c8c8132cb442db9e7.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (M...
baeca4886525297273f3b89c8c8132cb442db9e7.cu
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2020 www.open3d.org // // Permissio...
505720fe1c937042fb77f10b976ab144996e73cf.hip
// !!! This is a file automatically generated by hipify!!! #include <math.h> #include <random> #include "SingleGPUMGDMLP.h" extern char* LOG_DIRECTORY; using std::ios; SingleGPUMGDMLPImp::SingleGPUMGDMLPImp(EventProcessor& _scheduler) { ofDebug.open((string(LOG_DIRECTORY) + "SingleGPU-MGDMLP.log").c_str(), ios::ou...
505720fe1c937042fb77f10b976ab144996e73cf.cu
#include <math.h> #include <random> #include "SingleGPUMGDMLP.h" extern char* LOG_DIRECTORY; using std::ios; SingleGPUMGDMLPImp::SingleGPUMGDMLPImp(EventProcessor& _scheduler) { ofDebug.open((string(LOG_DIRECTORY) + "SingleGPU-MGDMLP.log").c_str(), ios::out); // the scheduler scheduler.CopyFrom(_scheduler); /...
22c8b2952a2f84652fc19ad9d3522ee314261a8e.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include "flamegpu/simulation/detail/CUDAMessageList.h" #include "flamegpu/simulation/detail/CUDAMessage.h" #include "flamegpu/simulation/detail/CUDAErrorChecking.cuh" #include "flamegpu/runti...
22c8b2952a2f84652fc19ad9d3522ee314261a8e.cu
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include "flamegpu/simulation/detail/CUDAMessageList.h" #include "flamegpu/simulation/detail/CUDAMessage.h" #include "flamegpu/simulation/detail/CUDAErrorChecking.cuh" #include "flamegpu/runtime/messaging/MessageBruteForce/MessageBruteForceHost.h" #inclu...