hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
add2d1ba2845d15ca3d6cdbcf7ac080bbfa2c027.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "sort.h" __global__ void gpu_build_pred(unsigned int* const d_out, unsigned int* const d_in, const size_t numElems, unsigned int bit_mask, unsigned int zero_or_one) { unsigned int glbl_t_idx = blockDim.x * blockIdx.x ...
add2d1ba2845d15ca3d6cdbcf7ac080bbfa2c027.cu
#include "sort.h" __global__ void gpu_build_pred(unsigned int* const d_out, unsigned int* const d_in, const size_t numElems, unsigned int bit_mask, unsigned int zero_or_one) { unsigned int glbl_t_idx = blockDim.x * blockIdx.x + threadIdx.x; if (glbl_t_idx >= numElems) return; unsigned int curr_elem = d_in[...
5a63ab4715618d6d0c4103ac79ed18d4a05ba0fb.hip
// !!! This is a file automatically generated by hipify!!! /* Francisco Rodriguez Jimenez cazz@correo.ugr.es nvcc - The NVIDIA CUDA Compiler cuobjdump - The NVIDIA CUDA Object Utility nvdisasm - The NVIDIA CUDA disassembler nvprune - The NVIDIA CUDA Prune Tool nsight - NVIDIA NSight, Eclipse Edition nvvp - The NVIDIA C...
5a63ab4715618d6d0c4103ac79ed18d4a05ba0fb.cu
/* Francisco Rodriguez Jimenez cazz@correo.ugr.es nvcc - The NVIDIA CUDA Compiler cuobjdump - The NVIDIA CUDA Object Utility nvdisasm - The NVIDIA CUDA disassembler nvprune - The NVIDIA CUDA Prune Tool nsight - NVIDIA NSight, Eclipse Edition nvvp - The NVIDIA CUDA Visual Profiler nvprof - The NVIDIA CUDA Command-Line P...
db7da2d0fb39f4c0871c1b96f621c138f2e2c46d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Winter Semester 2015/2016, March 15 - April 15 // ### // ### #include "helper...
db7da2d0fb39f4c0871c1b96f621c138f2e2c46d.cu
// ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Winter Semester 2015/2016, March 15 - April 15 // ### // ### #include "helper.h" #include <iostream> #include <stdio.h> using namespace std; // uncomment to use the...
ac64d69d7ec859474f7d00bc436066210b30cfa4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "himenocuda.cuh" #include <iostream> #include <stdint.h> #include <stdio.h> #include <unistd.h> #include <sys/time.h> //#define _DEBUG using namespace std; void CHECK_CUDAERR(int line, hipError_t ce) { if (ce != hip...
ac64d69d7ec859474f7d00bc436066210b30cfa4.cu
#include "himenocuda.cuh" #include <iostream> #include <stdint.h> #include <stdio.h> #include <unistd.h> #include <sys/time.h> //#define _DEBUG using namespace std; void CHECK_CUDAERR(int line, cudaError_t ce) { if (ce != cudaSuccess){ cout << "Error: line " << line << " "<< cudaGetErrorString(ce) << en...
d4adda14681efa76839697761061015f1c947541.hip
// !!! This is a file automatically generated by hipify!!! extern "C" { #include "completion.h" #include "base.h" #include "ciss.h" #include <stdio.h> #include <sys/time.h> #include <stdlib.h> #include <time.h> #include <stdint.h> } #include "als.cuh" #include "loss.cuh" #include <hip/hip_runtime.h> #include <hip/hip_...
d4adda14681efa76839697761061015f1c947541.cu
extern "C" { #include "completion.h" #include "base.h" #include "ciss.h" #include <stdio.h> #include <sys/time.h> #include <stdlib.h> #include <time.h> #include <stdint.h> } #include "als.cuh" #include "loss.cuh" #include <cuda.h> #include <cuda_runtime.h> #include <cublas_v2.h> #include <cusparse_v2.h> #include <cuso...
4a00431b07d36df2bb86f22ecccaea715cc932e4.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 "hello_kernel.cu" #include<chrono> #include<iostream> using names...
4a00431b07d36df2bb86f22ecccaea715cc932e4.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 "hello_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,...
3209e1fc49c07c456605edba47f4891429c7f396.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from zpotf2.cu normal z -> d, Fri Jan ...
3209e1fc49c07c456605edba47f4891429c7f396.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from zpotf2.cu normal z -> d, Fri Jan 30 19:00:10 2015 */ #include "common_magma.h" #define PRECISION_d //#if (GPUSHMEM < 20...
4e2e441d9dba4009789921ee4749ed32acf5d709.hip
// !!! This is a file automatically generated by hipify!!! // 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...
4e2e441d9dba4009789921ee4749ed32acf5d709.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...
a985cc0782c6328b8c9a67565ce28c9341ba353b.hip
// !!! This is a file automatically generated by hipify!!! #include <torch/extension.h> #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <vector> #include "macros.h" #include "cuda_utils.h" #include "pscan.h" #include "helper_math.h" static i...
a985cc0782c6328b8c9a67565ce28c9341ba353b.cu
#include <torch/extension.h> #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <cuda.h> #include <cuda_runtime.h> #include <vector> #include "macros.h" #include "cuda_utils.h" #include "pscan.h" #include "helper_math.h" static int edgeTable[256] = { 0x0 , 0x109, 0x203, 0x30a, 0x406, 0x50f, 0x6...
cd7daa02d0826ba6dfd10545e3fc4950bfc6f60a.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 sparse/blas/zgesellcmv.cu, normal z -> c, M...
cd7daa02d0826ba6dfd10545e3fc4950bfc6f60a.cu
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from sparse/blas/zgesellcmv.cu, normal z -> c, Mon Jun 25 18:24:24 2018 */ #include "magmasparse_internal.h" #define BLOCK_SIZE 512 ...
0f7980187dd70e1dd9f523d5bb89e361ac7be578.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void PictureKernell(unsigned char *imageInput, int width, int height, unsigned char *imageOutput){ int row = blockIdx.y*blockDim.y+threadIdx.y; int col = blockIdx.x*blockDim.x+threadIdx.x; if((row <...
0f7980187dd70e1dd9f523d5bb89e361ac7be578.cu
#include "includes.h" __global__ void PictureKernell(unsigned char *imageInput, int width, int height, unsigned char *imageOutput){ int row = blockIdx.y*blockDim.y+threadIdx.y; int col = blockIdx.x*blockDim.x+threadIdx.x; if((row < height) && (col < width)){ imageOutput[row*width+col] = imageInput[(row*width+col)*3+RE...
dd3982fd9002def644a305b3c3436069da9f10dd.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 "histogram_kernel.cu" #include<chrono> #include<iostream> using n...
dd3982fd9002def644a305b3c3436069da9f10dd.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 "histogram_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},...
c57c87d76756a6338532f092d62bb2763719bc56.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include "hip/hip_runtime.h" __global__ void GPUFunction() { printf("hello from the Gpu.\n"); } int main() { hipLaunchKernelGGL(( GPUFunction), dim3(1), dim3(1), 0, 0, ); hipDeviceSynchronize(); return EXIT_SUCCESS; }
c57c87d76756a6338532f092d62bb2763719bc56.cu
#include <cstdio> #include "cuda.h" __global__ void GPUFunction() { printf("hello from the Gpu.\n"); } int main() { GPUFunction<<<1, 1>>>(); cudaDeviceSynchronize(); return EXIT_SUCCESS; }
efae5bdd05de1a4c3efbe0421ef2e3b8b3a8a2b9.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...
efae5bdd05de1a4c3efbe0421ef2e3b8b3a8a2b9.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 ...
bfdcb257c434bc9e2388a84c8424424084858a5c.hip
// !!! This is a file automatically generated by hipify!!! // System includes #include <stdio.h> #include <assert.h> // CUDA runtime #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> __global__ void vectorAddGPU(float *a, float *b, float *c, int N) { int idx = blockIdx.x*blockDim.x + threadIdx.x; if ...
bfdcb257c434bc9e2388a84c8424424084858a5c.cu
// System includes #include <stdio.h> #include <assert.h> // CUDA runtime #include <cuda.h> #include <cuda_runtime.h> __global__ void vectorAddGPU(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]; } } void unified_sampl...
36e2ee34b80085d7c247b6026f5c75f1ee66e250.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <cstdint> #include <cstdlib> #include "../utils/SyncedMemory.h" #include "lab2.h" using namespace std; #define CHECK {\ auto e = hipDeviceSynchronize();\ if (e != hipSuccess) {\ printf("At " __FILE__ ":%d, %s\n", __LINE__, hipGet...
36e2ee34b80085d7c247b6026f5c75f1ee66e250.cu
#include <cstdio> #include <cstdint> #include <cstdlib> #include "../utils/SyncedMemory.h" #include "lab2.h" using namespace std; #define CHECK {\ auto e = cudaDeviceSynchronize();\ if (e != cudaSuccess) {\ printf("At " __FILE__ ":%d, %s\n", __LINE__, cudaGetErrorString(e));\ abort();\ }\ } int main(int argc, ...
f27d5e25825b9511f96de187cb82ad163cce5fce.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, ...
f27d5e25825b9511f96de187cb82ad163cce5fce.cu
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
0a55aef5a2af8702965b66a9860d09d9f0b2468b.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 "CalculateDistanceAllPoints.cu" #include<chrono> #include<iostrea...
0a55aef5a2af8702965b66a9860d09d9f0b2468b.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 "CalculateDistanceAllPoints.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8...
133e545cccb3b8c209dea47ea829ba0522e148f5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <algorithm> #include <iostream> #include <ctime> #include "sort.h" #include "utils.h" #ifndef ELAPSED_TIME #define ELAPSED_TIME 0 #endif #ifndef NUM_STREAMS #defi...
133e545cccb3b8c209dea47ea829ba0522e148f5.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <algorithm> #include <iostream> #include <ctime> #include "sort.h" #include "utils.h" #ifndef ELAPSED_TIME #define ELAPSED_TIME 0 #endif #ifndef NUM_STREAMS #define NUM_STREAMS 1 #endif void cudaTest(cudaError_t error) { i...
3edaeaa6269317c30c60c66a6a0cfb15416861f3.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, ...
3edaeaa6269317c30c60c66a6a0cfb15416861f3.cu
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
0c9ae23e8c365ccd268324b2c8505576036ac3b8.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 "incSumScan_kernel.cu" #include<chrono> #include<iostream> using ...
0c9ae23e8c365ccd268324b2c8505576036ac3b8.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 "incSumScan_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16}...
cc27b1e8a106e51aa792a26325d0d7f3ced48efe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // CS3700 Example matrix multpilcation using GPU #include <stdio.h> #include <math.h> #include <sys/time.h> #define TILE_WIDTH 2 #define WIDTH 6 // Kernel function execute by the device (GPU) __global__ void product (float *d_a, ...
cc27b1e8a106e51aa792a26325d0d7f3ced48efe.cu
// CS3700 Example matrix multpilcation using GPU #include <stdio.h> #include <math.h> #include <sys/time.h> #define TILE_WIDTH 2 #define WIDTH 6 // Kernel function execute by the device (GPU) __global__ void product (float *d_a, float *d_b, float *d_c, const int n) { int col = blockIdx.x * blockDim.x + threadIdx....
26a0f9a6b3ef7c87c5769e83dc62c7e045c0ac08.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 * *...
26a0f9a6b3ef7c87c5769e83dc62c7e045c0ac08.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 ...
248e0b0b27edb61b746b4545a0a320e2ed1721c9.hip
// !!! This is a file automatically generated by hipify!!! // clang-format off /************************************************************************************\ * * * Copyright 2014 Advanced Micro Devices, Inc. ...
248e0b0b27edb61b746b4545a0a320e2ed1721c9.cu
// clang-format off /************************************************************************************\ * * * Copyright � 2014 Advanced Micro Devices, Inc. * * Copyright (c) 2015 Mark D. Hill and D...
7e5338ccbb744fe05a82ef823a4383bc2c934d0e.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <stdio.h> #include "./my_cuda_header.h" #define BLOCKSIZE 16 //Kernel that performs Matrix Vector Multiplication __global__ void MatrixVectorMultiplication(double *matrixA, ...
7e5338ccbb744fe05a82ef823a4383bc2c934d0e.cu
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #include "./my_cuda_header.h" #define BLOCKSIZE 16 //Kernel that performs Matrix Vector Multiplication __global__ void MatrixVectorMultiplication(double *matrixA, double *matrixB, ...
9b47b01a3b781e46ea57f049e5190ced725fb72e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/ceil_div.h> #include <ATen/Dispatch.h> #include <ATen/hip/HIPContext.h> #include <ATen/native/BucketizationUtils.h> #include <ATen/native/Resize.h> namespace at { namespace native { // Impleme...
9b47b01a3b781e46ea57f049e5190ced725fb72e.cu
#include <ATen/ATen.h> #include <ATen/ceil_div.h> #include <ATen/Dispatch.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/native/BucketizationUtils.h> #include <ATen/native/Resize.h> namespace at { namespace native { // Implement a numpy like searchsorted and a TF like bucketize function running on cuda // See d...
2b035101c4d746eab0d6cbbee9b9a626fd33d352.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> // Matrices are stored in row-major order: // M(row, col) = *(M.elements + row * M.width + col) typedef struct { int width; int height; float* elements; } Matrix; // Thread block size #define BLOCK_S...
2b035101c4d746eab0d6cbbee9b9a626fd33d352.cu
#include <stdio.h> // Matrices are stored in row-major order: // M(row, col) = *(M.elements + row * M.width + col) typedef struct { int width; int height; float* elements; } Matrix; // Thread block size #define BLOCK_SIZE 16 #define MATRIX_SIZE 1024 // Forward declaration of the matrix multiplication ker...
2164a269a7e1c881c8b43143fc80c8beb5d235ed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> // Variables float* h_A; // host vectors float* h_C; float* d_A; // device vectors float* d_C; // Functions void RandomInit(float*, int); __global__ void FindMax(const float*, float*, int...
2164a269a7e1c881c8b43143fc80c8beb5d235ed.cu
#include <stdio.h> #include <stdlib.h> // Variables float* h_A; // host vectors float* h_C; float* d_A; // device vectors float* d_C; // Functions void RandomInit(float*, int); __global__ void FindMax(const float*, float*, int); // Host Code int main(){ // Settings // gid -> GPU device id (0, 1, ......
c1cd406dc1b9b96fbc88807b4502b2b95987acdc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Solving the 2D acoustic wave equation using explicit finite * difference method * Copyright 2018 Chaiwoot Boonyasiriwat. All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> //Ker...
c1cd406dc1b9b96fbc88807b4502b2b95987acdc.cu
/* Solving the 2D acoustic wave equation using explicit finite * difference method * Copyright 2018 Chaiwoot Boonyasiriwat. All rights reserved. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> //Kernel __global__ void Wcalculate(float *u0,float *u1,float *u2,float C2,int nx,int ny){ ...
cc2e6c4df01dc778839fcfa8878f9fbaf1a2b4bd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void mapping(double *point_cloud, const double *img1, const double *img2, const double *img3, const double *img4, const double *T, const double *P1, const double *P2, const double *P3, const double *P4, const double ...
cc2e6c4df01dc778839fcfa8878f9fbaf1a2b4bd.cu
__global__ void mapping(double *point_cloud, const double *img1, const double *img2, const double *img3, const double *img4, const double *T, const double *P1, const double *P2, const double *P3, const double *P4, const double *ratiox, const double *ratioy, const double *ratioz, const int *img_width, const int *im...
43131419c1624cfcbbc84a2ecf748cd0a196bd33.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <string> #include <device_launch_parameters.h> #include "caffe/util/gpu_math_functions.cuh" #include "caffe/util/math_functions.hpp" namespace caffe { template<typename Gtype, typename Wtype> __global__ void SGDRegUpdate...
43131419c1624cfcbbc84a2ecf748cd0a196bd33.cu
#include <string> #include <device_launch_parameters.h> #include "caffe/util/gpu_math_functions.cuh" #include "caffe/util/math_functions.hpp" namespace caffe { template<typename Gtype, typename Wtype> __global__ void SGDRegUpdateAllAndClear(int N, Gtype* g, Wtype* w, Wtype* h, float momentum, float local_rate,...
d39fb7d401ca03ceeb1f2f4fe7a2fc76c33726a2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.h" /** * @brief sample from a uniform distribution */ float nn::generateUniformRandom(float range) { return range - float(rand()) / float(RAND_MAX); } // void nn::apply_grad(float* param, float* grad, float...
d39fb7d401ca03ceeb1f2f4fe7a2fc76c33726a2.cu
#include "common.h" /** * @brief sample from a uniform distribution */ float nn::generateUniformRandom(float range) { return range - float(rand()) / float(RAND_MAX); } // void nn::apply_grad(float* param, float* grad, float lr, int param_fdim, cublasHandle_t handle) // { // float nlr = -lr; // cublasS...
be27877ac6a9cbd46d54063b86d190c7831e48aa.hip
// !!! This is a file automatically generated by hipify!!! #include <kernels/gpu/cast.h> #include <core/tensor_builder.h> #include <global/operator_factory.h> #include "global/fp16_operator_factory.h" #include <backend/name.h> #include <utils/assert.h> #include <core/device.h> #include "device_launch_parameters.h" #in...
be27877ac6a9cbd46d54063b86d190c7831e48aa.cu
#include <kernels/gpu/cast.h> #include <core/tensor_builder.h> #include <global/operator_factory.h> #include "global/fp16_operator_factory.h" #include <backend/name.h> #include <utils/assert.h> #include <core/device.h> #include "device_launch_parameters.h" #include <cuda_runtime.h> #include <cuda_fp16.h> #include "ke...
9a5c275b72da12888a1204a7553563ad6601094a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <clover_field_order.h> #include <tune_quda.h> namespace quda { #ifdef GPU_CLOVER_DIRAC /** Kernel argument struct */ template <typename Out, typename In> struct CopyCloverArg { Out out; const In in...
9a5c275b72da12888a1204a7553563ad6601094a.cu
#include <clover_field_order.h> #include <tune_quda.h> namespace quda { #ifdef GPU_CLOVER_DIRAC /** Kernel argument struct */ template <typename Out, typename In> struct CopyCloverArg { Out out; const In in; int volumeCB; CopyCloverArg (const Out &out, const In in, int volume) : out(ou...
c5cc02bf915eb4b1728e73fc1b3d46c7ffee9624.hip
// !!! This is a file automatically generated by hipify!!! #include "list.h" #include "cuda_utils.h" #include <assert.h> #include <stdio.h> list **lists_create(int lists, int capacity) { list **lists_cpu = (list**)malloc(lists * sizeof(list*)); list **lists_gpu = NULL; for (int i = 0; i < lists; i++) { lists_cpu[...
c5cc02bf915eb4b1728e73fc1b3d46c7ffee9624.cu
#include "list.h" #include "cuda_utils.h" #include <assert.h> #include <stdio.h> list **lists_create(int lists, int capacity) { list **lists_cpu = (list**)malloc(lists * sizeof(list*)); list **lists_gpu = NULL; for (int i = 0; i < lists; i++) { lists_cpu[i] = list_create(capacity); } HANDLE_RESULT(cudaMalloc(&l...
0ce8e9db55baa7929c02243726d5da00f30e5477.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include "./cpu-config.h" #include "./cuda-config.cuh" using namespace std; //#define GRIDSIZE 2 //#define BLOCKSIZE 1024 //#define TOTALSIZE (BLOCKSIZE*GRIDSIZE) // //const unsigned TargetSize = 2 * BLOCKSIZE; int main(void) { unsigned*...
0ce8e9db55baa7929c02243726d5da00f30e5477.cu
#include <iostream> #include "./cpu-config.h" #include "./cuda-config.cuh" using namespace std; //#define GRIDSIZE 2 //#define BLOCKSIZE 1024 //#define TOTALSIZE (BLOCKSIZE*GRIDSIZE) // //const unsigned TargetSize = 2 * BLOCKSIZE; int main(void) { unsigned* pData; long long start, end, freq; pData = (unsigned*)ma...
21ab0c1b2185bad766e2c6b94084c21262249e1d.hip
// !!! This is a file automatically generated by hipify!!! /* Sushil Dubey, Shashi Dugad, TIFR, July 2017 * * File Name: RawToClusterGPU.cu * Description: It converts Raw data into Digi Format on GPU * Finaly the Output of RawToDigi data is given to pixelClusterizer * **/ // C++ includes #include <cassert> #inclu...
21ab0c1b2185bad766e2c6b94084c21262249e1d.cu
/* Sushil Dubey, Shashi Dugad, TIFR, July 2017 * * File Name: RawToClusterGPU.cu * Description: It converts Raw data into Digi Format on GPU * Finaly the Output of RawToDigi data is given to pixelClusterizer * **/ // C++ includes #include <cassert> #include <chrono> #include <cstdio> #include <cstdlib> #include <...
c3f6041767c9ac481f3e76cd88e7f310f0a6bcb1.hip
// !!! This is a file automatically generated by hipify!!! #include "caffe/layers/ctc_loss_layer.hpp" namespace std{ template <class InputIterator, class T> T accumulate(InputIterator first, InputIterator last, T init) { while (first != last) { init = init + *first; // or: init=binary_op(init,*first) for the...
c3f6041767c9ac481f3e76cd88e7f310f0a6bcb1.cu
#include "caffe/layers/ctc_loss_layer.hpp" namespace std{ template <class InputIterator, class T> T accumulate(InputIterator first, InputIterator last, T init) { while (first != last) { init = init + *first; // or: init=binary_op(init,*first) for the binary_op version ++first; } return init; } } n...
e9d67d31b52b21264fdd60a8c8db8fac75dc628a.hip
// !!! This is a file automatically generated by hipify!!! /* * Software License Agreement (BSD License) * Copyright (c) 2013, Georgia Institute of Technology * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
e9d67d31b52b21264fdd60a8c8db8fac75dc628a.cu
/* * Software License Agreement (BSD License) * Copyright (c) 2013, Georgia Institute of Technology * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retai...
fbd17eabbf969df9bef7aab69317b9c1895056c9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void add(int* in, int d, int n){ int gid = threadIdx.x + blockIdx.x * blockDim.x; if(gid >= n) return ; int pre = (d==0) ? 1 : (2<<(d-1)); if(gid >= pre) { in[gid] += in[gid-pre]; } }
fbd17eabbf969df9bef7aab69317b9c1895056c9.cu
#include "includes.h" __global__ void add(int* in, int d, int n){ int gid = threadIdx.x + blockIdx.x * blockDim.x; if(gid >= n) return ; int pre = (d==0) ? 1 : (2<<(d-1)); if(gid >= pre) { in[gid] += in[gid-pre]; } }
903ddb4381a1284dfe5a65f72e30444125e12777.hip
// !!! This is a file automatically generated by hipify!!! /* ================================================================== Programmer: Yicheng Tu (ytu@cse.usf.edu) The basic SDH algorithm implementation for 3D data To compile: nvcc SDH.c -o SDH in the rc machines StevenFaulkner U9616-1844 Summer 2018 ===...
903ddb4381a1284dfe5a65f72e30444125e12777.cu
/* ================================================================== Programmer: Yicheng Tu (ytu@cse.usf.edu) The basic SDH algorithm implementation for 3D data To compile: nvcc SDH.c -o SDH in the rc machines StevenFaulkner U9616-1844 Summer 2018 ==============================================================...
75a5c9b3ca154f34dd2ad597d8ababc8b7b7cdfe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> __global__ void addKernel() { __shared__ int Sum1[10][10]; int Sum[10][10]; if( threadIdx.x ==0 && threadIdx.y ==0){ for(int i=0; i<10; i++){ for(int...
75a5c9b3ca154f34dd2ad597d8ababc8b7b7cdfe.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> __global__ void addKernel() { __shared__ int Sum1[10][10]; int Sum[10][10]; if( threadIdx.x ==0 && threadIdx.y ==0){ for(int i=0; i<10; i++){ for(int j=0; j<10; j++){ Sum1[i][j] = 0; } } } __syn...
33d08e13ebc66d8be1bbffe625d855262029c910.hip
// !!! This is a file automatically generated by hipify!!! // Variable num_cores denotes the number of threads to run the code on. #include <stdio.h> //#include <omp.h> #include <string.h> #include <math.h> //#include "../common/common.h" #include <hip/hip_runtime.h> /* * compute string value, length should be small...
33d08e13ebc66d8be1bbffe625d855262029c910.cu
// Variable num_cores denotes the number of threads to run the code on. #include <stdio.h> //#include <omp.h> #include <string.h> #include <math.h> //#include "../common/common.h" #include <cuda_runtime.h> /* * compute string value, length should be small than strlen */ int compute_value(char *str, int length, int ...
f8b0c70eb97d9a7e7d820a203310bfdb857de1a2.hip
// !!! This is a file automatically generated by hipify!!! /** * 2mm.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ ...
f8b0c70eb97d9a7e7d820a203310bfdb857de1a2.cu
/** * 2mm.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <stdio.h> #include <stdlib.h> #include <math.h> #i...
a7d8fc13266bf4a7cca062f5d4b0a6d9b0b329dc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2020 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 ...
a7d8fc13266bf4a7cca062f5d4b0a6d9b0b329dc.cu
/* Copyright (c) 2020 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...
b8ddd550f2f3e0a5bcf15d70c2ee33fc0ec27384.hip
// !!! This is a file automatically generated by hipify!!! /*------------------------------------------------------------------------- * * CUDA function for backrpojection using FDK weigts for CBCT * * * CODE by Ander Biguri * Optimized and modified by RB * ---------------------------------------------...
b8ddd550f2f3e0a5bcf15d70c2ee33fc0ec27384.cu
/*------------------------------------------------------------------------- * * CUDA function for backrpojection using FDK weigts for CBCT * * * CODE by Ander Biguri * Optimized and modified by RB * --------------------------------------------------------------------------- * -------------------------...
d9d13319499306f0b9f2c0b0b9f3becd5b03f663.hip
// !!! This is a file automatically generated by hipify!!! //Darrien Park #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define BLOCK_SIZE 16 const size_t w = 200; //kernel functions to be called from the host and execu...
d9d13319499306f0b9f2c0b0b9f3becd5b03f663.cu
//Darrien Park #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define BLOCK_SIZE 16 const size_t w = 200; //kernel functions to be called from the host and executed in the gpu //produces one output matrix element per thread...
7a365aea4c9d3d7b2bfc218f38036897720ab2ab.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * 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 soft...
7a365aea4c9d3d7b2bfc218f38036897720ab2ab.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...
72ebc4a04a29e44474c2752d480ea92690af4001.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <torch/extension.h> #include <ATen/ATen.h> #include "cuda_launch.h" #include "cuda_kernel.h" #include <vector> ////////////////////////////////////////////////////////////////////////////////////////////////// ////////////...
72ebc4a04a29e44474c2752d480ea92690af4001.cu
#include <torch/extension.h> #include <ATen/ATen.h> #include "cuda_launch.h" #include "cuda_kernel.h" #include <vector> ////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////// ...
1c01ea19175e0401c61e63aa5712b668e3f7a55b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.5.0-beta3) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date July 2014 @generated from zailu_chow_csr_s.cu normal z -> s, Fr...
1c01ea19175e0401c61e63aa5712b668e3f7a55b.cu
/* -- MAGMA (version 1.5.0-beta3) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date July 2014 @generated from zailu_chow_csr_s.cu normal z -> s, Fri Jul 18 17:34:28 2014 */ #include "common_magma.h" #include "../include/magmasparse_s...
ad0a0bae634cc5aa2d697a353231f0e2c5e0bd3a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @generated from magmablas/zgeadd.cu, normal z -> d, Tue A...
ad0a0bae634cc5aa2d697a353231f0e2c5e0bd3a.cu
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @generated from magmablas/zgeadd.cu, normal z -> d, Tue Aug 30 09:38:27 2016 @author Mark Gates */ #include "magma_internal.h" #define BL...
a9d503f6772eb4dbb71cd61cb82b5e4f2ae0ac4c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.4.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver December 2013 @generated s Tue Dec 17 13:18:45 2013 */ #include "common_ma...
a9d503f6772eb4dbb71cd61cb82b5e4f2ae0ac4c.cu
/* -- MAGMA (version 1.4.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver December 2013 @generated s Tue Dec 17 13:18:45 2013 */ #include "common_magma.h" #include "commonblas_s.h" #define PRECISION_s /* The version for tesla can be f...
96ad0c33183e3109a2bc21e6746dfadfc9432ea4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //note: please do not modify this file manually! // this file has been generated automatically by BOAST version 0.99996 // by: make boast_kernels /* !===================================================================== !...
96ad0c33183e3109a2bc21e6746dfadfc9432ea4.cu
//note: please do not modify this file manually! // this file has been generated automatically by BOAST version 0.99996 // by: make boast_kernels /* !===================================================================== ! ! S p e c f e m 3 D G l o b e V e r s i o n 7 . 0 ! --------------...
8f8b03c98f2946ee25f0c6d44f54f3304d351de2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void profileSubphaseComputeCoarseA_kernel() {}
8f8b03c98f2946ee25f0c6d44f54f3304d351de2.cu
#include "includes.h" __global__ void profileSubphaseComputeCoarseA_kernel() {}
8a0727e4f22abac4369138583f24629f2e364cb5.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <sys/time.h> #include <omp.h> #include <hip/hip_runtime.h> #define THREADS_PER_DIM 16 #define BLOCKS_PER_DIM 16 #define THREADS_PER_BLOCK THREADS_PER_DI...
8a0727e4f22abac4369138583f24629f2e364cb5.cu
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <assert.h> #include <sys/time.h> #include <omp.h> #include <cuda.h> #define THREADS_PER_DIM 16 #define BLOCKS_PER_DIM 16 #define THREADS_PER_BLOCK THREADS_PER_DIM*THREADS_PER_DIM #include "kmeans_cuda_kernel.cu" //#define BLOCK_...
826f118a08d497689c112d086d4a62f96e2baf97.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from ztrtri_diag.cu normal z -> c, Fri Jan 30...
826f118a08d497689c112d086d4a62f96e2baf97.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from ztrtri_diag.cu normal z -> c, Fri Jan 30 19:00:10 2015 @author Peng Du @author Tingxing Dong @author Mark ...
6ee247dfd80d7ea52a491cc6f0faf0d7f9b1cf6c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<cassert> #include<cstdint> #include<cmath> #include<random> #include<vector> // #define VERIFY #ifdef VERIFY #define COUNT(x) atomicAdd(&counters[x],1); #else __device__ void dummy(int){} #define COUNT(x) dummy(x); #endif...
6ee247dfd80d7ea52a491cc6f0faf0d7f9b1cf6c.cu
#include<cassert> #include<cstdint> #include<cmath> #include<random> #include<vector> // #define VERIFY #ifdef VERIFY #define COUNT(x) atomicAdd(&counters[x],1); #else __device__ void dummy(int){} #define COUNT(x) dummy(x); #endif template<int STRIDE> __global__ void nn(uint32_t * __restrict__ counters, float const ...
a9a2a68d62fd63519916296d1b4f76feacf06f07.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Ag...
a9a2a68d62fd63519916296d1b4f76feacf06f07.cu
/** * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * * License Agreement * For Open Source Computer Vision Library * ...
d79f80870f3099987e6e98fea6b1157149d1b48b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include "caffe/layers/slice_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void Slice(const int nthreads, const Dtype* in_data, const bool forward...
d79f80870f3099987e6e98fea6b1157149d1b48b.cu
#include <vector> #include "caffe/layers/slice_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void Slice(const int nthreads, const Dtype* in_data, const bool forward, const int num_slices, const int slice_size, const int bottom_slice_axis, const int...
f2c428284b78ec316f2902fbe6ccfdec4bea519c.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...
f2c428284b78ec316f2902fbe6ccfdec4bea519c.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 ...
c384685af23e0c8039254dbfbde73afe8788e496.hip
// !!! This is a file automatically generated by hipify!!! #include "gg.h" #include "ggcuda.h" #include "hipcub/hipcub.hpp" #include "hipcub/hipcub.hpp" #include "thread_work.h" void kernel_sizing(CSRGraph &, dim3 &, dim3 &); #define TB_SIZE 256 #include "moderngpu/kernel_reduce.hxx" #include "tc_cuda.cuh" #include "m...
c384685af23e0c8039254dbfbde73afe8788e496.cu
#include "gg.h" #include "ggcuda.h" #include "cub/cub.cuh" #include "cub/util_allocator.cuh" #include "thread_work.h" void kernel_sizing(CSRGraph &, dim3 &, dim3 &); #define TB_SIZE 256 #include "moderngpu/kernel_reduce.hxx" #include "tc_cuda.cuh" #include "moderngpu/kernel_segsort.hxx" #include <cuda_profiler_api.h> ...
fff7798620c5b8a1d3ff4dd9f571edd0dcf93b2c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License,...
fff7798620c5b8a1d3ff4dd9f571edd0dcf93b2c.cu
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
7d506eb7a5c2d2d86f2150a078905693a813ccd0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<assert.h> #include<math.h> #define GET_BLOB_ADDRESS(ptr, offset) (&((ptr)[(offset)/sizeof((ptr)[0])])) #define GET_ARRAY_CAPACITY(ptr) (((long *)(ptr))[0]) #define GET_ARRAY_LENGTH(ptr) (((long *)(ptr))[1]) #de...
7d506eb7a5c2d2d86f2150a078905693a813ccd0.cu
#include<assert.h> #include<math.h> #define GET_BLOB_ADDRESS(ptr, offset) (&((ptr)[(offset)/sizeof((ptr)[0])])) #define GET_ARRAY_CAPACITY(ptr) (((long *)(ptr))[0]) #define GET_ARRAY_LENGTH(ptr) (((long *)(ptr))[1]) #define GET_ARRAY_BODY(ptr) (&((ptr)[128/sizeof((ptr)[0])])) #define SET_ARRAY_CAPACITY...
4705462b4a7aa9adf2267eab8b26bd2241e97376.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <unistd.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define size 21 // Tamanho da matrix // Exibe os pontos na tela __host__ void print(bool** grid){ std::cout << "\n\n\n\n\n"; for(unsigned int i = 1; i < si...
4705462b4a7aa9adf2267eab8b26bd2241e97376.cu
#include <iostream> #include <unistd.h> #include <cuda.h> #include <cuda_runtime.h> #define size 21 // Tamanho da matrix // Exibe os pontos na tela __host__ void print(bool** grid){ std::cout << "\n\n\n\n\n"; for(unsigned int i = 1; i < size-1; i++) { for(unsigned int j = 1; j < size-1; j++) std::cout...
341174a8f934cd3048ecb7e14fcdd242022a86b0.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...
341174a8f934cd3048ecb7e14fcdd242022a86b0.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 may...
69a8c332cc932fe077413559392f4cfe1951036d.hip
// !!! This is a file automatically generated by hipify!!! #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THH/generic/THHTensorCopy.hip" #else void THCTensor_(copy)(THCState* state, THCTensor* dst, THCTensor* src) { if (dst == src) return; at::Tensor dst_wrap = THTensor_wrap(dst); at::Tensor src_wrap = THTen...
69a8c332cc932fe077413559392f4cfe1951036d.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THC/generic/THCTensorCopy.cu" #else void THCTensor_(copy)(THCState* state, THCTensor* dst, THCTensor* src) { if (dst == src) return; at::Tensor dst_wrap = THTensor_wrap(dst); at::Tensor src_wrap = THTensor_wrap(src); at::native::copy_(dst_wrap, src_wrap); } t...
5c73d5dcdd8fa60111bd09a00d31658589b8b1e9.hip
// !!! This is a file automatically generated by hipify!!! /************************************************ streamcluster_cuda_header.cu : header file to streamcluster - original code from PARSEC Benchmark Suite - parallelization with CUDA API has been applied by Sang-Ha (a.k.a Shawn) Lee - sl4ge@virginia.edu ...
5c73d5dcdd8fa60111bd09a00d31658589b8b1e9.cu
/************************************************ streamcluster_cuda_header.cu : header file to streamcluster - original code from PARSEC Benchmark Suite - parallelization with CUDA API has been applied by Sang-Ha (a.k.a Shawn) Lee - sl4ge@virginia.edu University of Virginia Department of Electrical and Comput...
b4c3baa36519f891b76a601b7b89588ca417a932.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <cmath> #include <sys/time.h> #define BSZ (16) void checkErrors(char *label) { // we need to synchronise first to catch errors due to // asynchroneous operations that would otherwise...
b4c3baa36519f891b76a601b7b89588ca417a932.cu
#include <iostream> #include <fstream> #include <cmath> #include <sys/time.h> #define BSZ (16) void checkErrors(char *label) { // we need to synchronise first to catch errors due to // asynchroneous operations that would otherwise // potentially go unnoticed cudaError_t err; err = cudaThreadSynchronize(); ...
accf83b0f13b03bc0d546721b9b9d84207225466.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> __global__ void vecSum_GPU3(const double *a, double *res, const unsigned long n); __global__ void vecSum_betterGPU(const double *a, double *gpuRes, const unsigned...
accf83b0f13b03bc0d546721b9b9d84207225466.cu
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #include <stdlib.h> __global__ void vecSum_GPU3(const double *a, double *res, const unsigned long n); __global__ void vecSum_betterGPU(const double *a, double *gpuRes, const unsigned long n, int offset); void random_double(double *a, int n); int main(in...
0fd9447559b90d8f625c2fa1a93f6fad2c6fd581.hip
// !!! This is a file automatically generated by hipify!!! #define LIMIT -999 #define BLOCK_SIZE 16 #define MAX_SEQ_LEN 2100 #define MAX_SEQ_NUM 1024 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "needle.h" #include "needle_cpu.h...
0fd9447559b90d8f625c2fa1a93f6fad2c6fd581.cu
#define LIMIT -999 #define BLOCK_SIZE 16 #define MAX_SEQ_LEN 2100 #define MAX_SEQ_NUM 1024 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cuda.h> #include <sys/time.h> #include "needle.h" #include "needle_cpu.h" #include <pthread.h> #define LENGTH 1600 //#define TRACEBACK // i...
c17cd3ed6be6b5ed1b70ff8f8e310219a5a39e10.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.0.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date February 2016 @generated from magmablas/zlacpy_conj.cu normal z -> d,...
c17cd3ed6be6b5ed1b70ff8f8e310219a5a39e10.cu
/* -- MAGMA (version 2.0.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date February 2016 @generated from magmablas/zlacpy_conj.cu normal z -> d, Tue Feb 9 16:05:28 2016 */ #include "magma_internal.h" #define BLOCK_SIZE 64 // cop...
e5142139ac1386b4dd38b9be2da379626e6d65c7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "THHBasis.h" #include "THHBasisForward.cuh" #include "THHBasisBackward.cuh" template<typename T> __global__ void linearBasisForwardKernel(TensorInfo<T> basis, TensorInfo<int64_t>weightIndex, ...
e5142139ac1386b4dd38b9be2da379626e6d65c7.cu
#include "THCBasis.h" #include "THCBasisForward.cuh" #include "THCBasisBackward.cuh" template<typename T> __global__ void linearBasisForwardKernel(TensorInfo<T> basis, TensorInfo<int64_t>weightIndex, TensorInfo<T> pseudo, int64_t *kernelSize, ...
b734fc07b14d1b7f9d7c2d57901fe22df6500a72.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! Author: MaikuZ */ #include <iostream> #include <map> #include <vector> #include <string> #include "particle_swarm.h" #include "simulated_annealing.h" #include "functions.h" #include "function_list.h" #include "random_gen.h" ...
b734fc07b14d1b7f9d7c2d57901fe22df6500a72.cu
/*! Author: MaikuZ */ #include <iostream> #include <map> #include <vector> #include <string> #include "particle_swarm.h" #include "simulated_annealing.h" #include "functions.h" #include "function_list.h" #include "random_gen.h" void write_argument_list(std::vector<float> &arg) { std::cout << "("; for (int i = ...
2b1d1c1f0442a0d163ffd440b138810776bd274b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void Saxy_device(float* x, float* y, float* d, float xb, float yb, int n) { int i = threadIdx.x; if (i < n) d[i] = (x[i] - xb) * (y[i] - yb); }
2b1d1c1f0442a0d163ffd440b138810776bd274b.cu
#include "includes.h" __global__ void Saxy_device(float* x, float* y, float* d, float xb, float yb, int n) { int i = threadIdx.x; if (i < n) d[i] = (x[i] - xb) * (y[i] - yb); }
93838c7147955933b3eb9286c9c93031d4318e23.hip
// !!! This is a file automatically generated by hipify!!! #include <math.h> #include <stdio.h> #include <stdlib.h> #include <cstdio> #include <omp.h> #include <ctime> #include <cstring> // memset #include <cstdlib> // rand, RAND_MAX #include <cmath> // sqrtf #include <vector> #include <algorithm> #include <time.h> #in...
93838c7147955933b3eb9286c9c93031d4318e23.cu
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <cstdio> #include <omp.h> #include <ctime> #include <cstring> // memset #include <cstdlib> // rand, RAND_MAX #include <cmath> // sqrtf #include <vector> #include <algorithm> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <cuda.h> #incl...
a65a31a8100ec2298fd0fe23cf1d1855058f3754.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <math.h> #include <float.h> #include "slice_unpool_layer_cuda_kernel.h" #define CUDA_1D_KERNEL_LOOP(i, n) \ for (int i = blo...
a65a31a8100ec2298fd0fe23cf1d1855058f3754.cu
#ifdef __cplusplus extern "C" { #endif #include <stdio.h> #include <math.h> #include <float.h> #include "slice_unpool_layer_cuda_kernel.h" #define CUDA_1D_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \ i += blockDim.x * gridDim.x) ...
307dc2284a8b95464b39f1044efc1faf2dfd8bb3.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...
307dc2284a8b95464b39f1044efc1faf2dfd8bb3.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...
71e6b0e97f75ee64a6ff01eff72938fe4c291269.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "../common/cuda_helpers.c" extern "C"{ #include "sum_helpers.c" } typedef double(*pointFunction_t)(double,double); __device__ double max_binary_op(double a,double b){ return fmax(a,b); } __device__ pointFunction...
71e6b0e97f75ee64a6ff01eff72938fe4c291269.cu
#include "../common/cuda_helpers.c" extern "C"{ #include "sum_helpers.c" } typedef double(*pointFunction_t)(double,double); __device__ double max_binary_op(double a,double b){ return fmax(a,b); } __device__ pointFunction_t h_binary_op = max_binary_op; __global__ void sum_kernel(double *a, double *b ,point...
8996919fd0da02f10b0323d83e5125f07f7233ec.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /**************************************************************************** * * cuda-vecadd1.cu - Sum two arrays with CUDA, using thread blocks * * Written in 2017 by Moreno Marzolla <moreno.marzolla(at)unibo.it> * * To the ...
8996919fd0da02f10b0323d83e5125f07f7233ec.cu
/**************************************************************************** * * cuda-vecadd1.cu - Sum two arrays with CUDA, using thread blocks * * Written in 2017 by Moreno Marzolla <moreno.marzolla(at)unibo.it> * * To the extent possible under law, the author(s) have dedicated all * copyright and related an...
03b92afda060b04d2a71a9394dfcfa4cee2a61d4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __device__ void mul(double a, double b, double *res) { *res = a * b; #ifdef FPC_ERROR_ADD *res = *res + 1e308; #endif #ifdef FPC_ERROR_SUB *res = *res - (1e308); #endif #ifdef FPC_ERROR_MUL *res = *re...
03b92afda060b04d2a71a9394dfcfa4cee2a61d4.cu
#include <stdio.h> __device__ void mul(double a, double b, double *res) { *res = a * b; #ifdef FPC_ERROR_ADD *res = *res + 1e308; #endif #ifdef FPC_ERROR_SUB *res = *res - (1e308); #endif #ifdef FPC_ERROR_MUL *res = *res * 1e-323; #endif #ifdef FPC_ERROR_DIV *res = (*res - *res) / (*res - *res); #endif ...
6ac02cf5249160c1d35c36d785f3068b4faffb60.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*--------------------------------------------------------------------------*\ Copyright (c) 2008-2010, Danny Ruijters. All rights reserved. http://www.dannyruijters.nl/cubicinterpolation/ This file is part of CUDA Cubic B-Spline In...
6ac02cf5249160c1d35c36d785f3068b4faffb60.cu
/*--------------------------------------------------------------------------*\ Copyright (c) 2008-2010, Danny Ruijters. All rights reserved. http://www.dannyruijters.nl/cubicinterpolation/ This file is part of CUDA Cubic B-Spline Interpolation (CI). Redistribution and use in source and binary forms, with or without mo...
db8bebef38116d5bb2432bb28446323523eec540.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation and * any...
db8bebef38116d5bb2432bb28446323523eec540.cu
/* * Copyright 1993-2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation and * any modifications thereto. Any use, reproduction, disclosure, or distribution * of this ...
1ef8bea9d1b1215a42ebb8502e69321a0116e560.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright 2021-2023, XGBoost Contributors */ #include <gtest/gtest.h> #include <xgboost/host_device_vector.h> #include "../helpers.h" #include "../../../src/data/array_interface.h" namespace xgboost { __global__ void Sleep...
1ef8bea9d1b1215a42ebb8502e69321a0116e560.cu
/** * Copyright 2021-2023, XGBoost Contributors */ #include <gtest/gtest.h> #include <xgboost/host_device_vector.h> #include "../helpers.h" #include "../../../src/data/array_interface.h" namespace xgboost { __global__ void SleepForTest(uint64_t *out, uint64_t duration) { auto start = clock64(); auto t = 0; wh...
bf7573b2f5ff1052d2af68962fd056814b2bd896.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #ifdef __INTELLISENSE__ void __syncthreads(); #endif #include <stdio.h> #include <windows.h> #include <math.h> #include <stdlib.h> #include <stdint.h> #include "Shlwapi.h" #include <hip/hip_ru...
bf7573b2f5ff1052d2af68962fd056814b2bd896.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #ifdef __INTELLISENSE__ void __syncthreads(); #endif #include <stdio.h> #include <windows.h> #include <math.h> #include <stdlib.h> #include <stdint.h> #include "Shlwapi.h" #include <cuda.h> #include <iomanip> #include "helper_image.h" using namespace ...
fac9a512a632350322903d932b2608bfe006609d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> // from http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api /* #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAsse...
fac9a512a632350322903d932b2608bfe006609d.cu
#include <stdio.h> // from http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api /* #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, char *file, int line, bool abort=true) { if (code != cudaSuccess)...
3dd2f0a2c9cc7cc57c3d3377b9d705a0343cb162.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> #include<cuda.h> #include<cuda_runtime.h> #define N 10000000 __global__ void vector_add(float *out, float *a, float *b, int n){ for(int i=0;i<n;i++){ out[i]=a[i]+b[i]; } } int main(){ fl...
3dd2f0a2c9cc7cc57c3d3377b9d705a0343cb162.cu
#include<stdio.h> #include<stdlib.h> #include<cuda.h> #include<cuda_runtime.h> #define N 10000000 __global__ void vector_add(float *out, float *a, float *b, int n){ for(int i=0;i<n;i++){ out[i]=a[i]+b[i]; } } int main(){ float *a, *b, *out; float *d_a, *d_b, *d_out; a=(float*)malloc(sizeof(float)*N); ...
0d02294b7a3fc17facf03092e3e0428fb7529869.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef _TIMER_ #include "hip/hip_runtime_api.h" #endif #include "stdio.h" #define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) ) #define max(a,b) FORMA_MAX(a,b) #define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) ) #define min(a,b) FORMA_MIN(...
0d02294b7a3fc17facf03092e3e0428fb7529869.cu
#include "cuda.h" #ifdef _TIMER_ #include "cuda_profiler_api.h" #endif #include "stdio.h" #define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) ) #define max(a,b) FORMA_MAX(a,b) #define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) ) #define min(a,b) FORMA_MIN(a,b) #define FORMA_CEIL(a,b) ( (a) % (b) == 0 ? (a) / (b) : ((a) / (b)) ...
ee0c3d81ab981cd48af056cc5a5f2c26fba5e06b.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache...
ee0c3d81ab981cd48af056cc5a5f2c26fba5e06b.cu
/* * Copyright 2014 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
230ed54e087ba19e5433ea002f210422d0fce172.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <string.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define CHECK(call) { const hipError_t error = call; if (error != hipSuccess) { printf("Error: %s:%d, ", __FILE__, __LINE__); printf("code:%d,...
230ed54e087ba19e5433ea002f210422d0fce172.cu
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cuda.h> #include <cuda_runtime.h> #define CHECK(call) { const cudaError_t error = call; if (error != cudaSuccess) { printf("Error: %s:%d, ", __FILE__, __LINE__); printf("code:%d, reason: %s\n", error, cudaGetErrorString(error)); exit(1); }} __glob...
fb3fdfa61e6cc41d4552f42dce0a6fdd090a7db2.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <time.h> #include <GL/glut.h> #include <GL/gl.h> #include <malloc.h> #include <signal.h> #include <hip/hip_runtime_api.h> /****************************************************************************** The variab...
fb3fdfa61e6cc41d4552f42dce0a6fdd090a7db2.cu
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <GL/glut.h> #include <GL/gl.h> #include <malloc.h> #include <signal.h> #include <cuda_runtime_api.h> /****************************************************************************** The variable names and the function names of this program is same as pro...
dd42de1df8fc5285c0244cb2616eeeb42f3c12ec.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <doctest.h> #include <taskflow/taskflow.hpp> #include <taskflow/cuda/cudaflow.hpp> #include <taskflow/cuda/algorithm/for_each.hpp> #define L2(x1, y1, x2, y2) ((x1-x2)*(x1-x2) + (...
dd42de1df8fc5285c0244cb2616eeeb42f3c12ec.cu
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include <doctest.h> #include <taskflow/taskflow.hpp> #include <taskflow/cuda/cudaflow.hpp> #include <taskflow/cuda/algorithm/for_each.hpp> #define L2(x1, y1, x2, y2) ((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)) template <typename T> void run_and_wait(T& cf) { tf::cudaStream strea...
1142792848fef300c2ee57f84244ac83e342a868.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void test(float& a, float& b) { do { }while(1); }
1142792848fef300c2ee57f84244ac83e342a868.cu
__global__ void test(float& a, float& b) { do { }while(1); }
bd5aff4c21d3a2fe6a75593512cc0f58d972cff9.hip
// !!! This is a file automatically generated by hipify!!! /* swsharp - CUDA parallelized Smith Waterman with applying Hirschberg's and Ukkonen's algorithm and dynamic cell pruning. Copyright (C) 2013 Matija Korpar, contributor Mile iki This program is free software: you can redistribute it and/or modify it under the...
bd5aff4c21d3a2fe6a75593512cc0f58d972cff9.cu
/* swsharp - CUDA parallelized Smith Waterman with applying Hirschberg's and Ukkonen's algorithm and dynamic cell pruning. Copyright (C) 2013 Matija Korpar, contributor Mile Šikić 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 ...
4b5cc597e6be21a84a4dc8e119322d2c0608f391.hip
// !!! This is a file automatically generated by hipify!!! /* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licen...
4b5cc597e6be21a84a4dc8e119322d2c0608f391.cu
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
d8032930f66590712af03b8b9cebdafae0ed10fc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cmath> #include <vector> #include "caffe/layers/rbf_layer.hpp" namespace caffe { template <typename Dtype> __global__ void RBFForward(const int n_kernels, const int n_channels, const int heigh...
d8032930f66590712af03b8b9cebdafae0ed10fc.cu
#include <cmath> #include <vector> #include "caffe/layers/rbf_layer.hpp" namespace caffe { template <typename Dtype> __global__ void RBFForward(const int n_kernels, const int n_channels, const int height, const int width, const Dtype* bottom_data, const Dtype* mu...
3d299a316346cb539700d99c67be89e3b5428311.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 <time.h> #include <cstring> #include "common.h" //hipError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ v...
3d299a316346cb539700d99c67be89e3b5428311.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <cstring> #include "common.h" //cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ void sum_array_gpu(int* a, int* b, int* c, int size) { int gi...
d70d77d97d35c9e720f91fa5887df4e5174c211a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Sergio Mercado A01020382 * Cuda : normal to soviet image */ #include <stdlib.h> #include <stdio.h> #include <string> #include <opencv/highgui.h> //#include "utils/cheader.h" typedef enum color {BLUE, GREEN, RED} Color...
d70d77d97d35c9e720f91fa5887df4e5174c211a.cu
/* * Sergio Mercado A01020382 * Cuda : normal to soviet image */ #include <stdlib.h> #include <stdio.h> #include <string> #include <opencv/highgui.h> //#include "utils/cheader.h" typedef enum color {BLUE, GREEN, RED} Color; __global__ void red(unsigned char *src, unsigned char *dest, int width, int height,...
nearest_interp_compute.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2019 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 a...
nearest_interp_compute.cu
/* Copyright (c) 2019 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 ag...
6a6352f1f2401361663e20b794f2aae807acc82a.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 1993-2012 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...
6a6352f1f2401361663e20b794f2aae807acc82a.cu
/** * Copyright 1993-2012 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 relat...
8b2a608d6b2e7dc53f8a41f1fc8081d8e564d264.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @generated from zmgeelltmv.cu normal z -> d, Tue Sep ...
8b2a608d6b2e7dc53f8a41f1fc8081d8e564d264.cu
/* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @generated from zmgeelltmv.cu normal z -> d, Tue Sep 2 12:38:33 2014 */ #include "common_magma.h" #if (GPUSHMEM < 200) #define BLOCK_SI...