hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
c8a3f9cdf26510ade198e1712f784d48d8c9d8b8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<iostream> #include<cstdio> #include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> #include<cuda_runtime.h> using std::cout; using std::endl; #define SQR(x) ((x)*(x)) #define POW2(x) SQR(x) #define POW3(x) ((...
c8a3f9cdf26510ade198e1712f784d48d8c9d8b8.cu
#include<iostream> #include<cstdio> #include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> #include<cuda_runtime.h> using std::cout; using std::endl; #define SQR(x) ((x)*(x)) #define POW2(x) SQR(x) #define POW3(x) ((x)*(x)*(x)) #define POW4(x) (POW2(x)*POW2(x)) #define POW7(x) (POW3(x)*POW3(x)*(x)) #def...
abd70a21dfc86e57cc170e61f4ab108c98e3203c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver August 2013 @generated s Wed Aug 14 12:16:36 2013 @author Mark Gates...
abd70a21dfc86e57cc170e61f4ab108c98e3203c.cu
/* -- MAGMA (version 1.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver August 2013 @generated s Wed Aug 14 12:16:36 2013 @author Mark Gates */ #include "common_magma.h" #include <assert.h> #define NB 64 /* ===================...
f7902763c79dd6cd206a77d4a970ad8cd6b3cbf9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* The implementation of this file is based on qkvToContext plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 2019 NVIDIA Corporation Licensed under the Apache License, Version 2.0...
f7902763c79dd6cd206a77d4a970ad8cd6b3cbf9.cu
/* The implementation of this file is based on qkvToContext plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 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 m...
23fe7c40bbd1e0d5b7ec0c512f800ba737c81218.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include "QueueHelpers.cu" //////////////////////////////////////////////////////////// // Constructor and Deconsturctor //////////////////////////////////////////////////////////// Queue CreateQueue(int MaxElements) { Queue Q = (Queue) ...
23fe7c40bbd1e0d5b7ec0c512f800ba737c81218.cu
#include <stdlib.h> #include "QueueHelpers.cu" //////////////////////////////////////////////////////////// // Constructor and Deconsturctor //////////////////////////////////////////////////////////// Queue CreateQueue(int MaxElements) { Queue Q = (Queue) malloc (sizeof(struct QueueRecord)); cudaMalloc((void **...
25c053def2a4cf1f10f5a4fea948dd7e7564e1de.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> __global__ void MultMatrix(float *a, float *b, float *c, int n) { int col = blockIdx.x * blockDim.x + threadIdx.x; int row = blockIdx.y * blockDim.y...
25c053def2a4cf1f10f5a4fea948dd7e7564e1de.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> __global__ void MultMatrix(float *a, float *b, float *c, int n) { int col = blockIdx.x * blockDim.x + threadIdx.x; int row = blockIdx.y * blockDim.y + threadIdx.y; int sum = 0; for (int k = 0; k < n; k++) { ...
06c091452009177d0892636fd9161849f89d7eaf.hip
// !!! This is a file automatically generated by hipify!!! #include "./c_runtime_api.h" #include <cassert> #include <cstdio> #include <rocblas.h> #include <hip/hip_runtime.h> #define BLOCK_SIZE 16 __global__ void array_set_kernel(int nrow, int ncol, float* input, float value) { int c_ = bl...
06c091452009177d0892636fd9161849f89d7eaf.cu
#include "./c_runtime_api.h" #include <cassert> #include <cstdio> #include <cublas_v2.h> #include <cuda_runtime.h> #define BLOCK_SIZE 16 __global__ void array_set_kernel(int nrow, int ncol, float* input, float value) { int c_ = blockIdx.x * blockDim.x + threadIdx.x; int r_ = blockIdx.y *...
687223d6a76882cf4185578554b1bdb21cb74226.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "stdafx.h" #include "Voxtrace.h" #include "RayCamera.h" #include "Renderer.h" #include <Engine.h> #include <Pipeline.h> #include <camera.h> #include <Line.h> #include <shader.h> #include <vbo.h> #include <vao.h> #include...
687223d6a76882cf4185578554b1bdb21cb74226.cu
#include "stdafx.h" #include "Voxtrace.h" #include "RayCamera.h" #include "Renderer.h" #include <Engine.h> #include <Pipeline.h> #include <camera.h> #include <Line.h> #include <shader.h> #include <vbo.h> #include <vao.h> #include "CommonDevice.cuh" #include "cuda_gl_interop.h" //#include "pick.h" #include "Randy.h" ...
8282028b2cb5b197917ca613b8e4f712e8dad0b4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" #define SIZ 20 #define num_inp 4 using namespace std; typedef struct edge { int first, second; } edges; __global__ void bfs(const edge *edges, int *vertices, int current_depth) { int a = blockDim.x * ...
8282028b2cb5b197917ca613b8e4f712e8dad0b4.cu
#include "includes.h" #define SIZ 20 #define num_inp 4 using namespace std; typedef struct edge { int first, second; } edges; __global__ void bfs(const edge *edges, int *vertices, int current_depth) { int a = blockDim.x * blockIdx.x + threadIdx.x; int vfirst = edges[a].first; int dfirst = vertices[vfirst]; in...
72a87a6470dd4e4897b5e21201ab75e030b6e31e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2017, 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 dea...
72a87a6470dd4e4897b5e21201ab75e030b6e31e.cu
/* * Copyright (c) 2017, 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...
1f1e33304e7501842b0861e95bc85e6da3047e61.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 "initialize.cu" #include<chrono> #include<iostream> using namespa...
1f1e33304e7501842b0861e95bc85e6da3047e61.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 "initialize.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
3203e72368aac552aff1fffb0ceea7ec4f8cc704.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! * Copyright [2016] <Contributors> * \file Correation.cu * \brief correlation1D operator * \author Xu Dong */ #include "./correlation1D-inl.h" #include <mshadow/tensor.h> #include <mshadow/cuda/reduce.cuh> #include <algorith...
3203e72368aac552aff1fffb0ceea7ec4f8cc704.cu
/*! * Copyright [2016] <Contributors> * \file Correation.cu * \brief correlation1D operator * \author Xu Dong */ #include "./correlation1D-inl.h" #include <mshadow/tensor.h> #include <mshadow/cuda/reduce.cuh> #include <algorithm> #include <vector> #define ROUND_OFF 50000 #define WARPS_PER_BLOCK 1 #define THREADS_...
34c2d3961f19604ae6a4a3ffa3229c25d53852ef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> //int main() //{ // int iDev = 0; // hipDeviceProp_t iProp; // // hipGetDeviceProperties(&iProp, iDev); // printf("Max threads per SM : %d \n", // iProp.maxThreadsPerMultiP...
34c2d3961f19604ae6a4a3ffa3229c25d53852ef.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> //int main() //{ // int iDev = 0; // cudaDeviceProp iProp; // // cudaGetDeviceProperties(&iProp, iDev); // printf("Max threads per SM : %d \n", // iProp.maxThreadsPerMultiProcessor); // // return 0; //}
1169ff270df91274aff2bdfd729bef130a91dccf.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/lic...
1169ff270df91274aff2bdfd729bef130a91dccf.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 o...
c2639656ad192a2f1855a0b5ed366bf08ceaba6e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <ATen/NativeFunctions.h> #include <ATen/native/sparse/SparseUtils.h> #include <ATen/native/sparse/hip/SparseHIPApplyUtils.cuh> #include <ATen/AccumulateType.h> #includ...
c2639656ad192a2f1855a0b5ed366bf08ceaba6e.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/NativeFunctions.h> #include <ATen/native/sparse/SparseUtils.h> #include <ATen/native/sparse/cuda/SparseCUDAApplyUtils.cuh> #include <ATen/AccumulateType.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include <THC/THCThrustAllocator.cuh> #include <TH...
02aed3b0f240d7fef138cdea037a6ef732c801a7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef WITH_CUDA #include <cmath> #include "core/context_cuda.h" #include "core/tensor.h" #include "utils/cuda_device.h" #include "utils/op_kernel.h" #include "utils/math_functions.h" namespace dragon { namespace kernel { templ...
02aed3b0f240d7fef138cdea037a6ef732c801a7.cu
#ifdef WITH_CUDA #include <cmath> #include "core/context_cuda.h" #include "core/tensor.h" #include "utils/cuda_device.h" #include "utils/op_kernel.h" #include "utils/math_functions.h" namespace dragon { namespace kernel { template <typename T> __global__ void _Empty() { } template<> void Empty<float, CUDAContext>...
28222618e138b6b7e701b96554970bc536db0e8a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright 2021 Huawei Technologies Co., Ltd * * 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 ...
28222618e138b6b7e701b96554970bc536db0e8a.cu
/** * Copyright 2021 Huawei Technologies Co., Ltd * * 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...
7d35bd50f25784c03b9e80a4f18d59cc32fc9a0a.hip
// !!! This is a file automatically generated by hipify!!! #include "THHBlas.h" #include "THHGeneral.h" #include "THHHalf.h" float THCudaBlas_Sdot(THCState *state, int64_t n, float *x, int64_t incx, float *y, int64_t incy) { if (n == 1) { incx = 1; incy = 1; } if ((n <= INT_MAX) && (incx <= INT_MAX) && ...
7d35bd50f25784c03b9e80a4f18d59cc32fc9a0a.cu
#include "THCBlas.h" #include "THCGeneral.h" #include "THCHalf.h" float THCudaBlas_Sdot(THCState *state, int64_t n, float *x, int64_t incx, float *y, int64_t incy) { if (n == 1) { incx = 1; incy = 1; } if ((n <= INT_MAX) && (incx <= INT_MAX) && (incy <= INT_MAX)) { int i_n = (int)n; int i_incx =...
a4024f78cd5a3d2ecd4b49fd8735c5c43c07fa40.hip
// !!! This is a file automatically generated by hipify!!! /* This is the file, written in C++ that is compiled into GPU machine code Contains the functions: __global__ double* RK4 __host__ __device__ double* Equation __host__ __device__ double* christoffel Struct main_cuda The main C++ library, Geodesic, calls thi...
a4024f78cd5a3d2ecd4b49fd8735c5c43c07fa40.cu
/* This is the file, written in C++ that is compiled into GPU machine code Contains the functions: __global__ double* RK4 __host__ __device__ double* Equation __host__ __device__ double* christoffel Struct main_cuda The main C++ library, Geodesic, calls this file to run the RK4 solving in parallel on the CUDA GPU ...
61a9b9e8bc4424b2359d542847c8dc23990c5ccd.hip
// !!! This is a file automatically generated by hipify!!! /* This program is used test how the texture memory is arrange on the global memeory so as to find the fastest access pattern. */ #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <assert.h> #include <iostream>...
61a9b9e8bc4424b2359d542847c8dc23990c5ccd.cu
/* This program is used test how the texture memory is arrange on the global memeory so as to find the fastest access pattern. */ #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <assert.h> #include <iostream> #include <string> #include <fstream> #include <cuda.h> #incl...
5509749d3d79a34621b3bacff377322c3eff48e8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2020 Stanford * * 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.apa...
5509749d3d79a34621b3bacff377322c3eff48e8.cu
/* Copyright 2020 Stanford * * 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 wri...
28e8a17168e8e51eb280d3fb8fd6b9f3563b7bbc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* !===================================================================== ! ! S p e c f e m 3 D V e r s i o n 3 . 0 ! --------------------------------------- ! ! Main historical authors: Dimit...
28e8a17168e8e51eb280d3fb8fd6b9f3563b7bbc.cu
/* !===================================================================== ! ! S p e c f e m 3 D V e r s i o n 3 . 0 ! --------------------------------------- ! ! Main historical authors: Dimitri Komatitsch and Jeroen Tromp ! CNRS, France ! ...
8bc3190abd3b500dfee0465b53242fa24be7d171.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cfloat> #include <vector> #include "caffe/layers/sim_matrix_layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/util/gpu_util.cuh" namespace caffe { template <typename Dtype> __global__ void SMForward(c...
8bc3190abd3b500dfee0465b53242fa24be7d171.cu
#include <cfloat> #include <vector> #include "caffe/layers/sim_matrix_layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/util/gpu_util.cuh" namespace caffe { template <typename Dtype> __global__ void SMForward(const int n, const Dtype* in1, const Dtype* in2, Dtype* out) { CUDA_KERNEL_LOOP(in...
905946f2b6224714731790a3bc3ca9db86c235c9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "./dropblock-gpu-inl.h" namespace mxnet { namespace op { #define CUDA_1D_KERNEL_LOOP(i, n) \ for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ i += blockDim.x * gri...
905946f2b6224714731790a3bc3ca9db86c235c9.cu
#include "./dropblock-gpu-inl.h" namespace mxnet { namespace op { #define CUDA_1D_KERNEL_LOOP(i, n) \ for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ i += blockDim.x * gridDim.x) using namespace mshadow::cuda; // The maximum number of blocks to use i...
ae9c5d929007a9fb435d1e1c3703c5b5aa9dae0c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_bndp.h" #include "cuda_mparticles.cuh" #include "cuda_bits.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/scan.h> #include "b40c/radixsort_scanscatter_kernel4.h" using namesp...
ae9c5d929007a9fb435d1e1c3703c5b5aa9dae0c.cu
#include "cuda_bndp.h" #include "cuda_mparticles.cuh" #include "cuda_bits.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/scan.h> #include "b40c/radixsort_scanscatter_kernel4.h" using namespace b40c_thrust; typedef uint K; typedef uint V; static const int RADIX_BITS = 4; #in...
377497a9dfc3f85f50bc04afe69a12fe7bc8098d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017-2021, NVIDIA CORPORATION & AFFILIATES. 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 o...
377497a9dfc3f85f50bc04afe69a12fe7bc8098d.cu
// Copyright (c) 2017-2021, NVIDIA CORPORATION & AFFILIATES. 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 // /...
63b39674aa1d57eb3727c261c12d1b76bb65d9e2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @author Azzam Haidar @author Ahmad Ahmad @generated from magmablas/zpotf2...
63b39674aa1d57eb3727c261c12d1b76bb65d9e2.cu
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @author Azzam Haidar @author Ahmad Ahmad @generated from magmablas/zpotf2_kernels.cu, normal z -> d, Mon Jun 25 18:24:15 2018 */ #include "magma_internal.h" #in...
8bb48a4d8e24905b97b654f1a366364478c5d63c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017-2018, 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 ...
8bb48a4d8e24905b97b654f1a366364478c5d63c.cu
// Copyright (c) 2017-2018, 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 requ...
4f68047d9aaaa4ee56333b0ccc11a9839c2f909f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-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 * int...
4f68047d9aaaa4ee56333b0ccc11a9839c2f909f.cu
/* * Copyright 1993-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 PROPRIETA...
3ccd747185725a453f0735aff7288f0696819cd2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" %%cu # include <stdio.h> # include <stdlib.h> # include <hip/hip_runtime.h> long n = 33000; __global__ void testKernel(long *in, long *out, long size, long n) { int index = blockIdx.x * blockDim.x + threadIdx.x; long temp; ...
3ccd747185725a453f0735aff7288f0696819cd2.cu
%%cu # include <stdio.h> # include <stdlib.h> # include <cuda.h> long n = 33000; __global__ void testKernel(long *in, long *out, long size, long n) { int index = blockIdx.x * blockDim.x + threadIdx.x; long temp; __shared__ bool swappedodd; __shared__ bool swappedeven; long i; // printf("Thre...
29f97827fa2b5b1ea55194eb928370fb0b73e45f.hip
// !!! This is a file automatically generated by hipify!!! //xfail:BOOGIE_ERROR //--blockDim=2 --gridDim=1 --no-inline #include <hip/hip_runtime.h> __global__ void race_test (unsigned int* i, int* A) { int tid = threadIdx.x; int j = atomicAdd(i,tid); A[j] = tid; }
29f97827fa2b5b1ea55194eb928370fb0b73e45f.cu
//xfail:BOOGIE_ERROR //--blockDim=2 --gridDim=1 --no-inline #include <cuda.h> __global__ void race_test (unsigned int* i, int* A) { int tid = threadIdx.x; int j = atomicAdd(i,tid); A[j] = tid; }
6144f494c6db3a5cd5dc8f3e14e06a7d139148e8.hip
// !!! This is a file automatically generated by hipify!!! #include "board.hpp" Board::Board(int height, int width) : shape(height, width) , d_board(nullptr), h_board(nullptr) , d_allocated(false), h_allocated(false) {} auto Board::allocate_memory() -> void { device_allocate_memory(); host_allocat...
6144f494c6db3a5cd5dc8f3e14e06a7d139148e8.cu
#include "board.hpp" Board::Board(int height, int width) : shape(height, width) , d_board(nullptr), h_board(nullptr) , d_allocated(false), h_allocated(false) {} auto Board::allocate_memory() -> void { device_allocate_memory(); host_allocate_memory(); } auto Board::allocate_memory_if_not_allocated...
3e80c91777168698954e62572f802ddd888fa6d9.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 -> c d s */ #include "common_mag...
3e80c91777168698954e62572f802ddd888fa6d9.cu
/* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @precisions normal z -> c d s */ #include "common_magma.h" #include "common_magmasparse.h" #define BLOCK_SIZE 256 // kernel __global__ voi...
9ca3e43c65bbc29c20d0498534710b54553ebc75.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License,...
9ca3e43c65bbc29c20d0498534710b54553ebc75.cu
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
6fe40ddce4300de65ac3b9b51b6dc4cb49a8e6e7.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include "common.h" #include <stdio.h> #include <hiprand/hiprand_kernel.h> #define THREADS_PER_BLOCK 32 #define SEED 60 __global__ void mcOnGPU(float *f, const int N, const int nb, hiprandState_t *stat...
6fe40ddce4300de65ac3b9b51b6dc4cb49a8e6e7.cu
#include <cuda_runtime.h> #include <curand.h> #include "common.h" #include <stdio.h> #include <curand_kernel.h> #define THREADS_PER_BLOCK 32 #define SEED 60 __global__ void mcOnGPU(float *f, const int N, const int nb, curandState *states) { unsigned int ix = threadIdx.x + blockIdx.x * blockDim.x; int n = N/nb...
b4ccd107b86f76b3dff196d3265ceb867529d84a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <demo_util.h> #define CLOCK_RATE 1124000 // in kHZ __device__ uint get_smid(void) { uint ret; asm("mov.u32 %0, %smid;" : "=r"(ret) ); return ret; } __device__ void sleep(float t) { ...
b4ccd107b86f76b3dff196d3265ceb867529d84a.cu
#include <stdio.h> #include <demo_util.h> #define CLOCK_RATE 1124000 // in kHZ __device__ uint get_smid(void) { uint ret; asm("mov.u32 %0, %smid;" : "=r"(ret) ); return ret; } __device__ void sleep(float t) { clock_t t0 = clock64(); clock_t t1 = t0; while ((t1 - t0)/(CLOCK_RATE*1000.0...
52549beb052ddd6e284d369b49061b33d2ea9722.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // FreckleFilter // #include "FreckleFilter.h" #include <iostream> #include <fstream> #include <cmath> using namespace std; #include "ErrorCode.h" #include "Template.h" #include "TemplateFactory.h" // DEF_BLOCK_X DEF_BLOCK_Y /...
52549beb052ddd6e284d369b49061b33d2ea9722.cu
// FreckleFilter // 实现广义的中值滤波 #include "FreckleFilter.h" #include <iostream> #include <fstream> #include <cmath> using namespace std; #include "ErrorCode.h" #include "Template.h" #include "TemplateFactory.h" // 宏:DEF_BLOCK_X 和 DEF_BLOCK_Y // 定义了默认的线程块的尺寸。 #define DEF_BLOCK_X 32 #define DEF_BLOCK_Y 8 // Device ...
bb59a964c5ce69e9b345ae9b8a38426e66400128.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Header2.hpp" using namespace CR2; __global__ void CR2::addKernel(int *c, const int *a, const int *b) { hipStream_t stream; hipStreamCreateWithFlags(&stream, hipStreamNonBlocking); int i = threadIdx.x; ...
bb59a964c5ce69e9b345ae9b8a38426e66400128.cu
 #include "Header2.hpp" using namespace CR2; __global__ void CR2::addKernel(int *c, const int *a, const int *b) { cudaStream_t stream; cudaStreamCreateWithFlags(&stream, cudaStreamNonBlocking); int i = threadIdx.x; c[i] = a[i] + b[i]; cudaDeviceSynchronize(); }
