hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
82a839c0d888dc182b347f900dd65318717d0860.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/core/core.hpp> #include <stdio.h> #include <iostream> #include <chrono> #include "common.h" using name...
82a839c0d888dc182b347f900dd65318717d0860.cu
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/core/core.hpp> #include <stdio.h> #include <iostream> #include <chrono> #include "common.h" using namespace std; __global__ void normalize_image(unsigned char* input, unsigned char* output,...
6b7034047fd451c3fd514f36ff79b83a509fb671.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2018, 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...
6b7034047fd451c3fd514f36ff79b83a509fb671.cu
/* * Copyright (c) 2018, 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 ...
034efa21087cbf3246f6092db7d19b7f3bd83a61.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // -------------------------------------------------------- // Fast R-CNN // Copyright (c) Microsoft. All rights reserved. // Written by Ross Girshick, 2015. // Licensed under the BSD 2-clause "Simplified" license. // See LICENSE in...
034efa21087cbf3246f6092db7d19b7f3bd83a61.cu
// -------------------------------------------------------- // Fast R-CNN // Copyright (c) Microsoft. All rights reserved. // Written by Ross Girshick, 2015. // Licensed under the BSD 2-clause "Simplified" license. // See LICENSE in the Fast R-CNN project root for license // information. // ----------------------------...
4ffd71b9b05a9df933f5bfe56e960bfa49fd8d64.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "UpsampleLayer.h" namespace nvinfer1 { __device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) { int x, y, z, w; w = ii % d3; ii = ii/d3; z = ii % d2; ii = ii/d2; y = ii % d...
4ffd71b9b05a9df933f5bfe56e960bfa49fd8d64.cu
#include "UpsampleLayer.h" namespace nvinfer1 { __device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) { int x, y, z, w; w = ii % d3; ii = ii/d3; z = ii % d2; ii = ii/d2; y = ii % d1; ii = ii/d1; x = ii; w = w/scale_factor; z = z/scale_factor; d2 /=...
bef86f8336c47114a62eddc57e5fd77dc229174a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of t...
bef86f8336c47114a62eddc57e5fd77dc229174a.cu
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
11a8375a62082e76b74211eb4b4f5f6df4991a36.hip
// !!! This is a file automatically generated by hipify!!! // RUN: %run_test hipify "%s" "%t" %cuda_args // CHECK: #include "hip/hip_runtime.h" // CHECK-NOT: #include "hip/hip_runtime.h" // CHECK: #include <stdio.h> #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include <stdio.h>
11a8375a62082e76b74211eb4b4f5f6df4991a36.cu
// RUN: %run_test hipify "%s" "%t" %cuda_args // CHECK: #include "hip/hip_runtime.h" // CHECK-NOT: #include "cuda_runtime.h" // CHECK: #include <stdio.h> #include "cuda.h" #include "cuda_runtime.h" #include <stdio.h>
abc2262f99a21bed0d9f146ae197127a2c830dab.hip
// !!! This is a file automatically generated by hipify!!! #include <THHUNN/THHUNN.h> #include <THHUNN/common.h> #include <TH/THHalf.h> #include <THH/THHNumerics.cuh> #include <THH/THHApply.cuh> #include <thrust/fill.h> #include <thrust/functional.h> #include <thrust/device_ptr.h> #include <thrust/reduce.h> #include <...
abc2262f99a21bed0d9f146ae197127a2c830dab.cu
#include <THCUNN/THCUNN.h> #include <THCUNN/common.h> #include <TH/THHalf.h> #include <THC/THCNumerics.cuh> #include <THC/THCApply.cuh> #include <thrust/fill.h> #include <thrust/functional.h> #include <thrust/device_ptr.h> #include <thrust/reduce.h> #include <thrust/inner_product.h> template <typename Dtype, typename...
b2a5603bd393752540e33730779b2801a09e37d1.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 "executeFourthLayer.cu" #include<chrono> #include<iostream> using...
b2a5603bd393752540e33730779b2801a09e37d1.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 "executeFourthLayer.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16...
39453d01ce644384ae5936243fd7c85c4e653e88.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //https://github.com/flyingwolfz/point-oriented-algorithms-CGH-cuda #include <stdio.h> #include <stdlib.h> #include<cuda_runtime.h> #include "device_launch_parameters.h" __global__ void test(float *dimage, float *dholo ) { int h = ...
39453d01ce644384ae5936243fd7c85c4e653e88.cu
//https://github.com/flyingwolfz/point-oriented-algorithms-CGH-cuda #include <stdio.h> #include <stdlib.h> #include<cuda_runtime.h> #include "device_launch_parameters.h" __global__ void test(float *dimage, float *dholo ) { int h = blockIdx.x*blockDim.x + threadIdx.x; int l = blockIdx.y*blockDim.y + threadIdx.y; floa...
26ffca8229279cd28e2cd231e7eee3e920a9e326.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <math.h> #include <sys/time.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including point...
26ffca8229279cd28e2cd231e7eee3e920a9e326.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <math.h> #include <sys/time.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including pointers // to allocated memory on the device) that ca...
dce38eb4ac7f6f258e6031c6a45f59153ee32c9b.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 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/li...
dce38eb4ac7f6f258e6031c6a45f59153ee32c9b.cu
/* * Copyright (c) 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 law ...
fe5bf4e35233c2cd65d3b8b1b2f77e1a42407284.hip
// !!! This is a file automatically generated by hipify!!! /** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file src/batch_triangular/Xtrtri_batch.cu * KBLAS is a high performance CUDA library for subset of BLAS * a...
fe5bf4e35233c2cd65d3b8b1b2f77e1a42407284.cu
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file src/batch_triangular/Xtrtri_batch.cu * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is p...
8a68a16ad5523a1dc6a018767d9af908523cd7d6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /**************************************************************************** * ****************************************************************************/ #include "hpc.h" #include <stdio.h> #include <stdlib.h> #include <asser...
8a68a16ad5523a1dc6a018767d9af908523cd7d6.cu
/**************************************************************************** * ****************************************************************************/ #include "hpc.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <math.h> #define BLKDIM 32 typedef struct{ int h,w; int connectivity; ...
a95077b42a32b008114881f3306f84a077753ad2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int dims_update_halo_kernel1_r1 [7][1]; static int dims_update_halo_kernel1_r1_h [7][1] = {0}; //user function __device__ inline void update_halo_kernel1_r1_gpu(ACC<double> &density0,...
a95077b42a32b008114881f3306f84a077753ad2.cu
// // auto-generated by ops.py // __constant__ int dims_update_halo_kernel1_r1 [7][1]; static int dims_update_halo_kernel1_r1_h [7][1] = {0}; //user function __device__ inline void update_halo_kernel1_r1_gpu(ACC<double> &density0, ACC<double> &energy0, ACC<double> &energy1, ACC<double> &u, ACC<double> &p, A...
979910ebba6188943588c23f048dfd96df06b857.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // nvcc -o -arch=sm_75 -lcublas -lcurand .cu // : http://devblogs.nvidia.com/parallelforall // wmma cublas // wmma cublas . // // cublass tensorcore cuda tflops . // wmma . // // cuda tensorCore . #inclu...
979910ebba6188943588c23f048dfd96df06b857.cu
// 컴파일 명령어 nvcc -o 결과파일명 -arch=sm_75 -lcublas -lcurand 코드파일.cu // 파일 출처 : http://devblogs.nvidia.com/parallelforall // wmma와 cublas를 동시에 실행하는 파일이며 // wmma로 계산한 결과 cublas로 계산한 결과를 비교한다. // // 이 코드를 cublass에서 tensorcore로 연산한 결과 cuda코어로 연산했으 경우 tflops를 계산한다. // 기본적인 wmma 연산을 확인한다. // // 추가로 cuda 와 tensorCore에서 계산된 결과를 저장...
4d3b03e8797fdbc084b6921527be36c01e4dfb29.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_minus_4_left; int xdim0_update_halo_kernel2_xvel_minus_4_left_h = -1; __constant__ int ydim0_update_halo_kernel2_xvel_minus_4_left; int ydim0_update_h...
4d3b03e8797fdbc084b6921527be36c01e4dfb29.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel2_xvel_minus_4_left; int xdim0_update_halo_kernel2_xvel_minus_4_left_h = -1; __constant__ int ydim0_update_halo_kernel2_xvel_minus_4_left; int ydim0_update_halo_kernel2_xvel_minus_4_left_h = -1; __constant__ int xdim1_update_halo_kernel2_xvel_mi...
e6a836800c8fb4650b842e6788569f8bbb36dd3d.hip
// !!! This is a file automatically generated by hipify!!! /*************************************************************************************************** * Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in sour...
e6a836800c8fb4650b842e6788569f8bbb36dd3d.cu
/*************************************************************************************************** * Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are p...
f3b113192219559aec2104ac124db104a4bca00d.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 "_ele_scale.cu" #include<chrono> #include<iostream> using namespa...
f3b113192219559aec2104ac124db104a4bca00d.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 "_ele_scale.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
5546525d3f13ab8382ca813ce439db696aa248b6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2013 Yangqing Jia #include <algorithm> #include <limits> #include "caffe/common.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/layer.hpp" #include "caffe/syncedmem.hpp" #include "caffe/vision_layers.hpp...
5546525d3f13ab8382ca813ce439db696aa248b6.cu
// Copyright 2013 Yangqing Jia #include <algorithm> #include <limits> #include "caffe/common.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/layer.hpp" #include "caffe/syncedmem.hpp" #include "caffe/vision_layers.hpp" using std::max; namespace caffe { template <typename Dtype> void DropoutLayer<Dtype...
af7e9c851e9e2f68eeefdf79c4700fb21b7920a6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //======================================================================= // Copyright (c) 2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org...
af7e9c851e9e2f68eeefdf79c4700fb21b7920a6.cu
//======================================================================= // Copyright (c) 2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=======================================================================...
f0228d6e9e3d227f2eb5cdca0aaf2b4702f2b43e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lic...
f0228d6e9e3d227f2eb5cdca0aaf2b4702f2b43e.cu
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
1df3b969c0eaaf32a5b926112e218b7c121ea221.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define GROUP_SIZE 256 #define BUFFER_GROUPS 2 #define BUFFER_SIZE BUFFER_GROUPS*GROUP_SIZE #define WARP_SIZE 32 #define INVALID 0xFFFF /** * Find a bounding box for the atoms in each block. */ extern "C" __global__ void findBloc...
1df3b969c0eaaf32a5b926112e218b7c121ea221.cu
#define GROUP_SIZE 256 #define BUFFER_GROUPS 2 #define BUFFER_SIZE BUFFER_GROUPS*GROUP_SIZE #define WARP_SIZE 32 #define INVALID 0xFFFF /** * Find a bounding box for the atoms in each block. */ extern "C" __global__ void findBlockBounds(int numAtoms, real4 periodicBoxSize, real4 invPeriodicBoxSize, const real4* __re...
9a5d669c0ec2635ce8d26151cee05a27a8f44b19.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <sgm/sgm.cuh> void sgm(DeviceImage<PIXEL_COST> &cost, DeviceImage<float> &depth) { int width = cost.width; int height = cost.height; DeviceImage<PIXEL_COST> sgm_cost(width, height); sgm_cost.zero(); dim3 sgm_row_blo...
9a5d669c0ec2635ce8d26151cee05a27a8f44b19.cu
#include <sgm/sgm.cuh> void sgm(DeviceImage<PIXEL_COST> &cost, DeviceImage<float> &depth) { int width = cost.width; int height = cost.height; DeviceImage<PIXEL_COST> sgm_cost(width, height); sgm_cost.zero(); dim3 sgm_row_block; dim3 sgm_row_grid; sgm_row_block.x = DEPTH_NUM; sgm_row_grid.x = height; dim3 s...
002a36a13369d8f9d54b43b5a0334a1fd4c117ac.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at *...
002a36a13369d8f9d54b43b5a0334a1fd4c117ac.cu
/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file distributed wit...
184095c08c6fde88d22adf6dd094456181b2a0dd.hip
// !!! This is a file automatically generated by hipify!!! #include <math.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <hip/hip_runtime.h> #include <helper_cuda.h> #include "../../common/para.h" // Num. of Channel #define N_ch (TK_NUM * BT_NUM) // Num. of sample #define N_samp 8 #define N...
184095c08c6fde88d22adf6dd094456181b2a0dd.cu
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <cuda_runtime.h> #include <helper_cuda.h> #include "../../common/para.h" // Num. of Channel #define N_ch (TK_NUM * BT_NUM) // Num. of sample #define N_samp 8 #define N_col 64 double my_timer() { struct timeval time; double _ret_...
5ae897c4dbfce85fcd67d08012d58db596d43e55.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "topk_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "hipcub/hipcub.hpp" #include <limits> namespace onnxr...
5ae897c4dbfce85fcd67d08012d58db596d43e55.cu
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "topk_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "cub/cub.cuh" #include <limits> namespace onnxruntime { namespace cuda { template <typename T> __global__ void FillInput(const T* input_x, T...
ac35f6da23858f450e9d2001090312ee16ed9ee9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hiprand/hiprand.h" #include "rocblas.h" extern "C" { #include "activations.h" #include "hip/hip_runtime.h" } __device__ float lhtan_activate_kernel(float x) { if(x < 0) return .001*x; if(x > 1) return .001*(x-1)...
ac35f6da23858f450e9d2001090312ee16ed9ee9.cu
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" extern "C" { #include "activations.h" #include "cuda.h" } __device__ float lhtan_activate_kernel(float x) { if(x < 0) return .001*x; if(x > 1) return .001*(x-1) + 1; return x; } __device__ float lhtan_gradient_kernel(float x) { if(x...
1ac17669188b1b58f5d615f3b256075d0631549d.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include "common.h" #include "efficient.h" #define blockSize 256 namespace StreamCompaction { namespace Efficient { using StreamCompaction::Common::PerformanceTimer; PerformanceTime...
1ac17669188b1b58f5d615f3b256075d0631549d.cu
#include <cuda.h> #include <cuda_runtime.h> #include "common.h" #include "efficient.h" #define blockSize 256 namespace StreamCompaction { namespace Efficient { using StreamCompaction::Common::PerformanceTimer; PerformanceTimer& timer() { static PerformanceTimer timer; ...
467f888ee7d40a25f92c3fde60648e6fcf6b7c01.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions normal z -> s d c */ #include "magma_inter...
467f888ee7d40a25f92c3fde60648e6fcf6b7c01.cu
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions normal z -> s d c */ #include "magma_internal.h" #include "commonblas_z.h" // 512 is maximum number of threads for CUDA capabilit...
0970d474d098f8ea8cfcd7952cf07da1749d89e3.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/native/sparse/hip/SparseHIPTensorMath.cuh> #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/spars...
0970d474d098f8ea8cfcd7952cf07da1749d89e3.cu
#include <ATen/native/sparse/cuda/SparseCUDATensorMath.cuh> #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/SparseBlasLegacy.h> #include <ATen/native/sparse...
2c38c0ee60b957e9adbb2148c4203042ee71a9d2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <vector> #include <cstdlib> #include <cstdio> #include <cassert> #include <unistd.h> #include <utils.h> using std::vector; __global__ void Initialize(int n, int* a, int* b) { int i = blockIdx.x * b...
2c38c0ee60b957e9adbb2148c4203042ee71a9d2.cu
#include <iostream> #include <vector> #include <cstdlib> #include <cstdio> #include <cassert> #include <unistd.h> #include <utils.h> using std::vector; __global__ void Initialize(int n, int* a, int* b) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; if(i < ...
9ddcac8d7c5a18fb7b8088391ce977de37bf71ca.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include "gputimer.h" #define NUM_THREADS 1000000 #define ARRAY_SIZE 100 #define BLOCK_WIDTH 1000 void print_array(int *array, int size) { printf("{ "); for (int i = 0; i < size; i++) { printf("%d ", ...
9ddcac8d7c5a18fb7b8088391ce977de37bf71ca.cu
#include <stdio.h> #include "gputimer.h" #define NUM_THREADS 1000000 #define ARRAY_SIZE 100 #define BLOCK_WIDTH 1000 void print_array(int *array, int size) { printf("{ "); for (int i = 0; i < size; i++) { printf("%d ", array[i]); } printf("}\n"); } __global__ void increment_naive(int *g) { // which t...
9d163b4fda758543cb5241a19f5182201f9a78d9.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 "ge_sigmoid.cu" #include<chrono> #include<iostream> using namespa...
9d163b4fda758543cb5241a19f5182201f9a78d9.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 "ge_sigmoid.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
a29f4a939665193844ef699ed55a976d24d338a7.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 "precalculateABC.cu" #include<chrono> #include<iostream> using na...
a29f4a939665193844ef699ed55a976d24d338a7.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 "precalculateABC.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
a08c0f4708e1c9a3e45d497c8180cbad501e89c0.hip
// !!! This is a file automatically generated by hipify!!! // Utilities and system includes #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #define DATA_TYPE 1 // 0-SP, 1-INT, 2-DP #define SIZE 60000000 #define TILE_DIM 1024 #define INNER_REPS 4 template <class T>...
a08c0f4708e1c9a3e45d497c8180cbad501e89c0.cu
// Utilities and system includes #include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cuda_profiler_api.h> #define DATA_TYPE 1 // 0-SP, 1-INT, 2-DP #define SIZE 60000000 #define TILE_DIM 1024 #define INNER_REPS 4 template <class T> __global__ void simpleKernel(T *A, T *C1, T *C2, T *C3, T *C4) { in...
21adc2d7ee91ad3313f716f02a4c47ced30e22b9.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 "kRgb2XYZ.cu" #include<chrono> #include<iostream> using namespace...
21adc2d7ee91ad3313f716f02a4c47ced30e22b9.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 "kRgb2XYZ.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},...
8a1c065a3d1aaba43b8e687c54ec44db5fc534b5.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------------------- // This source code is distributed under the terms...
8a1c065a3d1aaba43b8e687c54ec44db5fc534b5.cu
// ---------------------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------------------- // This source code is distributed under the terms of LICENSE.TXT // in the root directory of this source dis...
91ef1ae57b75640eafa74da0ad19a2ccedaf95f0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <caffepro/layers/dropoutsame_layer.h> #include <caffepro/proto/caffe.pb.h> #include <caffepro/utils/utils.h> #include <caffepro/math/cublas_wrapper.h> #include <caffepro/math/cublas_debug.h> namespace caffepro { dropouts...
91ef1ae57b75640eafa74da0ad19a2ccedaf95f0.cu
#include <caffepro/layers/dropoutsame_layer.h> #include <caffepro/proto/caffe.pb.h> #include <caffepro/utils/utils.h> #include <caffepro/math/cublas_wrapper.h> #include <caffepro/math/cublas_debug.h> namespace caffepro { dropoutsame_layer::dropoutsame_layer(caffepro_context *context, const LayerParameter &param) :...
b735596fdb4921138ccacaf064f04cc495b75b88.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 "matrixMultKernel_global.cu" #include<chrono> #include<iostream> ...
b735596fdb4921138ccacaf064f04cc495b75b88.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 "matrixMultKernel_global.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{...
0a0bed2dafa1f9d9460fc18fe03183182d28d677.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <gtest/gtest.h> #include <thrust/device_vector.h> #include <vector> #include "nvstrings/NVStrings.h" #include "./utils.h" struct TestTimestamp : public GdfTest { }; TEST_F(TestTimestamp, ToTimestamp) { { std::vect...
0a0bed2dafa1f9d9460fc18fe03183182d28d677.cu
#include <cuda_runtime.h> #include <gtest/gtest.h> #include <thrust/device_vector.h> #include <vector> #include "nvstrings/NVStrings.h" #include "./utils.h" struct TestTimestamp : public GdfTest { }; TEST_F(TestTimestamp, ToTimestamp) { { std::vector<const char*> hstrs{ "1974-02-28T01:23:45Z", "2019-07-...
33c3f3d95eba3647c5eef38a581bcebdac941def.hip
// !!! This is a file automatically generated by hipify!!! #include <THHUNN/THHUNN.h> #include <THHUNN/common.h> #include <THHUNN/row2col.h> #include <TH/THHalf.h> #include <THHUNN/THHHalfAutoNumerics.cuh> #include <THH/THHTensor.hpp> #include <THH/THHStorage.hpp> #include <THHUNN/generic/TemporalRowConvolution.hip> ...
33c3f3d95eba3647c5eef38a581bcebdac941def.cu
#include <THCUNN/THCUNN.h> #include <THCUNN/common.h> #include <THCUNN/row2col.h> #include <TH/THHalf.h> #include <THCUNN/THCHalfAutoNumerics.cuh> #include <THC/THCTensor.hpp> #include <THC/THCStorage.hpp> #include <THCUNN/generic/TemporalRowConvolution.cu> #include <THC/THCGenerateFloatTypes.h>
f3c8692cd1d5feca03d6afe0a6da68eebd7cb6ea.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <time.h> #include "book.h" void fillMatrix(int *, int); void printMatrix(int *, int); __global__ void matrixMult(int *a, int *b, int *c, int *n) { int tid_i = threadIdx.x + blockIdx.x * blockDim.x; for (int...
f3c8692cd1d5feca03d6afe0a6da68eebd7cb6ea.cu
#include <time.h> #include "book.h" void fillMatrix(int *, int); void printMatrix(int *, int); __global__ void matrixMult(int *a, int *b, int *c, int *n) { int tid_i = threadIdx.x + blockIdx.x * blockDim.x; for (int i = 0; i < *n; ++i){ c[(tid_i * (*n)) + i] = 0; for(int j = 0; j < *n; ++j){ ...
1369244499ef0870c46b970ea10953e687ca44df.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void add(int *a, int *r, int *g, int *b, float *gc) { int i = (blockIdx.x*blockDim.x) + threadIdx.x; gc[5120 * 6 + i * 6 ] = b[i] * 0.00390625; //gc[5120 * 6 + i * 6 ] = float(b[i]) / 256; gc...
1369244499ef0870c46b970ea10953e687ca44df.cu
#include "includes.h" __global__ void add(int *a, int *r, int *g, int *b, float *gc) { int i = (blockIdx.x*blockDim.x) + threadIdx.x; gc[5120 * 6 + i * 6 ] = b[i] * 0.00390625; //gc[5120 * 6 + i * 6 ] = float(b[i]) / 256; gc[5120 * 6 + i * 6 + 1] = g[i] * 0.00390625; //gc[5120 * 6 + i * 6 + 1] = float(g[i]) / 2...
6e0011619fb0d5f38b080f2c5fded68f5f45ac7f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "cutil.h" // #define DEBUG // Only one of these should be enabled at a time. MKaech //#define TM_SYNC #define ATOMIC_SYNC //...
6e0011619fb0d5f38b080f2c5fded68f5f45ac7f.cu
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include "cutil.h" // #define DEBUG // Only one of these should be enabled at a time. MKaech //#define TM_SYNC #define ATOMIC_SYNC //#define NO_SYNC #define NUM_ACCOUNTS 1000000 #define NUM_TRANSACTIONS 122880 #define T...
4b748be99ef7f3748307c7c1423152b3c552899d.hip
// !!! This is a file automatically generated by hipify!!! #include "common.h" #include <stdio.h> #include <hip/hip_runtime.h> /* * A simple introduction to programming in CUDA. This program prints "Hello * World from GPU! from 10 CUDA threads running on the GPU. */ __global__ void helloFromGPU() { printf("Hel...
4b748be99ef7f3748307c7c1423152b3c552899d.cu
#include "common.h" #include <stdio.h> #include <cuda.h> /* * A simple introduction to programming in CUDA. This program prints "Hello * World from GPU! from 10 CUDA threads running on the GPU. */ __global__ void helloFromGPU() { printf("Hello World from GPU!\n"); } int main(int argc, char **argv) { print...
1da863b3dc0e79465135b72fa08f326bb53eb935.hip
// !!! This is a file automatically generated by hipify!!! #include <string> #include <algorithm> #include <math.h> #include <stdio.h> #include <vector> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <driver_functions.h> #include "cudaRenderer.h" #include "image.h" #include "sceneLoader.h" // Cos...
1da863b3dc0e79465135b72fa08f326bb53eb935.cu
#include <string> #include <algorithm> #include <math.h> #include <stdio.h> #include <vector> #include <cuda.h> #include <cuda_runtime.h> #include <driver_functions.h> #include "cudaRenderer.h" #include "image.h" #include "sceneLoader.h" // Costanti #define ThrInBlock_X 32 #define ThrInBlock_Y 32 #define ThrInBlock...
7fb0551d28a18d2a00282cf0512bbe2569f6755f.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/hip/Loops.cuh> #include <ATen/native/hip/JitLoops.cuh> #include <ATen/native/TensorIterator.h> #include <ATen/native/BinaryOps.h> // NOTE: ...
7fb0551d28a18d2a00282cf0512bbe2569f6755f.cu
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/Dispatch.h> #include <ATen/native/DispatchStub.h> #include <ATen/native/cuda/Loops.cuh> #include <ATen/native/cuda/JitLoops.cuh> #include <ATen/native/TensorIterator.h> #include <ATen/native/BinaryOps.h> // NOTE: CUDA on Windows requires that the enclosing function // o...
521bb76da49c608b39eacc7cc4d0dd7b7d9e3556.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2020 NVIDIA Corporation. All rights reserved. * * NOTICE TO LICENSEE: * * This source code and/or documentation ("Licensed Deliverables") are * subject to NVIDIA intellectual property rights under U.S. and * international Copyright laws. ...
521bb76da49c608b39eacc7cc4d0dd7b7d9e3556.cu
/* * Copyright 2020 NVIDIA Corporation. All rights reserved. * * NOTICE TO LICENSEE: * * This source code and/or documentation ("Licensed Deliverables") are * subject to NVIDIA intellectual property rights under U.S. and * international Copyright laws. * * These Licensed Deliverables contained herein is PROPR...
71f08fbeca777350e497c0fbc27a8a2340d28951.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2019 BlazingDB, Inc. * Copyright 2019 Felipe Aramburu <felipe@blazingdb.com> * Copyright 2018 Rommel Quintanilla <rommel@blazingdb.com> * Copyright 2019 William Scott Malpica <william@blazingdb.com> * * Licensed under the Apache...
71f08fbeca777350e497c0fbc27a8a2340d28951.cu
/* * Copyright 2019 BlazingDB, Inc. * Copyright 2019 Felipe Aramburu <felipe@blazingdb.com> * Copyright 2018 Rommel Quintanilla <rommel@blazingdb.com> * Copyright 2019 William Scott Malpica <william@blazingdb.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
1fb335ef526af0ce2cb52dbda91364e87cf80fc5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <cmath> #include <cassert> void checkError (hipError_t err, int line) { if (err == hipSuccess) return; std::cout << "Error code " << err << " : " << hipGetErrorString(err) << " " << " on line " <...
1fb335ef526af0ce2cb52dbda91364e87cf80fc5.cu
#include <iostream> #include <cmath> #include <cassert> void checkError (cudaError_t err, int line) { if (err == cudaSuccess) return; std::cout << "Error code " << err << " : " << cudaGetErrorString(err) << " " << " on line " << line << ", aborting.\n"; assert(false); } #define CUDACALL(x) checkError(x, __L...
f9df00453aa1748f712d1f78753e8fdeb6b0e9cb.hip
// !!! This is a file automatically generated by hipify!!! /*! * \file solver.cu * \date 2018/10/12 15:51 * * \author sireer * Contact: sireerw@gmail.com * * \brief * * TODO: long description * * \note */ #pragma once #include "Common.h" #ifdef USE_ROCM #include "MSFRUtil.cu" #include "PclUtil.h" #include <vector> #in...
f9df00453aa1748f712d1f78753e8fdeb6b0e9cb.cu
/*! * \file solver.cu * \date 2018/10/12 15:51 * * \author sireer * Contact: sireerw@gmail.com * * \brief * * TODO: long description * * \note */ #pragma once #include "Common.h" #ifdef USE_CUDA #include "MSFRUtil.cu" #include "PclUtil.h" #include <vector> #include <iostream> #include <cuda_runtime.h> #include <device...
d5a6e603d1b74a072d6b6e0d3f9fb89126427253.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 "binary_elementwise_ops_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "core/providers/cuda/cu_inc/binary_e...
d5a6e603d1b74a072d6b6e0d3f9fb89126427253.cu
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <cuda_runtime.h> #include "binary_elementwise_ops_impl.h" #include "core/providers/cuda/cu_inc/common.cuh" #include "core/providers/cuda/cu_inc/binary_elementwise_impl.cuh" namespace onnxruntime { namespace cuda {...
300f177da17935f062eeda2335077a389415f0c5.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 "copyp2p.cu" #include<chrono> #include<iostream> using namespace ...
300f177da17935f062eeda2335077a389415f0c5.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 "copyp2p.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{...
e155b02e23edea0859617d745692f661752f1b9d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/hip/TensorModeKernel.cuh> #include <ATen/native/hip/TensorModeKernel.h> #include <ATen/Dispatch.h> #include <ATen/native/NonEmptyUtils.h> #include <ATen/native/TensorCompare.h>...
e155b02e23edea0859617d745692f661752f1b9d.cu
#define TORCH_ASSERT_NO_OPERATORS #include <ATen/native/cuda/TensorModeKernel.cuh> #include <ATen/native/cuda/TensorModeKernel.h> #include <ATen/Dispatch.h> #include <ATen/native/NonEmptyUtils.h> #include <ATen/native/TensorCompare.h> #include <ATen/cuda/detail/IndexUtils.cuh> #include <ATen/cuda/ThrustAllocator.h> #in...
5158889e820f4c0bfabe98b00c7dab06317e133f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/native/TensorTransformations.h> #include <ATen/hip/detail/IndexUtils.cuh> #include <ATen/NativeFunctions.h> #include <ATen/hip/HIPApplyUtils.cuh> #include <ATen/hip/HIPContext.h> #include <c10/macros/Macros.h> #incl...
5158889e820f4c0bfabe98b00c7dab06317e133f.cu
#include <ATen/native/TensorTransformations.h> #include <ATen/cuda/detail/IndexUtils.cuh> #include <ATen/NativeFunctions.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include <ATen/cuda/CUDAContext.h> #include <c10/macros/Macros.h> #include <cstddef> #include <vector> namespace at { namespace native { constexpr uint3...
3b0c9d87916b2aafd0ca399789837efc10218a98.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device.hpp" //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Depth bilateral filter namespace kfusion { namespace device { __global__ vo...
3b0c9d87916b2aafd0ca399789837efc10218a98.cu
#include "device.hpp" //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// Depth bilateral filter namespace kfusion { namespace device { __global__ void bilateral_kernel(const PtrStepSz<ushort> src, PtrStep<ushort> dst, const int ksz, con...
84e520faf82d58d92ba48be1fe31984bf58e4b0d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __global__ void helloFromGPU() { printf("Hello, World from GPU!\n"); } void helloFromCPU() { printf("Hello, World from CPU!\n"); } int main() { helloFromCPU(); hipLaunchKernelGGL(( helloFromGPU),...
84e520faf82d58d92ba48be1fe31984bf58e4b0d.cu
#include <stdio.h> __global__ void helloFromGPU() { printf("Hello, World from GPU!\n"); } void helloFromCPU() { printf("Hello, World from CPU!\n"); } int main() { helloFromCPU(); helloFromGPU<<<1,1>>>(); cudaDeviceSynchronize(); helloFromCPU(); }
e977d61c47c84aa09bf48fd1c6a0d5c4b38cb709.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 "prepare_boundary_potential_on_device.cu" #include<chrono> #inclu...
e977d61c47c84aa09bf48fd1c6a0d5c4b38cb709.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 "prepare_boundary_potential_on_device.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][...
d9c4c1bd7d8027fc9514ae9914738515e8735e20.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime_api.h> #include <math.h> #include "bnei_set.h" using namespace std; /** * \file bnei_set.cu * \brief Finds neighboring bins for each bin in the simulation * * Each bin i has bdimx*bdimy*bdimz ne...
d9c4c1bd7d8027fc9514ae9914738515e8735e20.cu
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime_api.h> #include <math.h> #include "bnei_set.h" using namespace std; /** * \file bnei_set.cu * \brief Finds neighboring bins for each bin in the simulation * * Each bin i has bdimx*bdimy*bdimz neighboring bins. This function * finds the index of all neighb...
7838d38d1a6a21235b9cc5a37e50bdf085de3fec.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* % Function: generate_dmrs_pusch % Description: Generates LTE demodulation reference signal for PUSCH % Inputs: N_subfr - Subframe number within a radio frame % N_id_cell - Phys...
7838d38d1a6a21235b9cc5a37e50bdf085de3fec.cu
/* % Function: generate_dmrs_pusch % Description: Generates LTE demodulation reference signal for PUSCH % Inputs: N_subfr - Subframe number within a radio frame % N_id_cell - Physical layer cell identity % delta_ss - Configurable portion ...
95aed9dae242c0e36bd027cddedf02630dbceed1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Furthest point sampling GPU implementation * Original author: Haoqiang Fan * Modified by Charles R. Qi * All Rights Reserved. 2017. */ __global__ void cumsumKernel(int b,int n,const float * __restrict__ inp,float * __restri...
95aed9dae242c0e36bd027cddedf02630dbceed1.cu
/* Furthest point sampling GPU implementation * Original author: Haoqiang Fan * Modified by Charles R. Qi * All Rights Reserved. 2017. */ __global__ void cumsumKernel(int b,int n,const float * __restrict__ inp,float * __restrict__ out){ const int BlockSize=2048; const int paddingLevel=5; __shared__ float bu...
3c3249c1aa53076e8d560e56fbbd5f82e78df289.hip
// !!! This is a file automatically generated by hipify!!! #include <cudaCompress/RunLength.h> #include <cassert> #include <string> #include <hip/hip_runtime.h> #include <cudaCompress/cudaUtil.h> #include <cudaCompress/util.h> #include <cudaCompress/InstanceImpl.h> #include <cudaCompress/scan/scan_app.cui> #incl...
3c3249c1aa53076e8d560e56fbbd5f82e78df289.cu
#include <cudaCompress/RunLength.h> #include <cassert> #include <string> #include <cuda_runtime.h> #include <cudaCompress/cudaUtil.h> #include <cudaCompress/util.h> #include <cudaCompress/InstanceImpl.h> #include <cudaCompress/scan/scan_app.cui> #include "RunLengthKernels.cui" namespace cudaCompress { size_t...
effa9f1144c83830718b1754cc4d19cda4418b84.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 "CuDeviceArrayCopyFromTexture.cu" #include<chrono> #include<iostr...
effa9f1144c83830718b1754cc4d19cda4418b84.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 "CuDeviceArrayCopyFromTexture.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8...
92155eb4ba6f11b1ecac25a2a0e2639e53c0828e.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "ComputeFreeVolumeGPU.cuh" #include "IntegratorHPMCMonoGPU.cuh" #include "IntegratorHPMCMonoI...
92155eb4ba6f11b1ecac25a2a0e2639e53c0828e.cu
// Copyright (c) 2009-2016 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "ComputeFreeVolumeGPU.cuh" #include "IntegratorHPMCMonoGPU.cuh" #include "IntegratorHPMCMonoImplicitGPU.cuh" #include "IntegratorHPMCMonoImplicitNewGPU....
1a84b9299a89c4d126c755ce323726bbdfd32bd5.hip
// !!! This is a file automatically generated by hipify!!! /* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2008-2011 Ames Laboratory Iowa State University and The Regents of the University of Michigan All rights reserved. HOOMD-blue may con...
1a84b9299a89c4d126c755ce323726bbdfd32bd5.cu
/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2008-2011 Ames Laboratory Iowa State University and The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provided, and to which...
557528c31f9de8e75395572ee6f43a4d1b0979ef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! * Copyright 2017-2020 by Contributors */ #include <thrust/copy.h> #include <thrust/device_ptr.h> #include <thrust/device_vector.h> #include <thrust/fill.h> #include <GPUTreeShap/gpu_treeshap.h> #include <memory> #include "xgb...
557528c31f9de8e75395572ee6f43a4d1b0979ef.cu
/*! * Copyright 2017-2020 by Contributors */ #include <thrust/copy.h> #include <thrust/device_ptr.h> #include <thrust/device_vector.h> #include <thrust/fill.h> #include <GPUTreeShap/gpu_treeshap.h> #include <memory> #include "xgboost/data.h" #include "xgboost/predictor.h" #include "xgboost/tree_model.h" #include "xg...
eea8da7b4db32029c105ad80fe5c248532f1d668.hip
// !!! This is a file automatically generated by hipify!!! /* Defines the basic matrix operations for the AIJ (compressed row) matrix storage format using the CUSPARSE library, */ #define PETSC_SKIP_SPINLOCK #define PETSC_SKIP_CXX_COMPLEX_FIX #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <petscconf.h> #...
eea8da7b4db32029c105ad80fe5c248532f1d668.cu
/* Defines the basic matrix operations for the AIJ (compressed row) matrix storage format using the CUSPARSE library, */ #define PETSC_SKIP_SPINLOCK #define PETSC_SKIP_CXX_COMPLEX_FIX #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <petscconf.h> #include <../src/mat/impls/aij/seq/aij.h> /*I "pets...
0914739afb0062e86ade8b73b68157d2e3180ba6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> __global__ void printNumber(int number) { printf("%d\n", number); } int main() { for (int i = 0; i < 5; ++i) { hipStream_t stream; hipStreamCreate(&stream); hipLaunchKernelGGL(( printNumber), di...
0914739afb0062e86ade8b73b68157d2e3180ba6.cu
#include <stdio.h> __global__ void printNumber(int number) { printf("%d\n", number); } int main() { for (int i = 0; i < 5; ++i) { cudaStream_t stream; cudaStreamCreate(&stream); printNumber<<<1, 1, 0, stream>>>(i); cudaStreamDestroy(stream); } cudaDeviceSynchronize(); #if 0 cudaStream_t...
7d26bb273e4244f7593db1175c3227b1121c4ee0.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2022-2023, 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...
7d26bb273e4244f7593db1175c3227b1121c4ee0.cu
/* * Copyright (c) 2022-2023, 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...
5b06547d03c16010c069697ee92c4dd999ec206d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __device__ unsigned int getGid3d3d(){ int blockId = blockIdx.x + blockIdx.y * gridDim.x + gridDim.x * gridDim.y * blockIdx.z; int threadId = blockId * (blockDim.x * blockDim.y * blockDim.z) + (threadIdx.y * blo...
5b06547d03c16010c069697ee92c4dd999ec206d.cu
#include "includes.h" __device__ unsigned int getGid3d3d(){ int blockId = blockIdx.x + blockIdx.y * gridDim.x + gridDim.x * gridDim.y * blockIdx.z; int threadId = blockId * (blockDim.x * blockDim.y * blockDim.z) + (threadIdx.y * blockDim.x) + (threadIdx.z * (blockDim.x * blockDim.y)) + threadIdx.x; return threadId; } _...
190c9ea1d7660acf1a01abd04f22d9182dad12d3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Perform the first step of Velocity Verlet integration. * * update displacements (posDelta) and velocities (velm) */ extern "C" __global__ void integrateVelocityVerletPart1(int numAtoms, int numPairs, int paddedNumAtoms, ...
190c9ea1d7660acf1a01abd04f22d9182dad12d3.cu
/** * Perform the first step of Velocity Verlet integration. * * update displacements (posDelta) and velocities (velm) */ extern "C" __global__ void integrateVelocityVerletPart1(int numAtoms, int numPairs, int paddedNumAtoms, const mixed2* __restrict__ dt, const real4* __restrict__ posq, const real4* __re...
2ea18d6d307e2edafdf9552f92f1310790630d22.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 ...
2ea18d6d307e2edafdf9552f92f1310790630d22.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 ...
27a51ae136b4e2746880b250c723f93a5ec71993.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define THREADS_MAX 512 template<typename index> __device__ inline bool divide_loop(index &start, index &end) { index num = (end - start + gridDim.x - 1) / gridDim.x; start = start +...
27a51ae136b4e2746880b250c723f93a5ec71993.cu
#include <stdio.h> #include <cuda.h> #include <cuda_runtime.h> #define THREADS_MAX 512 template<typename index> __device__ inline bool divide_loop(index &start, index &end) { index num = (end - start + gridDim.x - 1) / gridDim.x; start = start + num * blockIdx.x; end = (start + num < end ? start + num : end); num =...
59a80468e2de37b91fc1cb9d40b389daacde41e9.hip
// !!! This is a file automatically generated by hipify!!! #if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/in...
59a80468e2de37b91fc1cb9d40b389daacde41e9.cu
#if !MEGDNN_TEGRA_X1 // generated by gen_cuda_conv_bias_kern_impls.py // ignore warning of cutlass #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl" usi...
430003c727be3558db7377a6f3edd04ced5d4125.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include "simple.h" #include <string> #include <stdio.h> __device__ float GetElementCuda(Matrix2* mat, int row, int col) { if (row >= *mat->height || col >= *mat->width) return -999999999; retu...
430003c727be3558db7377a6f3edd04ced5d4125.cu
#include <cuda.h> #include <cuda_runtime.h> #include "simple.h" #include <string> #include <stdio.h> __device__ float GetElementCuda(Matrix2* mat, int row, int col) { if (row >= *mat->height || col >= *mat->width) return -999999999; return mat->elements[row * (*mat->width) + col]; } __global__ void Convol...
bcea93112ca7bc181c5cd558c5a4439e10cacc4d.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 * *...
bcea93112ca7bc181c5cd558c5a4439e10cacc4d.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 ...
76703c91ff0e3097da2a87afdc966f2ee653cc79.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2015 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifica...
76703c91ff0e3097da2a87afdc966f2ee653cc79.cu
/* Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition (HOOMD-blue) Open Source Software License Copyright 2009-2015 The Regents of the University of Michigan All rights reserved. HOOMD-blue may contain modifications ("Contributions") provided, and to which copyright is held, by various Contributor...
4011aa7f524028850cf884af78d152f8e730dcde.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/margin_ranking_criterion_op.h" namespace caffe2 { namespace { __global__ void MRCKernel( const int N, const int* Y, const float* X1, const float* X2, const float...
4011aa7f524028850cf884af78d152f8e730dcde.cu
#include "caffe2/core/context_gpu.h" #include "caffe2/operators/margin_ranking_criterion_op.h" namespace caffe2 { namespace { __global__ void MRCKernel( const int N, const int* Y, const float* X1, const float* X2, const float margin, float* output) { CUDA_1D_KERNEL_LOOP(i, N) { output[i] = fmaxf(0.f, -...
be7cc02ee9de0b4f70bff904dd19c03dc4c7355b.hip
// !!! This is a file automatically generated by hipify!!! #define M_PI 3.14159265358979323846 #include <cstdio> #include <cstdlib> #include <ctgmath> #include <ctime> //#include <complex> // For the CUDA runtime routines (prefixed with "cuda_") //#include <hip/hip_runtime.h> #include <hiprand/hiprand_kernel.h> #incl...
be7cc02ee9de0b4f70bff904dd19c03dc4c7355b.cu
#define M_PI 3.14159265358979323846 #include <cstdio> #include <cstdlib> #include <ctgmath> #include <ctime> //#include <complex> // For the CUDA runtime routines (prefixed with "cuda_") //#include <cuda.h> #include <curand_kernel.h> #include <curand.h> #include <cuComplex.h> //#include <cuda_runtime.h> //#include <d...
539160eefb50281e719628f9e2137d2d30c10785.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "SimpleMOC-kernel_header.h" /* My parallelization scheme here is to basically have a single * block be a geometrical segment, with each thread within the * block represent a single energy phase. On the CPU, the * inner ...
539160eefb50281e719628f9e2137d2d30c10785.cu
#include "SimpleMOC-kernel_header.h" /* My parallelization scheme here is to basically have a single * block be a geometrical segment, with each thread within the * block represent a single energy phase. On the CPU, the * inner SIMD-ized loop is over energy (i.e, 100 energy groups). * This should allow for each BL...
4f05f907e587b39a373666873232e21af73cbd87.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...
4f05f907e587b39a373666873232e21af73cbd87.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...
dbc33f6bf048698b10cc91b56e997f328be62760.hip
// !!! This is a file automatically generated by hipify!!! /* * This CUDA-Cusparse code can handle/work with any type of the input mxArrays, * GPUarray or standard matlab CPU array as input {prhs[0]/prhs[1] := mxGPUArray or CPU Array}[double/complex double] * Sparse/Dense matrix-sparse/dense vector multiplication...
dbc33f6bf048698b10cc91b56e997f328be62760.cu
/* * This CUDA-Cusparse code can handle/work with any type of the input mxArrays, * GPUarray or standard matlab CPU array as input {prhs[0]/prhs[1] := mxGPUArray or CPU Array}[double/complex double] * Sparse/Dense matrix-sparse/dense vector multiplication Z=CuMatlab_solve(Sparse/Dense(A),Sparse/Dense(Y)). * AZ...
e203ba8348d8db71c7d3cb17da41e3194b149d18.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http...
e203ba8348d8db71c7d3cb17da41e3194b149d18.cu
/* * Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
302dfa11cdda431fa8299bc068c49da0a767b3b8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2019 Yan Yan // // 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.apac...
302dfa11cdda431fa8299bc068c49da0a767b3b8.cu
// Copyright 2019 Yan Yan // // 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 to in writ...
7c446dca1da8c0801eb5c8818736e71cc471b9e8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <assert.h> //#include <sys/time.h> #include <time.h> #include <cstdio> #include <cstdlib> #include <iostream> #include <cmath> #include <algorithm> using std::cout; using std::endl; using std::cerr; #define DECLINE_HORIZ...
7c446dca1da8c0801eb5c8818736e71cc471b9e8.cu
#include <assert.h> //#include <sys/time.h> #include <time.h> #include <cstdio> #include <cstdlib> #include <iostream> #include <cmath> #include <algorithm> using std::cout; using std::endl; using std::cerr; #define DECLINE_HORIZONTAL 0.1 #define DECLINE_VERTICAL 0.1 #define STEPS 1000 /...
d7ee900fc20d74f1f515c8672097e43a49f3091b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void updF(float *f, float *z, float *g, float tf, float lambda, int nx, int ny) { int px = blockIdx.x * blockDim.x + threadIdx.x; int py = blockIdx.y * blockDim.y + threadIdx.y; int idx = px + py*nx;...
d7ee900fc20d74f1f515c8672097e43a49f3091b.cu
#include "includes.h" __global__ void updF(float *f, float *z, float *g, float tf, float lambda, int nx, int ny) { int px = blockIdx.x * blockDim.x + threadIdx.x; int py = blockIdx.y * blockDim.y + threadIdx.y; int idx = px + py*nx; float DIVZ; if (px<nx && py<ny) { // compute the divergence DIVZ = 0; if ((px<(nx - 1)...
39261be99632fc26bd89a9e3fc4396437f39e6b7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "../common.h" #define RADIUS 4 __constant__ float coef[RADIUS + 1]; void setup_coef_constant(void) { const float h_coef[] = {a0, a1, a2, a3, a4}; hipMemcpyToSymbol(coef, h_coef, (RADIUS + 1) * sizeof(float)); } ...
39261be99632fc26bd89a9e3fc4396437f39e6b7.cu
#include "../common.h" #define RADIUS 4 __constant__ float coef[RADIUS + 1]; void setup_coef_constant(void) { const float h_coef[] = {a0, a1, a2, a3, a4}; cudaMemcpyToSymbol(coef, h_coef, (RADIUS + 1) * sizeof(float)); } __global__ void stencil_1d(float *in, float *out) { __shared__ float smem[BDIM + 2 ...
c83c3c878cda2e695a914b7ba23f61e5c296cb54.hip
// !!! This is a file automatically generated by hipify!!! // ###################################################### // ## : // ## : // ## // ## log // ###################################################### #include <stdio.h> #include <hip/hip_runtime_api.h> #include <device_launch_parameters...
c83c3c878cda2e695a914b7ba23f61e5c296cb54.cu
// ###################################################### // ## 姓名: 刘羽丰 // ## 文件说明: 第六版,与第五版不同的是这版在输入数组上使用 // ## 二维纹理内存,利用高维空间局部性加快运算, // ## log数组使用常量内存存储。 // ###################################################### #include <stdio.h> #include <cuda_runtime_api.h> #include <device_launch_parameter...
4cdd5b84ccc14c0dbe5ca37bc738bf0b17568a43.hip
// !!! This is a file automatically generated by hipify!!! #include "memoryWrapper.cuh" #include <cassert> void hipMemcpy(Memory const& dest, Memory const& src) { assert(dest.bytes >= src.bytes); hipMemcpyKind kind = hipMemcpyDefault; if (dest.kind == memKind::device) { if (src.kind == memKind::...
4cdd5b84ccc14c0dbe5ca37bc738bf0b17568a43.cu
#include "memoryWrapper.cuh" #include <cassert> void cudaMemcpy(Memory const& dest, Memory const& src) { assert(dest.bytes >= src.bytes); cudaMemcpyKind kind = cudaMemcpyDefault; if (dest.kind == memKind::device) { if (src.kind == memKind::device) kind = cudaMemcpyDeviceToDevice; ...
ebb7fdf9c5387ca4ee00bc37ae07840cce07f7e3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> __global__ void print_from_gpu(void) { printf("Hello World! from thread [%d,%d] \ From device\n", threadIdx.x,blockIdx.x); } int main(void) { printf("Hello World from host!\n"); hipLaun...
ebb7fdf9c5387ca4ee00bc37ae07840cce07f7e3.cu
#include<stdio.h> #include<stdlib.h> __global__ void print_from_gpu(void) { printf("Hello World! from thread [%d,%d] \ From device\n", threadIdx.x,blockIdx.x); } int main(void) { printf("Hello World from host!\n"); print_from_gpu<<<1,1>>>(); cudaDeviceSynchronize(); return 0; }
16842e0afe12751921c602236f5ab008ccf80e2a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @precisions normal z -> s d c @author Stan Tomo...
16842e0afe12751921c602236f5ab008ccf80e2a.cu
/* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @precisions normal z -> s d c @author Stan Tomov */ #include "common_magmasparse.h" #define NB 64 /* ================================...
5d3f7a48e7ab3c97b7b513ab2e5a765906d981d5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "reference_calc.cpp" #include "utils.h" static inst const threadLimit = 512; // Adapted from udacity code snippets __global__ void find_optimum(float * d_out, float * d_in, bool isMinimum, int numEntries) { int myId =...
5d3f7a48e7ab3c97b7b513ab2e5a765906d981d5.cu
#include "reference_calc.cpp" #include "utils.h" static inst const threadLimit = 512; // Adapted from udacity code snippets __global__ void find_optimum(float * d_out, float * d_in, bool isMinimum, int numEntries) { int myId = threadIdx.x + blockDim.x * blockIdx.x; if (myId >= numEntries) { return; } ...
826cabcbb3ec66fe120ff63579922be230b8f985.hip
// !!! This is a file automatically generated by hipify!!! // C++ headers #include <algorithm> #include <numeric> // CUDA runtime #include <hip/hip_runtime.h> // CMSSW headers #include "CUDACore/cudaCheck.h" #include "CUDACore/device_unique_ptr.h" #include "plugin-SiPixelClusterizer/SiPixelRawToClusterGPUKernel.h" /...
826cabcbb3ec66fe120ff63579922be230b8f985.cu
// C++ headers #include <algorithm> #include <numeric> // CUDA runtime #include <cuda_runtime.h> // CMSSW headers #include "CUDACore/cudaCheck.h" #include "CUDACore/device_unique_ptr.h" #include "plugin-SiPixelClusterizer/SiPixelRawToClusterGPUKernel.h" // ! #include "plugin-SiPixelClusterizer/gpuClusteringConstants...
a0211e2e003d56b4bdbf1b40727aa12c17eeaa8a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "LayerCalculation.cuh" //Checks if an Error has occured int CheckCudaError(hipError_t err) { if (err != hipSuccess) { return 1; } return 0; } int LayerCalculation::offsetCalculation(int *arraySizes, int* poolingLaye...
a0211e2e003d56b4bdbf1b40727aa12c17eeaa8a.cu
#include "LayerCalculation.cuh" //Checks if an Error has occured int CheckCudaError(cudaError_t err) { if (err != cudaSuccess) { return 1; } return 0; } int LayerCalculation::offsetCalculation(int *arraySizes, int* poolingLayers, int batchCount, int layerNum, int Layers) { if (batchDim == 0) { for (int i = 0...
0df61c25461e4313aaacb19ed9e1d981263507b2.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2018-2023, 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...
0df61c25461e4313aaacb19ed9e1d981263507b2.cu
/* * Copyright (c) 2018-2023, 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...
bdfa978f8e72d08097f286e1724de59e499044cb.hip
// !!! This is a file automatically generated by hipify!!! void cuda_query(const int dev){ int deviceCount; hipGetDeviceCount(&deviceCount); if(deviceCount == 0){ printf("\n deviceCount is zero. I quit!!!"); exit(EXIT_FAILURE); } //const int dev = (deviceCount == 1) ? 0 : 3; hipSetDevice(dev); /*hipDevic...
bdfa978f8e72d08097f286e1724de59e499044cb.cu
void cuda_query(const int dev){ int deviceCount; cudaGetDeviceCount(&deviceCount); if(deviceCount == 0){ printf("\n deviceCount is zero. I quit!!!"); exit(EXIT_FAILURE); } //const int dev = (deviceCount == 1) ? 0 : 3; cudaSetDevice(dev); /*cudaDeviceProp devProp; HANDLE_ERROR(cudaGetDeviceProperties(&d...
a83102c99592c43a75c8ee288e098bcbcbd75618.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 "add.hip" #include<chrono> #include<iostream> using namespace std...
a83102c99592c43a75c8ee288e098bcbcbd75618.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 "add.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,3...
69f6f3272ecf244c46e3de50321f92a1c3cbe812.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/utility_ops.h" #include <thrust/device_vector.h> #include <thrust/sequence.h> #include <thrust/sort.h> #include <thrust/system/hip/execution_policy.h> #include <thrust/unique.h> #include "caffe2/core/con...
69f6f3272ecf244c46e3de50321f92a1c3cbe812.cu
#include "caffe2/operators/utility_ops.h" #include <thrust/device_vector.h> #include <thrust/sequence.h> #include <thrust/sort.h> #include <thrust/system/cuda/execution_policy.h> #include <thrust/unique.h> #include "caffe2/core/context_gpu.h" #include "caffe2/operators/flatten_op.h" #include "caffe2/utils/math.h" na...
aba22e0d9c0ad6af93f41591a49d6a26c374a37e.hip
// !!! This is a file automatically generated by hipify!!! #include "edge.cuh" #include <hip/hip_runtime.h> #include "../C/node.h" #include "../C/kvec.h" node_t* node_init_gpu(int _id){ node_t* e; hipMallocManaged(&e, sizeof(node_t)); e->attr = ht_create(16); //Add sample to hashtable ht_set(e->attr, "", ""); kv_...
aba22e0d9c0ad6af93f41591a49d6a26c374a37e.cu
#include "edge.cuh" #include <cuda.h> #include "../C/node.h" #include "../C/kvec.h" node_t* node_init_gpu(int _id){ node_t* e; cudaMallocManaged(&e, sizeof(node_t)); e->attr = ht_create(16); //Add sample to hashtable ht_set(e->attr, "", ""); kv_init(e->edges); e->id = _id; return e; }
8168c86d8914ce19d9b3c9f697a373b025cec88b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ...
8168c86d8914ce19d9b3c9f697a373b025cec88b.cu
/******************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ******************************************************************************/ __cons...