hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
5963e4e2d0c02bcb408e394fe6db81d9d90d3ded.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 "set_dynamic_positions.cu" #include<chrono> #include<iostream> us...
5963e4e2d0c02bcb408e394fe6db81d9d90d3ded.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 "set_dynamic_positions.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16...
e66766c56a72a262e9dbfce4114b35a23635f1de.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 "uplo_log10.cu" #include<chrono> #include<iostream> using namespa...
e66766c56a72a262e9dbfce4114b35a23635f1de.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 "uplo_log10.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
366d767d3497c538983bfee836c928f38054fdee.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void matchValidity_kernel(float *d_flow, float *d_disparity, int n_cols, int n_rows) { unsigned int x = blockIdx.x * blockDim.x + threadIdx.x; unsigned int y = blockIdx.y * blockDim.y + threadIdx.y; ...
366d767d3497c538983bfee836c928f38054fdee.cu
#include "includes.h" __global__ void matchValidity_kernel(float *d_flow, float *d_disparity, int n_cols, int n_rows) { unsigned int x = blockIdx.x * blockDim.x + threadIdx.x; unsigned int y = blockIdx.y * blockDim.y + threadIdx.y; if ((x < n_cols) & (y < n_rows)) // are we in the image? { unsigned int ind = x + y * n...
0bf107cab9f91024a61b0b5e13ab6087cb3d07d5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "debug_rendering.h" // Kernel that writes the depth image to the OpenGL PBO directly. __global__ void sendDepthImageBufferToPBO(float4* PBOpos, glm::vec2 resolution, DPixel* depthBuffer){ int r = (blockIdx.y * blockDim....
0bf107cab9f91024a61b0b5e13ab6087cb3d07d5.cu
#include "debug_rendering.h" // Kernel that writes the depth image to the OpenGL PBO directly. __global__ void sendDepthImageBufferToPBO(float4* PBOpos, glm::vec2 resolution, DPixel* depthBuffer){ int r = (blockIdx.y * blockDim.y) + threadIdx.y; int c = (blockIdx.x * blockDim.x) + threadIdx.x; int i = (r * resolu...
6a83fe35eee2eca4b143763679ab633183210fd5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include "parent.cu" int main(int argc, char* argv[]) { float host_a[kDataLen]; float host_b[kDataLen]; float host_c[kDataLen]; for (int i=0; i < kDataLen; i++) { host_a[i] = i; ...
6a83fe35eee2eca4b143763679ab633183210fd5.cu
#include <iostream> #include "parent.cu" int main(int argc, char* argv[]) { float host_a[kDataLen]; float host_b[kDataLen]; float host_c[kDataLen]; for (int i=0; i < kDataLen; i++) { host_a[i] = i; host_b[i] = 2*i; } // Copy input data to device. float* device_a; ...
2c1452288b2ddb86757d25d3ff13ca13f49110bc.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define XBLOCK_SIZE 32 #define YBLOCK_SIZE 24 __global__ void mandelKernel(float lowerX, float lowerY, float stepX, float stepY,size_t width,int count, int *output) { // To avoid error ca...
2c1452288b2ddb86757d25d3ff13ca13f49110bc.cu
#include <cuda.h> #include <stdio.h> #include <stdlib.h> #define XBLOCK_SIZE 32 #define YBLOCK_SIZE 24 __global__ void mandelKernel(float lowerX, float lowerY, float stepX, float stepY,size_t width,int count, int *output) { // To avoid error caused by the floating number, use the following pseudo code // ...
2f0fdea8a43e254956b9034f87fa617683910b96.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <string.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hipsparse.h> #include "common.h" const char* version_name = "cuSPARSE SpTRSV";\ #define CHECK_CUSPARSE(ret) if(ret != HIPSPARSE_STATUS_SUCCESS) { fprintf(stderr,...
2f0fdea8a43e254956b9034f87fa617683910b96.cu
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <cuda.h> #include <cusparse.h> #include "common.h" const char* version_name = "cuSPARSE SpTRSV";\ #define CHECK_CUSPARSE(ret) if(ret != CUSPARSE_STATUS_SUCCESS) { fprintf(stderr, "error in line %d\n", __LINE__);} typedef struct { cusparseHandle_...
a49b3920c61f687fa277b5b5b6f673fd0d670505.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ------------------------------------------------------------------ // Faster R-CNN // Copyright (c) 2015 Microsoft // Licensed under The MIT License [see fast-rcnn/LICENSE for details] // Written by Shaoqing Ren // --------------...
a49b3920c61f687fa277b5b5b6f673fd0d670505.cu
// ------------------------------------------------------------------ // Faster R-CNN // Copyright (c) 2015 Microsoft // Licensed under The MIT License [see fast-rcnn/LICENSE for details] // Written by Shaoqing Ren // ------------------------------------------------------------------ #include "caffe/util/gpu_nms.hpp" ...
43dfa92cfd5ae9114e4ba2a81d7c53ae001f8414.hip
// !!! This is a file automatically generated by hipify!!! // EMD approximation module (based on auction algorithm) // author: Renwu Li // torch version: https://github.com/Colin97/MSN-Point-Cloud-Completion/blob/HEAD/emd/ #include <stdio.h> #include <hip/hip_runtime.h> #include <iostream> #include <hip/hip_runtime.h>...
43dfa92cfd5ae9114e4ba2a81d7c53ae001f8414.cu
// EMD approximation module (based on auction algorithm) // author: Renwu Li // torch version: https://github.com/Colin97/MSN-Point-Cloud-Completion/blob/HEAD/emd/ #include <stdio.h> #include <cuda.h> #include <iostream> #include <cuda_runtime.h> __device__ __forceinline__ float atomicMax(float *address, float val) {...
86cb22a0dd02469c22eefe6cbab9c604283f6255.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <thrust\device_vector.h> #include <thrust\host_vector.h> #include <stdio.h> #include <iostream> using namespace std; __global__ void kernel(int *, const int N) { int i = blockDim.x ...
86cb22a0dd02469c22eefe6cbab9c604283f6255.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <thrust\device_vector.h> #include <thrust\host_vector.h> #include <stdio.h> #include <iostream> using namespace std; __global__ void kernel(int *, const int N) { int i = blockDim.x * blockIdx.x + threadIdx.x; if (i < N) { a[i] = a[i] + 3; ...
f571e0b1d8ccd1acbb70de551cfdea82b0510be2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <assert.h> #define BLOCK_SIZE 256 #define STR_SIZE 256 #define DEVICE 0 #define HALO 1 // halo width along one direction when advancing to the next iteration #defin...
f571e0b1d8ccd1acbb70de551cfdea82b0510be2.cu
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <assert.h> #define BLOCK_SIZE 256 #define STR_SIZE 256 #define DEVICE 0 #define HALO 1 // halo width along one direction when advancing to the next iteration #define BENCH_PRINT void run(int argc, char** argv); long long int rows, cols; int* data; in...
b27aa0e5bc7dd26ea1b69f25329a7a079b110f90.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h> #include <ATen/hip/HIPApplyUtils.cuh> #include "../box_iou_polygon_utils.h" // 2D block with 32 * 16 = 512 threads p...
b27aa0e5bc7dd26ea1b69f25329a7a079b110f90.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <c10/cuda/CUDAGuard.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include "../box_iou_polygon_utils.h" // 2D block with 32 * 16 = 512 threads per block const int BLOCK_DIM_X = 32; const int BLOCK_DIM_Y = 16; template <typename T> __global__ void box_io...
dd642f160341724abda4996b8798590700e331a1.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2020-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
dd642f160341724abda4996b8798590700e331a1.cu
/* * Copyright (c) 2020-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
716d1f09c8fea0063369e6c41cd7cbf38bf6806c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * 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 * *...
716d1f09c8fea0063369e6c41cd7cbf38bf6806c.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 ...
ca961cfe7e742cf1d443e00c751a9dbc737502de.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 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/...
ca961cfe7e742cf1d443e00c751a9dbc737502de.cu
/* * Copyright 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 law or agreed...
200443a57c6c84bf753ce736e2a18bfe1842b89f.hip
// !!! This is a file automatically generated by hipify!!! /*========================================================================= Program: Robarts Visualization Toolkit Copyright (c) John SH Baxter, Robarts Research Institute This software is distributed WITHOUT ANY WARRANTY; without even the im...
200443a57c6c84bf753ce736e2a18bfe1842b89f.cu
/*========================================================================= Program: Robarts Visualization Toolkit Copyright (c) John SH Baxter, Robarts Research Institute This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICUL...
26abc402388e7e32fd4b0c0e6a8e5e8297406ec9.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, ...
26abc402388e7e32fd4b0c0e6a8e5e8297406ec9.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 rep...
dea2c1a31a082be6ed00f2c9868d7373b304a401.hip
// !!! This is a file automatically generated by hipify!!! #include "CudaInitStatus.h" #include "CudaMesh.h" #include "CudaAnimation.h" #include <time.h> void initTriTetQuality( RealD& t_pointlist, PointTypeD& t_pointtypelist, RealD& t_weightlist, IntD& t_trifacelist, RealD& t_trifacecent, TriStatusD& t_tristatu...
dea2c1a31a082be6ed00f2c9868d7373b304a401.cu
#include "CudaInitStatus.h" #include "CudaMesh.h" #include "CudaAnimation.h" #include <time.h> void initTriTetQuality( RealD& t_pointlist, PointTypeD& t_pointtypelist, RealD& t_weightlist, IntD& t_trifacelist, RealD& t_trifacecent, TriStatusD& t_tristatus, IntD& t_tetlist, TetStatusD& t_tetstatus, MESHCR* cri...
b7ca86e7666589c17b16783cdeaed19b833262f2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ScanArray.cu // #include "ScanArray.h" #include "OperationFunctor.h" #include <iostream> #include <stdio.h> using namespace std; #define BLOCK_SIZE 1024 // NUM_BANKS // bank #define NUM_BANKS 16 // LOG_NUM_BANKS // bank ...
b7ca86e7666589c17b16783cdeaed19b833262f2.cu
// ScanArray.cu // 找出图像中给定点集的包围矩形 #include "ScanArray.h" #include "OperationFunctor.h" #include <iostream> #include <stdio.h> using namespace std; #define BLOCK_SIZE 1024 // 宏:NUM_BANKS // 定义了bank的数量。 #define NUM_BANKS 16 // 宏:LOG_NUM_BANKS // 定义了bank的对数值。 #define LOG_NUM_BANKS 4 // Kernel 函数: _scanNaiveKer(数...
26c5520c434d530dd542dafb4f7f25a205766475.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you...
26c5520c434d530dd542dafb4f7f25a205766475.cu
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
73d99c0fecd67975a89cd55180edf5ca0e21c46c.hip
// !!! This is a file automatically generated by hipify!!! #include "SimplePursuitMultiplier.h" #include <hip/hip_runtime.h> #include "OpenSteer/VehicleData.h" #include "CUDAKernelOptions.cu" #include <iostream> using namespace OpenSteer; using namespace std; __global__ void simplePursuitMultiplierKernel(float3 posit...
73d99c0fecd67975a89cd55180edf5ca0e21c46c.cu
#include "SimplePursuitMultiplier.h" #include <cuda_runtime.h> #include "OpenSteer/VehicleData.h" #include "CUDAKernelOptions.cu" #include <iostream> using namespace OpenSteer; using namespace std; __global__ void simplePursuitMultiplierKernel(float3 position, float3 velocity, float3 *positions, float3 *velocities); ...
1f1320d13dc9bc6e8e1c9a53a68f3682177a1be7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <cstdlib> #include <cstring> #include "GPU_Math_Func.h" void gpu_gemm(const CBLAS_TRANSPOSE Tr...
1f1320d13dc9bc6e8e1c9a53a68f3682177a1be7.cu
#include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <cstdlib> #include <cstring> #include "GPU_Math_Func.h" void gpu_gemm(const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const int M, const int N, const int K, const...
dc9f95e886de3e361e53c5b66d8b96ff6618d88c.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <hip/hip_runtime.h> #include "unary_elementwise_ops_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "core/providers/cuda/cu_inc/unary_ele...
dc9f95e886de3e361e53c5b66d8b96ff6618d88c.cu
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <cuda_runtime.h> #include "unary_elementwise_ops_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "core/providers/cuda/cu_inc/unary_elementwise_impl.cuh" namespace onnxruntime { namespace cuda { ...
3147817946a6fec05536427adacf5cd9a915bb02.hip
// !!! This is a file automatically generated by hipify!!! #include <assert.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <functional> #include <math.h> #include <memory> #include <random> #include <stdint.h> #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/time.h> #incl...
3147817946a6fec05536427adacf5cd9a915bb02.cu
#include <assert.h> #include <err.h> #include <errno.h> #include <fcntl.h> #include <functional> #include <math.h> #include <memory> #include <random> #include <stdint.h> #include <stdio.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/time.h> #include <time.h> #include <unistd.h> #include <cblas.h> #includ...
e3a170f4fc391e3dab82101fb84376e1ea984290.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include "hip/hip_runtime.h" #include "../../common/book.h" #include "../../common/cpu_bitmap.h" #define RAND_MAX 2147483647 #define rnd( x ) (x * rand() / RAND_MAX) #define INF 2e10f #define SPHERES 100 #define DIM 1024 // center of sph...
e3a170f4fc391e3dab82101fb84376e1ea984290.cu
#include <stdlib.h> #include "cuda.h" #include "../../common/book.h" #include "../../common/cpu_bitmap.h" #define RAND_MAX 2147483647 #define rnd( x ) (x * rand() / RAND_MAX) #define INF 2e10f #define SPHERES 100 #define DIM 1024 // center of sphere: x, y, z // sphere radius // color: r, b, g struct Sphere { fl...
df1d7d9814bd4d3ad563c911bed786bb3be24396.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // 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 t...
df1d7d9814bd4d3ad563c911bed786bb3be24396.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...
144b449d7ec79545320359934938dfbc2a333534.hip
// !!! This is a file automatically generated by hipify!!! // Author: Nic Olsen #include <hip/hip_runtime.h> #include <iostream> #include "scan.cuh" #include <hip/hip_cooperative_groups.h> namespace cg = cooperative_groups; // Scans each block of g_idata separately and writes the result to g_odata. // g_idata and g_o...
144b449d7ec79545320359934938dfbc2a333534.cu
// Author: Nic Olsen #include <cuda.h> #include <iostream> #include "scan.cuh" #include <cooperative_groups.h> namespace cg = cooperative_groups; // Scans each block of g_idata separately and writes the result to g_odata. // g_idata and g_odata are arrays available on device of length n // Writes the sum of each bloc...
21e87a7f7b3e39fb9c57bdcd43d080d8b8f072d8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // http://www.orangeowlsolutions.com/archives/613 // https://github.com/OrangeOwlSolutions/General-CUDA-programming/wiki/hipMallocPitch-and-hipMemcpy2D #include<stdio.h> #include<cuda.h> #include<cuda_runtime.h> #include<device_lau...
21e87a7f7b3e39fb9c57bdcd43d080d8b8f072d8.cu
// http://www.orangeowlsolutions.com/archives/613 // https://github.com/OrangeOwlSolutions/General-CUDA-programming/wiki/cudaMallocPitch-and-cudaMemcpy2D #include<stdio.h> #include<cuda.h> #include<cuda_runtime.h> #include<device_launch_parameters.h> #include<assert.h> #define BLOCKSIZE_x 8 #define BLOCKSIZE_y 8 #def...
a8aab09ccf67a03b045c9a349f6e99aa64058bdd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel2_xvel_plus_4_bot; int xdim0_update_halo_kernel2_xvel_plus_4_bot_h = -1; __constant__ int ydim0_update_halo_kernel2_xvel_plus_4_bot; int ydim0_update_halo_ke...
a8aab09ccf67a03b045c9a349f6e99aa64058bdd.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel2_xvel_plus_4_bot; int xdim0_update_halo_kernel2_xvel_plus_4_bot_h = -1; __constant__ int ydim0_update_halo_kernel2_xvel_plus_4_bot; int ydim0_update_halo_kernel2_xvel_plus_4_bot_h = -1; __constant__ int xdim1_update_halo_kernel2_xvel_plus_4_bot...
629458965b2a218277799fa1a4909dc09683bc4d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <float.h> #include <math.h> struct timeval startwtime, endwtime; double seq_time; // CPU variable int N = 5000; // number of elements int D = 2; // dimensions in...
629458965b2a218277799fa1a4909dc09683bc4d.cu
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <float.h> #include <math.h> struct timeval startwtime, endwtime; double seq_time; // CPU variable int N = 5000; // number of elements int D = 2; // dimensions int nT = 500; // number of threads per block float sigma = 250.0; float MS_error = 0.0001;...
25bb43985ad91f9fb14729bc7d0d28dee2ab5d93.hip
// !!! This is a file automatically generated by hipify!!! /* * svmMain.cu * * Created on: May 21, 2012 * Author: Zeyi Wen */ #include <iostream> #include <cassert> #include <stdio.h> #include <helper_cuda.h> #include <hip/hip_runtime.h> #include "cvFunction.h" #include "SVMCmdLineParser.h" #include "../Sh...
25bb43985ad91f9fb14729bc7d0d28dee2ab5d93.cu
/* * svmMain.cu * * Created on: May 21, 2012 * Author: Zeyi Wen */ #include <iostream> #include <cassert> #include <stdio.h> #include <helper_cuda.h> #include <cuda.h> #include "cvFunction.h" #include "SVMCmdLineParser.h" #include "../SharedUtility/initCuda.h" #include "svmModel.h" #include "trainClassifie...
040d76c96206f0ff1e1ed5a6ccbd98379d762395.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "./brute_kernel.h" #define BLOCK 16 typedef struct sites_type sites_t; __device__ float calc_dist(int x1, int x2, int y1, int y2) { return sqrtf(powf(x1-x2,2) + powf(y1-y2,2)); } __global__ void brute_kernel(sites_t...
040d76c96206f0ff1e1ed5a6ccbd98379d762395.cu
#include "./brute_kernel.h" #define BLOCK 16 typedef struct sites_type sites_t; __device__ float calc_dist(int x1, int x2, int y1, int y2) { return sqrtf(powf(x1-x2,2) + powf(y1-y2,2)); } __global__ void brute_kernel(sites_t* sites, uchar4* out_pix, const int nsites, const int nrows, const int ncols) { int ...
55ae3c85449c0e6d8ac4dbceff7a658447d2ca5a.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2021 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:...
55ae3c85449c0e6d8ac4dbceff7a658447d2ca5a.cu
// Copyright (c) 2021 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...
c406d591cc7286609c056defabd1eedebcccb2ae.hip
// !!! This is a file automatically generated by hipify!!! #include <cudf/column/column_view.hpp> #include <cudf/copying.hpp> #include <cudf/detail/gather.cuh> #include <cudf/detail/gather.hpp> #include <cudf/detail/nvtx/ranges.hpp> #include <cudf/table/table.hpp> #include <cudf/table/table_view.hpp> #include <cudf/typ...
c406d591cc7286609c056defabd1eedebcccb2ae.cu
#include <cudf/column/column_view.hpp> #include <cudf/copying.hpp> #include <cudf/detail/gather.cuh> #include <cudf/detail/gather.hpp> #include <cudf/detail/nvtx/ranges.hpp> #include <cudf/table/table.hpp> #include <cudf/table/table_view.hpp> #include <cudf/types.hpp> #include <cudf/utilities/type_dispatcher.hpp> #inc...
8a29407f0d3be7f71bf8ad29f4e29faf3202f5c1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //: nvcc add0.cu -o add0 #include <stdlib.h> #include <stdio.h> __global__ void cuda_add(int a, int b, int *c) { *c = a + b; } int main(int argc, char **argv) { int c; int *dev_c; hipMalloc((void**)&dev_c, sizeof(...
8a29407f0d3be7f71bf8ad29f4e29faf3202f5c1.cu
//: nvcc add0.cu -o add0 #include <stdlib.h> #include <stdio.h> __global__ void cuda_add(int a, int b, int *c) { *c = a + b; } int main(int argc, char **argv) { int c; int *dev_c; cudaMalloc((void**)&dev_c, sizeof(int)); cuda_add<<<1,1>>>(2, 2, dev_c); /* * Arguments pour cudaMemcpy ...
ac0e8376dbfc124b1650177f920ec90a51bc970d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <math.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including pointers // ...
ac0e8376dbfc124b1650177f920ec90a51bc970d.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <math.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including pointers // to allocated memory on the device) that can be // ...
262b7d37e827e2d6580e398b15f1630a54a70650.hip
// !!! This is a file automatically generated by hipify!!! // ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Summer Semester 2014, September 8 - October 10 // ### // ### // ### Maria Klodt, Jan Stuehmer, Mohamed Souia...
262b7d37e827e2d6580e398b15f1630a54a70650.cu
// ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Summer Semester 2014, September 8 - October 10 // ### // ### // ### Maria Klodt, Jan Stuehmer, Mohamed Souiai, Thomas Moellenhoff // ### // ### // ### // ### THIS FILE...
34e0acb3ea90b9d6b021236a2822653b8b1b803a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <vector> using std::vector; // parameter describing the size of matrix A const int rows = 4096; const int cols = 4096; const int BLOCK_SIZE = 32; // naive transpose kernel __global__ void matrixTranspo...
34e0acb3ea90b9d6b021236a2822653b8b1b803a.cu
#include <cstdio> #include <vector> using std::vector; // parameter describing the size of matrix A const int rows = 4096; const int cols = 4096; const int BLOCK_SIZE = 32; // naive transpose kernel __global__ void matrixTransposeNaive(float *_a, // pointer to matrix A on the device ...
be7519778e8d065c85f1e1499f22bfb47499addc.hip
// !!! This is a file automatically generated by hipify!!! #include<stdio.h> #include<cuda.h> #include<cuda_runtime.h> #include"io.h" #include"cuda_mpi_routines.h" /*! \fn int initialize_cuda_mpi(int myid, int nprocs); * \brief CUDA initialization within MPI. */ int initialize_cuda_mpi(int myid, int nprocs) { int ...
be7519778e8d065c85f1e1499f22bfb47499addc.cu
#include<stdio.h> #include<cuda.h> #include<cuda_runtime.h> #include"io.h" #include"cuda_mpi_routines.h" /*! \fn int initialize_cuda_mpi(int myid, int nprocs); * \brief CUDA initialization within MPI. */ int initialize_cuda_mpi(int myid, int nprocs) { int i_device = 0; //GPU device for this process int n_devic...
3c8a9a074837cd94a14665d3b15b08f377d89039.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<bits/stdc++.h> #include<cuda.h> using namespace std; struct edge{ int u, v, c, f; }; // pushes flow along the edges adjacent to a vertex, concurrently for all vertices __global__ void push(int n, int* excess, int* excess...
3c8a9a074837cd94a14665d3b15b08f377d89039.cu
#include<bits/stdc++.h> #include<cuda.h> using namespace std; struct edge{ int u, v, c, f; }; // pushes flow along the edges adjacent to a vertex, concurrently for all vertices __global__ void push(int n, int* excess, int* excess_inc, int* prefix_deg, int* adj, int* height, int* new_height, edge* d_edges){ i...
c77b40b27c2fcc86306ce71e39acf14cedddf073.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <iostream> //#include <hip/hip_cooperative_groups.h> #include <math.h> #include <sstream> #include <string.h> #include <fstream> //#include <bits/stdc++.h> //#include <stdlib.h> //# <time.h> using namespa...
c77b40b27c2fcc86306ce71e39acf14cedddf073.cu
#include <stdio.h> #include <iostream> //#include <cooperative_groups.h> #include <math.h> #include <sstream> #include <string.h> #include <fstream> //#include <bits/stdc++.h> //#include <stdlib.h> //# <time.h> using namespace std; //using namespace cooperative_groups; /***DEFINING THE DEFINES FOR THE ARRAY INDICES***...
9eac6cef6eca2058615acde8ba5e6de3d9b4b15a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/TemporalUpSamplingLinear.cu" #else #include "../linear_upsampling.h" static inline void THNN_(TemporalUpSamplingLinear_shapeCheck) (THCState *state...
9eac6cef6eca2058615acde8ba5e6de3d9b4b15a.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/TemporalUpSamplingLinear.cu" #else #include "../linear_upsampling.h" static inline void THNN_(TemporalUpSamplingLinear_shapeCheck) (THCState *state, THCTensor *input, THCTensor *gradOutput, ...
98109146bc35d1cde42dc1af00132fe8369a1406.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> __global__ void ReLUForward(const int n, const Dtype* in, Dtype* out, Dtype nega...
98109146bc35d1cde42dc1af00132fe8369a1406.cu
#include <algorithm> #include <vector> #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> __global__ void ReLUForward(const int n, const Dtype* in, Dtype* out, Dtype negative_slope) { CUDA_KERNEL_LOOP(index, n) { out[index] = in[index] > 0 ? in[index] ...
67a8813190188b88fefb9ba846a2b79dfe92e135.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * dropc dev implementation * */ #include <dropc/dropc_dev.hpp> #include <cassert> #include <dropc/cuda_common.hpp> #define USE_TEXTURE_CACHE //#define FCDROPC_BLK_SIZE 16 #define FCDROPC_BLK_SIZE 8 // texutre reference #i...
67a8813190188b88fefb9ba846a2b79dfe92e135.cu
/** * dropc dev implementation * */ #include <dropc/dropc_dev.hpp> #include <cassert> #include <dropc/cuda_common.hpp> #define USE_TEXTURE_CACHE //#define FCDROPC_BLK_SIZE 16 #define FCDROPC_BLK_SIZE 8 // texutre reference #ifdef USE_TEXTURE_CACHE texture<float,cudaTextureType1D,cudaReadModeElementType> texMaskW...
bebf7249f23bae057d1b9e7084c1d08f3b16c5d6.hip
// !!! This is a file automatically generated by hipify!!! /* ljForce.cu */ #include "ljForce.h" //#include <hip/hip_runtime.h> __global__ void ljForce(float *a, float *b) { //does nothing for now } extern "C" void lunch_ljForce_kernel(real_t *pot, int nLocalBoxes, int *nAtoms, int *gridSize, int *gid, ...
bebf7249f23bae057d1b9e7084c1d08f3b16c5d6.cu
/* ljForce.cu */ #include "ljForce.h" //#include <cuda_runtime.h> __global__ void ljForce(float *a, float *b) { //does nothing for now } extern "C" void lunch_ljForce_kernel(real_t *pot, int nLocalBoxes, int *nAtoms, int *gridSize, int *gid, real3 *r, real_t *U, real3 *f, int sz) { float *A_d; f...
ecfc07e2d567026a5083f515d72384064aabafe3.hip
// !!! This is a file automatically generated by hipify!!! //=================================================================// // CUDA BFS kernel // Topological-Driven: one node per thread, thread_centric, // use atomicAdd instruction // // Reference: // T. Schank. Algorithmic Aspects of Triangle-Based Network ...
ecfc07e2d567026a5083f515d72384064aabafe3.cu
//=================================================================// // CUDA BFS kernel // Topological-Driven: one node per thread, thread_centric, // use atomicAdd instruction // // Reference: // T. Schank. Algorithmic Aspects of Triangle-Based Network Analysis //================================================...
5c6fdcc7696b1dd4f83864ce2d4f5f3ced402c07.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Student: Catalin Consantin Usurelu // Grupa: 333CA /* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * internat...
5c6fdcc7696b1dd4f83864ce2d4f5f3ced402c07.cu
// Student: Catalin Consantin Usurelu // Grupa: 333CA /* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the information contained herein is PROPRI...
5bd11317328aca4993f169dd0fcc0edc503513d5.hip
// !!! This is a file automatically generated by hipify!!! #include "matrixUtility.h" #include <iostream> EXPORT void testPrintMatrix() { std::cout << " testing matrix operations" << std::endl; } //considers the matrix is in GPU EXPORT LweSample_16* matrixToVector(LweSample_16 ***matrix, int row, int col, int bi...
5bd11317328aca4993f169dd0fcc0edc503513d5.cu
#include "matrixUtility.h" #include <iostream> EXPORT void testPrintMatrix() { std::cout << " testing matrix operations" << std::endl; } //considers the matrix is in GPU EXPORT LweSample_16* matrixToVector(LweSample_16 ***matrix, int row, int col, int bitSize, const TFheGateBo...
9584be70e9bc560e4cbe901b5473381483087b29.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" namespace { } // namespace __global__ void join_add(const int *d1, const int *d2, int *d3) { d3[0] = d1[0] + d2[0]; }
9584be70e9bc560e4cbe901b5473381483087b29.cu
#include "includes.h" namespace { } // namespace __global__ void join_add(const int *d1, const int *d2, int *d3) { d3[0] = d1[0] + d2[0]; }
51c4985b3ac51dcc58e6cbb11af48e2e93e7e8e2.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <iostream> #include <ctime> #include "device_launch_parameters.h" #include <limits.h> #define PRINT_MATRIX true #define CHECK(value) {\ hipError_t _m_cudaStat = value;\ if (_m_cudaStat != hipSuccess) {\ cou...
51c4985b3ac51dcc58e6cbb11af48e2e93e7e8e2.cu
#include <cuda_runtime.h> #include <iostream> #include <ctime> #include "device_launch_parameters.h" #include <limits.h> #define PRINT_MATRIX true #define CHECK(value) {\ cudaError_t _m_cudaStat = value;\ if (_m_cudaStat != cudaSuccess) {\ cout<< "Error:" << cudaGetErrorString(_m_cudaStat) \ ...
b2c934cfdeb50491e4b22b8f375d3582752964cb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "saber/funcs/impl/cuda/saber_permute.h" #include "hip/hip_fp16.h" namespace anakin { namespace saber { const int TRANS_BLOCK_SIZE = 16; template <typename Dtype> __global__ void ker_permute_fwd(Dtype * out_data, const i...
b2c934cfdeb50491e4b22b8f375d3582752964cb.cu
#include "saber/funcs/impl/cuda/saber_permute.h" #include "cuda_fp16.h" namespace anakin { namespace saber { const int TRANS_BLOCK_SIZE = 16; template <typename Dtype> __global__ void ker_permute_fwd(Dtype * out_data, const int num_axes,\ const int count, const int * permute_order,\ ...
67f09c9ecd7eaa2acb27afa9b9d59ea295acbaee.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //##################################################################### //Removed For Anonymity: Copyright Authors of Submission pap173s1 // Distributed under the FreeBSD license (see license.txt) //#################################...
67f09c9ecd7eaa2acb27afa9b9d59ea295acbaee.cu
//##################################################################### //Removed For Anonymity: Copyright Authors of Submission pap173s1 // Distributed under the FreeBSD license (see license.txt) //##################################################################### #include <iostream> #include "Laplace_Helper_CUDA.h...
7b5c94858b6108448e90d6187581f6666243a4af.hip
// !!! This is a file automatically generated by hipify!!! #include "GpuProjectionProcessing.cuh" #include "GpuUtmWgsTransform.cuh" #include "GpuTimer_hip.cuh" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> using namespace winGpu; __global__ void applyTransformUtmToWgsCoordsGpu(...
7b5c94858b6108448e90d6187581f6666243a4af.cu
#include "GpuProjectionProcessing.cuh" #include "GpuUtmWgsTransform.cuh" #include "GpuTimer.cuh" #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> using namespace winGpu; __global__ void applyTransformUtmToWgsCoordsGpu(double xOrigin, double yOrigin, double xPixelSize, double yPixelSi...
908985a5d0a50e7a6e19c4ccb3bc152d9c55c7e1.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> __global__ void empty() {} int main() { float ms; hipEvent_t start, end; //make event vars hipEventCreate(&start); //create start event hipEventCr...
908985a5d0a50e7a6e19c4ccb3bc152d9c55c7e1.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime.h> __global__ void empty() {} int main() { float ms; cudaEvent_t start, end; //make event vars cudaEventCreate(&start); //create start event cudaEventCreate(&end); //create end event cudaEventRecord(start, 0); //st...
f570b8571b75d41024566ba5fe852c7d8e65c29a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" //Cuda checks __global__ void matrix_multiply_kernel(unsigned char *temp, unsigned char *matrix, float *kernal, int order, int middle, int windowSizeX, int windowSizeY){ //Find place in the execution int y = b...
f570b8571b75d41024566ba5fe852c7d8e65c29a.cu
#include "includes.h" //Cuda checks __global__ void matrix_multiply_kernel(unsigned char *temp, unsigned char *matrix, float *kernal, int order, int middle, int windowSizeX, int windowSizeY){ //Find place in the execution int y = blockIdx.y * blockDim.y + threadIdx.y; int x = blockIdx.x * blockDim.x + threadIdx.x; flo...
7b524292e483cff1b71424f03e4af500f3b09477.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void approxmatch(int b,int n,int m,const float * __restrict__ xyz1,const float * __restrict__ xyz2,float * __restrict__ match,float * temp){ float * remainL=temp+blockIdx.x*(n+m)*2, * remainR=temp+blockIdx.x*(n+m)*2+n,*r...
7b524292e483cff1b71424f03e4af500f3b09477.cu
__global__ void approxmatch(int b,int n,int m,const float * __restrict__ xyz1,const float * __restrict__ xyz2,float * __restrict__ match,float * temp){ float * remainL=temp+blockIdx.x*(n+m)*2, * remainR=temp+blockIdx.x*(n+m)*2+n,*ratioL=temp+blockIdx.x*(n+m)*2+n+m,*ratioR=temp+blockIdx.x*(n+m)*2+n+m+n; float multiL,m...
4e772e1e83bbc0874a13fdac0b1f47839d174f92.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2020 ETH Zurich. All Rights Reserved. #include "dump_particles.h" #include "utils/simple_serializer.h" #include "utils/time_stamp.h" #include <mirheo/core/pvs/rod_vector.h> #include <mirheo/core/simulation.h> #include ...
4e772e1e83bbc0874a13fdac0b1f47839d174f92.cu
// Copyright 2020 ETH Zurich. All Rights Reserved. #include "dump_particles.h" #include "utils/simple_serializer.h" #include "utils/time_stamp.h" #include <mirheo/core/pvs/rod_vector.h> #include <mirheo/core/simulation.h> #include <mirheo/core/utils/config.h> #include <mirheo/core/utils/cuda_common.h> #include <mirheo...
9fbe8e35c1adc1ed052136fac3d0d385040f4761.hip
// !!! This is a file automatically generated by hipify!!! #include "MWConvLayerImpl.hpp" #include "MWConvLayer.hpp" #include "MWTargetNetworkImpl.hpp" #include "cnn_api.hpp" #include <cassert> #include <stdio.h> MWConvLayerImpl::MWConvLayerImpl(MWCNNLayer* layer, MWTargetNetworkImpl* ntwk_impl, int filt_H, int filt_...
9fbe8e35c1adc1ed052136fac3d0d385040f4761.cu
#include "MWConvLayerImpl.hpp" #include "MWConvLayer.hpp" #include "MWTargetNetworkImpl.hpp" #include "cnn_api.hpp" #include <cassert> #include <stdio.h> MWConvLayerImpl::MWConvLayerImpl(MWCNNLayer* layer, MWTargetNetworkImpl* ntwk_impl, int filt_H, int filt_W, int numGrps, int numChnls, int numFilts, int FpguQZSerm...
1e3d8f29d087f11fa02fbdddd70a1b98c1d93ee1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "refocus_header.h" #include "refocus_scattering.h" #include "cuMath.cu" //debug // #include<stdio.h> __constant__ constStructre<double> constStr_scat_single; template<typename T, typename T2, typename T3, typename scatte...
1e3d8f29d087f11fa02fbdddd70a1b98c1d93ee1.cu
#include "refocus_header.h" #include "refocus_scattering.h" #include "cuMath.cu" //debug // #include<stdio.h> __constant__ constStructre<double> constStr_scat_single; template<typename T, typename T2, typename T3, typename scatteringType> __global__ void singleScattering_kernel(T2* single_scattering_matrix, const T3...
gauge_fix_fft.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <quda_internal.h> #include <quda_matrix.h> #include <tune_quda.h> #include <gauge_field.h> #include <gauge_field_order.h> #include <launch_kernel.cuh> #include <unitarization_links.h> #include <atomic.cuh> #include <cub_hel...
gauge_fix_fft.cu
#include <quda_internal.h> #include <quda_matrix.h> #include <tune_quda.h> #include <gauge_field.h> #include <gauge_field_order.h> #include <launch_kernel.cuh> #include <unitarization_links.h> #include <atomic.cuh> #include <cub_helper.cuh> #include <index_helper.cuh> #include <cufft.h> #ifdef GPU_GAUGE_ALG #include ...
0bcc2736ba64abc1d95560f2fbfe18b38769941c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "wb.hpp" #include <stdlib.h> __global__ void vecAdd(float *in1, float *in2, float *out, int len) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < len) { out[i] = in1[i] + in2[i]; } } int main(int argc, c...
0bcc2736ba64abc1d95560f2fbfe18b38769941c.cu
#include "wb.hpp" #include <stdlib.h> __global__ void vecAdd(float *in1, float *in2, float *out, int len) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < len) { out[i] = in1[i] + in2[i]; } } int main(int argc, char **argv) { // read arguments wbArg_t args = wbArg_read(argc, argv); // read in...
796928181f36a3b13e8f36a34813e755f363ac56.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 "vectFill.cu" #include<chrono> #include<iostream> using namespace...
796928181f36a3b13e8f36a34813e755f363ac56.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 "vectFill.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},...
762285486f44c1bb3e7bdb6b2a6a8ec92c1575f4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "moderngpu.cuh" using namespace mgpu; template<int NT, typename InputIt1, typename InputIt2, typename OutputIt, typename Comp> __global__ void ParallelMergeA(InputIt1 a_global, int aCount, InputIt2 b_global, int bCount,...
762285486f44c1bb3e7bdb6b2a6a8ec92c1575f4.cu
#include "moderngpu.cuh" using namespace mgpu; template<int NT, typename InputIt1, typename InputIt2, typename OutputIt, typename Comp> __global__ void ParallelMergeA(InputIt1 a_global, int aCount, InputIt2 b_global, int bCount, OutputIt dest_global, Comp comp) { typedef typename std::iterator_traits<InputIt1>::v...
f27c79a92d0f6fa092fa746ba93230e5f9e86708.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // A block can be split into parallel threads // use parallel threads instead of parallel blocks __global__ void add(int *a, int *b, int *c) { c[threadIdx.x] = a[threadIdx.x] + b[threadIdx.x]; } void random_ints(int* a, int N) { ...
f27c79a92d0f6fa092fa746ba93230e5f9e86708.cu
// A block can be split into parallel threads // use parallel threads instead of parallel blocks __global__ void add(int *a, int *b, int *c) { c[threadIdx.x] = a[threadIdx.x] + b[threadIdx.x]; } void random_ints(int* a, int N) { int i; for (i = 0; i < N; ++i) a[i] = rand(); } #define N 512 int main(void)...
273dd8feb31f8fc117f2b9906caba0b83905debe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //pass //--blockDim=[32,4] --gridDim=[4,25] #define BLOCK_X 32 #define BLOCK_Y 4 // // Notes: // // 1) strategy: one thread per node in the 2D block; // after initialisation it marches in the k-direction // working with 3 pl...
273dd8feb31f8fc117f2b9906caba0b83905debe.cu
//pass //--blockDim=[32,4] --gridDim=[4,25] #define BLOCK_X 32 #define BLOCK_Y 4 // // Notes: // // 1) strategy: one thread per node in the 2D block; // after initialisation it marches in the k-direction // working with 3 planes of data at a time // // 2) each thread also loads in data for at most one halo node...
6cef234ea36a9ac3e0967cc313f4a98856d7da2e.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <SDL2/SDL.h> #include <string> #include <stdexcept> #include <cstdio> #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include "cuda_common.h" #include <hip/hip_runtime_api.h> #include "complex.h" #include "cuda_com...
6cef234ea36a9ac3e0967cc313f4a98856d7da2e.cu
#include <iostream> #include <SDL2/SDL.h> #include <string> #include <stdexcept> #include <cstdio> #include <cuda.h> #include <curand.h> #include "cuda_common.h" #include <cuda_runtime_api.h> #include "complex.h" #include "cuda_common.h" #include "constants.h" //https://nvlabs.github.io/cub/ #include <cub/cub....
6809eb2eaef60e4bf03146e22163ea1bb41645f6.hip
// !!! This is a file automatically generated by hipify!!! #include "utilidades.h" #include <jacobi.h> #include <iostream> #include "matrices_test.h" #include <readers.h> #include <SRJ_CUDA.h> #include <SRJ.h> #include <SRJ_OMP.h> #include "tests.h" #include "jacobiOmp.h" #include "jacobiCuda.h" using namespace std; ...
6809eb2eaef60e4bf03146e22163ea1bb41645f6.cu
#include "utilidades.h" #include <jacobi.h> #include <iostream> #include "matrices_test.h" #include <readers.h> #include <SRJ_CUDA.h> #include <SRJ.h> #include <SRJ_OMP.h> #include "tests.h" #include "jacobiOmp.h" #include "jacobiCuda.h" using namespace std; const double tolerance = 1.e-8; void printResult(int k, c...
ee52c583a4d4b3f73cc328676275fa2ee7446112.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <helper_cuda.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> #include <fstream> #define ASIZE 256 #define PRIME 1000009 __global__ void processPattern(char* x ,int m, int shifts[]) { in...
ee52c583a4d4b3f73cc328676275fa2ee7446112.cu
#include <cuda.h> #include <helper_cuda.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> #include <fstream> #define ASIZE 256 #define PRIME 1000009 __global__ void processPattern(char* x ,int m, int shifts[]) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if ( idx >= m ) re...
e6dd5cb069837ef1059eeb0f422200ddd50c7e5c.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> //CUDA V 10.2 #include <math.h> #include <algorithm> #include "hip/hip_runtime.h" #include "hip/device_functions.h" #include "device_launch_parameters.h" #include "rocblas.h" extern "C" int testCUDACPP(int a,int b) { int c = a + b; retur...
e6dd5cb069837ef1059eeb0f422200ddd50c7e5c.cu
#include <iostream> //CUDA V 10.2 #include <math.h> #include <algorithm> #include "cuda_runtime.h" #include "device_functions.h" #include "device_launch_parameters.h" #include "cublas_v2.h" extern "C" int testCUDACPP(int a,int b) { int c = a + b; return c; } __global__ void EUGPU_square(float *desGPU1MinusDesGPU2,...
0b6001f553fe1b1d760b1b83aef9a0f8e94bec24.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/bucketize_op.h" #include <thrust/binary_search.h> #include <thrust/device_vector.h> namespace caffe2 { __global__ void BucketizeOpKernel( const int N, const ...
0b6001f553fe1b1d760b1b83aef9a0f8e94bec24.cu
#include "caffe2/core/context_gpu.h" #include "caffe2/operators/bucketize_op.h" #include <thrust/binary_search.h> #include <thrust/device_vector.h> namespace caffe2 { __global__ void BucketizeOpKernel( const int N, const int M, const float* bounds, const float* X, int32_t* out) { CUDA_1D_KERNEL...
5d1ba834ce50b1ae6120d342f5c09bf24788ec04.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 "SHelloWorld.cu" #include<chrono> #include<iostream> using namesp...
5d1ba834ce50b1ae6120d342f5c09bf24788ec04.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 "SHelloWorld.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,2...
466cf72515232d12a30f758df4bf8ca564550a89.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <thrust\device_vector.h> #include <thrust/extrema.h> #include <thrust/system/hip/execution_policy.h> struct subject { float fitness; int index; }; extern "C"...
466cf72515232d12a30f758df4bf8ca564550a89.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <thrust\device_vector.h> #include <thrust/extrema.h> #include <thrust/system/cuda/execution_policy.h> struct subject { float fitness; int index; }; extern "C" { __declspec(dllexport) int Sum(void* p, int size) { in...
47cd49327384465252d8790bf41f17cce8edb490.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __device__ int _logarithm_2(int m) { int count = 0; while (m != 1) { m = m/2; count++; } return count; } __global__ void kernel_compute_gpu(int n, int nb_iters, int *T) { int iter; int id = blockIdx.x * blockD...
47cd49327384465252d8790bf41f17cce8edb490.cu
__device__ int _logarithm_2(int m) { int count = 0; while (m != 1) { m = m/2; count++; } return count; } __global__ void kernel_compute_gpu(int n, int nb_iters, int *T) { int iter; int id = blockIdx.x * blockDim.x + threadIdx.x; if (id < n) for(iter=0; iter<nb_iters; iter++) T[id] = _...
accab4736bca13927aff6623155b6ce7ebcfd7de.hip
// !!! This is a file automatically generated by hipify!!! #if __CUDACC_VER_MAJOR__ > 9 || (__CUDACC_VER_MAJOR__ == 9 && __CUDACC_VER_MINOR__ >= 2) // generated by gen_cutlass_matrix_mul_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GC...
accab4736bca13927aff6623155b6ce7ebcfd7de.cu
#if __CUDACC_VER_MAJOR__ > 9 || (__CUDACC_VER_MAJOR__ == 9 && __CUDACC_VER_MINOR__ >= 2) // generated by gen_cutlass_matrix_mul_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #pragma GCC diagno...
476d82f48040603fe8bf8ea6ad8d939b97687238.hip
// !!! This is a file automatically generated by hipify!!! /* ** Code to implement a d2q9-bgk lattice boltzmann scheme. ** 'd2' inidates a 2-dimensional grid, and ** 'q9' indicates 9 velocities per grid cell. ** 'bgk' refers to the Bhatnagar-Gross-Krook collision step. ** ** The 'speeds' in each cell are numbered...
476d82f48040603fe8bf8ea6ad8d939b97687238.cu
/* ** Code to implement a d2q9-bgk lattice boltzmann scheme. ** 'd2' inidates a 2-dimensional grid, and ** 'q9' indicates 9 velocities per grid cell. ** 'bgk' refers to the Bhatnagar-Gross-Krook collision step. ** ** The 'speeds' in each cell are numbered as follows: ** ** 6 2 5 ** \|/ ** 3-0-1 ** /|\ ** ...
7cf29ba746190b830fca2c3f5b74ea771aa1f4ad.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 zgerbt.cu normal z -> d, Fri Jan 30 19:0...
7cf29ba746190b830fca2c3f5b74ea771aa1f4ad.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @generated from zgerbt.cu normal z -> d, Fri Jan 30 19:00:08 2015 @author Adrien REMY */ #include "common_magma.h" #include "dgerbt.h" ...
556ebdf6e60295675b00f45d0d6496e7661c621b.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <stdio.h> int main(int argc, char **argv) { double *buf_d = NULL; fprintf(stderr, "Allocating...\n"); hipMalloc((void **) &buf_d, sizeof(double) * 1024); fprintf(stderr, "Allocating DO...
556ebdf6e60295675b00f45d0d6496e7661c621b.cu
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> int main(int argc, char **argv) { double *buf_d = NULL; fprintf(stderr, "Allocating...\n"); cudaMalloc((void **) &buf_d, sizeof(double) * 1024); fprintf(stderr, "Allocating DONE.\n"); return 0; }
7d8a29b570c8014d2a988245d6afb0cd03b8c426.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef USE_ROCM #include <Vectormath.hpp> #include <Manifoldmath.hpp> #include <vector> #include <memory> #include <cmath> #include <iostream> #include <stdio.h> // CUDA Version namespace Engine { namespace Manifoldmath {...
7d8a29b570c8014d2a988245d6afb0cd03b8c426.cu
#ifdef USE_CUDA #include <Vectormath.hpp> #include <Manifoldmath.hpp> #include <vector> #include <memory> #include <cmath> #include <iostream> #include <stdio.h> // CUDA Version namespace Engine { namespace Manifoldmath { scalar norm(const vectorfield & vf) { scalar x = Vectormath...
41cd7ffced84f486cd8205df8508bb3009b21769.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with t...
41cd7ffced84f486cd8205df8508bb3009b21769.cu
/** * Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) * * See LICENSE for clarification regarding multiple authors * * 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 * ...
fa8d8698e8aa9b406c17a56c2f806a3af8c4bc2c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <time.h> #define TIMER_CREATE(t) \ hipEvent_t t##_start, t##_end; \ hipEventCreate(&t##_start); \ hipEventCreate(&t##_end); #define ...
fa8d8698e8aa9b406c17a56c2f806a3af8c4bc2c.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <time.h> #define TIMER_CREATE(t) \ cudaEvent_t t##_start, t##_end; \ cudaEventCreate(&t##_start); \ cudaEventCreate(&t##_end); #define TIMER_START(t) \ cudaEventRecord(t##_start); ...
0f4238a12fa0790c1d2b1de3621d0e0bb2ac0ed0.hip
// !!! This is a file automatically generated by hipify!!! /** * The MIT License (MIT) * * Copyright (c) 2015 Kyle Hollins Wray, University of Massachusetts * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), ...
0f4238a12fa0790c1d2b1de3621d0e0bb2ac0ed0.cu
/** * The MIT License (MIT) * * Copyright (c) 2015 Kyle Hollins Wray, University of Massachusetts * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including ...
cb16cd9a2eae4f711bde9725608fbd9070bf3a62.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_common.hpp" #include <cstdio> #include <numeric> #include "kernel_files/pack_kernel.cuknl" extern "C" void cuda_pack_buffers_ (int fields[NUM_FIELDS], int offsets[NUM_FIELDS], int * depth, int * face, double * host...
cb16cd9a2eae4f711bde9725608fbd9070bf3a62.cu
#include "cuda_common.hpp" #include <cstdio> #include <numeric> #include "kernel_files/pack_kernel.cuknl" extern "C" void cuda_pack_buffers_ (int fields[NUM_FIELDS], int offsets[NUM_FIELDS], int * depth, int * face, double * host_buffer) { cuda_chunk.packUnpackAllBuffers(fields, offsets, *depth, *face, 1, host_b...
9304a5670421462dce940a0579789c07696a2b2c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "../include/helper_cuda.h" #include "../cuGMP.h" __global__ void shiftLeftKernel(__dev_mpz_struct *res, __dev_mpz_struct *a, unsigned int shift_limbs, unsigned i...
9304a5670421462dce940a0579789c07696a2b2c.cu
#include <stdio.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "../include/helper_cuda.h" #include "../cuGMP.h" __global__ void shiftLeftKernel(__dev_mpz_struct *res, __dev_mpz_struct *a, unsigned int shift_limbs, unsigned int shift_bits, unsigned int source_limbs) { unsigned int i = ...
8bc3e5a7279666f078c10ac339b7234a551347cb.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <ATen/NativeFunctions.h> #include <ATen/SparseTensorUtils.h> #include <ATen/native/sparse/SparseTensorMath.h> #include <ATen/native/sparse/hip/SparseHIPApplyUtils.cuh> #include <ATen/native/sparse...
8bc3e5a7279666f078c10ac339b7234a551347cb.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/NativeFunctions.h> #include <ATen/SparseTensorUtils.h> #include <ATen/native/sparse/SparseTensorMath.h> #include <ATen/native/sparse/cuda/SparseCUDAApplyUtils.cuh> #include <ATen/native/sparse/cuda/SparseCUDABlas.cuh> #include <ATen/cuda/CUDAApply...
f81b50cb433afddb18dea93c9b7e36707283cf95.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" //////////////////////////////////////////////////////////////////////////////// /* Hologram generating algorithms for CUDA Devices Copyright 2009, 2010, 2011, 2012 Martin Persson martin.persson@physics.gu.se ...
f81b50cb433afddb18dea93c9b7e36707283cf95.cu
#include "includes.h" //////////////////////////////////////////////////////////////////////////////// /* Hologram generating algorithms for CUDA Devices Copyright 2009, 2010, 2011, 2012 Martin Persson martin.persson@physics.gu.se This file is part of GenerateHologramCUDA. GenerateHologramCUDA is free software: you ...
ff0e56878bfce0767cc2442ab473348992beeaba.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef IUSPARSECOMPARE_CU #define IUSPARSECOMPARE_CU #include <list> #include <iostream> #include <iudefs.h> #include <iucore.h> #include <iucutil.h> #include <iumath.h> #include <iusparse.h> // textures texture<float, 2, hipRead...
ff0e56878bfce0767cc2442ab473348992beeaba.cu
#ifndef IUSPARSECOMPARE_CU #define IUSPARSECOMPARE_CU #include <list> #include <iostream> #include <iudefs.h> #include <iucore.h> #include <iucutil.h> #include <iumath.h> #include <iusparse.h> // textures texture<float, 2, cudaReadModeElementType> rof_tex_u; texture<float, 2, cudaReadModeElementType> rof_tex_u_; text...
c306b41743d4cee93ed10acf8d942280b593e702.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "raytrace.h" #include <cassert> #include <iostream> #include "helper_cuda.h" #include "helper_math.h" #include "geometry.cuh" #include "geometry.cu" __device__ float siddonRPL( float3 source, float3 dest, floa...
c306b41743d4cee93ed10acf8d942280b593e702.cu
#include "raytrace.h" #include <cassert> #include <iostream> #include "helper_cuda.h" #include "helper_math.h" #include "geometry.cuh" #include "geometry.cu" __device__ float siddonRPL( float3 source, float3 dest, float3 start, uint3 size, float3 spacing, cudaTextureObject_t texDens, float...
d6949cabde689ab18401a5994c2ef4cee2b78575.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/detail/IndexUtils.cuh> #include <ATen/hip/detail/TensorInfo.cuh> #define THREADS 1024 #define BLOCKS(N) (N + THREADS - 1) / THREADS template <typename scalar_t> __global__ void grid_kernel...
d6949cabde689ab18401a5994c2ef4cee2b78575.cu
#include <ATen/ATen.h> #include <ATen/cuda/detail/IndexUtils.cuh> #include <ATen/cuda/detail/TensorInfo.cuh> #define THREADS 1024 #define BLOCKS(N) (N + THREADS - 1) / THREADS template <typename scalar_t> __global__ void grid_kernel(int64_t *cluster, at::cuda::detail::TensorInfo<scalar_t, ...
3a5306bed0f2fd6dc21b7d13ac8a1dbb207e8b08.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,...
3a5306bed0f2fd6dc21b7d13ac8a1dbb207e8b08.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. * *...
b76345531a36457a002430f14d3220bb159669de.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "THGeneral.h" #include "THHGeneral.h" #include "THHTensor.h" #ifndef DIVUP #define DIVUP(x, y) (((x) + (y) - 1) / (y)) #endif static void THCudaTensor_computesz(THCudaTensor *self, long **sz_, long **st_) { long *sz, *s...
b76345531a36457a002430f14d3220bb159669de.cu
#include "THGeneral.h" #include "THCGeneral.h" #include "THCTensor.h" #ifndef DIVUP #define DIVUP(x, y) (((x) + (y) - 1) / (y)) #endif static void THCudaTensor_computesz(THCudaTensor *self, long **sz_, long **st_) { long *sz, *st, *szh; int i; THCudaCheck(cudaMalloc(&sz, sizeof(long)*self->nDimension)); TH...
2d8146927caae8b3b35bc02a089d031de9a2adae.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <stdio.h> #include <time.h> #define LENGTH 256 using namespace std; struct soa{ int *a; int *b; int *c; }; __global__ void vector_add(int *a, int *b, int *c){ int i = threadIdx.x ; ...
2d8146927caae8b3b35bc02a089d031de9a2adae.cu
#include <iostream> #include <stdio.h> #include <time.h> #define LENGTH 256 using namespace std; struct soa{ int *a; int *b; int *c; }; __global__ void vector_add(int *a, int *b, int *c){ int i = threadIdx.x ; if (i < LENGTH) c[i] = a[i] + b[i]; // read } __host__ void vector_add_cpu(fl...
86c4b5fb86d2ee917933d1f410c50a4d4491ec89.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Implementes the math functions for CPU. #include <thrust/device_ptr.h> #include <thrust/reduce.h> #include <thrust/system/hip/detail/par.h> #include <thrust/version.h> #include "math.h" #include "context_gpu.h" static_assert(...
86c4b5fb86d2ee917933d1f410c50a4d4491ec89.cu
// Implementes the math functions for CPU. #include <thrust/device_ptr.h> #include <thrust/reduce.h> #include <thrust/system/cuda/detail/par.h> #include <thrust/version.h> #include "math.h" #include "context_gpu.h" static_assert(THRUST_VERSION >= 100800, "kurff requires a thrust version > 1.8."); nam...
e0dab058fe93e0302d99ffe3edfb8945cea2554b.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 * *...
e0dab058fe93e0302d99ffe3edfb8945cea2554b.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 ...
48b5a465f85ab4b6cc15069e5447ec0a2a68fde4.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <rocblas.h> #include "convolutional_layer.h" #include "batchnorm_layer.h" #include "gemm.h" #include "blas.h" #include "im2col.h" #include "col2im.h" #include "utils.h" #include "dark_cuda.h" #...
48b5a465f85ab4b6cc15069e5447ec0a2a68fde4.cu
#include <cuda_runtime.h> #include <curand.h> #include <cublas_v2.h> #include "convolutional_layer.h" #include "batchnorm_layer.h" #include "gemm.h" #include "blas.h" #include "im2col.h" #include "col2im.h" #include "utils.h" #include "dark_cuda.h" #include "box.h" __global__ void binarize_kernel(float *x, int n, fl...
0285718f25b9e2bee79a821d6d9202b411c62c1d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * @brief Implementation file for matrix broadcasting * * @file matrix_broadcast.cu * @author David Chan * @date 2018-04-04 * Copyright (c) 2018, Regents of the University of California */ #include "include/util/matrix_b...
0285718f25b9e2bee79a821d6d9202b411c62c1d.cu
/** * @brief Implementation file for matrix broadcasting * * @file matrix_broadcast.cu * @author David Chan * @date 2018-04-04 * Copyright (c) 2018, Regents of the University of California */ #include "include/util/matrix_broadcast_utils.h" // Performs the operation matrix[i, :] = binary_op(matrix[i, :], // a...
6453d0218d29d6381b08bbdbf418f446f0be8d8f.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...
6453d0218d29d6381b08bbdbf418f446f0be8d8f.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...
09f7ca5135d29f572aa1a51970c1f9ee4cbf6e46.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> __gloabl__ void f(int *z) { } int main(void) { int z; int *dev_z; hipMalloc((void**)&dev_z, sizeof(int)); hipLaunchKernelGGL(...
09f7ca5135d29f572aa1a51970c1f9ee4cbf6e46.cu
#include <stdlib.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> __gloabl__ void f(int *z) { } int main(void) { int z; int *dev_z; cudaMalloc((void**)&dev_z, sizeof(int)); fun<<<1,1>>>(dev_z); cudaMemcpy(&z, dev_z, sizeof(int), cudaMemcpyDeviceToHos...
c5db6bc3fb33ce2ccfc7a5d8f743eaf962e3bd6a.hip
// !!! This is a file automatically generated by hipify!!! //#include"../crab_cavity.h" #include"crab_cavity.h" //#include"../linear_map.h" #include"linear_map.h" //#include"../Lorentz_boost.h" #include"Lorentz_boost.h" #include"../beam.h" #include"beam.h" #include"gtrack.h" #include<math.h> #include<thrust/device_vect...
c5db6bc3fb33ce2ccfc7a5d8f743eaf962e3bd6a.cu
//#include"../crab_cavity.h" #include"crab_cavity.h" //#include"../linear_map.h" #include"linear_map.h" //#include"../Lorentz_boost.h" #include"Lorentz_boost.h" #include"../beam.h" #include"beam.h" #include"gtrack.h" #include<math.h> #include<thrust/device_vector.h> #include<thrust/copy.h> #include<thrust/reduce.h> #in...
443c589de6a6b8a52041e62210aad50483b2da92.hip
// !!! This is a file automatically generated by hipify!!! /* Molecular dynamics simulation linear code for binary Lennard-Jones liquid under NVE ensemble; Author: You-Liang Zhu, Email: youliangzhu@ciac.ac.cn Copyright: You-Liang Zhu This code is free: you can redistribute it and/or modify it under the term...
443c589de6a6b8a52041e62210aad50483b2da92.cu
/* Molecular dynamics simulation linear code for binary Lennard-Jones liquid under NVE ensemble; Author: You-Liang Zhu, Email: youliangzhu@ciac.ac.cn Copyright: You-Liang Zhu This code is free: you can redistribute it and/or modify it under the terms of the GNU General Public License.*/ #include <ctype.h...
73c937b723e610d6a6ce50eac77d4a9044cb61d4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "./svd.cuh" #include <rocblas.h> #include <cusolverDn.h> #define STEP(i) printf("Step %d\n", i); #define CCE(errValue) \ do { ...
73c937b723e610d6a6ce50eac77d4a9044cb61d4.cu
#include "./svd.cuh" #include <cublas_v2.h> #include <cusolverDn.h> #define STEP(i) printf("Step %d\n", i); #define CCE(errValue) \ do { \ if (errValue != cudaSuccess) { ...