hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
02509a03dc03e70e85a4a2d93bf71dca137b59e1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void mkRender(float *fb, int max_x, int max_y) { //MK: Pixel ThreadId, BlockId int i = threadIdx.x + blockIdx.x * blockDim.x; int j = threadIdx.y + blockIdx.y * blockDim.y; //MK: Pixel FB ...
02509a03dc03e70e85a4a2d93bf71dca137b59e1.cu
#include "includes.h" __global__ void mkRender(float *fb, int max_x, int max_y) { //MK: Pixel 위치 계산을 위해 ThreadId, BlockId를 사용함 int i = threadIdx.x + blockIdx.x * blockDim.x; int j = threadIdx.y + blockIdx.y * blockDim.y; //MK: 계산된 Pixel 위치가 FB사이즈 보다 크면 연산을 수행하지 않음 if((i >= max_x) || (j >= max_y)){ return; } //MK: FB ...
691b9e8186bd07ff2dc6e99148f1ba675f3d1bfe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gpu_func.h" #include <iostream> #include <cmath> /* Inline function to check if image index is in bounds */ static __device__ __forceinline__ bool in_img(int x, int y, int rows, int cols) { return x >= 0 && x < cols && ...
691b9e8186bd07ff2dc6e99148f1ba675f3d1bfe.cu
#include "gpu_func.h" #include <iostream> #include <cmath> /* Inline function to check if image index is in bounds */ static __device__ __forceinline__ bool in_img(int x, int y, int rows, int cols) { return x >= 0 && x < cols && y >= 0 && y < rows; } __global__ void device_add_one(int* d_result, int t) { *d_result...
140302b53185aa8deba0efe1ea36596cbf304ad9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <inttypes.h> #include <math.h> #include <stdlib.h> #include <stdio.h> //#include <time.h> #include <sys/time.h> #include <sys/types.h> #include <dirent.h> #include <unistd.h> #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #de...
140302b53185aa8deba0efe1ea36596cbf304ad9.cu
#include <inttypes.h> #include <math.h> #include <stdlib.h> #include <stdio.h> //#include <time.h> #include <sys/time.h> #include <sys/types.h> #include <dirent.h> #include <unistd.h> #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) #define MAX_STR_LEN 256 struct ponto_capturad...
b3bc7196e32e42e4dd3e82f7c74069b909b2661a.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...
b3bc7196e32e42e4dd3e82f7c74069b909b2661a.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...
91f296ca1304e3ddd3da59da4db583ac95289a31.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Babak Poursartip 05/14/2020 */ #include <stdio.h> __global__ void hello(){ printf("I am: %d %d \n",threadIdx.x, blockIdx.x); } int main(){ printf(" code start ... \n"); dim3 blocks(16,1,1); dim3 threads(1,1,1); hipLau...
91f296ca1304e3ddd3da59da4db583ac95289a31.cu
/* Babak Poursartip 05/14/2020 */ #include <stdio.h> __global__ void hello(){ printf("I am: %d %d \n",threadIdx.x, blockIdx.x); } int main(){ printf(" code start ... \n"); dim3 blocks(16,1,1); dim3 threads(1,1,1); hello<<<blocks,threads>>>(); cudaDeviceSynchronize(); printf(" end here. \n"); return 0; }
37b664f88d844e26de95f346e50e8ad92258e84c.hip
// !!! This is a file automatically generated by hipify!!! /* * EDDL Library - European Distributed Deep Learning Library. * Version: 0.3 * copyright (c) 2019, Universidad Politcnica de Valencia (UPV), PRHLT Research Centre * Date: October 2019 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.u...
37b664f88d844e26de95f346e50e8ad92258e84c.cu
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 0.3 * copyright (c) 2019, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre * Date: October 2019 * Author: PRHLT Research Centre, UPV, (rparedes@prhlt.upv.es), (jon@prhlt.upv.es) * All rights reserved */ #include <stdio.h> #inclu...
678d0435b730999af8802c154cc28200ac737d71.hip
// !!! This is a file automatically generated by hipify!!! /* * cuTS: Scaling Subgraph Isomorphism on Distributed Multi-GPU Systems Using * Trie Based Data Structure * * Copyright (C) 2021 APPL Laboratories (aravind_sr@outlook.com) * * This software is available under the MIT license, a copy of which can ...
678d0435b730999af8802c154cc28200ac737d71.cu
/* * cuTS: Scaling Subgraph Isomorphism on Distributed Multi-GPU Systems Using * Trie Based Data Structure * * Copyright (C) 2021 APPL Laboratories (aravind_sr@outlook.com) * * This software is available under the MIT license, a copy of which can be * found in the file 'LICENSE' in the top-level director...
3b3371f6e323fe9ca770f30d7182dbde338f24d1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017 Sony 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 L...
3b3371f6e323fe9ca770f30d7182dbde338f24d1.cu
// Copyright (c) 2017 Sony 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 by ...
23e8b51ceb2cc69573aec9d057a15920c7a65514.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <cmath> #include <ctime> #include <chrono> #include <random> #define N 100000000 #define TIMING #ifdef TIMING #define INIT_TIMER auto start = std::chrono::high_resolution_clock::now(); #define START_TI...
23e8b51ceb2cc69573aec9d057a15920c7a65514.cu
#include <iostream> #include <cmath> #include <ctime> #include <chrono> #include <random> #define N 100000000 #define TIMING #ifdef TIMING #define INIT_TIMER auto start = std::chrono::high_resolution_clock::now(); #define START_TIMER start = std::chrono::high_resolution_clock::now(); #define STOP_TIMER std::cout << "...
fcafd42422c0a15709a9513b8226b5e83d1d41b2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.4.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver December 2013 @precisions normal z -> s d c */ #include "common_magma.h" ...
fcafd42422c0a15709a9513b8226b5e83d1d41b2.cu
/* -- MAGMA (version 1.4.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver December 2013 @precisions normal z -> s d c */ #include "common_magma.h" // 512 is maximum number of threads for CUDA capability 1.x #define BLOCK_SIZE 512 #def...
b9b02c4395fbc18f799e1c23a66000fce160bbf6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include "radonusfft.cuh" #include "kernels_tomo.cu" #include "shift.hip" #include "filter.hip" radonusfft::radonusfft(size_t ntheta, size_t pnz, size_t n, float center, size_t theta_, siz...
b9b02c4395fbc18f799e1c23a66000fce160bbf6.cu
#include <stdio.h> #include "radonusfft.cuh" #include "kernels_tomo.cu" #include "shift.cu" #include "filter.cu" radonusfft::radonusfft(size_t ntheta, size_t pnz, size_t n, float center, size_t theta_, size_t ngpus) : ntheta(ntheta), pnz(pnz), n(n), center(center), ngpus(ngpus) { float ep...
44355e85186c8991c326b734b588e19b571c4ab6.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 "orttraining/training_ops/cuda/activation/activations_grad_impl.h" #include "orttraining/training_ops/cuda/activation/gelu_gra...
44355e85186c8991c326b734b588e19b571c4ab6.cu
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <cuda_runtime.h> #include "orttraining/training_ops/cuda/activation/activations_grad_impl.h" #include "orttraining/training_ops/cuda/activation/gelu_grad_impl_common.cuh" #include "core/providers/cuda/cu_inc/common...
9bc765eef2949741060c1683fbccda7f2c52187a.hip
// !!! This is a file automatically generated by hipify!!! /* * SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
9bc765eef2949741060c1683fbccda7f2c52187a.cu
/* * SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * 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 Lic...
e0c70de59ec3e95ebd18fb31793c9b84c7770d45.hip
// !!! This is a file automatically generated by hipify!!! /* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @generated from sparse/blas/zgecsr5mv.cu, normal z -> d, Thu Oct 8 23:05:48 2020 ...
e0c70de59ec3e95ebd18fb31793c9b84c7770d45.cu
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @generated from sparse/blas/zgecsr5mv.cu, normal z -> d, Thu Oct 8 23:05:48 2020 @author Weifeng Liu */ // CSR5 SpMV kernel // see pap...
a092c95b99a0ed0db4a3767bd778b531a517b3d8.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 t...
a092c95b99a0ed0db4a3767bd778b531a517b3d8.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. // ---------...
864e94f5ac5be10b3502034b2fa4517b2e9911c0.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "gpu.h" // Cuda cores per multiprocessor from Compute Capability inline int _ConvertSMVer2Cores(int major, int minor) { // Defines for GPU Architecture types (using the SM version to determine the # of cores per SM typedef struc...
864e94f5ac5be10b3502034b2fa4517b2e9911c0.cu
#include <stdio.h> #include "gpu.h" // Cuda cores per multiprocessor from Compute Capability inline int _ConvertSMVer2Cores(int major, int minor) { // Defines for GPU Architecture types (using the SM version to determine the # of cores per SM typedef struct { int SM; // 0xMm (hexadecimal notation), M = SM Majo...
df68a2237769119a38098b1de90c42c5ff70e601.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include "hip/hip_runtime.h" #include "utils.cuh" #include "../device/device_context.cuh" #include "tsvd.h" #include <ctime> #include <thrust/iterator/counting_iterator.h> #include<algorithm> #include <thrust/sequence.h> #include <thrust/inner...
df68a2237769119a38098b1de90c42c5ff70e601.cu
#include <cstdio> #include "cuda_runtime.h" #include "utils.cuh" #include "../device/device_context.cuh" #include "tsvd.h" #include <ctime> #include <thrust/iterator/counting_iterator.h> #include<algorithm> #include <thrust/sequence.h> #include <thrust/inner_product.h> #include <thrust/transform_reduce.h> namespace ts...
78db71a1c3c0d4d8838f25bb8c810a22b66b6140.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void addValue_i32 (int* vector, int value, int* output, int len) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < len) { output[idx] = vector[idx] + value; } }
78db71a1c3c0d4d8838f25bb8c810a22b66b6140.cu
#include "includes.h" __global__ void addValue_i32 (int* vector, int value, int* output, int len) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < len) { output[idx] = vector[idx] + value; } }
03cc977a20fe291ae594e392c2edf603f269cbe0.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,...
03cc977a20fe291ae594e392c2edf603f269cbe0.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. * *...
64ac5cab473416223688e41a6988f600dcb32382.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //#include "CUDADiffusion.hh" //#include "DiffusionUtils.hh" //#include "SymmetricTensor.hh" //#include <vector> //#include <map> //#include "options.h" //#include "cudautil.h" #include <stdio.h> #define XTILE 20 typedef double Re...
64ac5cab473416223688e41a6988f600dcb32382.cu
//#include "CUDADiffusion.hh" //#include "DiffusionUtils.hh" //#include "SymmetricTensor.hh" //#include <vector> //#include <map> //#include "options.h" //#include "cudautil.h" #include <stdio.h> #define XTILE 20 typedef double Real; __global__ void diff_6face_v1(const Real* d_psi, Real* d_npsi, const Real* d_sigma...
ce34b41857548ba43de188dd717b0af6122ef295.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
ce34b41857548ba43de188dd717b0af6122ef295.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 ...
977a40624261616f24805934a133d3ff18de1e9b.hip
// !!! This is a file automatically generated by hipify!!! // includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <hip/hip_runtime.h> #include <sys/time.h> // includes, kernels #include "backprop_cuda_kernel.cu" #include "backprop.h" ///////////////////////////////...
977a40624261616f24805934a133d3ff18de1e9b.cu
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cuda.h> #include <sys/time.h> // includes, kernels #include "backprop_cuda_kernel.cu" #include "backprop.h" //////////////////////////////////////////////////////////////////////////////// extern "C" void bpn...
6c0d4017368f16dbf1dd53c7f55895eba03f2d75.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************/ // The purpose of this file is to provide a GPU implementation of the // heat transfer simulation using MATLAB. // // Author: Jason Lowden // Date: October 20, 2013 // // File: KMeans.h...
6c0d4017368f16dbf1dd53c7f55895eba03f2d75.cu
/************************************************************************/ // The purpose of this file is to provide a GPU implementation of the // heat transfer simulation using MATLAB. // // Author: Jason Lowden // Date: October 20, 2013 // // File: KMeans.h /*********************************************************...
c04967dfb5b249f9a0761dd7edbb246a16ea6e6c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" using namespace std; #define delta 10 #define rows 50 #define columns 50 __global__ void SomeKernel(int* res, int* data, int col, int row,int y, int step) { unsigned int threadId = blockIdx.x * ...
c04967dfb5b249f9a0761dd7edbb246a16ea6e6c.cu
#include "includes.h" using namespace std; #define delta 10 #define rows 50 #define columns 50 __global__ void SomeKernel(int* res, int* data, int col, int row,int y, int step) { unsigned int threadId = blockIdx.x * blockDim.x + threadIdx.x; //Считаем идентификатор текущего потока int currDelta = 0; for...
dd2ba7ff1a0e2a250620ee882569bd49d47c9ca3.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, ...
dd2ba7ff1a0e2a250620ee882569bd49d47c9ca3.cu
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
7c2d2e9d8af2f9c0e08e1b1cf24734659ad87357.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <read_gauge.h> #include <gauge_field.h> #include <fermion_force_quda.h> #include <force_common.h> #include <hw_quda.h> namespace quda { #define BLOCK_DIM 64 #define LOAD_ANTI_HERMITIAN(src, dir, idx, var) LOAD_ANTI_HER...
7c2d2e9d8af2f9c0e08e1b1cf24734659ad87357.cu
#include <read_gauge.h> #include <gauge_field.h> #include <fermion_force_quda.h> #include <force_common.h> #include <hw_quda.h> namespace quda { #define BLOCK_DIM 64 #define LOAD_ANTI_HERMITIAN(src, dir, idx, var) LOAD_ANTI_HERMITIAN_DIRECT(src, dir, idx, var, Vh) #define LOAD_HW_SINGLE(hw_even, hw_odd, idx, var,...
3a1ec8f901c8b37f55b815c780bee433633f908f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2019 @precisions normal z -> c d s */ #include "magmasparse_...
3a1ec8f901c8b37f55b815c780bee433633f908f.cu
/* -- MAGMA (version 2.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2019 @precisions normal z -> c d s */ #include "magmasparse_internal.h" #define BLOCK_SIZE 256 // axpy kernel for matrices stored in the MAGMA fo...
cc7466ce913d9e854f8f9598fd5be5261fb91757.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // STD #include <cassert> #include <iostream> // CUDA #include <hip/hip_cooperative_groups.h> // NNCPP #include "tensor.hpp" #include "activations.hpp" #include "cuda_tensor_wrapper.cuh" #include "cuda_utils.cuh" namespace cg = ...
cc7466ce913d9e854f8f9598fd5be5261fb91757.cu
// STD #include <cassert> #include <iostream> // CUDA #include <cooperative_groups.h> // NNCPP #include "tensor.hpp" #include "activations.hpp" #include "cuda_tensor_wrapper.cuh" #include "cuda_utils.cuh" namespace cg = cooperative_groups; namespace nncpp { __global__ void kerner_relu(CUDATensorWrapper input, CU...
218c017650bede1894699f3bb0504e56222e2c3f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" #define DOUBLE #ifdef DOUBLE #define Complex hipfftDoubleComplex #define Real double #define Transform HIPFFT_Z2Z #define TransformExec hipfftExecZ2Z #else #define Complex hipfftComplex #define Real float #...
218c017650bede1894699f3bb0504e56222e2c3f.cu
#include "includes.h" #define DOUBLE #ifdef DOUBLE #define Complex cufftDoubleComplex #define Real double #define Transform CUFFT_Z2Z #define TransformExec cufftExecZ2Z #else #define Complex cufftComplex #define Real float #define Transform CUFFT_C2C #define TransformExec cufftExecC2C #endif #define TILE_DIM 8 /...
471f4639a663c5c80bc6563831ec828cde7df683.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following condition...
471f4639a663c5c80bc6563831ec828cde7df683.cu
/* * Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com) * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice...
32352ce8c6c85819f6b39c0b6b107d0782d36526.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; #define GAUSS_WIDTH 5 #define SOBEL_WIDTH 3 typedef struct images { char *pType; int width...
32352ce8c6c85819f6b39c0b6b107d0782d36526.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> #include <stdlib.h> #include <string.h> using namespace std; #define GAUSS_WIDTH 5 #define SOBEL_WIDTH 3 typedef struct images { char *pType; int width; int height; int maxValColor; unsigned char *data; } image...
fb3747ed20188b22da9ebd37481e6c707a9f4e64.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*************************************************************************** * Copyright (C) 2020 * * * ...
fb3747ed20188b22da9ebd37481e6c707a9f4e64.cu
/*************************************************************************** * Copyright (C) 2020 * * * * * * This p...
e399e317aaf281691ece7295f439e2875e4a0777.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "wall_repulsion.h" #include <mirheo/core/pvs/particle_vector.h> #include <mirheo/core/pvs/views/pv.h> #include <mirheo/core/simulation.h> #include <mirheo/core/utils/config.h> #include <mirheo/core/utils/cuda_common.h> #in...
e399e317aaf281691ece7295f439e2875e4a0777.cu
#include "wall_repulsion.h" #include <mirheo/core/pvs/particle_vector.h> #include <mirheo/core/pvs/views/pv.h> #include <mirheo/core/simulation.h> #include <mirheo/core/utils/config.h> #include <mirheo/core/utils/cuda_common.h> #include <mirheo/core/utils/cuda_rng.h> #include <mirheo/core/utils/kernel_launch.h> #inclu...
10f70db1988fb257f605dab9f3a893915f2c9df8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
10f70db1988fb257f605dab9f3a893915f2c9df8.cu
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
dfa3f51130fdd43df35878825e97054c08933934.hip
// !!! This is a file automatically generated by hipify!!! /* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licen...
dfa3f51130fdd43df35878825e97054c08933934.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...
5f7674eac0c000fb815f152f66b91589a6524349.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include "sha1_.cu" #include <string.h> #define N 8 #define SPACE 10000 #define BLOCK_SIZE 16 __global__ void kernel(unsigned char* digest, unsigned char* find, bool* bingo) { // kee...
5f7674eac0c000fb815f152f66b91589a6524349.cu
#include <stdio.h> #include <stdlib.h> #include "sha1_.cu" #include <string.h> #define N 8 #define SPACE 10000 #define BLOCK_SIZE 16 __global__ void kernel(unsigned char* digest, unsigned char* find, bool* bingo) { // keep the context in shared memory __shared__ unsigned char ctx[16][16][N]; // keep the d...
fab8b92b8e89a2a555018ef996714304cda1dd0f.hip
// !!! This is a file automatically generated by hipify!!! //raytracer.mustafaisik.net// #include "texture_manager.cuh" #include "cuda_utils.cuh" #include <FreeImage/FreeImage.h> TextureManager& TextureManager::Manager() { static TextureManager manager; return manager; } void TextureManager::loadPerlinTextu...
fab8b92b8e89a2a555018ef996714304cda1dd0f.cu
//raytracer.mustafaisik.net// #include "texture_manager.cuh" #include "cuda_utils.cuh" #include <FreeImage/FreeImage.h> TextureManager& TextureManager::Manager() { static TextureManager manager; return manager; } void TextureManager::loadPerlinTexture(const Texture::SampleParams& sample_params) { m_text...
58e12c3ee89b8a8db4bd7d001c43eb89278c639f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_shell_private.h" extern "C" { #include "cuda_shell.h" } PetscErrorCode BuildMat_CUDAShell(PetscInt L,PetscInt nterms,PetscInt* masks,PetscInt* signs,PetscScalar* coeffs,Mat *A) { PetscErrorCode ierr; PetscInt N...
58e12c3ee89b8a8db4bd7d001c43eb89278c639f.cu
#include "cuda_shell_private.h" extern "C" { #include "cuda_shell.h" } PetscErrorCode BuildMat_CUDAShell(PetscInt L,PetscInt nterms,PetscInt* masks,PetscInt* signs,PetscScalar* coeffs,Mat *A) { PetscErrorCode ierr; PetscInt N,n; shell_context *ctx; N = 1<<L; n = PETSC_DECIDE; PetscSplitOwnership(PETSC_...
07bf51147a9c95bece46f2ed8ab1cb6ffbb8fe6e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <ATe...
07bf51147a9c95bece46f2ed8ab1cb6ffbb8fe6e.cu
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <c10/cuda/CUDAGuard.h> #include <m...
8bba1810736e9c1a16a2ea0890d0d866721e54d0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2020-2022, 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 ...
8bba1810736e9c1a16a2ea0890d0d866721e54d0.cu
/* * Copyright (c) 2020-2022, 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...
2582883acb37f6875462126193da58c691614198.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 "VecAdd.cu" #include<chrono> #include<iostream> using namespace s...
2582883acb37f6875462126193da58c691614198.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 "VecAdd.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{3...
59c6bff96becebda8ea18addd8d6c0ea63a110c7.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdlib> #include <cstdio> #include <cstdio> #include <chrono> #include <fstream> #include <vector> #include "Image.h" #include "PPM.h" #include "MorphableOperator.h" int main (int argc, char **argv){ std::string path_input = "/home/user/myfolder/"...
59c6bff96becebda8ea18addd8d6c0ea63a110c7.cu
#include <cstdlib> #include <cstdio> #include <cstdio> #include <chrono> #include <fstream> #include <vector> #include "Image.h" #include "PPM.h" #include "MorphableOperator.h" int main (int argc, char **argv){ std::string path_input = "/home/user/myfolder/"; std::string path_results = path_input; std::vector<...
d71d8eea90765e44e0cb5df840725037d4bba104.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * cudakernels.c * * Created on: Nov 7, 2011 * Author: igkiou */ #include "cudakernels.h" #include "usecuda.h" #define IMIN(X, Y) ((X) < (Y) ? (X) : (Y)) #define IMAX(X, Y) ((X) > (Y) ? (X) : (Y)) #define SIGN(X) (...
d71d8eea90765e44e0cb5df840725037d4bba104.cu
/* * cudakernels.c * * Created on: Nov 7, 2011 * Author: igkiou */ #include "cudakernels.h" #include "usecuda.h" #define IMIN(X, Y) ((X) < (Y) ? (X) : (Y)) #define IMAX(X, Y) ((X) > (Y) ? (X) : (Y)) #define SIGN(X) ((X) > 0 ? (1) : (((X) < 0 ? (-(1)) : (0)))) #define ABS(X) ((X) > 0 ? (X) : (-(X))) __...
e9b536e42bd8e7f661539c46e5be85c26dcf280f.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include "AminoAcid.h" #include <iostream> #include <vector> #include <fstream> #include <cmath> #include <string> #define _USE_MATH_DEFINES #define BOLTZ_CONST .0019872041 #include <thrust/host_vector.h> #include <thrust/device_ve...
e9b536e42bd8e7f661539c46e5be85c26dcf280f.cu
#include <cuda.h> #include "AminoAcid.h" #include <iostream> #include <vector> #include <fstream> #include <cmath> #include <string> #define _USE_MATH_DEFINES #define BOLTZ_CONST .0019872041 #include <thrust/host_vector.h> #include <thrust/device_vector.h> using namespace std; __global__ void sum4(double** pd_props, ...
44b789685bb7aadfbb8bf1ec0b6935db18f4de23.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <benchmark/benchmark.h> #include <bm_config.hpp> #include <matazure/tensor> using namespace matazure; template <typename _ValueType> void BM_host_zip_gold(benchmark::State &state) { tensor<_ValueType, 1> ts0(state.range...
44b789685bb7aadfbb8bf1ec0b6935db18f4de23.cu
#include <benchmark/benchmark.h> #include <bm_config.hpp> #include <matazure/tensor> using namespace matazure; template <typename _ValueType> void BM_host_zip_gold(benchmark::State &state) { tensor<_ValueType, 1> ts0(state.range(0)); tensor<_ValueType, 1> ts1(ts0.shape()); tensor<_ValueType, 1> ts_re0(ts0.shape()...
c4ff4737d9411076beee83a923c0778eb35adeb4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <ctime> #include <vector> #include <algorithm> #include <stdlib.h> // utilities #include <helper_cuda.h> #include <time.h> #include <sys/time.h> #include <hip/hip_cooperative_groups.h> using namespace coo...
c4ff4737d9411076beee83a923c0778eb35adeb4.cu
#include <cstdio> #include <ctime> #include <vector> #include <algorithm> #include <stdlib.h> // utilities #include <helper_cuda.h> #include <time.h> #include <sys/time.h> #include <cooperative_groups.h> using namespace cooperative_groups; /////////////////////////////L1 is enabled. "ALL_CCFLAGS += -Xptxas -dlcm=ca" ...
e63f798093d24772beb4282f2ae888103d39adf8.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
e63f798093d24772beb4282f2ae888103d39adf8.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
86641a60faf018a91e3106306ffc0a268bc3cce5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "project.h" #include "volume.h" #include "graph.h" char *programName; int main(int argc, char *argv[]) { programName = argv[0]; if (argc < 2) { printf("Usage:\n"); printf(" %s inputRawVolume outputRawVolume...
86641a60faf018a91e3106306ffc0a268bc3cce5.cu
#include "project.h" #include "volume.h" #include "graph.h" char *programName; int main(int argc, char *argv[]) { programName = argv[0]; if (argc < 2) { printf("Usage:\n"); printf(" %s inputRawVolume outputRawVolume\n", programName); exit(0); } // read our raw file into volume Volume *volume;...
61aff8a438dc0e595018493fefebd8ab92e0b898.hip
// !!! This is a file automatically generated by hipify!!! #include "utils.h" #include "CudaProj.h" #include <stdlib.h> #include <stdio.h> #include <helper_functions.h> // helper for shared functions common to CUDA SDK samples #include <helper_cuda.h> // helper function CUDA error checking and intialization floa...
61aff8a438dc0e595018493fefebd8ab92e0b898.cu
#include "utils.h" #include "CudaProj.h" #include <stdlib.h> #include <stdio.h> #include <helper_functions.h> // helper for shared functions common to CUDA SDK samples #include <helper_cuda.h> // helper function CUDA error checking and intialization float* ReadFile(const char* name, int* count) { FILE *file; f...
410da2908e2614eaab3a3bbb5646c2a51d1a2443.hip
// !!! This is a file automatically generated by hipify!!! extern "C" { #include "cuda_util.h" __host__ void cuda_check(hipError_t err, const char* file, const int line, bool fatal) { if (hipSuccess != err) { printf("[!] GPU error: %s:%d, code: %d, reason: %s\n", file, line, err, hipGetErrorString(err...
410da2908e2614eaab3a3bbb5646c2a51d1a2443.cu
extern "C" { #include "cuda_util.h" __host__ void cuda_check(cudaError_t err, const char* file, const int line, bool fatal) { if (cudaSuccess != err) { printf("[!] GPU error: %s:%d, code: %d, reason: %s\n", file, line, err, cudaGetErrorString(err)); if (fatal) { printf("[!] aborting...\n"); ...
285909960cb1f8ed8753ec0cbb1bc8d35d9f8bd7.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) SenseTime Research. All rights reserved. // Copyright (c) 2019, NVIDIA Corporation. All rights reserved. // // This work is made available under the Nvidia Source Code License-NC. // To view a copy of this license, visit // https://nvlabs.gith...
285909960cb1f8ed8753ec0cbb1bc8d35d9f8bd7.cu
// Copyright (c) SenseTime Research. All rights reserved. // Copyright (c) 2019, NVIDIA Corporation. All rights reserved. // // This work is made available under the Nvidia Source Code License-NC. // To view a copy of this license, visit // https://nvlabs.github.io/stylegan2/license.html #include <torch/types.h> #in...
60df58431dd28a05cad442d9dabc9b300b067bc3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> // for printf #define N 64 // constant, threads per block #define TPB 32 // constant, threads per block // converts int to evenly spaced floats // ie) .1, .2, ..., .5, ..., .9 float scale(int...
60df58431dd28a05cad442d9dabc9b300b067bc3.cu
#include <stdio.h> // for printf #define N 64 // constant, threads per block #define TPB 32 // constant, threads per block // converts int to evenly spaced floats // ie) .1, .2, ..., .5, ..., .9 float scale(int i, int n) { return ((float) i) / (n - 1); } // Computes distance between 2 points ...
220a113eda4f37162a1b63222ad69afcf16a3623.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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...
220a113eda4f37162a1b63222ad69afcf16a3623.cu
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 applica...
3cce687bae94f666465c3f54af2de851e6300276.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 matrix addition Z=C...
3cce687bae94f666465c3f54af2de851e6300276.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 matrix addition Z=CuMatlab_add(Sparse/Dense(X),Sparse/Dense(Y), alpha, beta). ...
a9335900ec0de2e305d5e26812fcc071fd05edd6.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "acc_internal.h" #include "acc_gpu_internal.h" //funcs //hipStream_t _ACC_gpu_get_stream(int id); //void _ACC_gpu_init_stream_map(int table_size); //void _ACC_gpu_finalize_stream_map(); //void _ACC_gpu_wait(int id); //void _ACC_gpu...
a9335900ec0de2e305d5e26812fcc071fd05edd6.cu
#include <stdio.h> #include "acc_internal.h" #include "acc_gpu_internal.h" //funcs //cudaStream_t _ACC_gpu_get_stream(int id); //void _ACC_gpu_init_stream_map(int table_size); //void _ACC_gpu_finalize_stream_map(); //void _ACC_gpu_wait(int id); //void _ACC_gpu_wait_all(); //int _ACC_gpu_test(int id); //int _ACC_gpu_t...
794f5affa2c9a65bd6bb51db86852ec5c7069484.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include <stdlib.h> #define ARRAY_SIZE 1000; __shared__ unsigned int d_bin_data_shared[256]; __global__ void histogram( const unsigned int const * d_hist_data, unsigned int * const d_bin_data ) { /*...
794f5affa2c9a65bd6bb51db86852ec5c7069484.cu
#include <stdio.h> #include <cuda.h> #include <stdlib.h> #define ARRAY_SIZE 1000; __shared__ unsigned int d_bin_data_shared[256]; __global__ void histogram( const unsigned int const * d_hist_data, unsigned int * const d_bin_data ) { /* thread id */ const unsigned int idx = (blockId.x + blockDim.x) + ...
a75e1f9a83c9451d3732cf0242fee30752c44d09.hip
// !!! This is a file automatically generated by hipify!!! /*************************************************************************************************** * Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in sour...
a75e1f9a83c9451d3732cf0242fee30752c44d09.cu
/*************************************************************************************************** * Copyright (c) 2017 - 2022 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...
2b22996efad0e6e68ced37d2eedd3f6534c32426.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdlib> #include <iostream> #include <time.h> #define DIM1 3 #define DIM2 3 __global__ void avg(float* in, float* out, int radius) { int tid = threadIdx.x + blockIdx.x * blockDim.x; if(tid < DIM1 * DIM2) { ...
2b22996efad0e6e68ced37d2eedd3f6534c32426.cu
#include <cstdlib> #include <iostream> #include <time.h> #define DIM1 3 #define DIM2 3 __global__ void avg(float* in, float* out, int radius) { int tid = threadIdx.x + blockIdx.x * blockDim.x; if(tid < DIM1 * DIM2) { int x = tid / DIM1; int y = tid % DIM2; float count = 0; float...
9c1bbd8b48d1731d9180f6e797600c750804f32c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //--------------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> //--------------------------------------------------------------------...
9c1bbd8b48d1731d9180f6e797600c750804f32c.cu
//--------------------------------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> //--------------------------------------------------------------------------------- static const int N = 10; //Number of rows and columns using namespace st...
1537f77a400cd0148d5bad6c3b0753cf2f6d0c4b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void findMaxInAccum(unsigned int* accum, int w_accum, int h_accum, int* dev_points, int* max) { int x = blockDim.x * blockIdx.x + threadIdx.x; int y = blockDim.y * blockIdx.y + threadIdx.y; int tid = y * w_accum + x;...
1537f77a400cd0148d5bad6c3b0753cf2f6d0c4b.cu
__global__ void findMaxInAccum(unsigned int* accum, int w_accum, int h_accum, int* dev_points, int* max) { int x = blockDim.x * blockIdx.x + threadIdx.x; int y = blockDim.y * blockIdx.y + threadIdx.y; int tid = y * w_accum + x; if (x >= w_accum || y >= h_accum) return; int old = (int)accum[tid]; atomicMax(&...
dc6495889ab8556a0dbf6e533da16e3a6fecbbf4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_functions.h" #include "cuda_globals.h" __device__ myprec d_phi[mx*my*mz]; __device__ myprec d_rhs1[mx*my*mz]; __device__ myprec d_rhs2[mx*my*mz]; __device__ myprec d_rhs3[mx*my*mz]; __device__ myprec d_rhs4[mx*my*m...
dc6495889ab8556a0dbf6e533da16e3a6fecbbf4.cu
#include "cuda_functions.h" #include "cuda_globals.h" __device__ myprec d_phi[mx*my*mz]; __device__ myprec d_rhs1[mx*my*mz]; __device__ myprec d_rhs2[mx*my*mz]; __device__ myprec d_rhs3[mx*my*mz]; __device__ myprec d_rhs4[mx*my*mz]; __device__ myprec d_temp[mx*my*mz]; __device__ myprec d_tmp[mx*my*mz]; __device__ ...
04146526c647eb01d286d455168d58ffbf8ab477.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <cassert> __device__ float saru(unsigned int seed1, unsigned int seed2, unsigned int seed3) { seed3 ^= (seed1<<7)^(seed2>>6); seed2 += (seed1>>4)^(seed3>>15); seed1 ^= (seed2<<9)+(seed3<<8); ...
04146526c647eb01d286d455168d58ffbf8ab477.cu
#include <cstdio> #include <cassert> __device__ float saru(unsigned int seed1, unsigned int seed2, unsigned int seed3) { seed3 ^= (seed1<<7)^(seed2>>6); seed2 += (seed1>>4)^(seed3>>15); seed1 ^= (seed2<<9)+(seed3<<8); seed3 ^= 0xA5366B4D*((seed2>>11) ^ (seed1<<1)); seed2 += 0x72BE1579*((seed1<<4) ...
a5cde406da654570b2cd4aff12f30d342f39c824.hip
// !!! This is a file automatically generated by hipify!!! // Cuckoo Cycle, a memory-hard proof-of-work // Copyright (c) 2013-2015 John Tromp // The edge-trimming time-memory trade-off is due to Dave Anderson: // http://da-data.blogspot.com/2014/03/a-public-review-of-cuckoo-cycle.html #include <stdint.h> #include <...
a5cde406da654570b2cd4aff12f30d342f39c824.cu
// Cuckoo Cycle, a memory-hard proof-of-work // Copyright (c) 2013-2015 John Tromp // The edge-trimming time-memory trade-off is due to Dave Anderson: // http://da-data.blogspot.com/2014/03/a-public-review-of-cuckoo-cycle.html #include <stdint.h> #include <string.h> #include <time.h> #include "cuckoo.h" #include "c...
9c2c1e4ed49a5936c418049ecef1af5a4f101f54.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
9c2c1e4ed49a5936c418049ecef1af5a4f101f54.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
7062ca5365a7f6cc1e2d11277f671c82347ebc2b.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hipfft.h> #include "cu_errchk.h" #include "cufft_addredundants.h" /* This will generate an array that adds the redundant values of a CUDA R2C transformation. This function was found here: https://devtalk.nvidia.com/defaul...
7062ca5365a7f6cc1e2d11277f671c82347ebc2b.cu
#include <cuda.h> #include <cufft.h> #include "cu_errchk.h" #include "cufft_addredundants.h" /* This will generate an array that adds the redundant values of a CUDA R2C transformation. This function was found here: https://devtalk.nvidia.com/default/topic/488433/cufft-only-gives-non-redundant-results/ */ template<type...
3c218534b6cd75a902220b70e3968072bd503444.hip
// !!! This is a file automatically generated by hipify!!! /** * \file dnn/src/cuda/conv_bias/chanwise/fwd.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, *...
3c218534b6cd75a902220b70e3968072bd503444.cu
/** * \file dnn/src/cuda/conv_bias/chanwise/fwd.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on a...
25cbd062c83b9e96a2e04d355257284fa589c832.hip
// !!! This is a file automatically generated by hipify!!! // Memoria global #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #define N 16 int main(int argc, char** argv) { // declaraciones float *hst_A, *hst_B; float *dev_A, *dev_B; // reserva en el host hst_A = (float*)ma...
25cbd062c83b9e96a2e04d355257284fa589c832.cu
// Memoria global #include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #define N 16 int main(int argc, char** argv) { // declaraciones float *hst_A, *hst_B; float *dev_A, *dev_B; // reserva en el host hst_A = (float*)malloc(N * sizeof(float)); hst_B = (float*)malloc(N * sizeof...
0beebb09025f8c0a0f830f3869c99586c7d1adff.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<cstdio> #include<cstdlib> #include "tools.h" #include "timer.h" #include "reorder.h" #include "triangle.h" #include "io.h" int main(int argc, char *argv[]){ if(argc != 6){ fprintf(stderr, "usage: g_list <algor...
0beebb09025f8c0a0f830f3869c99586c7d1adff.cu
#include<cstdio> #include<cstdlib> #include "tools.h" #include "timer.h" #include "reorder.h" #include "triangle.h" #include "io.h" int main(int argc, char *argv[]){ if(argc != 6){ fprintf(stderr, "usage: g_list <algorithm> <input_path> <node_num> <thread_per_block> <block_num>\n"); return 0; ...
abb88caae3c1f4094290baa1573d0ac5f25dae38.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // #include <stdio.h> // #include <rocm_smi/rocm_smi.h> #include "nvmlPower.hpp" #include "nvmlPower.cpp" //run command: //nvcc additionFP32.cu -L/usr/lib64/nvidia -lnvidia-ml -lpthread -I/usr/local/cuda-7.0/samples/common/inc/...
abb88caae3c1f4094290baa1573d0ac5f25dae38.cu
// #include <stdio.h> // #include <nvml.h> #include "nvmlPower.hpp" #include "nvmlPower.cpp" //run command: //nvcc additionFP32.cu -L/usr/lib64/nvidia -lnvidia-ml -lpthread -I/usr/local/cuda-7.0/samples/common/inc/ -I/nvmlPower.cpp /********************************************* ******************Pair #1*********...
floyd_gpu.hip
// !!! This is a file automatically generated by hipify!!! #include <fstream> #include <iostream> // C++ Program for Floyd Warshall Algorithm //#include <bits/stdc++.h> #include <sys/time.h> using namespace std; #include <hip/hip_runtime.h> /* Define Infinite as a large enough value.This value will be used for...
floyd_gpu.cu
#include <fstream> #include <iostream> // C++ Program for Floyd Warshall Algorithm //#include <bits/stdc++.h> #include <sys/time.h> using namespace std; #include <cuda_runtime.h> /* Define Infinite as a large enough value.This value will be used for vertices not connected to each other */ #define INF 99999 ...
034b147d85431b5af2a3c2a2624b8c74968b0900.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.o...
034b147d85431b5af2a3c2a2624b8c74968b0900.cu
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
e8a3e465ced7f63e615569e0140f2498c2bb5ca9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <limits.h> #include <stdlib.h> #include <ctime> #include <sstream> #include <string> #include "gpu_hashtable.hpp" __global__ void set_zero (key_value_pair *bucket, int bucket_size) { int idx = blockId...
e8a3e465ced7f63e615569e0140f2498c2bb5ca9.cu
#include <iostream> #include <limits.h> #include <stdlib.h> #include <ctime> #include <sstream> #include <string> #include "gpu_hashtable.hpp" __global__ void set_zero (key_value_pair *bucket, int bucket_size) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (bucket_size <= idx) { return; } b...
49f580695900ad62da38fc6110f0f070a5dcdd87.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_gcn.cuh" #include "timer.h" #include <algorithm> #include <thrust/transform.h> using std::max; using std::max_element; CUDAGCN::CUDAGCN(GCNParams params, GCNData *input_data) { cuda_init_random_state(MAX_THREAD...
49f580695900ad62da38fc6110f0f070a5dcdd87.cu
#include "cuda_gcn.cuh" #include "timer.h" #include <algorithm> #include <thrust/transform.h> using std::max; using std::max_element; CUDAGCN::CUDAGCN(GCNParams params, GCNData *input_data) { cuda_init_random_state(MAX_THREAD_PER_BLOCK); this->params = params; data = input_data; sp = new CUDASparseI...
07d520b56d63190daf54539d2f6d0ca682339052.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 "vecAddGPU.cu" #include<chrono> #include<iostream> using namespac...
07d520b56d63190daf54539d2f6d0ca682339052.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 "vecAddGPU.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24}...
cc1503f49ade276b8431006d9260ef7f544970ac.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <pthread.h> #include <string.h> #include <stdio.h> #include <opencv/cvaux.h> #include <opencv2/opencv.hpp> #include <opencv/highgui.h> #include <opencv/cxcore.h> #include <opencv/cv.h> #include <opencv2/imgproc/imgproc.hpp> #include...
cc1503f49ade276b8431006d9260ef7f544970ac.cu
#include <stdlib.h> #include <pthread.h> #include <string.h> #include <stdio.h> #include <opencv/cvaux.h> #include <opencv2/opencv.hpp> #include <opencv/highgui.h> #include <opencv/cxcore.h> #include <opencv/cv.h> #include <opencv2/imgproc/imgproc.hpp> #include "opencv2/highgui/highgui.hpp" #include <string> #include <...
7c86b1d17affa49de0769f9d9faabdd726ec6fa2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
7c86b1d17affa49de0769f9d9faabdd726ec6fa2.cu
/* * Copyright (c) 2019-2020, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
4e33e93f3964fd709d39a2a760458985601ed706.hip
// !!! This is a file automatically generated by hipify!!! /* * * 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 requir...
4e33e93f3964fd709d39a2a760458985601ed706.cu
/* * * 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 writing, software * ...
f49b198f326cf5ba7818d8af6ba2db1bc5f4a177.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" __global__ void mmkernel( float* a, float* b, float* c, int pitch_a, int pitch_b, int pitch_c, int n, int m, int p ) { int bx = blockDim.x; int i = blockIdx.x * bx + threadIdx.x; int j = blockIdx.y; ...
f49b198f326cf5ba7818d8af6ba2db1bc5f4a177.cu
extern "C" __global__ void mmkernel( float* a, float* b, float* c, int pitch_a, int pitch_b, int pitch_c, int n, int m, int p ) { int bx = blockDim.x; int i = blockIdx.x * bx + threadIdx.x; int j = blockIdx.y; float sum = 0.0; for( int k = 0; k < p; ++k ) sum += b[k*pitch_b+i] * c[k...
40735239493165966ac140ce0bd53132bc861e42.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 "__l2dist.cu" #include<chrono> #include<iostream> using namespace...
40735239493165966ac140ce0bd53132bc861e42.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 "__l2dist.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},...
469a99bdfad0394549cfcf14c72d75f05d34cb25.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, ...
469a99bdfad0394549cfcf14c72d75f05d34cb25.cu
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
05ec4dcc38bf33673f9030668476f91214660a77.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************** * Copyright (c) 2011, Duane Merrill. All rights reserved. * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution a...
05ec4dcc38bf33673f9030668476f91214660a77.cu
/****************************************************************************** * Copyright (c) 2011, Duane Merrill. All rights reserved. * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provid...
5c34ab4eda47e68a16cc6178c4baa2272be43850.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Adapted from interp.cpp from Caffe util by Pauline Luc // Originally developed by George Papandreou #include "THHUNN.h" #include "THHTensor.hpp" #include "common.h" #include "linear_upsampling.h" #include "THHDeviceTensor.cuh" #i...
5c34ab4eda47e68a16cc6178c4baa2272be43850.cu
// Adapted from interp.cpp from Caffe util by Pauline Luc // Originally developed by George Papandreou #include "THCUNN.h" #include "THCTensor.hpp" #include "common.h" #include "linear_upsampling.h" #include "THCDeviceTensor.cuh" #include "THCDeviceTensorUtils.cuh" #include "THCDeviceUtils.cuh" #include "THCHalf.h" #in...
be39119b7da9eea3ef4947680f5e5a472874cde8.hip
// !!! This is a file automatically generated by hipify!!! #include <torch/extension.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <vector> #include <hipcub/hipcub.hpp> #include <hip/hip_fp16.h> #include <stdio.h> __device__ void print_val(int blockid, int threadid, float value){ if (blocki...
be39119b7da9eea3ef4947680f5e5a472874cde8.cu
#include <torch/extension.h> #include <cuda_runtime.h> #include <cuda.h> #include <vector> #include <cub/cub.cuh> #include <cuda_fp16.h> #include <stdio.h> __device__ void print_val(int blockid, int threadid, float value){ if (blockid == 0 && threadid == 0) printf("tid: %d, value is: %.8f\n", threadid, float(value...
b1fa8b354109718bbd4a52a72299606d2ff9b99a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Cortex.cuh" #include <iostream> #include "sm_60_atomic_functions.h" #include "CUDAHelper.cuh" __global__ void cort_image_kernel(double *d_img, double *d_img_vector, SamplingPoint *d_fields, uint2 cortImgSize, size_t loc...
b1fa8b354109718bbd4a52a72299606d2ff9b99a.cu
#include "Cortex.cuh" #include <iostream> #include "sm_60_atomic_functions.h" #include "CUDAHelper.cuh" __global__ void cort_image_kernel(double *d_img, double *d_img_vector, SamplingPoint *d_fields, uint2 cortImgSize, size_t locSize, size_t vecLen, bool rgb) { int globalIndex = blockIdx.x * blockDim.x + threadIdx....
f23c6c0ee881d4025fcb16695853a7357636c3c7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cuda_kernel.cuh" __global__ void dequantization_kernel(context* ctx, uint8_t *input_depth, float *output_depth) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * blockDim.y; i...
f23c6c0ee881d4025fcb16695853a7357636c3c7.cu
#include "cuda_kernel.cuh" __global__ void dequantization_kernel(context* ctx, uint8_t *input_depth, float *output_depth) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * blockDim.y; int idx = x + y * blockDim.x * gridDim.x; if(input_depth[idx] == 0) { output...
a310f72fa65fc67656124583c12f9e39d83fb416.hip
// !!! This is a file automatically generated by hipify!!! #include<iostream> #include<cuda.h> #include<cuda_runtime.h> #include <device_launch_parameters.h> #include <hip/device_functions.h> #include <hip/hip_runtime_api.h> #include<cstdlib> #include<cstdio> using namespace std; template<class T> void print(T a){ ...
a310f72fa65fc67656124583c12f9e39d83fb416.cu
#include<iostream> #include<cuda.h> #include<cuda_runtime.h> #include <device_launch_parameters.h> #include <device_functions.h> #include <cuda_runtime_api.h> #include<cstdlib> #include<cstdio> using namespace std; template<class T> void print(T a){ cout << a << endl; } //all kernels have the 'void' return type ...
ccf5318b280268a5bc3cc412885ccc67ec393fad.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.0.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date February 2016 @generated from magmablas/ztrtri_diag_batched.cu normal...
ccf5318b280268a5bc3cc412885ccc67ec393fad.cu
/* -- MAGMA (version 2.0.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date February 2016 @generated from magmablas/ztrtri_diag_batched.cu normal z -> s, Tue Feb 9 16:05:39 2016 @author Peng Du @author Tingxing Dong ...
b6ef4eec6d56508647c7ff09f04d125d8e9f2601.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // SDSC SCC Training - GPU Computing and Programming // May 3, 2019 // Andreas Goetz (agoetz@sdsc.edu) // CUDA program that performs 1D stencil operation in parallel on the GPU // #include<stdio.h> // define vector length, stenci...
b6ef4eec6d56508647c7ff09f04d125d8e9f2601.cu
// SDSC SCC Training - GPU Computing and Programming // May 3, 2019 // Andreas Goetz (agoetz@sdsc.edu) // CUDA program that performs 1D stencil operation in parallel on the GPU // #include<stdio.h> // define vector length, stencil radius, #define N (1024*1024*8l) #define RADIUS 3 #define GRIDSIZE 128 #define BLOCKS...
dd110d95266d18a761da2d71df550b69ffe107bc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #define N 10 __global__ void add( int *a, int *b, int *c ) { int tid = threadIdx.x; if (tid < N) c[tid] = a[tid] + b[tid]; } int main( void ) { int a[N], b[N], c[N]; int *dev_a, *dev_b, *...
dd110d95266d18a761da2d71df550b69ffe107bc.cu
#include <stdio.h> #define N 10 __global__ void add( int *a, int *b, int *c ) { int tid = threadIdx.x; if (tid < N) c[tid] = a[tid] + b[tid]; } int main( void ) { int a[N], b[N], c[N]; int *dev_a, *dev_b, *dev_c; // allocate the memory on the GPU cudaMalloc( (void**)&dev_a, N * sizeof(...
0797d4551f567eebd5c2bd690b1041913ef64ebe.hip
// !!! This is a file automatically generated by hipify!!! // See also GeantCudaUtils.cxx #include "GeantCudaUtils.h" #include "Geant/Propagator.h" #include "Geant/Track.h" #include "GeantConfig.h" namespace geant { inline namespace cuda { void CoprocessorBrokerInitConstant() { double tolerance = 1e-7; GEANT_CUD...
0797d4551f567eebd5c2bd690b1041913ef64ebe.cu
// See also GeantCudaUtils.cxx #include "GeantCudaUtils.h" #include "Geant/Propagator.h" #include "Geant/Track.h" #include "GeantConfig.h" namespace geant { inline namespace cuda { void CoprocessorBrokerInitConstant() { double tolerance = 1e-7; GEANT_CUDA_ERROR( cudaMemcpyToSymbol(device_constant::gToleran...
6208b0b1bbae62f871eff07f4bdee4fc528b43a2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "span.h" #include "common.h" #include "gtest/gtest.h" #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #define SPAN_ASSERT_TRUE(cond, status) \ if (!(cond)...
6208b0b1bbae62f871eff07f4bdee4fc528b43a2.cu
#include "span.h" #include "common.h" #include "gtest/gtest.h" #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #define SPAN_ASSERT_TRUE(cond, status) \ if (!(cond)) { \ *(status) = -1; \ ...
c867cd4a3e27ac2956585885678f2c72734b06fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <faiss/gpu/impl/PQScanMultiPassP...
c867cd4a3e27ac2956585885678f2c72734b06fa.cu
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <faiss/gpu/impl/PQScanMultiPassPrecomputed.cuh> #include <faiss/gpu/GpuResources.h> #include <faiss/gpu/impl/PQCodeLoad....
bb4a5c70a48fffbd94b0b7b1b5ea778af28822cf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2021, 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...
bb4a5c70a48fffbd94b0b7b1b5ea778af28822cf.cu
/* * Copyright (c) 2021, 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 requir...
c62e98cfd725c469b35323cbb7ac70bb92736a31.hip
// !!! This is a file automatically generated by hipify!!! #include "imageFilteringGpu.cuh" #include <opencv2/core/cuda/common.hpp> #include <opencv2/cudev.hpp> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> texture<uchar, hipTextureType2D, hipReadModeElementType> srcTex(false, hipFilterModePoint,...
c62e98cfd725c469b35323cbb7ac70bb92736a31.cu
#include "imageFilteringGpu.cuh" #include <opencv2/core/cuda/common.hpp> #include <opencv2/cudev.hpp> #include <cuda_runtime.h> #include <device_launch_parameters.h> texture<uchar, cudaTextureType2D, cudaReadModeElementType> srcTex(false, cudaFilterModePoint, cudaAddressModeClamp); __global__ void imageFilteringGpu...
9cb5a0202d519daf9c29dcc49bf2567caa4ad9b9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <stdio.h> #include <cmath> #include <math.h> #include <cstdlib> #include <ctime> #include <fstream> #include <cstring> #include <string> #include <algorithm> #include <random> #include <numeric> #include...
9cb5a0202d519daf9c29dcc49bf2567caa4ad9b9.cu
#include <iostream> #include <stdio.h> #include <cmath> #include <math.h> #include <cstdlib> #include <ctime> #include <fstream> #include <cstring> #include <string> #include <algorithm> #include <random> #include <numeric> #include <time.h> #include <curand.h> #include <curand_kernel.h> //#include <thrust/sort.h> //#i...
0600ec73bc305db3bb4ec6c83f16bbce05ecc272.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <cstdio> __global__ void mulKernel(int* c, const int* a, const int* b, const int WIDTH) { int x = threadIdx.x; int y = threadIdx.y; int i = y * WIDTH + ...
0600ec73bc305db3bb4ec6c83f16bbce05ecc272.cu
#include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cstdio> __global__ void mulKernel(int* c, const int* a, const int* b, const int WIDTH) { int x = threadIdx.x; int y = threadIdx.y; int i = y * WIDTH + x; int sum = 0; for (int k = 0; k < WIDTH; k++) { sum += a[y*WIDTH+k...
1d0164024a6dd38106de789fab531db2c2e7241d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017 Sony 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 L...
1d0164024a6dd38106de789fab531db2c2e7241d.cu
// Copyright (c) 2017 Sony 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 by ...
381d07a45f467f2e80479de15f4071be637b6199.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*---------------------------------------------------------------------------------------------------------------------------------------------*/ //Sriram Madhivanan //GPU kernels /*--------------------------------------------------...
381d07a45f467f2e80479de15f4071be637b6199.cu
/*---------------------------------------------------------------------------------------------------------------------------------------------*/ //Sriram Madhivanan //GPU kernels /*------------------------------------------------------------------------------------------------------------------------------------------...
299a17ce3400c19df7a199a151dc0d9a0071c2ab.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 2021-2023 by XGBoost Contributors */ #include <thrust/scan.h> #include <algorithm> #include <cassert> #include <hipcub/hipcub.hpp> #include <limits> #include <memory> #include <tuple> #include <utility> #include "../collective/device_communi...
299a17ce3400c19df7a199a151dc0d9a0071c2ab.cu
/** * Copyright 2021-2023 by XGBoost Contributors */ #include <thrust/scan.h> #include <algorithm> #include <cassert> #include <cub/cub.cuh> #include <limits> #include <memory> #include <tuple> #include <utility> #include "../collective/device_communicator.cuh" #include "../common/optional_weight.h" // OptionalWei...
1560217cd1485350dbb2ec0971bd82dbae3ac515.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2016, Xuhao Chen #define BC_VARIANT "topo_base" #include "bc.h" #include "cuda_launch_config.hpp" #include "cutil_subset.h" #include "worklistc.h" #include "timer.h" #include <vector> #include <thrust/extrema.h> #in...
1560217cd1485350dbb2ec0971bd82dbae3ac515.cu
// Copyright (c) 2016, Xuhao Chen #define BC_VARIANT "topo_base" #include "bc.h" #include "cuda_launch_config.hpp" #include "cutil_subset.h" #include "worklistc.h" #include "timer.h" #include <vector> #include <thrust/extrema.h> #include <thrust/execution_policy.h> __global__ void initialize(int m, int source, ScoreT ...