hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
4422a4fd31cd18d587969fe20392a911014939cb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "particle.h" #include "kernel_hip.cuh" #include <math.h> #include <stdio.h> __global__ void kernel_updateGalaxy( float *m, float3 *p,float3 *acceleration, float3 *p_out ) { int i = blockIdx.x * blockDim.x + threadIdx.x;...
4422a4fd31cd18d587969fe20392a911014939cb.cu
#include "cuda.h" #include "particle.h" #include "kernel.cuh" #include <math.h> #include <stdio.h> __global__ void kernel_updateGalaxy( float *m, float3 *p,float3 *acceleration, float3 *p_out ) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j; float3 acc; if (i<N_PARTICULE) { acc=make_float3(0.0f,0.0f...
4ebae7ff99608f38147c9e054e157e3586e0bc55.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <cstdlib> #include <hip/hip_runtime.h> #include <cmath> #define M 2048 #define W 15 #define w 3 #define threshold 80 using namespace std; __global__ void smoothening_kernel(float* d_filter,float* d_raw_image,float* d_hx,float* ...
4ebae7ff99608f38147c9e054e157e3586e0bc55.cu
#include <iostream> #include <cstdlib> #include <cuda.h> #include <cmath> #define M 2048 #define W 15 #define w 3 #define threshold 80 using namespace std; __global__ void smoothening_kernel(float* d_filter,float* d_raw_image,float* d_hx,float* d_hy,float* d_gx,float* d_gy,float* d_smooth_image,float* d_edged_imag...
bc90b66861b5db6239d1e76002a3982ed9aaf0a6.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...
bc90b66861b5db6239d1e76002a3982ed9aaf0a6.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 ...
194dfc5e2db011f1a30512636d138c12ba64bc36.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_initialise_chunk_kernel_x; int xdim0_initialise_chunk_kernel_x_h = -1; __constant__ int xdim1_initialise_chunk_kernel_x; int xdim1_initialise_chunk_kernel_x_h = -1; __constant...
194dfc5e2db011f1a30512636d138c12ba64bc36.cu
// // auto-generated by ops.py // __constant__ int xdim0_initialise_chunk_kernel_x; int xdim0_initialise_chunk_kernel_x_h = -1; __constant__ int xdim1_initialise_chunk_kernel_x; int xdim1_initialise_chunk_kernel_x_h = -1; __constant__ int xdim2_initialise_chunk_kernel_x; int xdim2_initialise_chunk_kernel_x_h = -1; #un...
bee0fff7d48d2b86cff21b3d6d58a73bbe5b2072.hip
// !!! This is a file automatically generated by hipify!!! #include <moderngpu/transform.hxx> // for transform. #include <cstdio> #include <time.h> int main(int argc, char** argv) { // Create an instance of an object that implements context_t. // context_t is an abstract base class that wraps basic CUDA r...
bee0fff7d48d2b86cff21b3d6d58a73bbe5b2072.cu
#include <moderngpu/transform.hxx> // for transform. #include <cstdio> #include <time.h> int main(int argc, char** argv) { // Create an instance of an object that implements context_t. // context_t is an abstract base class that wraps basic CUDA runtime // services like cudaMalloc and cudaFree. //...
7ba5ef7a332871d8f4ce2e5d2e27f2afce164d6b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include "cuda_utils.h" #include "sampling_gpu.h" #define TOTAL_THREADS 1024 inline int opt_n_threads(int work_size) { const int pow_2 = ::log(static_cast<double>(work_size)) / ::log(2.0...
7ba5ef7a332871d8f4ce2e5d2e27f2afce164d6b.cu
#include <stdio.h> #include <stdlib.h> #include "cuda_utils.h" #include "sampling_gpu.h" #define TOTAL_THREADS 1024 inline int opt_n_threads(int work_size) { const int pow_2 = std::log(static_cast<double>(work_size)) / std::log(2.0); return max(min(1 << pow_2, TOTAL_THREADS), 1); } __device__ void __updat...
rt_common.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2009-2010 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 *...
rt_common.cu
/* * Copyright 2009-2010 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...
a49ee02685bf236d4319046d6274275727b4f602.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> //#include <cutil.h> // Includes //#include <stdio.h> // includes, project //#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#include <shrQATest.h> //#include <shrUtils.h> /...
a49ee02685bf236d4319046d6274275727b4f602.cu
#include <stdio.h> #include <stdlib.h> //#include <cutil.h> // Includes //#include <stdio.h> // includes, project //#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#include <shrQATest.h> //#include <shrUtils.h> // includes CUDA #include <cuda_runtime.h> #define THREADS_...
61ee853a710bbcacc9886992d0c65ab065fae6fd.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdlib> #include <hip/hip_runtime.h> #include "mesh.h" namespace acr { Mesh::Mesh(const aiMesh *aiMesh) : materialIndex(aiMesh->mMaterialIndex) { thrust::host_vector<Vertex> vs(aiMesh->mNumVertices); //To get centroid math::vec3 sumVert...
61ee853a710bbcacc9886992d0c65ab065fae6fd.cu
#include <cstdlib> #include <cuda.h> #include "mesh.h" namespace acr { Mesh::Mesh(const aiMesh *aiMesh) : materialIndex(aiMesh->mMaterialIndex) { thrust::host_vector<Vertex> vs(aiMesh->mNumVertices); //To get centroid math::vec3 sumVertices(0, 0, 0); math::vec3 minBound(FLT_MAX, FLT_MAX, FLT_MAX); mat...
8e16f9e622e31ff8becae24c0bcf250b0d212c91.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * All threads increments a counter in global memory * by one. The difference is that one uses CUDA's atomic function * to perform an increment. * What to observe/ponder: * - What are the values that are printed out? * - Ar...
8e16f9e622e31ff8becae24c0bcf250b0d212c91.cu
/** * All threads increments a counter in global memory * by one. The difference is that one uses CUDA's atomic function * to perform an increment. * What to observe/ponder: * - What are the values that are printed out? * - Are they consistent across runs? */ #include <stdio.h> __device__ __managed__ int count...
1ad3e4f84d6df8ed7fa5f1f720b7a5f71d240e6f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * * saxpy.cu * * Part of the microdemo to illustrate how to initialize the driver API. * Compile this into ptx with: * * Build with: nvcc --ptx saxpy.cu * * The resulting .ptx file is needed by the sample saxpyDrv.cpp. ...
1ad3e4f84d6df8ed7fa5f1f720b7a5f71d240e6f.cu
/* * * saxpy.cu * * Part of the microdemo to illustrate how to initialize the driver API. * Compile this into ptx with: * * Build with: nvcc --ptx saxpy.cu * * The resulting .ptx file is needed by the sample saxpyDrv.cpp. * * Copyright (c) 2012, Archaea Software, LLC. * All rights reserved. * * Redistribu...
66f132cb3088a2a672363231389cf81387910bac.hip
// !!! This is a file automatically generated by hipify!!! //#include "../../include/layers/inner_product_layer.h" // //#include "../../include/util/math_function_ptr.h" // //namespace BigBang { // //template<typename dtype> //void InnerProductLayer<dtype>::Forward_GPU(const Tensor<dtype>* bottom, Tensor<dtype>* top) {...
66f132cb3088a2a672363231389cf81387910bac.cu
//#include "../../include/layers/inner_product_layer.h" // //#include "../../include/util/math_function_ptr.h" // //namespace BigBang { // //template<typename dtype> //void InnerProductLayer<dtype>::Forward_GPU(const Tensor<dtype>* bottom, Tensor<dtype>* top) { // bigbang_gpu_gemm<dtype>(false, false, bottom_row_, weig...
73653a4879056ee18ae6497e810149c4f908f5f3.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <string> #include <numeric> //#define ITER_WORKLOAD #include "../../comm/coo.cuh" #include "../../comm/csr.cuh" #include "../../util/time.cuh" #include "baseline.cuh" #include "gc.cuh" #include "validation.cuh" #define FETCH_SIZ...
73653a4879056ee18ae6497e810149c4f908f5f3.cu
#include <iostream> #include <string> #include <numeric> //#define ITER_WORKLOAD #include "../../comm/coo.cuh" #include "../../comm/csr.cuh" #include "../../util/time.cuh" #include "baseline.cuh" #include "gc.cuh" #include "validation.cuh" #define FETCH_SIZE (FETCHSIZE) using namespace std; int main(int argc, ch...
b18a44a281bac8bcbb80dbdea718bbe9d54b9671.hip
// !!! This is a file automatically generated by hipify!!! // Brute-force Key Search - TEA Encryption with 31-bit Key // MP4, Spring 2016, GPU Programming @ Auburn University #include <stdio.h> #include <stdint.h> #include <omp.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> /* Data to test with (this sho...
b18a44a281bac8bcbb80dbdea718bbe9d54b9671.cu
// Brute-force Key Search - TEA Encryption with 31-bit Key // MP4, Spring 2016, GPU Programming @ Auburn University #include <stdio.h> #include <stdint.h> #include <omp.h> #include <cuda.h> #include <cuda_runtime.h> /* Data to test with (this should be easy to change) */ const uint32_t orig_data[2] = { 0xDEADBEEF, 0x0...
3a537ffb27ca4cee72babe389d765408199dbdbf.hip
// !!! This is a file automatically generated by hipify!!! #include "../common/common.h" #include <hip/hip_runtime.h> #include <stdio.h> void checkResult(float *hostRef, float *gpuRef, const int N) { double epsilon = 1.0E-8; bool match = 1; for (int i = 0; i < N; i++) { if (abs(hostRef[i] - g...
3a537ffb27ca4cee72babe389d765408199dbdbf.cu
#include "../common/common.h" #include <cuda_runtime.h> #include <stdio.h> void checkResult(float *hostRef, float *gpuRef, const int N) { double epsilon = 1.0E-8; bool match = 1; for (int i = 0; i < N; i++) { if (abs(hostRef[i] - gpuRef[i]) > epsilon) { match = 0; ...
2a7e6c4b31d08cac8e4f129f5b396083f98474e0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" { __global__ void enforceLU( double *matrix, int lda ) { int i = threadIdx.x; int j = blockIdx.x; if( i <= j ) matrix[i + j*lda] = (i == j) ? 1 : 0; } } // zeros out the whole part of matrix above ...
2a7e6c4b31d08cac8e4f129f5b396083f98474e0.cu
extern "C" { __global__ void enforceLU( double *matrix, int lda ) { int i = threadIdx.x; int j = blockIdx.x; if( i <= j ) matrix[i + j*lda] = (i == j) ? 1 : 0; } } // zeros out the whole part of matrix above the diagonal (not just a block) extern "C" { __global__ void zerosU(int m, int n, doubl...
d7d621a529fd1a2d1cd82f19d6725e98c4e1994f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* CIS565 CUDA Checker: A simple CUDA hello-world style program for Patrick Cozzi's CIS565: GPU Computing at the University of Pennsylvania Written by Yining Karl Li, Liam Boone, and Harmony Li. Copyright (c) 2014 Universi...
d7d621a529fd1a2d1cd82f19d6725e98c4e1994f.cu
/* CIS565 CUDA Checker: A simple CUDA hello-world style program for Patrick Cozzi's CIS565: GPU Computing at the University of Pennsylvania Written by Yining Karl Li, Liam Boone, and Harmony Li. Copyright (c) 2014 University of Pennsylvania */ #include <stdio.h> #include <iostream> #include "kernel.h" vo...
a028545a298d24d618fdd369f8e0fce841ddbe60.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 "sum.cu" #include<chrono> #include<iostream> using namespace std;...
a028545a298d24d618fdd369f8e0fce841ddbe60.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 "sum.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,3...
bdc34b66a94b5738ffe8bdc0ba3e3848e856d075.hip
// !!! This is a file automatically generated by hipify!!! /*Function to update the the solution!*/ /*------------------ Library Dependencies --------------------------------*/ #include <hip/hip_runtime.h> #include <cmath> #include "hip/hip_runtime.h" #include <hip/device_functions.h> /*-----------------------Func...
bdc34b66a94b5738ffe8bdc0ba3e3848e856d075.cu
/*Function to update the the solution!*/ /*------------------ Library Dependencies --------------------------------*/ #include <cuda.h> #include <cmath> #include "cuda_runtime.h" #include <device_functions.h> /*-----------------------Function Dependencies!----------------------*/ #include "primconsflux.cuh" __glo...
16a35671b85404745da528faa508fed2f7f1f934.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "nms_cuda.h" #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0)) typedef unsigned long long MaskType; const long numThreadsPerBlock = sizeof(MaskType) * 8; __device__ inline float iou(const float *bbox1, const float *bbox...
16a35671b85404745da528faa508fed2f7f1f934.cu
#include "nms_cuda.h" #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0)) typedef unsigned long long MaskType; const long numThreadsPerBlock = sizeof(MaskType) * 8; __device__ inline float iou(const float *bbox1, const float *bbox2) { float intersectionLeft = max(bbox1[0], bbox2[0]); float intersectionTop = m...
93c07d6850ce206c28b596ea672caf43630176c4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #define N 64 __global__ void matrixMulGPU( int * a, int * b, int * c ) { /* * Build out this kernel. */ int val = 0; int i_x = blockIdx.x * blockDim.x + threadIdx.x; int i_y = blockIdx.y * bloc...
93c07d6850ce206c28b596ea672caf43630176c4.cu
#include <stdio.h> #define N 64 __global__ void matrixMulGPU( int * a, int * b, int * c ) { /* * Build out this kernel. */ int val = 0; int i_x = blockIdx.x * blockDim.x + threadIdx.x; int i_y = blockIdx.y * blockDim.y + threadIdx.y; int s_x = gridDim.x * blockDim.x; int s_y = gridDim.y * bloc...
0d3c4e0932d72e5dfc3286a460eeb05e3ec4b595.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 "reduce.cu" #include<chrono> #include<iostream> using namespace s...
0d3c4e0932d72e5dfc3286a460eeb05e3ec4b595.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 "reduce.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{3...
186002d80d620904a4c712720028f11f61543cb7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Inter-block reduction. // // Function gridReduce performs point-wise reductions of scalars across thread // blocks. Thread blocks are disjointly partitioned into groups of thread // blocks, "reduction segments," that are collecti...
186002d80d620904a4c712720028f11f61543cb7.cu
// Inter-block reduction. // // Function gridReduce performs point-wise reductions of scalars across thread // blocks. Thread blocks are disjointly partitioned into groups of thread // blocks, "reduction segments," that are collectively defined by boolean // template parameters, X_BLOCK, Y_BLOCK and Z_BLOCK. Each of X/...
a9be3386d997fbb0e92e58d8c7948332b85ddc8c.hip
// !!! This is a file automatically generated by hipify!!! #if 0 #include "solve.h" #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #include <iostream> #ifdef _WIN32 typedef unsigned int uint32_t; //typedef unsigned short uint32_t; #endif using namespace std; #define PROFILE 0 #define USE_GRID 1 #de...
a9be3386d997fbb0e92e58d8c7948332b85ddc8c.cu
#if 0 #include "solve.h" #include <cuda.h> #include <cuda_runtime_api.h> #include <iostream> #ifdef _WIN32 typedef unsigned int uint32_t; //typedef unsigned short uint32_t; #endif using namespace std; #define PROFILE 0 #define USE_GRID 1 #define USE_BOX_PRUNING 0 #define kRadius 0.1f #define kMaxRadius (kRadius)...
461cefcecf9c0f24579833542f9a0b11fafe3631.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...
461cefcecf9c0f24579833542f9a0b11fafe3631.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...
66d9126422955eb0211d18f87a9e740f3b19c405.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Homework 2 // Image Blurring // // In this homework we are blurring an image. To do this, imagine that we have // a square array of weight values. For each pixel in the image, imagine that we // overlay this square array of weigh...
66d9126422955eb0211d18f87a9e740f3b19c405.cu
// Homework 2 // Image Blurring // // In this homework we are blurring an image. To do this, imagine that we have // a square array of weight values. For each pixel in the image, imagine that we // overlay this square array of weights on top of the image such that the center // of the weight array is aligned with the c...
6af519eac6ddd70494b4099db241a2d93285220d.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2013 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, ...
6af519eac6ddd70494b4099db241a2d93285220d.cu
/* * Copyright 1993-2013 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...
e144d08b28afb5e9091f17def995c19835a05912.hip
// !!! This is a file automatically generated by hipify!!! #include "splat_render_cuda.hpp" #include "depth_camera_cuda.hpp" //#include <hip/hip_runtime.h> #include <ftl/cuda_matrix_util.hpp> #include "splat_params.hpp" #include "mls_cuda.hpp" #include <ftl/depth_camera.hpp> #define T_PER_BLOCK 8 #define UPSAMPLE_FA...
e144d08b28afb5e9091f17def995c19835a05912.cu
#include "splat_render_cuda.hpp" #include "depth_camera_cuda.hpp" //#include <cuda_runtime.h> #include <ftl/cuda_matrix_util.hpp> #include "splat_params.hpp" #include "mls_cuda.hpp" #include <ftl/depth_camera.hpp> #define T_PER_BLOCK 8 #define UPSAMPLE_FACTOR 1.8f #define WARP_SIZE 32 #define DEPTH_THRESHOLD 0.05f #...
bad84fee06d586d802e237ffa3062bdfbe83324e.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...
bad84fee06d586d802e237ffa3062bdfbe83324e.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...
6e9d869a4b830f400ab204456389f2d152a68e4a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void create_combined_escape_newline_index(char *file, long n, bool *escape_carry_index, int *newline_count_index, long *escape_index, long escape_index_size, long *newline_index) { int index = blockIdx.x * blockDim.x + ...
6e9d869a4b830f400ab204456389f2d152a68e4a.cu
__global__ void create_combined_escape_newline_index(char *file, long n, bool *escape_carry_index, int *newline_count_index, long *escape_index, long escape_index_size, long *newline_index) { int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; // We want to always calculate on...
e51072af8a0b0c30c23e18ccf7287ccaa321371e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <hip/hip_runtime.h> #include <rocblas.h> #define PERR(call) \ if (call) {\ fprintf(stderr, "%s:%d Error [%s] on "#call"\n", __FILE__, __LINE__,\ hipGetErrorString(hipGetLastError()));...
e51072af8a0b0c30c23e18ccf7287ccaa321371e.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <cuda_runtime.h> #include <cublas_v2.h> #define PERR(call) \ if (call) {\ fprintf(stderr, "%s:%d Error [%s] on "#call"\n", __FILE__, __LINE__,\ cudaGetErrorString(cudaGetLastError()));\ exit(1);\ } #define ERRCHECK \ if (cudaPeekAtLast...
0ca7bb3286ae706631bc348872eb87c766d22e3d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include <cmath> #include <iostream> float cpu_array [25]; float cpu_output_array [25]; float *gpu_array_A; float *gpu_array_B; float *gpu_output_array; const int mat_width = 5; dim3 dimBlock(mat_width, mat_widt...
0ca7bb3286ae706631bc348872eb87c766d22e3d.cu
#include <stdio.h> #include <cuda.h> #include <cmath> #include <iostream> float cpu_array [25]; float cpu_output_array [25]; float *gpu_array_A; float *gpu_array_B; float *gpu_output_array; const int mat_width = 5; dim3 dimBlock(mat_width, mat_width); dim3 dimGrid(1, 1); void initCuda(int width) { cudaMalloc((void*...
381320462415981ce528d2f77c76085bc207f08c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Test for linking with CUDA's libdevice as outlined in // http://llvm.org/docs/NVPTXUsage.html#linking-with-libdevice // // REQUIRES: nvptx-registered-target // // Prepare bitcode file to link with // RUN: %clang_cc1 -triple nvptx...
381320462415981ce528d2f77c76085bc207f08c.cu
// Test for linking with CUDA's libdevice as outlined in // http://llvm.org/docs/NVPTXUsage.html#linking-with-libdevice // // REQUIRES: nvptx-registered-target // // Prepare bitcode file to link with // RUN: %clang_cc1 -triple nvptx-unknown-cuda -emit-llvm-bc -o %t.bc \ // RUN: %S/Inputs/device-code.ll // // Make su...
97ff81a15fce7b7211f254e33c6f307ca043ec97.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "THHUNN.h" #include "common.h" template <typename Dtype, bool COUNT_INCLUDE_PAD> __global__ void AvePoolForward(const int nthreads, const Dtype* const bottom_data, const int num, const int channels, const int heigh...
97ff81a15fce7b7211f254e33c6f307ca043ec97.cu
#include "THCUNN.h" #include "common.h" template <typename Dtype, bool COUNT_INCLUDE_PAD> __global__ void AvePoolForward(const int nthreads, const Dtype* const bottom_data, const int num, const int channels, const int height, const int width, const int pooled_height, const int pooled_width, const int kerne...
9b203ea87db2214ecda5c29dea5adce49347f8f2.hip
// !!! This is a file automatically generated by hipify!!! #include <hiprand/hiprand.h> ... // Fill the array A(nr_rows_A, nr_cols_A) with random numbers on GPU void GPU_fill_rand(float *A, int nr_rows_A, int nr_cols_A) { // Create a pseudo-random number generator hiprandGenerator_t prng; hiprandCreateGene...
9b203ea87db2214ecda5c29dea5adce49347f8f2.cu
#include <curand.h> ... // Fill the array A(nr_rows_A, nr_cols_A) with random numbers on GPU void GPU_fill_rand(float *A, int nr_rows_A, int nr_cols_A) { // Create a pseudo-random number generator curandGenerator_t prng; curandCreateGenerator(&prng, CURAND_RNG_PSEUDO_DEFAULT); // Set the seed for the ...
f29b4a9a7b76482391bad3af5d083fd15b672baa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/rms_norm_op.h" #include <vector> #include <thrust/tuple.h> #include "c10/hip/HIPMathCompat.h" #include "caffe2/core/context_gpu.h" #include "caffe2/utils/math.h" #include "caffe2/utils/math/reduce.cuh" ...
f29b4a9a7b76482391bad3af5d083fd15b672baa.cu
#include "caffe2/operators/rms_norm_op.h" #include <vector> #include <thrust/tuple.h> #include "c10/cuda/CUDAMathCompat.h" #include "caffe2/core/context_gpu.h" #include "caffe2/utils/math.h" #include "caffe2/utils/math/reduce.cuh" #include "caffe2/utils/math/utils.h" namespace caffe2 { namespace { template <typen...
2d1be139edb60ba02936eefee730c81667a525e2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define GET_TIME(X, Y) (((Y).tv_sec - (X).tv_sec) + ((Y).tv_nsec - (X).tv_nsec) / 1000000000.0) #define THREADS_PER_BLOCK 1024 __cons...
2d1be139edb60ba02936eefee730c81667a525e2.cu
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define GET_TIME(X, Y) (((Y).tv_sec - (X).tv_sec) + ((Y).tv_nsec - (X).tv_nsec) / 1000000000.0) #define THREADS_PER_BLOCK 1024 __constant__ __device__ int IE_d; __constant__ __device__ int JE_d; __constant__ __device_...
569a768b5f7d0ff8b3f0940477bca1bbf9c2d8af.hip
// !!! This is a file automatically generated by hipify!!! #include <algorithm> #include <vector> #include <iomanip> #include "caffe/layers/beam_search_layer.hpp" namespace caffe { template <typename Dtype> void BeamSearchLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*...
569a768b5f7d0ff8b3f0940477bca1bbf9c2d8af.cu
#include <algorithm> #include <vector> #include <iomanip> #include "caffe/layers/beam_search_layer.hpp" namespace caffe { template <typename Dtype> void BeamSearchLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) { const int batch_size = bottom[0]->shape(0); ...
db1c913b668c40536959090a9ba5803bc6d5f751.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "utils.h" /* * Description: * this function finds the max along the innermost dimension * Nd input, (N-1)d output, (N-1)d argmax */ __global__ void max_output(float *input, float *output, float *indices, ...
db1c913b668c40536959090a9ba5803bc6d5f751.cu
#include "utils.h" /* * Description: * this function finds the max along the innermost dimension * Nd input, (N-1)d output, (N-1)d argmax */ __global__ void max_output(float *input, float *output, float *indices, long nrows, long ncols) { // output offset: long o = threadIdx.x ...
6472e5020eb74189d05764870dfb2719a16b2765.hip
// !!! This is a file automatically generated by hipify!!! /* #include <cmath> #include <cstdio> #include <hip/hip_runtime.h> #include "dock.h" #include "gpu.cuh" */ /* #define expf(a) (a) #define powf(a,b) (a+b) #define logf(a) (a) #define sqrtf(a) (a) */ __device__ void CalcEnergy_d (const int bidx, Ligand * ...
6472e5020eb74189d05764870dfb2719a16b2765.cu
/* #include <cmath> #include <cstdio> #include <cuda.h> #include "dock.h" #include "gpu.cuh" */ /* #define expf(a) (a) #define powf(a,b) (a+b) #define logf(a) (a) #define sqrtf(a) (a) */ __device__ void CalcEnergy_d (const int bidx, Ligand * __restrict__ mylig, const Protein * myprt) { // reduce all points on...
a5c39c69b1aec5a7df5922678c5d5ff0cfed2b28.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "pearson_cor_gpu.cuh" __global__ void pearson_cor_kernel(double *x, double *y, unsigned int *subsamples, double *cor, unsigned int n, unsigned int p, unsigned int m, unsigned int B){ register unsigned int col_id = blo...
a5c39c69b1aec5a7df5922678c5d5ff0cfed2b28.cu
#include "pearson_cor_gpu.cuh" __global__ void pearson_cor_kernel(double *x, double *y, unsigned int *subsamples, double *cor, unsigned int n, unsigned int p, unsigned int m, unsigned int B){ register unsigned int col_id = blockIdx.y*MAX_BLOCKS + blockIdx.x; if(col_id < p){ register unsigned int rows_id...
e887bfbbe0e7843cc11b2d9a09457cf772d89a26.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/lice...
e887bfbbe0e7843cc11b2d9a09457cf772d89a26.cu
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
22fdba32e8a85ba1387001dc9fdb8bcd369fcdc6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /**************************************************************************//** * * \file cumomentumtrainer.cu * \author Daniel Strigl, Klaus Kofler * \date Jul 13 2009 * * $Id: cumomentumtrainer.cu 3558 2010-11-22 11:04:5...
22fdba32e8a85ba1387001dc9fdb8bcd369fcdc6.cu
/**************************************************************************//** * * \file cumomentumtrainer.cu * \author Daniel Strigl, Klaus Kofler * \date Jul 13 2009 * * $Id: cumomentumtrainer.cu 3558 2010-11-22 11:04:51Z klaus $ * * \brief Implementation of cnnplus::CuMomentumTrainer. * *************...
e1f34c4846d8af88bee2f28329debc4b2c5c580a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we ...
e1f34c4846d8af88bee2f28329debc4b2c5c580a.cu
/* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we have used in the previous assignment. To store this extra information we use singl...
c75d7ba2b4147b3372960cd8e75ee9f8a3006e5f.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,...
c75d7ba2b4147b3372960cd8e75ee9f8a3006e5f.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 relate...
7a15ffef6c1873c6f59bea61c927ae7b7826cf12.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we ...
7a15ffef6c1873c6f59bea61c927ae7b7826cf12.cu
/* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we have used in the previous assignment. To store this extra information we use singl...
4de34d7e8e4f74f742a501b0c1f806f81350da88.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "float.h" #include <builtin_types.h> #include <vector_functions.h> /* Inspired by the implementation of CustomPong.cu @author jv */ extern "C" {...
4de34d7e8e4f74f742a501b0c1f806f81350da88.cu
#include <cuda.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "float.h" #include <builtin_types.h> #include <vector_functions.h> /* Inspired by the implementation of CustomPong.cu @author jv */ extern "C" { /* Draws entire map inputWidth & inputHeight: map dimensions in p...
b965a1aa0a191e935f074477f9f1f5c8253ae65d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <cstdlib> using namespace std; __global__ void add(int *a, int *b, int n){ int index = threadIdx.x + blockIdx.x * blockDim.x; if(index<n){ a[index] += b[index]; } } __global__ void...
b965a1aa0a191e935f074477f9f1f5c8253ae65d.cu
#include <iostream> #include <cstdlib> using namespace std; __global__ void add(int *a, int *b, int n){ int index = threadIdx.x + blockIdx.x * blockDim.x; if(index<n){ a[index] += b[index]; } } __global__ void rad(int *a, int n){ int index = threadIdx.x + blockIdx.x * blockDim.x; if(index...
cdb57b37b0c3ba6ae28c8680dbf8063765bb56b9.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <random> #include <vector> #include "profiler.h" #include <algorithm> #include <functional> #include <thrust/device_vector.h> #include <thrust/transform.h> #include <thrust/functional.h> #include <thrust/sort.h> int main(void) { ...
cdb57b37b0c3ba6ae28c8680dbf8063765bb56b9.cu
#include <iostream> #include <random> #include <vector> #include "profiler.h" #include <algorithm> #include <functional> #include <thrust/device_vector.h> #include <thrust/transform.h> #include <thrust/functional.h> #include <thrust/sort.h> int main(void) { cudaSetDevice(1); const size_t n = 1 << 27; prof...
8b25d68f5882319f7cb4fc8df68da699b76cee11.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <iostream> const int width = 5; void initiateMatrix(float *matrixM, float *matrixN){ int val = 0; for(int i = 0; i < width; i++){ for(int j = 0; j < width; j++){ matrixM[i*width+j] = va...
8b25d68f5882319f7cb4fc8df68da699b76cee11.cu
#include <cuda.h> #include <cuda_runtime.h> #include <iostream> const int width = 5; void initiateMatrix(float *matrixM, float *matrixN){ int val = 0; for(int i = 0; i < width; i++){ for(int j = 0; j < width; j++){ matrixM[i*width+j] = val; matrixN[i*width+j] = val; val++; } } } __global__ void Matr...
2752e3dcfac27c9329ba063ea670c82d85c1f244.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <array> #include <iostream> #include "CudaUtils.h" #define WORK_WIDTH 9 #define WORK_HEIGHT 1 #define BLOCK_WIDTH 3 #define BLOCK_HEIGHT 1 #define WORK_TOTAL WORK_WIDTH * WORK_HEIGHT...
2752e3dcfac27c9329ba063ea670c82d85c1f244.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <array> #include <iostream> #include "CudaUtils.h" #define WORK_WIDTH 9 #define WORK_HEIGHT 1 #define BLOCK_WIDTH 3 #define BLOCK_HEIGHT 1 #define WORK_TOTAL WORK_WIDTH * WORK_HEIGHT dim3 dimBlock(BLOCK_WIDTH, BLOCK_HEIGHT); dim3 dimGrid(ceil(...
2fae39e0e249362b49bbe86b84b68f4d903489f4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <stdlib.h> #include <time.h> #include <chrono> #define TILE_WIDTH 32 typedef int dato; using namespace std; using namespace std::chrono; template<class T> void...
2fae39e0e249362b49bbe86b84b68f4d903489f4.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <stdlib.h> #include <time.h> #include <chrono> #define TILE_WIDTH 32 typedef int dato; using namespace std; using namespace std::chrono; template<class T> void printMatrix(T *M, int rows, int cols) { for (int i = 0; i < ...
ca275c647c04b8d1267caae8c3cbbd8b86dfa67a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*********************************************** streamcluster_cuda.cu : parallelized code of streamcluster - original code from PARSEC Benchmark Suite - parallelization with CUDA API has been applied by Shawn Sang-Ha Lee -...
ca275c647c04b8d1267caae8c3cbbd8b86dfa67a.cu
/*********************************************** streamcluster_cuda.cu : parallelized code of streamcluster - original code from PARSEC Benchmark Suite - parallelization with CUDA API has been applied by Shawn Sang-Ha Lee - sl4ge@virginia.edu University of Virginia Department of Electrical and Computer Engin...
e31ea3af84ea2dc12a9ecad5778e6b73c9f64407.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> ////for debug purposes //#define PRINT_RESIDUALS_SPARSE //#define PRINT_RESIDUALS_DENSE //#define ENABLE_EARLY_OUT #include "GlobalDefines.h" #include "SolverBundlingParameters.h" #include "SolverBundlingState...
e31ea3af84ea2dc12a9ecad5778e6b73c9f64407.cu
#include <iostream> ////for debug purposes //#define PRINT_RESIDUALS_SPARSE //#define PRINT_RESIDUALS_DENSE //#define ENABLE_EARLY_OUT #include "GlobalDefines.h" #include "SolverBundlingParameters.h" #include "SolverBundlingState.h" #include "SolverBundlingUtil.h" #include "SolverBundlingEquations.h" #include "Solve...
6cbcf09e539b3240295a36acf3ed410e92da7936.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Noel Lopes is an Assistant Professor at the Polytechnic Institute of Guarda, Portugal Copyright (C) 2009, 2010, 2011, 2012 Noel de Jesus Mendona Lopes This file is part of GPUMLib. GPUMLib is free software: you can redistri...
6cbcf09e539b3240295a36acf3ed410e92da7936.cu
/* Noel Lopes is an Assistant Professor at the Polytechnic Institute of Guarda, Portugal Copyright (C) 2009, 2010, 2011, 2012 Noel de Jesus Mendonša Lopes This file is part of GPUMLib. GPUMLib is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publishe...
498ea1dfce82a28cecfa033ccaa0c3f1b25fea2b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.h" __global__ void GaussianFilter(unsigned char *img_in, unsigned char *img_out, int width, int height, int channels, int *gaussian_filter) { int col = threadIdx.x + blockDim.x * blockIdx.x; int row = threadIdx....
498ea1dfce82a28cecfa033ccaa0c3f1b25fea2b.cu
#include "common.h" __global__ void GaussianFilter(unsigned char *img_in, unsigned char *img_out, int width, int height, int channels, int *gaussian_filter) { int col = threadIdx.x + blockDim.x * blockIdx.x; int row = threadIdx.y + blockDim.y * blockIdx.y; if (col < width && row < height) { int gaussianSum, mi...
Sorting.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/NamedTensorUtils.h> #include <ATen/native/SortingUtils.h> #include <c10/macros/Macros.h> #include <ATen/hip/HIPApplyUtils.cuh> #include <ATen/hip/detail/TensorInfo.cuh> #include <ATen/native/hip...
Sorting.cu
#include <ATen/ATen.h> #include <ATen/NamedTensorUtils.h> #include <ATen/native/SortingUtils.h> #include <c10/macros/Macros.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include <ATen/cuda/detail/TensorInfo.cuh> #include <ATen/native/cuda/SortingCommon.cuh> #include <ATen/native/cuda/SortingRadixSelect.cuh> #include <ATe...
8b7e5f4219cf5f4035fbd491537625f00da69713.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <stdio.h> hipError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ void addKernel(int *c, const int *a, const int *b) { int i = th...
8b7e5f4219cf5f4035fbd491537625f00da69713.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <stdio.h> cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size); __global__ void addKernel(int *c, const int *a, const int *b) { int i = threadIdx.x; c[i] = a[i] + b[i]; } int main() { const int ar...
9695ed47867df4b2b5fabc2d681800a8f44b057c.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <thrust/device_vector.h> #include <stdio.h> #include <vector> #include <opencv2/opencv.hpp> #include <opencv2/opencv_modules.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/high...
9695ed47867df4b2b5fabc2d681800a8f44b057c.cu
#include <cuda.h> #include <cuda_runtime.h> #include <thrust/device_vector.h> #include <stdio.h> #include <vector> #include <opencv2/opencv.hpp> #include <opencv2/opencv_modules.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> ...
bcd63e7e581fd4c42b39f659584a60c0852fbd01.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "canny.cuh" #include "pixel.cuh" #include <stdio.h> #include <cstdlib> #define BLOCK_SIZE 32 using namespace std; /** =========================================== Kernel Convolution =========================================...
bcd63e7e581fd4c42b39f659584a60c0852fbd01.cu
#include "canny.cuh" #include "pixel.cuh" #include <stdio.h> #include <cstdlib> #define BLOCK_SIZE 32 using namespace std; /** =========================================== Kernel Convolution ========================================================= This function performs the convolution step on the given image array u...
1fe8038a08cf9d9c2bfb7a423fcf3de71a6899db.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "util.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #define H(a) (-a * log2f(a)) #define H2(a1, a2, p) (H(((float)(a1) + (p)) / ((float)(a1 + a2) + 1.0f)) + \ H(((float)(a2) + (1.0f - ...
1fe8038a08cf9d9c2bfb7a423fcf3de71a6899db.cu
#include "util.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #define H(a) (-a * log2f(a)) #define H2(a1, a2, p) (H(((float)(a1) + (p)) / ((float)(a1 + a2) + 1.0f)) + \ H(((float)(a2) + (1.0f - p)) / ((float)(a1 + a2) + 1.0f))) /* Makra do sumowania tablicy 2 x 3 x 3 */ #define SU...
21f63710a91d88ce7b7684539960c7d258ddeea2.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...
21f63710a91d88ce7b7684539960c7d258ddeea2.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...
69aa32632d9ac9e3128c135ab14d90e595d744b6.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 "cuda_debug_kernel.cu" #include<chrono> #include<iostream> using ...
69aa32632d9ac9e3128c135ab14d90e595d744b6.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 "cuda_debug_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16}...
bf725d3e93f15df36e15691802de4c59462a6148.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <assert.h> #include <stdio.h> #include "box2d1r-256-10-256_kernel.hu" #define BENCH_DIM 2 #define BENCH_FPP 17 #define BENCH_RAD 1 #include "common.h" double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool sc...
bf725d3e93f15df36e15691802de4c59462a6148.cu
#include <assert.h> #include <stdio.h> #include "box2d1r-256-10-256_kernel.hu" #define BENCH_DIM 2 #define BENCH_FPP 17 #define BENCH_RAD 1 #include "common.h" double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool scop) { double start_time = sb_time(), end_time = 0.0; int dimsize = compsize + BENCH_...
5c2198b735265bf5808ec7d6d80c55a40dfd7e07.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...
5c2198b735265bf5808ec7d6d80c55a40dfd7e07.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 ...
4d2ff4269450198982b157454831fcafa608c8af.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <thrust/sort.h> #include <thrust/random.h> #include <thrust/device_ptr.h> #include <thrust/system/hip/execution_policy.h> #include <thread> #include <thrust/scan.h> #include <iostream> #include <numeric> #include <stdlib.h...
4d2ff4269450198982b157454831fcafa608c8af.cu
#include <thrust/sort.h> #include <thrust/random.h> #include <thrust/device_ptr.h> #include <thrust/system/cuda/execution_policy.h> #include <thread> #include <thrust/scan.h> #include <iostream> #include <numeric> #include <stdlib.h> #include "fpgrowth.h" #include <assert.h> #include <sys/time.h> #include <cub/cub.cuh...
0101c5f76a0ecd654949e86f75fe6d9398c549e6.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/hip/JitLoops.cuh> #include <ATen/native/hip/Loops.cuh> #include <ATen/native/BinaryOps.h> #include <ATen/native/Math.h> #include <ATen/native/hip/Math.cuh> #include <ATen/native...
0101c5f76a0ecd654949e86f75fe6d9398c549e6.cu
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/cuda/JitLoops.cuh> #include <ATen/native/cuda/Loops.cuh> #include <ATen/native/BinaryOps.h> #include <ATen/native/Math.h> #include <ATen/native/cuda/Math.cuh> #include <ATen/native/cuda/jit_utils.h> namespace at::native { names...
b1ccc0d04b2f29f3ad041f9cc05a012f85f7bc9d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if GOOGLE_CUDA #define EIGEN_USE_GPU __global__ void default_function_kernel0(const float* __restrict__ Data, const float* __restrict__ K0, const float* __restrict__ K1, const float* __restrict__ K2, float* __restr...
b1ccc0d04b2f29f3ad041f9cc05a012f85f7bc9d.cu
#if GOOGLE_CUDA #define EIGEN_USE_GPU __global__ void default_function_kernel0(const float* __restrict__ Data, const float* __restrict__ K0, const float* __restrict__ K1, const float* __restrict__ K2, float* __restrict__ Output) { float Output_local[1]; __shared__ float Data_shared[128]; __shar...
4b89b3ed98029f1c2cca24eb353a5eb5362f233e.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> __global__ void computeForcesKernel(int N, const double3 *p, double3 *f) { extern __shared__ double3 pCache[]; int idx = blockIdx.x * blockDim.x + threadIdx.x; double3 myP = idx < N ? p[idx] : double3{0.0, 0.0, 0.0}; ...
4b89b3ed98029f1c2cca24eb353a5eb5362f233e.cu
#include <cuda_runtime.h> __global__ void computeForcesKernel(int N, const double3 *p, double3 *f) { extern __shared__ double3 pCache[]; int idx = blockIdx.x * blockDim.x + threadIdx.x; double3 myP = idx < N ? p[idx] : double3{0.0, 0.0, 0.0}; double3 ftot{0.0, 0.0, 0.0}; for (int offset = 0; offse...
fa188a71580de9ba32bae1991053502f3ae3513a.hip
// !!! This is a file automatically generated by hipify!!! #include "histdupe.h" #include <stdio.h> #include <string> #include <iostream> #include <vector> #include <chrono> /* Utility method for launching a CUDA kernel. Performes all the nasty checks, allocation, and copying of data. */ hipError_t findDupes(const...
fa188a71580de9ba32bae1991053502f3ae3513a.cu
#include "histdupe.h" #include <stdio.h> #include <string> #include <iostream> #include <vector> #include <chrono> /* Utility method for launching a CUDA kernel. Performes all the nasty checks, allocation, and copying of data. */ cudaError_t findDupes(const float*, const float*, const float*, const float*, const i...
92ce38bc089d426255f3573fde8b3af07660642b.hip
// !!! This is a file automatically generated by hipify!!! #include "THHUNN.h" #include "common.h" #include "THHHalf.h" #include "THHHalfAutoNumerics.cuh" #include "generic/VolumetricFullConvolution.cu" #include "THHGenerateFloatTypes.h"
92ce38bc089d426255f3573fde8b3af07660642b.cu
#include "THCUNN.h" #include "common.h" #include "THCHalf.h" #include "THCHalfAutoNumerics.cuh" #include "generic/VolumetricFullConvolution.cu" #include "THCGenerateFloatTypes.h"
972386fed3109321081395ed2e0aa4b3acbcc3f2.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,...
972386fed3109321081395ed2e0aa4b3acbcc3f2.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 relate...
0204dc36867816baa478ec0bc031065d9a3efbc0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define USE_CUDNN 1 #ifdef USE_CUDNN #include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/util/im2col.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace c...
0204dc36867816baa478ec0bc031065d9a3efbc0.cu
#define USE_CUDNN 1 #ifdef USE_CUDNN #include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/util/im2col.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { __global__ void sync_conv_groups() { } template <typename Dtype> void CuDNNConv...
35e3a3f031491410196d09e41e53de68fc0df043.hip
// !!! This is a file automatically generated by hipify!!! #define LIMIT -999 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "needle.h" #include <hip/hip_runtime.h> #include <sys/time.h> // includes, kernels #include "needle_kernel.hip" #include "../benchmark_common.h" /////////...
35e3a3f031491410196d09e41e53de68fc0df043.cu
#define LIMIT -999 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "needle.h" #include <cuda.h> #include <sys/time.h> // includes, kernels #include "needle_kernel.cu" #include "../benchmark_common.h" ////////////////////////////////////////////////////////////////////////////////...
329afa62f8b7b230abf992c552f20a2f808d5150.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __global__ void kernel(void){ } int main(int argc, char** argv){ hipLaunchKernelGGL(( kernel), dim3(1),dim3(1), 0, 0, ); printf("Hello World!\n"); return 0; }
329afa62f8b7b230abf992c552f20a2f808d5150.cu
#include <stdio.h> __global__ void kernel(void){ } int main(int argc, char** argv){ kernel<<<1,1>>>(); printf("Hello World!\n"); return 0; }
57fd3c9e9460e2f006e21ba6f0b0ea7fb3927db4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "main.h" // Warp reduction functions #if __CUDA_ARCH__ >= 300 __device__ inline float warpReduce(float value, int laneID){ // Use XOR mode to perform butterfly reduction #pragma unroll for (int i=16; i>=1; i/=2...
57fd3c9e9460e2f006e21ba6f0b0ea7fb3927db4.cu
#include "main.h" // Warp reduction functions #if __CUDA_ARCH__ >= 300 __device__ inline float warpReduce(float value, int laneID){ // Use XOR mode to perform butterfly reduction #pragma unroll for (int i=16; i>=1; i/=2) value += __shfl_xor(value, i, 32); return value; } #else __device__ inline...
ff6621614df1dd683c2fa378fb55c18615708cc2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void initialize_rho(float* rho, int size_c, int nc) { int i = blockIdx.x*blockDim.x + threadIdx.x; int c = blockIdx.y*blockDim.y + threadIdx.y; if (i < size_c && c < nc) { rho[c*(size_c)+i] = 0.5f; }...
ff6621614df1dd683c2fa378fb55c18615708cc2.cu
#include "includes.h" __global__ void initialize_rho(float* rho, int size_c, int nc) { int i = blockIdx.x*blockDim.x + threadIdx.x; int c = blockIdx.y*blockDim.y + threadIdx.y; if (i < size_c && c < nc) { rho[c*(size_c)+i] = 0.5f; } }
31da64ff76148f427bc6a60a5f28df72bcf7042a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stddef.h> #include <stdint.h> #include "model_gpu_utils.h" #include "mixed_tentusscher_myo_epi_2004_S2_3.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { print_to_stdout_and_file("Us...
31da64ff76148f427bc6a60a5f28df72bcf7042a.cu
#include <stddef.h> #include <stdint.h> #include "model_gpu_utils.h" #include "mixed_tentusscher_myo_epi_2004_S2_3.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { print_to_stdout_and_file("Using mixed version of TenTusscher 2004 myocardium + epicardium GPU model\n\n"); // e...
32d4281042f66607bbc2bfc4e66554600fb886a8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //Copyright (c) 2012, Mikhail Sirotenko <mihail.sirotenko@gmail.com> //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions...
32d4281042f66607bbc2bfc4e66554600fb886a8.cu
//Copyright (c) 2012, Mikhail Sirotenko <mihail.sirotenko@gmail.com> //All rights reserved. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright // ...
7fee024794cee80f36a87589cda42da478385b37.hip
// !!! This is a file automatically generated by hipify!!! #ifdef HAVE_CUDA #include <thrust/copy.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #include <thrust/gather.h> #include <thrust/sort.h> #endif #include "DataMgr/Allocators/ThrustAllocator.h" #include "InPlaceSortImpl.h" #ifdef HAV...
7fee024794cee80f36a87589cda42da478385b37.cu
#ifdef HAVE_CUDA #include <thrust/copy.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #include <thrust/gather.h> #include <thrust/sort.h> #endif #include "DataMgr/Allocators/ThrustAllocator.h" #include "InPlaceSortImpl.h" #ifdef HAVE_CUDA #include <cuda.h> CUstream getQueryEngineCudaStreamF...
7752a945e76b656c65ecef437a4355977184c498.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // counting Hamilton cycle, CUDA acceleration #include<stdio.h> #include<stdlib.h> #define MAX_BLOCK_SIZE 256 #define MAX_ARRAY_SIZE (1024*8) typedef unsigned long long u64; // any 2 <= mod <= 2^31 should work __host__ __device__ u...
7752a945e76b656c65ecef437a4355977184c498.cu
// counting Hamilton cycle, CUDA acceleration #include<stdio.h> #include<stdlib.h> #define MAX_BLOCK_SIZE 256 #define MAX_ARRAY_SIZE (1024*8) typedef unsigned long long u64; // any 2 <= mod <= 2^31 should work __host__ __device__ unsigned mod_sum(unsigned a, unsigned b, unsigned mod) { unsigned c = a+b; return...
a1e06fd92b472897e0754b9b3d0d355b30aff414.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * * 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 res...
a1e06fd92b472897e0754b9b3d0d355b30aff414.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use...
5ef519b13f78e98e97cab3e9a996b947d756b293.hip
// !!! This is a file automatically generated by hipify!!! #define GRB_USE_APSPIE #define private public #include <iostream> #include <algorithm> #include <string> #include <cstdio> #include <cstdlib> #include <hip/hip_runtime_api.h> #include <boost/program_options.hpp> #include "graphblas/graphblas.hpp" #include ...
5ef519b13f78e98e97cab3e9a996b947d756b293.cu
#define GRB_USE_APSPIE #define private public #include <iostream> #include <algorithm> #include <string> #include <cstdio> #include <cstdlib> #include <cuda_profiler_api.h> #include <boost/program_options.hpp> #include "graphblas/graphblas.hpp" #include "graphblas/algorithm/bfs.hpp" #include "test/test.hpp" bool ...
b893442c43e96e225cb528a50722b557475be8c6.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 "AddAndRefreshConnectionKernel.cu" #include<chrono> #include<iost...
b893442c43e96e225cb528a50722b557475be8c6.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 "AddAndRefreshConnectionKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{...
2790391b34c4e7d3df68193be27e586b881d902a.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************************\ * * * Copyright 2014 Advanced Micro Devices, Inc. * *...
2790391b34c4e7d3df68193be27e586b881d902a.cu
/************************************************************************************\ * * * Copyright © 2014 Advanced Micro Devices, Inc. * * Copyright (c) 2015 Mark D. Hill and David A. Wood ...
5397e7c27f7551782345b53e719f1c8007de5029.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cmath> #include <cstdio> #include "../include/slic.h" __device__ __constant__ float slic_factor; void initializeSlicFactor() { const float * slic_factor_hp = &slic_factor_h; hipError_t cudaStatus = hipMemcpyToSym...
5397e7c27f7551782345b53e719f1c8007de5029.cu
#include <cmath> #include <cstdio> #include "../include/slic.h" __device__ __constant__ float slic_factor; void initializeSlicFactor() { const float * slic_factor_hp = &slic_factor_h; cudaError_t cudaStatus = cudaMemcpyToSymbol(slic_factor, slic_factor_hp, sizeof(float)); } __global__ void k_cumulativeCountO...
b150bd63c2f2b3972db36ec86625dfde95110348.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 "remove_occluded.cu" #include<chrono> #include<iostream> using na...
b150bd63c2f2b3972db36ec86625dfde95110348.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 "remove_occluded.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
2e14101331549c72b0296c0c59c0a39e079d1c94.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2014 Nervana Systems 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...
2e14101331549c72b0296c0c59c0a39e079d1c94.cu
/* * Copyright 2014 Nervana Systems 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 ...
3bffa118248b2e5000d1c19d60c934f29fb6d4e0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <cmath> __global__ void add(int n, float* x, float* y) { int index = threadIdx.x; int stride = blockDim.x; for (int i = index; i < n; i += stride) { y[i] = x[i] + y[i]; } } int main() { int N...
3bffa118248b2e5000d1c19d60c934f29fb6d4e0.cu
#include <iostream> #include <cmath> __global__ void add(int n, float* x, float* y) { int index = threadIdx.x; int stride = blockDim.x; for (int i = index; i < n; i += stride) { y[i] = x[i] + y[i]; } } int main() { int N = 1 << 28; float *x, *y; cudaMallocManaged(&x, N * sizeof(float)); cudaMallocManage...
311f7955c34b2a4db896e12e6f15797675a9b66c.hip
// !!! This is a file automatically generated by hipify!!! /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // I...
311f7955c34b2a4db896e12e6f15797675a9b66c.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...
22e2e564b1ee3732c95603653fca6e2d5b1c60e1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "CUDADataFormats/TrackingRecHit/interface/TrackingRecHitsUtilities.h" #include "CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoADevice.h" namespace testTrackingRecHitSoA { template <typename TrackerTraits> _...
22e2e564b1ee3732c95603653fca6e2d5b1c60e1.cu
#include "CUDADataFormats/TrackingRecHit/interface/TrackingRecHitsUtilities.h" #include "CUDADataFormats/TrackingRecHit/interface/TrackingRecHitSoADevice.h" namespace testTrackingRecHitSoA { template <typename TrackerTraits> __global__ void fill(TrackingRecHitSoAView<TrackerTraits> soa) { int i = threadIdx.x;...
3b4216f3911119339da4d69c73502b80d51ab73f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_advec_mom_kernel1_z_nonvector; int xdim0_advec_mom_kernel1_z_nonvector_h = -1; __constant__ int ydim0_advec_mom_kernel1_z_nonvector; int ydim0_advec_mom_kernel1_z_nonvector_h ...
3b4216f3911119339da4d69c73502b80d51ab73f.cu
// // auto-generated by ops.py // __constant__ int xdim0_advec_mom_kernel1_z_nonvector; int xdim0_advec_mom_kernel1_z_nonvector_h = -1; __constant__ int ydim0_advec_mom_kernel1_z_nonvector; int ydim0_advec_mom_kernel1_z_nonvector_h = -1; __constant__ int xdim1_advec_mom_kernel1_z_nonvector; int xdim1_advec_mom_kernel1_...
5b31d98dfbba62832000796473c09f73859d261a.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(...
5b31d98dfbba62832000796473c09f73859d261a.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)) ...
ca446e7986434759f2c33c0efc1d7ada168766bb.hip
// !!! This is a file automatically generated by hipify!!! #include "monolithic.h" #include "hip/hip_fp16.h" template <typename mat_type> void init_matrix(mat_type *mat, int m, int n, int rs, int cs) { for (int i = 0; i<m; i++) for (int j = 0; j<n; j++) mat[i*rs + j*cs] = (mat_type) (rand() % 3...
ca446e7986434759f2c33c0efc1d7ada168766bb.cu
#include "monolithic.h" #include "cuda_fp16.h" template <typename mat_type> void init_matrix(mat_type *mat, int m, int n, int rs, int cs) { for (int i = 0; i<m; i++) for (int j = 0; j<n; j++) mat[i*rs + j*cs] = (mat_type) (rand() % 3); } template <typename mat_type> void print_matrix(mat_type ...
7a2fadf1771fda69474f8dd312965d7303d5ebe0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "wall_helpers.h" #include <mirheo/core/celllist.h> #include <mirheo/core/logger.h> #include <mirheo/core/pvs/particle_vector.h> #include <mirheo/core/pvs/views/pv.h> #include <mirheo/core/utils/cuda_common.h> #include <mir...
7a2fadf1771fda69474f8dd312965d7303d5ebe0.cu
#include "wall_helpers.h" #include <mirheo/core/celllist.h> #include <mirheo/core/logger.h> #include <mirheo/core/pvs/particle_vector.h> #include <mirheo/core/pvs/views/pv.h> #include <mirheo/core/utils/cuda_common.h> #include <mirheo/core/utils/folders.h> #include <mirheo/core/utils/kernel_launch.h> #include <mirheo/...
057ff2e5be4434d440023ea6393e15cffe8b7bac.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <cstdio> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <cstdlib> #include <ctime> #include <thrust/scan.h> using namespace std; __global__ void prefixScan1(int *in,int *out, int N) { __shared__ int...
057ff2e5be4434d440023ea6393e15cffe8b7bac.cu
#include <iostream> #include <cstdio> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <cstdlib> #include <ctime> #include <thrust/scan.h> using namespace std; __global__ void prefixScan1(int *in,int *out, int N) { __shared__ int temp[2048]; int threadId = threadIdx.x; int pout = 0, pin...
7b1b866bdad819586d69b8136263e8da4eae5fbe.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...
7b1b866bdad819586d69b8136263e8da4eae5fbe.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 ...
07e6f1d72a7b25c484a599ec36e0fcce3432bd1e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __global__ void multiplyNumbersByAScalar(float numbers[], float scalar) { int x = blockIdx.x; numbers[x] = numbers[x] * scalar; } int main(int argc, char** args) { float numbersInSystemMemory[] = { 0, 1, 2 ,...
07e6f1d72a7b25c484a599ec36e0fcce3432bd1e.cu
#include <stdio.h> __global__ void multiplyNumbersByAScalar(float numbers[], float scalar) { int x = blockIdx.x; numbers[x] = numbers[x] * scalar; } int main(int argc, char** args) { float numbersInSystemMemory[] = { 0, 1, 2 , 3 , 4 , 5 , 6 ,7 ,8 , 9}; float* numbersInDeviceMemory; cudaMalloc( (void**)&numbers...
6657cfdcb45d1487e7d36ef1c7ac1251487d4feb.hip
// !!! This is a file automatically generated by hipify!!! /* 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/l...
6657cfdcb45d1487e7d36ef1c7ac1251487d4feb.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 a...
87f15cded9b327f1168b9cf51261e30d40784254.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include <hip/hip_runtime_api.h> //#include <cutil.h> #include <hip/hip_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 196608 int num_blocks; int num_th...
87f15cded9b327f1168b9cf51261e30d40784254.cu
#include <stdio.h> #include <iostream> #include <cuda_profiler_api.h> //#include <cutil.h> #include <cuda_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 196608 int num_blocks; int num_threads_per_block; int num_iterations; int divergence; float* h_A...