d7b436dd43ffb5c8cdd3e42fa518182c849d4469.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <iomanip> #include <utilities.h> #include <serial.h> #include <nvidia.h> #include <scanTrans.h> using namespace std; // Global variables int *serialCscRowIdx; int *serialCscColPtr; double *serialCscVal; float serialTime; // Funct...
d7b436dd43ffb5c8cdd3e42fa518182c849d4469.cu
#include <iostream> #include <iomanip> #include <utilities.h> #include <serial.h> #include <nvidia.h> #include <scanTrans.h> using namespace std; // Global variables int *serialCscRowIdx; int *serialCscColPtr; double *serialCscVal; float serialTime; // Function prototypes void serialAlgo(int m, int n, int nnz, int *...
26880e9b71169f083b405d7649615804d4b665ee.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <chrono> #define BLOCK_SIZE 16 // __global__ void matrixMult(const double *A, const double *B, double *C, int n) { int ai =...
26880e9b71169f083b405d7649615804d4b665ee.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <chrono> #define BLOCK_SIZE 16 //функция ядра __global__ void matrixMult(const double *A, const double *B, double *C, int n) { int ai = n * (blockDim.y * blockIdx.y + threadIdx.y); // ин...
c5faff787320b412941881b70a4f31786f5c59ff.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <helper_cuda.h> __global__ void DetectorPowerDetectKernel(float* field, float* intensity, int M_Fields, int M_Camera) { int indx = threadIdx.x + blockIdx.x * blockDim.x; int indy = threadIdx.y + blockIdx.y * bloc...
c5faff787320b412941881b70a4f31786f5c59ff.cu
#include <cuda_runtime.h> #include <helper_cuda.h> __global__ void DetectorPowerDetectKernel(float* field, float* intensity, int M_Fields, int M_Camera) { int indx = threadIdx.x + blockIdx.x * blockDim.x; int indy = threadIdx.y + blockIdx.y * blockDim.y; int offsetView = indx + M_Camera * indy; int o...
9bf7f1e65bfe216fb90fbcdbaf2173a109449bda.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, ...
9bf7f1e65bfe216fb90fbcdbaf2173a109449bda.cu
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2011, Willow Garage, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
d15730842d65b81d14520b7153fdbb0638413d20.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <iostream> #include <ostream> #include <fstream> #include <sys/time.h> #include <time.h> using namespace std; #define CASENAME "test" #define NUMGPU 1 #define BLOCKSIZEX 32 #define BLOCKSIZEY 1 #define BLOCKSIZEZ 1 #defi...
d15730842d65b81d14520b7153fdbb0638413d20.cu
#include <cuda.h> #include <iostream> #include <ostream> #include <fstream> #include <sys/time.h> #include <time.h> using namespace std; #define CASENAME "test" #define NUMGPU 1 #define BLOCKSIZEX 32 #define BLOCKSIZEY 1 #define BLOCKSIZEZ 1 #define BLOCKSIZELRX 64 #define BLOCKSIZELRY 1 #define BLOCKSIZELRZ 1 #defi...
20b069e83a519ceef92197d725ca135e8bb2ae06.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the...
20b069e83a519ceef92197d725ca135e8bb2ae06.cu
/* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the information contained herein is PROPRIETARY and * CONFIDENTIAL to NVIDIA and is being...
6c63dbf32073f86c524ecf12a436c979161b682d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> // __global_- keyword in CUDA C/C++ indicates a function that // it run on the devices and it is called from host code. // This is the device components processed by NVIDIA compiler(nvcc). __global__ void myke...
6c63dbf32073f86c524ecf12a436c979161b682d.cu
#include "cuda_runtime.h" #include <stdio.h> // __global_- keyword in CUDA C/C++ indicates a function that // it run on the devices and it is called from host code. // This is the device components processed by NVIDIA compiler(nvcc). __global__ void mykernel(void) { } // Host functions processed by standard host c...
9586ade9cb8cfef12681f67afd4fb796c826ff08.hip
// !!! This is a file automatically generated by hipify!!! #include <LibFkpsConfig.h> #include <LibFkps.h> #include "../LibFkps.hh" #include <hip/hip_runtime.h> #include <hip/hiprtc.h> #include <fstream> #include <string> #include <sstream> LibFkpsErr_t LibFkpsCompile(FKPS lib) { LibFkps_t* _lib = (LibFkps_t*)lib...
9586ade9cb8cfef12681f67afd4fb796c826ff08.cu
#include <LibFkpsConfig.h> #include <LibFkps.h> #include "../LibFkps.hh" #include <cuda_runtime.h> #include <nvrtc.h> #include <fstream> #include <string> #include <sstream> LibFkpsErr_t LibFkpsCompile(FKPS lib) { LibFkps_t* _lib = (LibFkps_t*)lib; std::ifstream fileStream; std::string cFileContent; nvrtcProg...
3c4a7d34ac2cf18c4bbdb329a0ff657c2ef69621.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> #include<time.h> #define T 1024 // max threads per block __global__ void vecAdd(int *a,int *b,int *c,int N); int main(){ int N=2048; int curr=2; printf("-------------------------------...
3c4a7d34ac2cf18c4bbdb329a0ff657c2ef69621.cu
#include<stdio.h> #include<stdlib.h> #include<time.h> #define T 1024 // max threads per block __global__ void vecAdd(int *a,int *b,int *c,int N); int main(){ int N=2048; int curr=2; printf("-----------------------------------------\n"); while(N<=T*13){ int a[N], b[N], gpu_add[N],cpu_add[N]; int *dev_a,...
2cf6e4f52b11d57b4af2448886b0e89e144050f5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //xfail:REPAIR_ERROR //--blockDim=2048 --gridDim=64 struct s { float *p[42]; }; __global__ void foo(s q) { __requires_fresh_array(q.p[4]); q.p[4][0] = threadIdx.x; }
2cf6e4f52b11d57b4af2448886b0e89e144050f5.cu
//xfail:REPAIR_ERROR //--blockDim=2048 --gridDim=64 struct s { float *p[42]; }; __global__ void foo(s q) { __requires_fresh_array(q.p[4]); q.p[4][0] = threadIdx.x; }
613c7b175e406dfd3388a968cbae995b8bcd5522.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> // #include <THH/THHAtomics.cuh> #define CUDA_1D_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x) #define THREA...
613c7b175e406dfd3388a968cbae995b8bcd5522.cu
#include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> // #include <THC/THCAtomics.cuh> #define CUDA_1D_KERNEL_LOOP(i, n) \ for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x) #define THREADS_PER_BLOCK 1024 inline int GET_BLOCKS(const int N) { int optimal_block_num = (N...
0552743d0e1086853a96181985ed9bb12eee4d02.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from magmablas/zlascl2.cu, normal z -> d, Mon Ju...
0552743d0e1086853a96181985ed9bb12eee4d02.cu
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from magmablas/zlascl2.cu, normal z -> d, Mon Jun 25 18:24:12 2018 @author Theo Mary */ #include "magma_internal.h" #define NB ...
863aa9e2bacfb25a86859c3c7888db5b73680971.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 @generated from magmablas/zgeadd_batched.cu, normal z ->...
863aa9e2bacfb25a86859c3c7888db5b73680971.cu
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @generated from magmablas/zgeadd_batched.cu, normal z -> d, Thu Oct 8 23:05:35 2020 @author Mark Gates */ #include "magma_internal.h" #...
7945b5627783c52bd2a7b69447c53c5ac2217ee4.hip
// !!! This is a file automatically generated by hipify!!! /* * EDDL Library - European Distributed Deep Learning Library. * Version: 1.1 * copyright (c) 2022, Universitat Politcnica de Valncia (UPV), PRHLT Research Centre * Date: March 2022 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv....
7945b5627783c52bd2a7b69447c53c5ac2217ee4.cu
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 1.1 * copyright (c) 2022, Universitat Politècnica de València (UPV), PRHLT Research Centre * Date: March 2022 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es) * All rights reserved */ #include <string.h> #inclu...
62aa1308e1510bab285acc6ebe571c907a781854.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 "loop.cu" #include<chrono> #include<iostream> using namespace std...
62aa1308e1510bab285acc6ebe571c907a781854.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 "loop.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,...
748323d9e8855c08a2d8e745e87a34918c4ab9dd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THHUNN/generic/ClassNLLCriterion.hip" #else void THNN_(ClassNLLCriterion_updateOutput)( THCState *state, THCTensor *input, THCIndexTensor *target, ...
748323d9e8855c08a2d8e745e87a34918c4ab9dd.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "THCUNN/generic/ClassNLLCriterion.cu" #else void THNN_(ClassNLLCriterion_updateOutput)( THCState *state, THCTensor *input, THCIndexTensor *target, THCTensor *output, int64_t reduction, THCTensor *weights...
d06fb0b0d568ae18d64520bcb2acf921cd35d6fe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void cu_mat_scalar_multiply(double *A, double B, const int n){ int tid = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; while(tid < n){ A[tid] = __fmul_rd(A[tid], B); tid...
d06fb0b0d568ae18d64520bcb2acf921cd35d6fe.cu
#include "includes.h" __global__ void cu_mat_scalar_multiply(double *A, double B, const int n){ int tid = threadIdx.x + blockIdx.x * blockDim.x; int stride = blockDim.x * gridDim.x; while(tid < n){ A[tid] = __fmul_rd(A[tid], B); tid += stride; } }
42a8e3237446d05f1b571273dabd0eab5df8dcb0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * a simple test */ __shared__ float data1[32][32]; __shared__ float data2[32][32]; __shared__ float data3[32][32]; __device__ void mult(__shared__ float d1[32][32], __shared__ float d2[32][32], ...
42a8e3237446d05f1b571273dabd0eab5df8dcb0.cu
/* * a simple test */ __shared__ float data1[32][32]; __shared__ float data2[32][32]; __shared__ float data3[32][32]; __device__ void mult(__shared__ float d1[32][32], __shared__ float d2[32][32], __shared__ float d3[32][32], int idx) { int i; int ...
bc3b2eb4c7bc4f5d4c7e14ed425385a81ffb9b5c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" # include <stdio.h> __device__ float doTheCalculation(float f) { return f * f * f; } __global__ void cube(float *d_in, float *d_out) { int idx = threadIdx.x + blockIdx.x * blockDim.x; float f = d_in[idx]; //d_out[i...
bc3b2eb4c7bc4f5d4c7e14ed425385a81ffb9b5c.cu
# include <stdio.h> __device__ float doTheCalculation(float f) { return f * f * f; } __global__ void cube(float *d_in, float *d_out) { int idx = threadIdx.x + blockIdx.x * blockDim.x; float f = d_in[idx]; //d_out[idx] = f * f *f; d_out[idx] = doTheCalculation(f); } int main() { const int ARRA...
0bdde8d6100f9566e50e10288f961fdec510e603.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "Network.h" #include <stdio.h> #include <hip/hip_runtime.h> int main() { ErrorHandler *error = &ErrorHandler::getInstance(); Network train; float learningrate = 0.05; int trainit...
0bdde8d6100f9566e50e10288f961fdec510e603.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "Network.h" #include <stdio.h> #include <cuda.h> int main() { ErrorHandler *error = &ErrorHandler::getInstance(); Network train; float learningrate = 0.05; int trainiter = 1; train.train(false,false, learningrate, trainiter); train.test(f...
88723c3a51e51e8e4d60ad46d61d53cffa119fba.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...
88723c3a51e51e8e4d60ad46d61d53cffa119fba.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...
ca305c81aa16e754f10bd0d0fa1891c1c457911f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void NesterovUpdate(int N, Dtype *g, Dtype *h, Dtype momentum, Dtype local_rate) { CUDA_KERNEL_LOOP(i...
ca305c81aa16e754f10bd0d0fa1891c1c457911f.cu
#include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void NesterovUpdate(int N, Dtype *g, Dtype *h, Dtype momentum, Dtype local_rate) { CUDA_KERNEL_LOOP(i, N) { float hi = h[i]; float hi_new = h[i] = momentum * hi + local_rate * g[i];...
71ee3917ba21d9478cb34eea98e8c8164cc173f9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "relu.hh" //----------------------------------------------------------------------------- // RELU ACTIVATION //---------------------------------------------...
71ee3917ba21d9478cb34eea98e8c8164cc173f9.cu
#include "relu.hh" //----------------------------------------------------------------------------- // RELU ACTIVATION //----------------------------------------------------------------------------- __global__ void activationReLUCUDA(float *A, float *B,...
f66cc0470ea7506b54109ee711c2f1fefde86c22.hip
// !!! This is a file automatically generated by hipify!!! /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is availab...
f66cc0470ea7506b54109ee711c2f1fefde86c22.cu
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
3df8968f5a7b6c7586929af7749b62033475da78.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/Utils.h> #include <ATen/hip/HIPBlas.h> #include <ATen/hip/HIPContext.h> #include ...
3df8968f5a7b6c7586929af7749b62033475da78.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/Utils.h> #include <ATen/cuda/CUDABlas.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/native/ConvUtils.h> #include <ATen/native/cuda/vo...
2684ceb5b799a3b12add3cf9dc5851213906fa04.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdint.h> #include "clang/cuda.h" __global__ void add(float *a, float *b, float *c, int n) { int i = __builtin_ptx_read_ctaid_x() * __builtin_ptx_read_ntid_x() + __builtin_ptx_read_tid_x(); int j = __buil...
2684ceb5b799a3b12add3cf9dc5851213906fa04.cu
#include <stdint.h> #include "clang/cuda.h" __global__ void add(float *a, float *b, float *c, int n) { int i = __builtin_ptx_read_ctaid_x() * __builtin_ptx_read_ntid_x() + __builtin_ptx_read_tid_x(); int j = __builtin_ptx_read_ctaid_y() * __builtin_ptx_read_ntid_y() + __builtin_ptx_read_tid_...
73e5e48f5c3c63bebce3f09bf401dfe3302768c1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "THHTensorMath.h" #include "THHGeneral.h" #include "THHApply.cuh" // Similar to TensorInfo as defined in THCReduceApplyUtils.h, but it preserves // the exact dimensionality of the tensor instead of flattening contiguous o...
73e5e48f5c3c63bebce3f09bf401dfe3302768c1.cu
#include "THCTensorMath.h" #include "THCGeneral.h" #include "THCApply.cuh" // Similar to TensorInfo as defined in THCReduceApplyUtils.h, but it preserves // the exact dimensionality of the tensor instead of flattening contiguous or // size-1 dimensions. This is required for scatter/gather kernels because we // need t...
a33daa6380c92f80344f8e398ffbe76f1d0efeb1.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include "freshman.h" #include <omp.h> #define N 300000 __global__ void kernel_1() { double sum=0.0; for(int i=0;i<N;i++) sum=sum+tan(0.1)*tan(0.1); } __global__ void kernel_2() { double sum=0....
a33daa6380c92f80344f8e398ffbe76f1d0efeb1.cu
#include <cuda_runtime.h> #include <stdio.h> #include "freshman.h" #include <omp.h> #define N 300000 __global__ void kernel_1() { double sum=0.0; for(int i=0;i<N;i++) sum=sum+tan(0.1)*tan(0.1); } __global__ void kernel_2() { double sum=0.0; for(int i=0;i<N;i++) sum=sum+tan(0.1)*tan(0.1);...
86a49ada78686a3a6da8213c9698ec773656a0ff.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Rippling.h" #include <iostream> #include <assert.h> #include "Device.h" using std::cout; using std::endl; /*----------------------------------------------------------------------*\ |* Declaration *| \*--------...
86a49ada78686a3a6da8213c9698ec773656a0ff.cu
#include "Rippling.h" #include <iostream> #include <assert.h> #include "Device.h" using std::cout; using std::endl; /*----------------------------------------------------------------------*\ |* Declaration *| \*---------------------------------------------------------------------*/ /*---------------------...
064fddd7cb7edc0b33c0b4df70c52dcec84ba390.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 lice...
064fddd7cb7edc0b33c0b4df70c52dcec84ba390.cu
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
8c3ab8047889a726c3096051bfa686d2e1b828f3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if COMPUTE_ENTROPY_VOLUME_CUDA #define NR_OF_THREADS_PER_MARGIN 1 static texture<float, 2, hipReadModeElementType> t2dActiveVoxelMarginalEntropy; __device__ void _UpdateHistogramEntry_device ( int iActiveVoxelId, int iVoxelX,...
8c3ab8047889a726c3096051bfa686d2e1b828f3.cu
#if COMPUTE_ENTROPY_VOLUME_CUDA #define NR_OF_THREADS_PER_MARGIN 1 static texture<float, 2, cudaReadModeElementType> t2dActiveVoxelMarginalEntropy; __device__ void _UpdateHistogramEntry_device ( int iActiveVoxelId, int iVoxelX, int iVoxelY, int iVoxelZ, int iXOffset, int iYOffset, int iZOffset, int iValu...
2952ca7e2747c1da74e04bb4f2ab98d9a5676b1e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "threadFenceReduction_kernel.cuh" #include "posFind.cuh" struct posFinder { TASKCFG place init() {return place(0u, 0.0);} TASKCFG place reduce(place x, place y){if (y.val > x.val) return y; else return x;} TASKCFG pl...
2952ca7e2747c1da74e04bb4f2ab98d9a5676b1e.cu
#include "threadFenceReduction_kernel.cuh" #include "posFind.cuh" struct posFinder { TASKCFG place init() {return place(0u, 0.0);} TASKCFG place reduce(place x, place y){if (y.val > x.val) return y; else return x;} TASKCFG place f(unsigned int i, double c){return place(i, fabs(c));} }; __global__ void findPeak_...
4da6c61845d6823a53e2f97b9dfb4b5ab26cb2f0.hip
// !!! This is a file automatically generated by hipify!!! #include "generators.cuh" #include "../buffer_manager.cuh" #include <iostream> #include <chrono> // #include <thread> // #include <chrono> using namespace std; __host__ generator::generator(h_operator_t * parent, int32_t *src, size_t N): parent(pare...
4da6c61845d6823a53e2f97b9dfb4b5ab26cb2f0.cu
#include "generators.cuh" #include "../buffer_manager.cuh" #include <iostream> #include <chrono> // #include <thread> // #include <chrono> using namespace std; __host__ generator::generator(h_operator_t * parent, int32_t *src, size_t N): parent(parent), src(src), N(N){ // parent->open(); // cudaStr...
7bdc56c6b0a32054ade28089302fe6bc79ae6d07.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef KD_TRAVERSE_CU #define KD_TRAVERSE_CU // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> // includes, project #include <helper_cuda.h> // includes, kernels #include "common_h...
7bdc56c6b0a32054ade28089302fe6bc79ae6d07.cu
#ifndef KD_TRAVERSE_CU #define KD_TRAVERSE_CU // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> // includes, project #include <helper_cuda.h> // includes, kernels #include "common.cuh" //USE_TEX #include "KdTraverse_kernel.cu" ////////////////////////////////////////...
cf7863dcc58ea6866ad049d868f96ce6f33af232.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "kernels_hip.cuh" namespace emida { template<typename T> __global__ void prepare_pics(T* __restrict pic, const T* hanning_x, const T* hanning_y, const T* sums, size2_t size, size_t batch_size...
cf7863dcc58ea6866ad049d868f96ce6f33af232.cu
#include "cuda.h" #include "cuda_runtime.h" #include "kernels.cuh" namespace emida { template<typename T> __global__ void prepare_pics(T* __restrict pic, const T* hanning_x, const T* hanning_y, const T* sums, size2_t size, size_t batch_size) { size_t whole_x = blockIdx.x * blockDim.x + threadIdx.x; size_t pic_x = ...
24a79881cd346feac3b3abb4534a1a80cd3b2efe.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2015 Patrick Diehl // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <hip/hip_runtime.h> #include <iostream> #include <cma...
24a79881cd346feac3b3abb4534a1a80cd3b2efe.cu
// Copyright (c) 2015 Patrick Diehl // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <cuda.h> #include <iostream> #include <cmath> #include "opencl/benchmark_vector/timer.hpp" #include "config.hp...
4f32eac9a917bf79364ba1d087bb85acb140deac.hip
// !!! This is a file automatically generated by hipify!!! /***************************************** Emitting C Generated Code *******************************************/ #include <string.h> #include <stdlib.h> #include "cuda_header.h" #include <stdio.h> #include <stdint.h> #include "cublas_header.h" #include <stdboo...
4f32eac9a917bf79364ba1d087bb85acb140deac.cu
/***************************************** Emitting C Generated Code *******************************************/ #include <string.h> #include <stdlib.h> #include "cuda_header.h" #include <stdio.h> #include <stdint.h> #include "cublas_header.h" #include <stdbool.h> /**************** Snippet ****************/ void Snipp...
f2e5b0609cdc2897387ce6f0eb952777201677db.hip
// !!! This is a file automatically generated by hipify!!! /*************************************************************************************************** * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without *modification, a...
f2e5b0609cdc2897387ce6f0eb952777201677db.cu
/*************************************************************************************************** * Copyright (c) 2017-2020, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without *modification, are permitted provided that the following conditions are met...
94a2be252ed76e1d6e8deec7a813802407353674.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_PdV_kernel_predict; int xdim0_PdV_kernel_predict_h = -1; __constant__ int ydim0_PdV_kernel_predict; int ydim0_PdV_kernel_predict_h = -1; __constant__ int xdim1_PdV_kernel_pred...
94a2be252ed76e1d6e8deec7a813802407353674.cu
// // auto-generated by ops.py // __constant__ int xdim0_PdV_kernel_predict; int xdim0_PdV_kernel_predict_h = -1; __constant__ int ydim0_PdV_kernel_predict; int ydim0_PdV_kernel_predict_h = -1; __constant__ int xdim1_PdV_kernel_predict; int xdim1_PdV_kernel_predict_h = -1; __constant__ int ydim1_PdV_kernel_predict; int...
2a9a2b29b571a8450d8fd5ad8c68364f93652970.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2014-2015 NVIDIA Corporation. All rights reserved. * * Sample CUPTI app to demonstrate the usage of unified memory counter profiling * */ #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <cupti.h> #define CUPTI_...
2a9a2b29b571a8450d8fd5ad8c68364f93652970.cu
/* * Copyright 2014-2015 NVIDIA Corporation. All rights reserved. * * Sample CUPTI app to demonstrate the usage of unified memory counter profiling * */ #include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cupti.h> #define CUPTI_CALL(call) \ do { ...
c44e1eab6a51ffe3491fff17c25f37125cc74aca.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void innerToeplitzCyclicReductionKernel( double *a_d, double *b_d, double *c_d, double *d_d, ...
c44e1eab6a51ffe3491fff17c25f37125cc74aca.cu
__global__ void innerToeplitzCyclicReductionKernel( double *a_d, double *b_d, double *c_d, double *d_d, double *k1_d, double *k2_d, ...
fa7fb3bbf4375f8d8f5cf39ce5c017aa864cbb10.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...
fa7fb3bbf4375f8d8f5cf39ce5c017aa864cbb10.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...
d29ef1f7db35207f8b6d4fcbd212063554b9c5c5.hip
// !!! This is a file automatically generated by hipify!!! #include <sentinel.h> #include "fileutils.cuh" #include "dcat.cuh" #include "dchgrp.cuh" #include "dchgrp_getgrnam.cuh" #include "dchmod.cuh" #include "dchown.cuh" #include "dchown_getpwnam_hip.cuh" #include "dcmp_hip.cuh" #include "dcp.cuh" #include "dcp_isadi...
d29ef1f7db35207f8b6d4fcbd212063554b9c5c5.cu
#include <sentinel.h> #include "fileutils.cuh" #include "dcat.cuh" #include "dchgrp.cuh" #include "dchgrp_getgrnam.cuh" #include "dchmod.cuh" #include "dchown.cuh" #include "dchown_getpwnam.cuh" #include "dcmp.cuh" #include "dcp.cuh" #include "dcp_isadir.cuh" #include "dgrep.cuh" #include "dls.cuh" #include "dmkdir.cuh...
9252d1e43a25b1d94669941a1a101cc1204aeb99.hip
// !!! This is a file automatically generated by hipify!!! /* N-body code for CS 4380 / CS 5351 Copyright (c) 2019 Texas State University. All rights reserved. Redistribution in source or binary form, with or without modification, is *not* permitted. Use in source and binary forms, with or without modification, is on...
9252d1e43a25b1d94669941a1a101cc1204aeb99.cu
/* N-body code for CS 4380 / CS 5351 Copyright (c) 2019 Texas State University. All rights reserved. Redistribution in source or binary form, with or without modification, is *not* permitted. Use in source and binary forms, with or without modification, is only permitted for academic use in CS 4380 or CS 5351 at Texa...
69fea8b8e4d7160b7e55d7c3d112f34ecb3daa6e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "uplo_acos.cu" #include<chrono> #include<iostream> using namespac...
69fea8b8e4d7160b7e55d7c3d112f34ecb3daa6e.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "uplo_acos.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24}...
0fdcbb0161ff975c94b7b8c6ddda0d01c174f227.hip
// !!! This is a file automatically generated by hipify!!! /*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2019, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
0fdcbb0161ff975c94b7b8c6ddda0d01c174f227.cu
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2019, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
3a2002cdb5b27332b43b50ba17f675a66f9adec8.hip
// !!! This is a file automatically generated by hipify!!! #include "CUAPI.h" #if ( defined GPU && defined GRAVITY ) extern real (*d_Rho_Array_P )[ RHO_NXT*RHO_NXT*RHO_NXT ]; extern real (*d_Pot_Array_P_In )[ POT_NXT*POT_NXT*POT_NXT ]; extern real (*d_Pot_Array_P_Out)[ GRA_NXT*GRA_NXT*GRA_NXT ]; #ifdef UNSPLIT...
3a2002cdb5b27332b43b50ba17f675a66f9adec8.cu
#include "CUAPI.h" #if ( defined GPU && defined GRAVITY ) extern real (*d_Rho_Array_P )[ RHO_NXT*RHO_NXT*RHO_NXT ]; extern real (*d_Pot_Array_P_In )[ POT_NXT*POT_NXT*POT_NXT ]; extern real (*d_Pot_Array_P_Out)[ GRA_NXT*GRA_NXT*GRA_NXT ]; #ifdef UNSPLIT_GRAVITY extern real (*d_Pot_Array_USG_G)[ USG_NXT_G*USG_NX...
986a3e5fd5341d6278434f167e9be9933de7f865.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <string.h> #include <hip/hip_runtime.h> #include <time.h> #include <sys/time.h> #include "dproductkernel.h" int main(int argc, char* argv[]) { /* Initialize variables */ FILE *fp; size_t size; ...
986a3e5fd5341d6278434f167e9be9933de7f865.cu
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <cuda.h> #include <time.h> #include <sys/time.h> #include "dproductkernel.h" int main(int argc, char* argv[]) { /* Initialize variables */ FILE *fp; size_t size; unsigned int rows= atoi(argv[3]); unsigned int cols= at...
f920ac8b460ac4d55a85b0a0af4a041f298eff52.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation. * Any use,...
f920ac8b460ac4d55a85b0a0af4a041f298eff52.cu
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation. * Any use, reproduction, disclosure, or distribution of this software * and related documentation...
e996f2411eb6135b432ef6c3d2c6e4478f0db599.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "matrix_viz.h" #include <stdio.h> namespace dart { // -=-=-=-=-=-=-=-=-=- kernels -=-=-=-=-=-=-=-=-=- __global__ void gpu_visualizeMatrix( const float * mxData, const int mxCols, const int mxRows, uch...
e996f2411eb6135b432ef6c3d2c6e4478f0db599.cu
#include "matrix_viz.h" #include <stdio.h> namespace dart { // -=-=-=-=-=-=-=-=-=- kernels -=-=-=-=-=-=-=-=-=- __global__ void gpu_visualizeMatrix( const float * mxData, const int mxCols, const int mxRows, uchar3 * img, const int width, const int height, const uchar3 zeroColor, ...
2108d2ad11009a3bebdc0ddf64761bbe5d6ba528.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Lucas Tata / Salvatore Amico High Performance Computing on GPUs Final Project Collaborative Filtering GPU Implementation */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #inclu...
2108d2ad11009a3bebdc0ddf64761bbe5d6ba528.cu
/* Lucas Tata / Salvatore Amico High Performance Computing on GPUs Final Project Collaborative Filtering GPU Implementation */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <limits.h> #include "../helper/util.h" #include "../helper/wtime.h" #define INPUT_SI...
52661b9416486810f42124f5f82f7d4f882cefb4.hip
// !!! This is a file automatically generated by hipify!!! #ifndef _EXP_KERNEL_ #define _EXP_KERNEL_ #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> /* * The actual kernel */ template <class T> __global__ void expKernel(T * in, T * out, int n) { int index = threadId...
52661b9416486810f42124f5f82f7d4f882cefb4.cu
#ifndef _EXP_KERNEL_ #define _EXP_KERNEL_ #include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #include <math.h> /* * The actual kernel */ template <class T> __global__ void expKernel(T * in, T * out, int n) { int index = threadIdx.x + blockIdx.x * blockDim.x; if(index < n) out[index] = ex...
6af5fcc91a183a28f8f9b37fd3405eac0bf76673.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" #define T_PER_BLOCK 16 #define MINF __int_as_float(0xff800000) __global__ void resampleUCHAR4_Kernel(uchar4* d_output, unsigned int outputWidth, unsigned int outputHeight, const uchar4* d_input, unsigned...
6af5fcc91a183a28f8f9b37fd3405eac0bf76673.cu
#include "includes.h" #define T_PER_BLOCK 16 #define MINF __int_as_float(0xff800000) __global__ void resampleUCHAR4_Kernel(uchar4* d_output, unsigned int outputWidth, unsigned int outputHeight, const uchar4* d_input, unsigned int inputWidth, unsigned int inputHeight) { const unsigned int x = blockIdx.x*blockDim....
fac8d576f8a86ec4106c84b9e53890c8aad2a95b.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
fac8d576f8a86ec4106c84b9e53890c8aad2a95b.cu
/* * Copyright (c) 2019-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...
d7b1409b63a9355b2e0a861854eab71b185250c9.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------- // Gunrock -- Fast and Efficient GPU Graph Library // ---------------------------------------------------------------- // This source code is distributed under the terms of LICENSE.TXT // in th...
d7b1409b63a9355b2e0a861854eab71b185250c9.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 distribution. // ----------...
f6a9aa7baa993b3b70766fc88c14ed9c6c1957fb.hip
// !!! This is a file automatically generated by hipify!!! #include <cfloat> #include <chrono> #include <hip/hip_runtime_api.h> #include <iostream> using namespace std; /////////////////////////////////////////////////////////////////////////////////////////////////////////// hipError_t SAFE_CALL (hipError_t result)...
f6a9aa7baa993b3b70766fc88c14ed9c6c1957fb.cu
#include <cfloat> #include <chrono> #include <cuda_profiler_api.h> #include <iostream> using namespace std; /////////////////////////////////////////////////////////////////////////////////////////////////////////// cudaError_t SAFE_CALL (cudaError_t result) { if(result != cudaSuccess) { printf("CUDA er...
7cf486423193fd506748e107f08e2ba5284da128.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/ATen.h> #include <ATen/native/SortingUtils.h> #include <assert.h> #include <c10/macros/Macros.h> #include <stdlib.h> #include <ATen/hip/HIPApplyUtils.cuh> #include <ATen/hip/detail/TensorInfo.cuh> #include <THH/THHDev...
7cf486423193fd506748e107f08e2ba5284da128.cu
#include <ATen/ATen.h> #include <ATen/native/SortingUtils.h> #include <assert.h> #include <c10/macros/Macros.h> #include <stdlib.h> #include <ATen/cuda/CUDAApplyUtils.cuh> #include <ATen/cuda/detail/TensorInfo.cuh> #include <THC/THCDeviceUtils.cuh> // only for THCRoundUp? #include <THC/THCNumerics.cuh> #include <THC/TH...
906db5df9ef2e7e372176a328a573935e562a565.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...
906db5df9ef2e7e372176a328a573935e562a565.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...
26c9bcd9fbb7a8f581749c65f8a1fe3d9db06ac8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int dims_initialise_chunk_kernel_z [3][2]; static int dims_initialise_chunk_kernel_z_h [3][2] = {0}; //user function __device__ void initialise_chunk_kernel_z_gpu(ACC<double> &vertexz...
26c9bcd9fbb7a8f581749c65f8a1fe3d9db06ac8.cu
// // auto-generated by ops.py // __constant__ int dims_initialise_chunk_kernel_z [3][2]; static int dims_initialise_chunk_kernel_z_h [3][2] = {0}; //user function __device__ void initialise_chunk_kernel_z_gpu(ACC<double> &vertexz, const ACC<int> &zz, ACC<double> &vertexdz) { int z_min=field.z_min-2; double ...
86885d6c237518174597028fe8442f4fb3aea41e.hip
// !!! This is a file automatically generated by hipify!!! #include "cudakernel/memory/gather_nd.h" #include "cudakernel/common/divmod_fast.h" #include "ppl/nn/common/tensor_shape.h" #include "ppl/common/retcode.h" #include "ppl/common/types.h" #include <hip/hip_runtime.h> #include <assert.h> #include <vector> templat...
86885d6c237518174597028fe8442f4fb3aea41e.cu
#include "cudakernel/memory/gather_nd.h" #include "cudakernel/common/divmod_fast.h" #include "ppl/nn/common/tensor_shape.h" #include "ppl/common/retcode.h" #include "ppl/common/types.h" #include <cuda_runtime.h> #include <assert.h> #include <vector> template <typename T> __global__ void ppl_cukernel_gather_nd( int...
ad2c853c5de5e34e88eeb327c0c9744c479b7f10.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
ad2c853c5de5e34e88eeb327c0c9744c479b7f10.cu
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
224d36cb2d71c10dfd07128261c1f23ff41a6800.hip
// !!! This is a file automatically generated by hipify!!! /* Defines the matrix operations for sequential dense with CUDA */ #include <petscpkg_version.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/ #include <petsccublas.h> /* cublas definiti...
224d36cb2d71c10dfd07128261c1f23ff41a6800.cu
/* Defines the matrix operations for sequential dense with CUDA */ #include <petscpkg_version.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/ #include <petsccublas.h> /* cublas definitions are here */ #include <petsc/private/cudavecimpl.h> #if...
9deb4b03f1e1785f6f8d5d0e86fd2820131df52e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <string> #include <chrono> #include <time.h> #include <iostream> #include <cfloat> #include <algorithm> // not sure if needed //for CUDA garbage - maybe useful #include <hip/hip_runtime.h> //#define int LENGTH...
9deb4b03f1e1785f6f8d5d0e86fd2820131df52e.cu
#include <stdio.h> #include <stdlib.h> #include <string> #include <chrono> #include <time.h> #include <iostream> #include <cfloat> #include <algorithm> // not sure if needed //for CUDA garbage - maybe useful #include <cuda_runtime.h> //#define int LENGTH 100 // length of data set - okay this doesnt work aparent...