hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
f27fb53ae94e9b7bac000f67e2cd916b8d7b1303.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hipsparse.h" #include <thrust/sort.h> #include <thrust/device_ptr.h> #include "lusol.h" __global__ void LU_SOL_DYNR_INIT(int n, int *ia, int *da, int *dpl, int *dpu); __global__ void DYNR_ANA_1(int n, int *ia, int *ii); _...
f27fb53ae94e9b7bac000f67e2cd916b8d7b1303.cu
#include "cusparse.h" #include <thrust/sort.h> #include <thrust/device_ptr.h> #include "lusol.h" __global__ void LU_SOL_DYNR_INIT(int n, int *ia, int *da, int *dpl, int *dpu); __global__ void DYNR_ANA_1(int n, int *ia, int *ii); __global__ void DYNR_ANA_2(int n, int nnz, int *jb, int *jj, int *ib, int *db); /*-------...
94beebf6b97adf45fce55f62827dc9ac1631d218.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" %%cu #include <stdio.h> #include <stdlib.h> #include <string.h> __global__ void reverseWord(char *str, char *rev_str){ int space = 0, start_index, end_index, len_word; int id = blockIdx.x * blockDim.x + threadIdx.x; char *ptr_st...
94beebf6b97adf45fce55f62827dc9ac1631d218.cu
%%cu #include <stdio.h> #include <stdlib.h> #include <string.h> __global__ void reverseWord(char *str, char *rev_str){ int space = 0, start_index, end_index, len_word; int id = blockIdx.x * blockDim.x + threadIdx.x; char *ptr_start = str, *ptr_end, *ptr_space; ptr_space = ptr_start; while((*ptr_space) != ' ' && (...
623c32135aa4dca4bcd0c141aa23fb6452ca8e59.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <THH/THHAtomics.cuh> #include <THH/THHDeviceUtils.cuh> #include "gaussian_smooth.h" #define CUDA_KERNEL_LOOP(i ,n) \ for (int i = blockIdx.x * blockDim.x + thread...
623c32135aa4dca4bcd0c141aa23fb6452ca8e59.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <THC/THCAtomics.cuh> #include <THC/THCDeviceUtils.cuh> #include "gaussian_smooth.h" #define CUDA_KERNEL_LOOP(i ,n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; i<(n); i+= blockDim.x * gridDim.x) #define SQRT_2Pi 2.5066282746310002 #define...
7c772d065e78d87961155068b7bc7277f972110f.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_log.cu" #include<chrono> #include<iostream> using namespace s...
7c772d065e78d87961155068b7bc7277f972110f.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_log.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{3...
0b5064bcc2073b9206765ac9313ba0f51f080551.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cu_testAtomic_impl.h" #include <bvh_common.h> __global__ void testAtomic_kernel(int * obin, int * idata, int h, int n) { unsigned ind = blockIdx.x*blockDim.x...
0b5064bcc2073b9206765ac9313ba0f51f080551.cu
#include "cu_testAtomic_impl.h" #include <bvh_common.h> __global__ void testAtomic_kernel(int * obin, int * idata, int h, int n) { unsigned ind = blockIdx.x*blockDim.x + threadIdx.x; if(ind >= n) return; int d = idata[ind]; atomicAdd(&obin[d/h],...
e0809c9da51c7709ef71ec02c3b189634becb346.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <math.h> // CUDA kernel. Each thread takes care of one element of c __global__ void vecAdd(double *a, double *b, double *c, int n) { // Get our global thread ID int id = blo...
e0809c9da51c7709ef71ec02c3b189634becb346.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> // CUDA kernel. Each thread takes care of one element of c __global__ void vecAdd(double *a, double *b, double *c, int n) { // Get our global thread ID int id = blockIdx.x*blockDim.x+threadIdx.x; // Make sure we do not go out of bounds if (id...
18ff04c373826893bd89ecde91c5ddde1ff6488f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> __global__ void print_from_gpu(void) { printf("Hello World! from thread [%d,%d] \ From device\n", threadIdx.x,blockIdx.x); } int main(void) { printf("Hello World from host!\n"); hipLaun...
18ff04c373826893bd89ecde91c5ddde1ff6488f.cu
#include<stdio.h> #include<stdlib.h> __global__ void print_from_gpu(void) { printf("Hello World! from thread [%d,%d] \ From device\n", threadIdx.x,blockIdx.x); } int main(void) { printf("Hello World from host!\n"); print_from_gpu<<<1,1>>>(); cudaDeviceSynchronize(); return 0; }
6cfc20be90c7e52ea30253e0e02a22d62031f013.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Simplified simulation of life evolution * * Computacion Paralela, Grado en Informatica (Universidad de Valladolid) * 2019/2020 * * v1.5 * * CHANGES: * 1) Float values have been substituted by fixed point arithmetics ...
6cfc20be90c7e52ea30253e0e02a22d62031f013.cu
/* * Simplified simulation of life evolution * * Computacion Paralela, Grado en Informatica (Universidad de Valladolid) * 2019/2020 * * v1.5 * * CHANGES: * 1) Float values have been substituted by fixed point arithmetics * using integers. To simplify, the fixed point arithmetics are done * with PRECISION i...
17899c732434854b1bb63cbf26cae7db56a7ea9e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef WITH_CUDA #include "core/context_cuda.h" #include "utils/op_kernel.h" namespace dragon { namespace kernel { /*! Equal <T = float32, Device = CUDA> */ template <typename T> __global__ void _Equal( const int ...
17899c732434854b1bb63cbf26cae7db56a7ea9e.cu
#ifdef WITH_CUDA #include "core/context_cuda.h" #include "utils/op_kernel.h" namespace dragon { namespace kernel { /*! Equal <T = float32, Device = CUDA> */ template <typename T> __global__ void _Equal( const int count, const T* a, const T* b, T* ...
fb36c6f5061893cbe71c9848147f7a1b27ae4fef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include"scrImagePgmPpmPackage.h" const float SCALE_RATIO = 0.5; //Step 1: Texture Memory texture<unsigned char, 2, hipReadModeElementType> text; //Kernel to calculate resized size __global__ void resized(...
fb36c6f5061893cbe71c9848147f7a1b27ae4fef.cu
#include<stdio.h> #include"scrImagePgmPpmPackage.h" const float SCALE_RATIO = 0.5; //Step 1: Texture Memory texture<unsigned char, 2, cudaReadModeElementType> text; //Kernel to calculate resized size __global__ void resized(unsigned char *imgData, int width, float scale_factor, cudaTextureObject_t texObj) { ...
e70e6e1514d7a9f5fe3d6c13464e77d792a5019b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <unittest/unittest.h> #include <thrust/pair.h> #include <thrust/sort.h> #include <thrust/transform.h> #include <thrust/sequence.h> #include <thrust/execution_policy.h> template<typename Iterator1, typename Iterator2, type...
e70e6e1514d7a9f5fe3d6c13464e77d792a5019b.cu
#include <unittest/unittest.h> #include <thrust/pair.h> #include <thrust/sort.h> #include <thrust/transform.h> #include <thrust/sequence.h> #include <thrust/execution_policy.h> template<typename Iterator1, typename Iterator2, typename Iterator3> __global__ void stable_sort_by_key_kernel(Iterator1 keys_first, Iterator...
d25e5e106779392c774653a1dcacf728b2400066.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef WITH_CUDA #include <cmath> #include "core/context_cuda.h" #include "core/tensor.h" #include "utils/cuda_device.h" #include "utils/op_kernel.h" #include "utils/math_functions.h" #include "utils/cast.h" namespace dragon { n...
d25e5e106779392c774653a1dcacf728b2400066.cu
#ifdef WITH_CUDA #include <cmath> #include "core/context_cuda.h" #include "core/tensor.h" #include "utils/cuda_device.h" #include "utils/op_kernel.h" #include "utils/math_functions.h" #include "utils/cast.h" namespace dragon { namespace kernel { /******************** activation.dropout ********************/ templ...
bc3d4c93310ff2447c6fd8ba4758c2f2dca46e80.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <cstdlib> #include <sys/time.h> #include <hip/hip_runtime.h> #include "MatUtil.h" #include "debug.h" #if (APSP_VER == 1) #include "Floyd.h" #elif (APSP_VER == 2) #include "Floyd_coa.h" #elif (APSP_VER == 3) #include "...
bc3d4c93310ff2447c6fd8ba4758c2f2dca46e80.cu
#include <iostream> #include <cstdlib> #include <sys/time.h> #include <cuda_runtime.h> #include "MatUtil.h" #include "debug.h" #if (APSP_VER == 1) #include "Floyd.h" #elif (APSP_VER == 2) #include "Floyd_coa.h" #elif (APSP_VER == 3) #include "Floyd_sm.h" #else #include "Floyd_blk.h" #endif using nam...
33b105c630bb37129a6556f3b755f26d1b4a939b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void MyKernel(int *a, int *b, int *c, int N) { int idx = threadIdx.x + blockIdx.x * blockDim.x; if (idx < N) { c[idx] = a[idx] + b[idx]; } }
33b105c630bb37129a6556f3b755f26d1b4a939b.cu
#include "includes.h" __global__ void MyKernel(int *a, int *b, int *c, int N) { int idx = threadIdx.x + blockIdx.x * blockDim.x; if (idx < N) { c[idx] = a[idx] + b[idx]; } }
f09889a37f4aebcec1627137efa3320088d93f16.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/SpatialUpSamplingNearest.cu" #else #include "../common.h" static inline void THNN_(SpatialUpSamplingNearest_shapeCheck) (THCState *state,THCTensor ...
f09889a37f4aebcec1627137efa3320088d93f16.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/SpatialUpSamplingNearest.cu" #else #include "../common.h" static inline void THNN_(SpatialUpSamplingNearest_shapeCheck) (THCState *state,THCTensor *input, THCTensor *gradOutput, int scale_factor) { THArgCheck...
8dbda6230a8bc64fe2f8935291a02304b6b4dedf.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 <cmath> #include <assert.h> #include <time.h> #include "init.h" /// Compute squared Euclidean distance transform for each column. /** Two scan...
8dbda6230a8bc64fe2f8935291a02304b6b4dedf.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <cmath> #include <assert.h> #include <time.h> #include "init.h" /// Compute squared Euclidean distance transform for each column. /** Two scans are performed to find squared distance to the closest pixel ...
797310871c130b5d21839afb208435e3b82562d8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Tencent is pleased to support the open source community by making TNN available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you...
797310871c130b5d21839afb208435e3b82562d8.cu
// Tencent is pleased to support the open source community by making TNN available. // // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy o...
a22f2d52e87d81674fdea8498801186c524e6040.hip
// !!! This is a file automatically generated by hipify!!! #include "che.cuh" __host__ __device__ index_t cu_trig(index_t he) { if(he == NIL) return NIL; return he / che::P; } __host__ __device__ index_t cu_next(index_t he) { if(he == NIL) return NIL; return che::P * cu_trig(he) + (he + 1) % che::P; } __host__ _...
a22f2d52e87d81674fdea8498801186c524e6040.cu
#include "che.cuh" __host__ __device__ index_t cu_trig(index_t he) { if(he == NIL) return NIL; return he / che::P; } __host__ __device__ index_t cu_next(index_t he) { if(he == NIL) return NIL; return che::P * cu_trig(he) + (he + 1) % che::P; } __host__ __device__ index_t cu_prev(index_t he) { if(he == NIL) retu...
06dec2bd4a9a88be09cb985d1fcf8acba72fd24c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2016, National University of Defense Technology // Author: Xuhao Chen <cxh@illinois.edu> #include <stdio.h> #define SYMGS_VARIANT "base" #include "symgs.h" #include "cuda_launch_config.hpp" #include "cutil_subset.h" #in...
06dec2bd4a9a88be09cb985d1fcf8acba72fd24c.cu
// Copyright 2016, National University of Defense Technology // Author: Xuhao Chen <cxh@illinois.edu> #include <stdio.h> #define SYMGS_VARIANT "base" #include "symgs.h" #include "cuda_launch_config.hpp" #include "cutil_subset.h" #include "timer.h" __global__ void gs_kernel(int num_rows, int * Ap, int * Aj, int* indice...
b547ed57aa7b7b72428ea885803c4f359f70f792.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Modification of Ingemar Ragnemalm "Real Hello World!" program // To compile execute below: // nvcc hello-world.cu -L /usr/local/cuda/lib -lcudart -o hello-world #include <stdio.h> #define N 16 #define BLOCK_SIZE 16 #define NUM_...
b547ed57aa7b7b72428ea885803c4f359f70f792.cu
// Modification of Ingemar Ragnemalm "Real Hello World!" program // To compile execute below: // nvcc hello-world.cu -L /usr/local/cuda/lib -lcudart -o hello-world #include <stdio.h> #define N 16 #define BLOCK_SIZE 16 #define NUM_BLOCKS N/BLOCK_SIZE #define ARRAY_SIZE N #define ARRAY_SIZE_IN_BYTES (sizeof(unsigned i...
73af28a96a996f725cf156992210952f13e5ef20.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! \file tfising.cu \brief Functions to generate a Hamiltonian for the Transverse Field Ising model */ #include "hamiltonian.h" __device__ float HOffBondXTFI(const int si, const int bra, const float JJ) { float valH; ...
73af28a96a996f725cf156992210952f13e5ef20.cu
/*! \file tfising.cu \brief Functions to generate a Hamiltonian for the Transverse Field Ising model */ #include "hamiltonian.h" __device__ float HOffBondXTFI(const int si, const int bra, const float JJ) { float valH; //int S0, S1; //int T0, T1; valH = JJ; //contribution from the J part of th...
283573dc2a8f9b7e790abdf2a26f7edf50a751fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //Example 3.2.2 #include <stdio.h> #include "../common/book.h" __global__ void multiply(int a, int b, int *c) { *c = a * b; } int main(void) { int c; int *dev_c; HANDLE_ERROR(hipMalloc((void**)&dev_c, sizeof(int))); hipLaunc...
283573dc2a8f9b7e790abdf2a26f7edf50a751fa.cu
//Example 3.2.2 #include <stdio.h> #include "../common/book.h" __global__ void multiply(int a, int b, int *c) { *c = a * b; } int main(void) { int c; int *dev_c; HANDLE_ERROR(cudaMalloc((void**)&dev_c, sizeof(int))); multiply <<< 1, 1 >>> (4, 11, dev_c); HANDLE_ERROR(cudaMemcpy(&c, dev_c, sizeof(int), cudaMe...
97672e6410d3dd269a65eadccb87f7b5fa623492.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <sys/time.h> #define SAMPLE_TEST_LEN 2048 #define SCALER 4096 #define LUT_SIZE 1024 __device__ short lut_sigmoid[LUT_SIZE] = { 2048,2056,2064,2072,2080,2088,2096,2104, 2112,2120,2128,2136,2144,2...
97672e6410d3dd269a65eadccb87f7b5fa623492.cu
#include <stdio.h> #include <sys/time.h> #define SAMPLE_TEST_LEN 2048 #define SCALER 4096 #define LUT_SIZE 1024 __device__ short lut_sigmoid[LUT_SIZE] = { 2048,2056,2064,2072,2080,2088,2096,2104, 2112,2120,2128,2136,2144,2152,2160,2168, 2176,2184,2192,2200,2208,2216,2224,2232, 2239,2247,2255,2263,2271...
bd05a3b7a6c71bff278639d518c97f3a521c7a26.hip
// !!! This is a file automatically generated by hipify!!! #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <iostream> using namespace std; using namespace cv; ...
bd05a3b7a6c71bff278639d518c97f3a521c7a26.cu
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> #include <cuda.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <iostream> using namespace std; using namespace cv; _global_ void knn(uchar4 * input_image, uchar4 * output_image, int k) { ...
6326365ee9ac6e3a9ec0377b6938fd2bd5510856.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2016 paddlepaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
6326365ee9ac6e3a9ec0377b6938fd2bd5510856.cu
/* Copyright (c) 2016 paddlepaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
205519b2a468f08f946378742a32a0187e8b4bb6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/affine_channel_op.h" #include <hipcub/hipcub.hpp> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { template <typename T> using BlockReduce = hipcub::BlockReduce<T, CAFFE_CUDA_NUM_TH...
205519b2a468f08f946378742a32a0187e8b4bb6.cu
#include "caffe2/operators/affine_channel_op.h" #include <cub/block/block_reduce.cuh> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { template <typename T> using BlockReduce = cub::BlockReduce<T, CAFFE_CUDA_NUM_THREADS>; template <typename T, StorageOrder kOrder> __global__ void AffineChannelS...
786f624cdd69d6bc603c7fd1af1e7d54bf923a0e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
786f624cdd69d6bc603c7fd1af1e7d54bf923a0e.cu
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
433dd3dc21d0180c3978467e51160958cc82613a.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 "dev_const.cu" #include<chrono> #include<iostream> using namespac...
433dd3dc21d0180c3978467e51160958cc82613a.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 "dev_const.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24}...
40cfe32a3ab7b5358fc6853d1a19736cebf53df2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
40cfe32a3ab7b5358fc6853d1a19736cebf53df2.cu
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
f9a08dab7c89a452a13fb91e67ddfe8b3e551f37.hip
// !!! This is a file automatically generated by hipify!!! #include"CudaHelper.cuh" #include"CudaInterface.hpp" int currCudaDeviceID = 0; void Anime4KCPP::Cuda::cuSetDeviceID(const int id) { if (id < 0 || id >= cuGetDeviceCount()) currCudaDeviceID = 0; else currCudaDeviceID = id; } int Anime4...
f9a08dab7c89a452a13fb91e67ddfe8b3e551f37.cu
#include"CudaHelper.cuh" #include"CudaInterface.hpp" int currCudaDeviceID = 0; void Anime4KCPP::Cuda::cuSetDeviceID(const int id) { if (id < 0 || id >= cuGetDeviceCount()) currCudaDeviceID = 0; else currCudaDeviceID = id; } int Anime4KCPP::Cuda::cuGetDeviceID() noexcept { return currCudaD...
97f9a14427789464feaf088028ec9086a2be80b9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifica...
97f9a14427789464feaf088028ec9086a2be80b9.cu
/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provided, and to which copyright is held, by various Contributor...
03c7ae99e77d033eec3c5c421dfcb9922ab375ae.hip
// !!! This is a file automatically generated by hipify!!! // This file contains the reduce kernel and its wrapper. The code comes from CUDA // sdk example "CUDA_path/Samples/6_Advanced/reduction". This uses the kernel 4 // since it doesn't require the input to be power of 2 yet still retain most optimization // be def...
03c7ae99e77d033eec3c5c421dfcb9922ab375ae.cu
// This file contains the reduce kernel and its wrapper. The code comes from CUDA // sdk example "CUDA_path/Samples/6_Advanced/reduction". This uses the kernel 4 // since it doesn't require the input to be power of 2 yet still retain most optimization // be definitely fast enough to handle 500cube image reduction #inc...
db674a83c34a7993bcc94e445b8bbf33717a5787.hip
// !!! This is a file automatically generated by hipify!!! #include <cutil.h> #include <hip/hip_runtime.h> #ifdef _WIN32 #include <windows.h> #endif #include "../Algorithm/Configuration.h" #ifdef VIS #include <cuda_gl_interop.h> #include <cutil_inline_runtime.h> #endif #include "GraphStorage.h" /** * CPU side memor...
db674a83c34a7993bcc94e445b8bbf33717a5787.cu
#include <cutil.h> #include <cuda_runtime.h> #ifdef _WIN32 #include <windows.h> #endif #include "../Algorithm/Configuration.h" #ifdef VIS #include <cuda_gl_interop.h> #include <cutil_inline_runtime.h> #endif #include "GraphStorage.h" /** * CPU side memory allocator * @param [in] ptr predefined CPU pointer * @param ...
5eef4ec928be29012b27233f7b5cc0684b3d88ba.hip
// !!! This is a file automatically generated by hipify!!! #if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/in...
5eef4ec928be29012b27233f7b5cc0684b3d88ba.cu
#if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl" usi...
d2230ff0ab03535c9fe2018b5275ef319db494ad.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http:...
d2230ff0ab03535c9fe2018b5275ef319db494ad.cu
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
a447ec837b3f427dc4447555955bf4a44a03659c.hip
// !!! This is a file automatically generated by hipify!!! #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> //#include "utils.h" #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <string> cv::Mat imageRGBA; cv::Mat imageOut; uchar4 *d_rgbaImage__; ...
a447ec837b3f427dc4447555955bf4a44a03659c.cu
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/opencv.hpp> //#include "utils.h" #include <cuda.h> #include <cuda_runtime.h> #include <string> cv::Mat imageRGBA; cv::Mat imageOut; uchar4 *d_rgbaImage__; uchar4 *d_blurImage__; size_t numRows() { return imageRGBA.rows; } size_...
d39db71e5d8f2498021cebf8bcf9e2df1aea97d4.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <stdio.h> #include <stdlib.h> #include <armadillo> #include <vector> #include <string> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> using namespace std; __global__ void suma_vectores(float *c ,float *a , float *b,int N)...
d39db71e5d8f2498021cebf8bcf9e2df1aea97d4.cu
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <armadillo> #include <vector> #include <string> #include <cuda_runtime.h> #include <cuda.h> using namespace std; __global__ void suma_vectores(float *c ,float *a , float *b,int N) { int idx=blockIdx.x * blockDim.x+ threadIdx.x; if(idx<N) { ...
364a819bafb30bf048b15dff6f515c9e7efdd9a5.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (M...
364a819bafb30bf048b15dff6f515c9e7efdd9a5.cu
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018-2021 www.open3d.org // // Perm...
f8c73bb59bf647c51ca09cbf1f1c91b0348cf994.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <math.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef PAPI # include <papi.h> #endif #include "timemory-interface/interface.h" __global__ void MatAdd(f...
f8c73bb59bf647c51ca09cbf1f1c91b0348cf994.cu
#include <cuda.h> #include <cuda_runtime.h> #include <math.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef PAPI # include <papi.h> #endif #include "timemory-interface/interface.h" __global__ void MatAdd(float* A, float* B, float* C, int n, int taskperItem) { // Get our glo...
35f5c829fe5bd06bde4198036a0131435884dc20.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2009, Andrew Corrigan, acorriga@gmu.edu // This code is from the AIAA-2009-4001 paper // #include <cutil.h> #include <iostream> #include <fstream> #include "cudacommon.h" #include "ResultDatabase.h" #include "OptionPar...
35f5c829fe5bd06bde4198036a0131435884dc20.cu
// Copyright 2009, Andrew Corrigan, acorriga@gmu.edu // This code is from the AIAA-2009-4001 paper // #include <cutil.h> #include <iostream> #include <fstream> #include "cudacommon.h" #include "ResultDatabase.h" #include "OptionParser.h" #define SEED 7 #if CUDART_VERSION < 3000 struct double3 { double x, y, z; }; ...
a557a910a3298f9f83e79f3dc36b62629948e478.hip
// !!! This is a file automatically generated by hipify!!! // CUDA #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <stdio.h> using namespace std; const int N = 100; // const int BLOCK_data = 3; // const int THREAD_data = 10; // CUDA...
a557a910a3298f9f83e79f3dc36b62629948e478.cu
// 相关 CUDA 库 #include "cuda_runtime.h" #include "cuda.h" #include "device_launch_parameters.h" #include <iostream> #include <stdio.h> using namespace std; const int N = 100; // 块数 const int BLOCK_data = 3; // 各块中的线程数 const int THREAD_data = 10; // CUDA初始化函数 bool InitCUDA() { int deviceCount; // 获取显示设备数...
a5bdf657355691a15c5e4ca1930a42c651ef0636.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "gpu/image/imgExtract.hpp" #include "../deviceBuffer.hpp" #include "../deviceStream.hpp" #include "cuda/util.hpp" #include <hip/hip_runtime.h> #include <cassert> namespace V...
a5bdf657355691a15c5e4ca1930a42c651ef0636.cu
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "gpu/image/imgExtract.hpp" #include "../deviceBuffer.hpp" #include "../deviceStream.hpp" #include "cuda/util.hpp" #include <cuda_runtime.h> #include <cassert> namespace VideoStitch { namespace Image { /** * This kernel extract a p...
c493e24f4caef6294b6e3f879b02fa2ddef99e29.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_NO_OPERATORS #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/OpMathType.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/hip/...
c493e24f4caef6294b6e3f879b02fa2ddef99e29.cu
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/OpMathType.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/UnaryOps.h> #include <ATen/native/cuda/Loops.cuh> #include <ATen/native/cuda/Math.cuh> #include <...
0f0e89566c01df0aa3b2e21e605ac589bb4bb40e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by op2.py // //user function __device__ void res_calc_gpu( const float *x1, const float *x2, const float *q1, const float *q2, const float *adt1, const float *adt2, float *res1, float *res2...
0f0e89566c01df0aa3b2e21e605ac589bb4bb40e.cu
// // auto-generated by op2.py // //user function __device__ void res_calc_gpu( const float *x1, const float *x2, const float *q1, const float *q2, const float *adt1, const float *adt2, float *res1, float *res2) { float dx,dy,mu, ri, p1,vol1, p2,vol2, f; dx = x1[0] - x2[0]; dy = x1[1] - x2[...
d88d80f15be1d88e0d3542f9e365d1f01372e050.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 "update_bins.cu" #include<chrono> #include<iostream> using namesp...
d88d80f15be1d88e0d3542f9e365d1f01372e050.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 "update_bins.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,2...
9e1649c8c2927a64aa5ee566de534ace8de7ed99.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #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 Tussch...
9e1649c8c2927a64aa5ee566de534ace8de7ed99.cu
#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...
fa62d0814fca603552a990f7f92505d0401c139f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <wb.h> #include <iostream> #define SEGMENT_LENGTH 256 #define BLOCK_SIZE 256 __global__ void vecAdd(float * in1, float * in2, float * out, int len) { //@@ Insert code to implement vector addition here int idx =...
fa62d0814fca603552a990f7f92505d0401c139f.cu
#include <wb.h> #include <iostream> #define SEGMENT_LENGTH 256 #define BLOCK_SIZE 256 __global__ void vecAdd(float * in1, float * in2, float * out, int len) { //@@ Insert code to implement vector addition here int idx = blockIdx.x * blockDim.x + threadIdx.x; if(idx < len){ out[idx] = in1[idx] +...
b6a8368c6c6cd65b0ea8ce64cf3da438c0beeab2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_tools.h" __global__ void moving_average ( const double *input, double *output, const size_t width, const uint *cols_heights, const uint window_width ) { // column uint gid = blockIdx.x * blockDim.x + th...
b6a8368c6c6cd65b0ea8ce64cf3da438c0beeab2.cu
#include "cuda_tools.h" __global__ void moving_average ( const double *input, double *output, const size_t width, const uint *cols_heights, const uint window_width ) { // column uint gid = blockIdx.x * blockDim.x + threadIdx.x; uint idx = gid; if(gid >= width) { return; } uint col_height = cols_...
7e4a59e9e93a5eb78b62e94231632394701a09bf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <wb.h> #define wbCheck(stmt) \ do { \ hipError_t err = stmt; ...
7e4a59e9e93a5eb78b62e94231632394701a09bf.cu
#include <wb.h> #define wbCheck(stmt) \ do { \ cudaError_t err = stmt; \ if (err != cudaSuccess) { ...
371575704cc086ed010d895006efedc8e1eb09cc.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2010 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, ...
371575704cc086ed010d895006efedc8e1eb09cc.cu
/* * Copyright 1993-2010 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...
f5a471257b36f2f449de78d45584cf9ada3975da.hip
// !!! This is a file automatically generated by hipify!!! #include <bits/stdc++.h> #include <hip/hip_runtime.h> #define BLOCK_SIZE 1024 using namespace std; __global__ void sum(int *d_A, int *d_B, int *d_C, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; //if(i < n*n) d_C[i] = d_A[i] + d_B[i]; } __...
f5a471257b36f2f449de78d45584cf9ada3975da.cu
#include <bits/stdc++.h> #include <cuda.h> #define BLOCK_SIZE 1024 using namespace std; __global__ void sum(int *d_A, int *d_B, int *d_C, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; //if(i < n*n) d_C[i] = d_A[i] + d_B[i]; } __global__ void sumR(int *d_A, int *d_B, int *d_C, int n) { int i = bl...
0c7990dc981fffc3eb0c024fa697ea44c4ca77cc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** Delaunay refinement -*- CUDA -*- * @file * @section License * * Galois, a framework to exploit amorphous data-parallelism in irregular * programs. * * Copyright (C) 2013, The University of Texas at Austin. All rights rese...
0c7990dc981fffc3eb0c024fa697ea44c4ca77cc.cu
/** Delaunay refinement -*- CUDA -*- * @file * @section License * * Galois, a framework to exploit amorphous data-parallelism in irregular * programs. * * Copyright (C) 2013, The University of Texas at Austin. All rights reserved. * UNIVERSITY EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES CONCERNING THIS * SOFTWA...
108fa0699af63ba82a9fc55ccacde7e1e7765c7e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gradient.h" __global__ void horizontalGradientKernel(float* image, float* grad, int xRes, int yRes) { int u = (blockIdx.x * blockDim.x) + threadIdx.x; int v = (blockIdx.y * blockDim.y) + threadIdx.y; int i ...
108fa0699af63ba82a9fc55ccacde7e1e7765c7e.cu
#include "gradient.h" __global__ void horizontalGradientKernel(float* image, float* grad, int xRes, int yRes) { int u = (blockIdx.x * blockDim.x) + threadIdx.x; int v = (blockIdx.y * blockDim.y) + threadIdx.y; int i = v * xRes + u; if(u < xRes && v < yRes){ float diff = 0.0f; if(u < xRes - 1 && ...
151d06c9b08167075f14179e50c6998a5810ac76.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 "AssembleArrayOfNoticedChannels.cu" #include<chrono> #include<ios...
151d06c9b08167075f14179e50c6998a5810ac76.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 "AssembleArrayOfNoticedChannels.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {...
711713b7c1eebfcf57baa35ff993f21ded3ceb97.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> using namespace std; #define i_size 6//image size #define o_size 6 #define k_size 3//kernel size int input[i_size][i_size]; int kernel[k_size][k_size]; i...
711713b7c1eebfcf57baa35ff993f21ded3ceb97.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> using namespace std; #define i_size 6//image size #define o_size 6 #define k_size 3//kernel size int input[i_size][i_size]; int kernel[k_size][k_size]; int output[i_size][i_size]; typedef int itype[i_size]; typedef ...
2e7928cca0cd9f36ecbac19c16a1f602ff4d6ee3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* ============================================================================ Name : nanoBraggCUDA.cu Author : Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ===========...
2e7928cca0cd9f36ecbac19c16a1f602ff4d6ee3.cu
/* ============================================================================ Name : nanoBraggCUDA.cu Author : Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ============================================================================ */ #include <iostrea...
d2c9509bcc9540b6ccf29cc5ea82d230223192e0.hip
// !!! This is a file automatically generated by hipify!!! // System includes #include <stdio.h> #include <assert.h> #include <malloc.h> #include <math.h> #include <stdlib.h> // CUDA runtime #include <hip/hip_runtime.h> // Helper functions and utilities to work with CUDA #include "helper_functions.h" #include "helper_...
d2c9509bcc9540b6ccf29cc5ea82d230223192e0.cu
// System includes #include <stdio.h> #include <assert.h> #include <malloc.h> #include <math.h> #include <stdlib.h> // CUDA runtime #include <cuda_runtime.h> // Helper functions and utilities to work with CUDA #include "helper_functions.h" #include "helper_cuda.h" // setting the number of trials in the monte carlo s...
13d7925c2938cd684abd07b388df04564b752608.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (C) 2008-2011 Yung-Yu Chen <yyc@solvcon.net>. * * This program 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 Fo...
13d7925c2938cd684abd07b388df04564b752608.cu
/* * Copyright (C) 2008-2011 Yung-Yu Chen <yyc@solvcon.net>. * * This program 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 2 of the License, or * (at your option) any later version. * ...
41b3eb7ed7d78d716d8fcb9dccde17f8567e6599.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //first cuda program //Hitender Prakash #include <stdio.h> //define gpu kernel __global__ void square(double *d_out, double *d_in){ int pos=threadIdx.x; d_out[pos]=d_in[pos]*d_in[pos]; } int main(int argc, char **argv){ if(ar...
41b3eb7ed7d78d716d8fcb9dccde17f8567e6599.cu
//first cuda program //Hitender Prakash #include <stdio.h> //define gpu kernel __global__ void square(double *d_out, double *d_in){ int pos=threadIdx.x; d_out[pos]=d_in[pos]*d_in[pos]; } int main(int argc, char **argv){ if(argc <2 ||argc >2){ printf("\nUsage: sqaure <size of array>"); exit(0); } int siz=a...
2e887c7f1284d43289fb5b3ff020ded6e661856f.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2011-2017 Maxim Milakov * * 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/lic...
2e887c7f1284d43289fb5b3ff020ded6e661856f.cu
/* * Copyright 2011-2017 Maxim Milakov * * 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 ...
b7c8da4cef33cdf51f568703e69f866393813fa4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #pragma once #include "gMF_bf_grid_engine.h" #include "gMF_bf_grid_engine_kernel.h" #include <fstream> using namespace std; using namespace gMF; gMF::bf_grid_engine::bf_grid_engine(Vector2i size_xy, Vector3i size_rgb, float sigm...
b7c8da4cef33cdf51f568703e69f866393813fa4.cu
#pragma once #include "gMF_bf_grid_engine.h" #include "gMF_bf_grid_engine_kernel.h" #include <fstream> using namespace std; using namespace gMF; gMF::bf_grid_engine::bf_grid_engine(Vector2i size_xy, Vector3i size_rgb, float sigma_xy, float sigma_rgb, int dim) { bgrid = new bf_grid(size_xy, size_rgb, sigma_xy, sigm...
5907b64025bb76a97bccb29df727363031ad3720.hip
// !!! This is a file automatically generated by hipify!!! #ifdef USE_LEGACY_DSLASH #include <cstdlib> #include <cstdio> #include <string> #include <iostream> #include <typeinfo> #include <color_spinor_field.h> #include <clover_field.h> // these control the Wilson-type actions #ifdef GPU_WILSON_DIRAC //#define DIREC...
5907b64025bb76a97bccb29df727363031ad3720.cu
#ifdef USE_LEGACY_DSLASH #include <cstdlib> #include <cstdio> #include <string> #include <iostream> #include <typeinfo> #include <color_spinor_field.h> #include <clover_field.h> // these control the Wilson-type actions #ifdef GPU_WILSON_DIRAC //#define DIRECT_ACCESS_LINK //#define DIRECT_ACCESS_WILSON_SPINOR //#defi...
c0e2a40cda019ffa5fe07a687c3fe7198128d551.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include "caffe/filler.hpp" #include "caffe/layers/bias_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void BiasForward(const int n, const Dtype* in, ...
c0e2a40cda019ffa5fe07a687c3fe7198128d551.cu
#include <vector> #include "caffe/filler.hpp" #include "caffe/layers/bias_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void BiasForward(const int n, const Dtype* in, const Dtype* bias, const int bias_dim, const int inner_dim, Dtype* out) { CUDA...
e52dc14cecafe54abf35e144f2b4672943aac227.hip
// !!! This is a file automatically generated by hipify!!! #include "cupoch/visualization/shader/texture_phong_shader.h" #include "cupoch/geometry/image.h" #include "cupoch/geometry/pointcloud.h" #include "cupoch/geometry/trianglemesh.h" #include "cupoch/visualization/shader/shader.h" #include "cupoch/visualization/ut...
e52dc14cecafe54abf35e144f2b4672943aac227.cu
#include "cupoch/visualization/shader/texture_phong_shader.h" #include "cupoch/geometry/image.h" #include "cupoch/geometry/pointcloud.h" #include "cupoch/geometry/trianglemesh.h" #include "cupoch/visualization/shader/shader.h" #include "cupoch/visualization/utility/color_map.h" #include "cupoch/utility/console.h" #inc...
6a29f8ae2348f242632ecb7af3d2ecbd06cfa7e1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Created by ameen on 07/05/20. // #include "sql_delete.cuh" #define NUM_THREADS 512 __global__ void deleteKernel(void *data, int rowSize, int *offset, int offsetSize, ColType *types, myExpr *exprs, int numRows, bool *flag_d)...
6a29f8ae2348f242632ecb7af3d2ecbd06cfa7e1.cu
// // Created by ameen on 07/05/20. // #include "sql_delete.cuh" #define NUM_THREADS 512 __global__ void deleteKernel(void *data, int rowSize, int *offset, int offsetSize, ColType *types, myExpr *exprs, int numRows, bool *flag_d) { void *res; int resType = 1; int rowsPerBlock = (numRows + NUM_THREADS - 1...
dfa206dfe184cb07c98dc7861765f867a9a976b5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <fstream> #include <iostream> #include <cutil_inline.h> #include <shrQATest.h> #include "Timer.h" using namespace std; const double sqrt_2 = 1.4142135; __global__ void haar_horizontal(float input[], float output [], int...
dfa206dfe184cb07c98dc7861765f867a9a976b5.cu
#include <fstream> #include <iostream> #include <cutil_inline.h> #include <shrQATest.h> #include "Timer.h" using namespace std; const double sqrt_2 = 1.4142135; __global__ void haar_horizontal(float input[], float output [], int o_width, int w) { int x_index = blockIdx.x*blockDim.x+threadIdx.x; int y_index = bl...
d531012593fd1b0dddb73b9e02479f3857c8b267.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define CUDA_ERROR_CHECK #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CudaCheckError() __cudaCheckError( __FILE__, __LINE__ ) inline void __cudaSafeCall(hipError_t err, const char *file, const i...
d531012593fd1b0dddb73b9e02479f3857c8b267.cu
#define CUDA_ERROR_CHECK #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CudaCheckError() __cudaCheckError( __FILE__, __LINE__ ) inline void __cudaSafeCall(cudaError err, const char *file, const int line) { #ifdef CUDA_ERROR_CHECK if (cudaSuccess != err) { fprintf(stderr, "cud...
772bdf481ecb7d1bd25807fb6718cae512600071.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2016 @generated from sparse/blas/zjacobisetup.cu, normal z -...
772bdf481ecb7d1bd25807fb6718cae512600071.cu
/* -- MAGMA (version 2.2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2016 @generated from sparse/blas/zjacobisetup.cu, normal z -> d, Sun Nov 20 20:20:40 2016 @author Hartwig Anzt */ #include "magmasparse_inte...
85f2c2da890f6a78c319033a54a11ee76d65c85a.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <cstring> // needed for memset #include <tune_quda.h> #include <typeinfo> #include <quda_internal.h> #include <float_vector.h> #include <blas_quda.h> #include <color_spinor_field.h> #include <color_spinor_fie...
85f2c2da890f6a78c319033a54a11ee76d65c85a.cu
#include <stdlib.h> #include <stdio.h> #include <cstring> // needed for memset #include <tune_quda.h> #include <typeinfo> #include <quda_internal.h> #include <float_vector.h> #include <blas_quda.h> #include <color_spinor_field.h> #include <color_spinor_field_order.h> #define checkSpinor(a, b) \ { \...
df4f3f041c2ab5d2a5c6ef2cc51111ba9f8bb8b4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <list> #include <algorithm> #include <iostream> #include <cstdlib> #include <chrono> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/copy.h> #include <thrust/fill.h> #include <thrust/seq...
df4f3f041c2ab5d2a5c6ef2cc51111ba9f8bb8b4.cu
#include <list> #include <algorithm> #include <iostream> #include <cstdlib> #include <chrono> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/copy.h> #include <thrust/fill.h> #include <thrust/sequence.h> using namespace std; using namespace std::chrono; #define SQUARE_SIDE_SIZE 8...
7fe4b1e3ed99ac1261bb80f9e775bca901aa2d76.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <omp.h> #define threshold 5 //(50% probability) #define block_size 256 __global__ void second_calculation (char* dev_a, char* dev_b, ...
7fe4b1e3ed99ac1261bb80f9e775bca901aa2d76.cu
#include <stdio.h> #include <stdlib.h> #include <omp.h> #define threshold 5 //(50% probability) #define block_size 256 __global__ void second_calculation (char* dev_a, char* dev_b, char* dev_c, int matrix_size,...
57eb5fe31ecb0e7fa24e37d24f8848362b36f85f.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <hip/hip_runtime.h> // allocate memory on gpu extern "C++" void cu_safe_falloc(float **g_f, size_t n_elem) { void *gptr; hipError_t crc = hipMalloc(&gptr, n_elem*sizeof(float)); if(crc) { prin...
57eb5fe31ecb0e7fa24e37d24f8848362b36f85f.cu
#include <stdlib.h> #include <stdio.h> #include <cuda.h> // allocate memory on gpu extern "C++" void cu_safe_falloc(float **g_f, size_t n_elem) { void *gptr; cudaError_t crc = cudaMalloc(&gptr, n_elem*sizeof(float)); if(crc) { printf("cudaMalloc Error=%d:%s\n", crc, cudaGetErrorString(crc)); ...
15398cf771403cb248290761cd0908b0dfec0c0e.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> using namespace std; #include <Task.hpp> #include <GridData.hpp> #include <CudaDirectSolver.hpp> #include <ReverseSolver.hpp> #include <SLESolver.hpp> #include <rocblas.h> #include <Matrix.hpp> #include <FinalSolver.hpp> void TaskOn1000() {...
15398cf771403cb248290761cd0908b0dfec0c0e.cu
#include <iostream> using namespace std; #include <Task.hpp> #include <GridData.hpp> #include <CudaDirectSolver.hpp> #include <ReverseSolver.hpp> #include <SLESolver.hpp> #include <cublas.h> #include <Matrix.hpp> #include <FinalSolver.hpp> void TaskOn1000() { GridData layer1(string("D:\\Workspace\\Science\\grids\\ma...
7d41a7177dc9cf6bc1e3972f11e7008addd89505.hip
// !!! This is a file automatically generated by hipify!!! /* * 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/li...
7d41a7177dc9cf6bc1e3972f11e7008addd89505.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 ...
f9fc312425a32163b66ed965273183b448138706.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <vector> #include <string> #include <thrust/device_vector.h> #include <cupti_profiler.h> template<typename T> __global__ void kernel(T begin, int size) { const int thread_id = blockIdx.x * blockDim.x +...
f9fc312425a32163b66ed965273183b448138706.cu
#include <cstdio> #include <vector> #include <string> #include <thrust/device_vector.h> #include <cupti_profiler.h> template<typename T> __global__ void kernel(T begin, int size) { const int thread_id = blockIdx.x * blockDim.x + threadIdx.x; if(thread_id < size) *(begin + thread_id) += 1; } template<typename...
353ea7d035550a02d192a81f0a72c745b89daa28.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with th...
353ea7d035550a02d192a81f0a72c745b89daa28.cu
/** * Copyright (c) 2019-2021 ETH Zurich, Automatic Control Lab, * Michel Schubiger, Goran Banjac. * * 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/...
b44b3344bb63f6ef6831bd3ae44e3990bbe39212.hip
// !!! This is a file automatically generated by hipify!!! // aux.cu // Implementation file for the matrix-free product between a Jacobian matrix // and a vector #include <lmnslsqr/aux.h> #include <hip/hip_runtime.h> #include <rocblas.h> #include <stdio.h> #include <lmnslsqr/kernel.h> #include <lmnslsqr/error.h> stat...
b44b3344bb63f6ef6831bd3ae44e3990bbe39212.cu
// aux.cu // Implementation file for the matrix-free product between a Jacobian matrix // and a vector #include <lmnslsqr/aux.h> #include <cuda_runtime.h> #include <cublas_v2.h> #include <stdio.h> #include <lmnslsqr/kernel.h> #include <lmnslsqr/error.h> static double *dev_xp=NULL, *dev_xm=NULL, *dev_fp=NULL, *dev_fm=...
0f24d9334a83b44fdf2114a1bccf3458f3768999.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> __global__ void helloKernel () { printf ("Hello from the GPU!\n"); } int main () { printf ("Hello from the CPU\n"); hipLaunchKernelGGL(( helloKernel) , dim3(1), dim3(1) , 0, 0, ); hipDeviceSynchronize (...
0f24d9334a83b44fdf2114a1bccf3458f3768999.cu
#include <stdio.h> #include <cuda.h> __global__ void helloKernel () { printf ("Hello from the GPU!\n"); } int main () { printf ("Hello from the CPU\n"); helloKernel <<< 1, 1 >>> (); cudaDeviceSynchronize (); return 0; }
a81b1417900b40621dffadbb5e42dc08e3c4b461.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include"./config.cuh" #include<iostream> using namespace std; void __global__ test(int* outdata) { int idx = threadIdx.x; outdata[idx] = __shfl_xor(idx, 2); } int main() { MODEL_(one_arg) model{32,1};// one wrap int *out,an...
a81b1417900b40621dffadbb5e42dc08e3c4b461.cu
#include"./config.cuh" #include<iostream> using namespace std; void __global__ test(int* outdata) { int idx = threadIdx.x; outdata[idx] = __shfl_xor(idx, 2); } int main() { MODEL_(one_arg) model{32,1};// one wrap int *out,ans[32]; model(test,&out, 32); cudaMemcpy(ans, out,sizeof(int)*32, cudaMemcpyDeviceToH...
2c9a259157c464043dac328163670495520d0c15.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 <stdint.h> #include <string.h> #include <iostream> #include <ctype.h> #include <hip/hip_runtime.h> #include <math.h> #define CEIL(a,b) ((a+b-1)/...
2c9a259157c464043dac328163670495520d0c15.cu
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <iostream> #include <ctype.h> #include <cuda.h> #include <math.h> #define CEIL(a,b) ((a+b-1)/b) #define SWAP(a,b,t) t=b; b=a; a=t; #define DATAMB(bytes) (bytes/102...
43ffc2762bad9883dd1a2143c114e63d2ae9aed8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifica...
43ffc2762bad9883dd1a2143c114e63d2ae9aed8.cu
/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provided, and to which copyright is held, by various Contributor...
3f5d80f11162771b9bca9276d3203992a84a9ddc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_kernels.hpp" __global__ void restore_kernel(uchar* ret, const float* Yst, const float* mask, const uchar* Xt, const float* trans, const int H, const int W, const int h, const int w) { int tid = th...
3f5d80f11162771b9bca9276d3203992a84a9ddc.cu
#include "cuda_kernels.hpp" __global__ void restore_kernel(uchar* ret, const float* Yst, const float* mask, const uchar* Xt, const float* trans, const int H, const int W, const int h, const int w) { int tid = threadIdx.x + blockIdx.x*blockDim.x; int offset = blockDim.x * gridDim.x; while (t...
ac2e03d4518ad6c1cc5ce0ae141acafdd8e419a1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ static void update_e(int objs,double* e,double* kval,double b_old,double b_new,int i,int j,int yi,int yj,double ai_old,double ai_new,double aj_old,double aj_new){ int id=blockDim.x * blockIdx.x + thr...
ac2e03d4518ad6c1cc5ce0ae141acafdd8e419a1.cu
#include "includes.h" __global__ static void update_e(int objs,double* e,double* kval,double b_old,double b_new,int i,int j,int yi,int yj,double ai_old,double ai_new,double aj_old,double aj_new){ int id=blockDim.x * blockIdx.x + threadIdx.x; if (id<objs){ double val=e[id]; val+=(b_new-b_old); double ti=yi*kval[i*objs+i...
6f275f6c0da44f99a1a398cd48e418f986ec5adb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <iostream> #include <fstream> #include <time.h> #include <thrust/device_vector.h> #include <math.h> #define BLOCK_SIZE 16 #define TILE_DIM 16 __global__ void MV(i...
6f275f6c0da44f99a1a398cd48e418f986ec5adb.cu
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <iostream> #include <fstream> #include <time.h> #include <thrust/device_vector.h> #include <math.h> #define BLOCK_SIZE 16 #define TILE_DIM 16 __global__ void MV(int* A, int* B, int* C, int ARows, int ACols, int BRows, int BCols, int CRows, int CC...
f3112a404286f7f494cafb48838897c252ee888f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define __CUDA #include <cstdio> // #include <iostream> //#include <cutil.h> #include <helper_cuda.h> /* #include <helper_cuda_drvapi.h> #include <helper_cuda_gl.h> #include <helper_functions.h> #include <helper_image.h> #include ...
f3112a404286f7f494cafb48838897c252ee888f.cu
#define __CUDA #include <cstdio> // #include <iostream> //#include <cutil.h> #include <helper_cuda.h> /* #include <helper_cuda_drvapi.h> #include <helper_cuda_gl.h> #include <helper_functions.h> #include <helper_image.h> #include <helper_math.h> #include <helper_string.h> #include <helper_timer.h> */ #include "hermi...
2245e5ece8b60b28bcab5b344d9cac90e77407df.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.3.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver November 2012 @generated c Wed Nov 14 22:53:47 2012 */ #include "common_ma...
2245e5ece8b60b28bcab5b344d9cac90e77407df.cu
/* -- MAGMA (version 1.3.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver November 2012 @generated c Wed Nov 14 22:53:47 2012 */ #include "common_magma.h" // 512 is maximum number of threads for CUDA capability 1.x #define BLOCK_SIZE 5...
615dd544bfb39dae530cd504e8697b9e0be89868.hip
// !!! This is a file automatically generated by hipify!!! #include "thrust\host_vector.h" #include "thrust\device_vector.h" #include <thrust/count.h> #include <thrust/reduce.h> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "hip/hip_runtime.h" #include <time.h> #include <stdio.h> #i...
615dd544bfb39dae530cd504e8697b9e0be89868.cu
#include "thrust\host_vector.h" #include "thrust\device_vector.h" #include <thrust/count.h> #include <thrust/reduce.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "cuda_runtime.h" #include <time.h> #include <stdio.h> #include <fstream> #include <iostream> #include <algorithm> using ...
c7cb14c49186f2506cd4cc3360c897e310eb65b9.hip
// !!! This is a file automatically generated by hipify!!! /* * * pageableMemcpyHtoDSynchronous.cu * * Microdemo that illustrates how necessary CPU/GPU concurrency * is for a good-performance pageable memcpy. Identical to * pageableMemcpyHtoD.cu except the event synchronize is in a * place that breaks concurren...
c7cb14c49186f2506cd4cc3360c897e310eb65b9.cu
/* * * pageableMemcpyHtoDSynchronous.cu * * Microdemo that illustrates how necessary CPU/GPU concurrency * is for a good-performance pageable memcpy. Identical to * pageableMemcpyHtoD.cu except the event synchronize is in a * place that breaks concurrency between the CPU and GPU. * * A pair of pinned staging ...
54ca0c811c384820860ca232f6ac426b87058b51.hip
// !!! This is a file automatically generated by hipify!!! #include "grid.h" #include "solver_cuda.h" #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> static void fail(char const *message); __global__ void red_black_ordering(float *d_grid, int grid_row, int value, float *d_diff1); void Solver_cuda::simulate_...
54ca0c811c384820860ca232f6ac426b87058b51.cu
#include "grid.h" #include "solver_cuda.h" #include <cuda.h> #include <cuda_runtime.h> static void fail(char const *message); __global__ void red_black_ordering(float *d_grid, int grid_row, int value, float *d_diff1); void Solver_cuda::simulate_eqn_solver(){ int done = 0; float diff = 0.0; struct timeval start_tim...
45ad2e49f9e9160ef7e989030db5cb2c8610cacc.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/lice...
45ad2e49f9e9160ef7e989030db5cb2c8610cacc.cu
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
1ae3d5abcbe51c76ef8490d48305136c7f12dea1.hip
// !!! This is a file automatically generated by hipify!!! #if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/in...
1ae3d5abcbe51c76ef8490d48305136c7f12dea1.cu
#if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl" usi...
f450e522e1850d589f4f472d80f5e2fab8a912e8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <Python.h> #include <iostream> #include "theano_mod_helper.h" #include "cuda_ndarray.cuh" ////////////////////// //// Support Code ////////////////////// #define INTDIV_POW2(a, b) (a >> b) #define INTMOD_POW2(a, b) (a & ...
f450e522e1850d589f4f472d80f5e2fab8a912e8.cu
#include <Python.h> #include <iostream> #include "theano_mod_helper.h" #include "cuda_ndarray.cuh" ////////////////////// //// Support Code ////////////////////// #define INTDIV_POW2(a, b) (a >> b) #define INTMOD_POW2(a, b) (a & ((1<<b)-1)) // GpuElemwise{Composite{((i0 + i1) + i2)}}[(0, 0)] // node.op.destr...
41063862d49714755344907c16537f82b6b42f35.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<cuda.h> struct Index{ int block, thread; }; __global__ void prob_idx(Index id[]){ int b_idx = blockIdx.x; int t_idx = threadIdx.x; int b_dim = blockDim.x; ...
41063862d49714755344907c16537f82b6b42f35.cu
#include<stdio.h> #include<cuda.h> struct Index{ int block, thread; }; __global__ void prob_idx(Index id[]){ int b_idx = blockIdx.x; int t_idx = threadIdx.x; int b_dim = blockDim.x; int position = b_idx * b_dim + t_idx; id[positi...
bd566cf48f0975ef0a33721de1b9766fec40d4d5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/pooling_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void MaxPoolForward(const int nthr...
bd566cf48f0975ef0a33721de1b9766fec40d4d5.cu
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/pooling_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void MaxPoolForward(const int nthreads, const Dtype* const bottom_data, const int num, const int channels, const i...
f81a2b47e71fabfab8690d2c40b8b97f4b7d25ca.hip
// !!! This is a file automatically generated by hipify!!! /** * CUDA C/C++ implementation for Accelerating Graph Betweenness Centrality for Sparse Graphs * * @author Ashwin Joisa * @author Praveen Gupta **/ //=============================================================================================// // Inc...
f81a2b47e71fabfab8690d2c40b8b97f4b7d25ca.cu
/** * CUDA C/C++ implementation for Accelerating Graph Betweenness Centrality for Sparse Graphs * * @author Ashwin Joisa * @author Praveen Gupta **/ //=============================================================================================// // Include header files #include <iostream> #include <cuda.h> //...
1c9ad39bbdeb6fae3a0206a5a7af2fd42cf62638.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <string.h> #include <chrono> #include <type_traits> #include <hip/hip_runtime.h> #include <thrust/tuple.h> #include "utils.h" template <typename T> __global__ void RowwiseMomentsKernel( int64_t N, T eps, ...
1c9ad39bbdeb6fae3a0206a5a7af2fd42cf62638.cu
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <chrono> #include <type_traits> #include <cuda.h> #include <thrust/tuple.h> #include "utils.h" template <typename T> __global__ void RowwiseMomentsKernel( int64_t N, T eps, const T* X, T* mean, T* rstd) { using T_ACC = T; usin...
ca185f1990f6096d879c95ae9baaefa32035e361.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Homework 1 // Color to Greyscale Conversion //A common way to represent color images is known as RGBA - the color is //specified by how much Red, Grean and Blue is in it. The 'A' stands for Alpha //and is used for transparency,...
ca185f1990f6096d879c95ae9baaefa32035e361.cu
// Homework 1 // Color to Greyscale Conversion //A common way to represent color images is known as RGBA - the color is //specified by how much Red, Grean and Blue is in it. The 'A' stands for Alpha //and is used for transparency, it will be ignored in this homework. //Each channel Red, Blue, Green and Alpha is repr...
a14b5fd7da94ba8ba2c2f21b07367a7840a820b3.hip
// !!! This is a file automatically generated by hipify!!! // Copyright 2019,2020,2021 Sony Corporation. // Copyright 2021 Sony Group 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 Lic...
a14b5fd7da94ba8ba2c2f21b07367a7840a820b3.cu
// Copyright 2019,2020,2021 Sony Corporation. // Copyright 2021 Sony Group 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....
8749e8768ed0661da0120506d4a04d803d538e38.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic 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 ...
8749e8768ed0661da0120506d4a04d803d538e38.cu
/* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic 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 singl...
0951d23c5b1ecec14b7b8d3988f2ad2b7800913a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "clustertree.h" #ifndef __linux__ #include <iso646.h> #include <helpers/ImageDisplay.h> #endif #include <thrust/reduce.h> #include <thrust/device_ptr.h> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #inc...
0951d23c5b1ecec14b7b8d3988f2ad2b7800913a.cu
#include "clustertree.h" #ifndef __linux__ #include <iso646.h> #include <helpers/ImageDisplay.h> #endif #include <thrust/reduce.h> #include <thrust/device_ptr.h> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/copy.h> #include <algorithm> #ifdef _DEBUG ImageDisplay::ImageDisplay Disp...