hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
0f3a710b6263d3317296b56a53a44a4abde3642a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) Meta Platforms, Inc. and 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. */ // clang-format...
0f3a710b6263d3317296b56a53a44a4abde3642a.cu
/* * Copyright (c) Meta Platforms, Inc. and 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. */ // clang-format off #include "codegen/embedding_forward_template_helpers.cuh" using Tensor = at::Tenso...
f35319d0af37bd6b582751b731c87b51c5859a73.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...
f35319d0af37bd6b582751b731c87b51c5859a73.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...
22fcf3bfc18376932980ffe6e98cdc6a2632166a.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & // AFFILIATES. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
22fcf3bfc18376932980ffe6e98cdc6a2632166a.cu
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // SPDX-FileCopyrightText: Copyright (c) 1993-2022 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 ma...
56cae366e998ff5144fbfbb2bd9d3c8cbce9aac9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #define ALLOC_SIZE 1024 #define ACCESS_DIR 1 __global__ void access_from_min_into_max_kernel(int *min, int *max) { #ifdef R volatile int i = min[max-min]; #elif W min[max-min] = 42; #endif } __global__...
56cae366e998ff5144fbfbb2bd9d3c8cbce9aac9.cu
#include <stdio.h> #define ALLOC_SIZE 1024 #define ACCESS_DIR 1 __global__ void access_from_min_into_max_kernel(int *min, int *max) { #ifdef R volatile int i = min[max-min]; #elif W min[max-min] = 42; #endif } __global__ void access_from_max_into_min_kernel(int *min, int *max) { #ifdef R volatile int i ...
94226d1768af40e7dc086708a91709fc493f3b64.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2016 University of Cordoba and University of Illinois * All rights reserved. * * Developed by: IMPACT Research Group * University of Cordoba and University of Illinois * http://impact.crhc.illinois.e...
94226d1768af40e7dc086708a91709fc493f3b64.cu
/* * Copyright (c) 2016 University of Cordoba and University of Illinois * All rights reserved. * * Developed by: IMPACT Research Group * University of Cordoba and University of Illinois * http://impact.crhc.illinois.edu/ * * Permission is hereby granted, free of charge, to ...
677795e675ae1551651e4286a1f10e5330b76379.hip
// !!! This is a file automatically generated by hipify!!! #include "cuda_demo.h" #include "cuda_helpers.h" #include <iostream> int main(int argc, char** argv) { cuda_demo::device_memory::demonstrateDeviceMemory(); return 0; } void cuda_demo::device_memory::demonstrateDeviceMemory() { std::cout << "Device Memory ...
677795e675ae1551651e4286a1f10e5330b76379.cu
#include "cuda_demo.h" #include "cuda_helpers.h" #include <iostream> int main(int argc, char** argv) { cuda_demo::device_memory::demonstrateDeviceMemory(); return 0; } void cuda_demo::device_memory::demonstrateDeviceMemory() { std::cout << "Device Memory Demo\n"; std::cout << "==================\n\n"; linear_m...
04f48885e5ab14a79ae00d54a7415ecfea5f765e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Program to solve Laplace equation on a regular 3D grid // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <helper_cuda.h> ///////////////////////////////////////////////////////////////...
04f48885e5ab14a79ae00d54a7415ecfea5f765e.cu
// // Program to solve Laplace equation on a regular 3D grid // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <helper_cuda.h> //////////////////////////////////////////////////////////////////////// // define kernel block size //////////////////////////////////////////////////...
2f395ad56d767167174c6be072467832864cad61.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * ...
2f395ad56d767167174c6be072467832864cad61.cu
/* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
911f7755468e2f8dc5e5c12c22ecfb6034708774.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @precisions normal z -> s d c */ #include "common_mag...
911f7755468e2f8dc5e5c12c22ecfb6034708774.cu
/* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @precisions normal z -> s d c */ #include "common_magma.h" // 512 is maximum number of threads for CUDA capability 1.x #define BLOCK_SIZE 51...
aaab3af8b6841b54113f9ae7eff8f0334bdfe5ed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <psc_cuda.h> // FIXME, do this always? #define NO_CHECKERBOARD #define BLOCKSIZE_X 1 #define BLOCKSIZE_Y 4 #define BLOCKSIZE_Z 4 #define PFX(x) sort_##x #include "constants.c" // FIXME, use const mem for some params #...
aaab3af8b6841b54113f9ae7eff8f0334bdfe5ed.cu
#include <psc_cuda.h> // FIXME, do this always? #define NO_CHECKERBOARD #define BLOCKSIZE_X 1 #define BLOCKSIZE_Y 4 #define BLOCKSIZE_Z 4 #define PFX(x) sort_##x #include "constants.c" // FIXME, use const mem for some params #if 0 __global__ static void find_cell_indices_by_cell(int n_part, particles_cuda_dev_t h...
a23cfa29aeed1c01213c5b6785d9907e7f065d29.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All R...
a23cfa29aeed1c01213c5b6785d9907e7f065d29.cu
/*************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *******************************************************************...
909fa33f5653fd1946fad77b0f48b5ba39cfe96b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void coalesced(float *A, float *C, const int N) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < N) C[i] = A[i]; }
909fa33f5653fd1946fad77b0f48b5ba39cfe96b.cu
#include "includes.h" __global__ void coalesced(float *A, float *C, const int N) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < N) C[i] = A[i]; }
45296027b6ca65b8e5ae941f542df118d0fdf540.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // REQUIRES: nvptx-registered-target // REQUIRES: amdgpu-registered-target // Make sure we don't allow dynamic initialization for device // variables, but accept empty constructors allowed by CUDA. // RUN: %clang_cc1 -triple nvptx...
45296027b6ca65b8e5ae941f542df118d0fdf540.cu
// REQUIRES: nvptx-registered-target // REQUIRES: amdgpu-registered-target // Make sure we don't allow dynamic initialization for device // variables, but accept empty constructors allowed by CUDA. // RUN: %clang_cc1 -triple nvptx64-nvidia-cuda -fcuda-is-device -std=c++11 \ // RUN: -fno-threadsafe-statics -emit-l...
5743adb3de86e08f4465d2cce77229a01a05cfcc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
5743adb3de86e08f4465d2cce77229a01a05cfcc.cu
/* Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
91cce98de42976fb79a0a1f1b4883d6b534472dc.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,...
91cce98de42976fb79a0a1f1b4883d6b534472dc.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. * *...
34a44cfeedd21e3ccaa375658dbd42d23b223ead.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF lic...
34a44cfeedd21e3ccaa375658dbd42d23b223ead.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 ...
4fb5dce5c981890f4191aaf42ff0c09c3f13a51d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "utils.cu" __global__ void d_filter_BOX_GRAY(const uchar1* const src, unsigned char * const dst, int width, int height ) { int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y + threadIdx.y; ...
4fb5dce5c981890f4191aaf42ff0c09c3f13a51d.cu
#include "utils.cu" __global__ void d_filter_BOX_GRAY(const uchar1* const src, unsigned char * const dst, int width, int height ) { int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y + threadIdx.y; Neighbours3x3<uchar1> neighbours; d_getNeighbours_8(src, width, height, x, y, neighbo...
65912fe8f5a97ff4c348292348c4388724e4210f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "util/type_name.hpp" #include "util/miscellany.cuh" #include <kat/on_device/streams/printfing_ostream.cuh> #include <kat/on_device/collaboration/block.cuh> #include <kat/on_device...
65912fe8f5a97ff4c348292348c4388724e4210f.cu
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN #include "util/type_name.hpp" #include "util/miscellany.cuh" #include <kat/on_device/streams/printfing_ostream.cuh> #include <kat/on_device/collaboration/block.cuh> #include <kat/on_device/time.cuh> #include <doctest.h> #include <cuda/api_wrappers.hpp> constexpr const auto ...
29f5d7c9d492907da9db16d96122e7ea417ca445.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <assert.h> #define N 2//64 __device__ int bar () { return 0; } __global__ void foo() { assert (bar() ==0); } int main(){ hipLaunchKernelGGL(( foo), dim3(1), dim3(N), 0, 0, ); ...
29f5d7c9d492907da9db16d96122e7ea417ca445.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <assert.h> #define N 2//64 __device__ int bar () { return 0; } __global__ void foo() { assert (bar() ==0); } int main(){ foo<<<1, N>>>(); //ESBMC_verify_kernel(foo, 1, N); cudaThreadSynchronize(); return 0; }
249a84e9118b2d770a4b1c74cac104b044f474dd.hip
// !!! This is a file automatically generated by hipify!!! /****************************************************************************** MIT License Copyright (c) 2016 Antti-Pekka Hynninen Copyright (c) 2016 Oak Ridge National Laboratory (UT-Batelle) Permission is hereby granted, free of charge, to any person obtai...
249a84e9118b2d770a4b1c74cac104b044f474dd.cu
/****************************************************************************** MIT License Copyright (c) 2016 Antti-Pekka Hynninen Copyright (c) 2016 Oak Ridge National Laboratory (UT-Batelle) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation f...
a135e20b9e934c4881690a648313c46126e20c58.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <math.h> // Simple define to index into a 1D array from 2D space #define I2D(num, c, r) ((r)*(num)+(c)) /* * `step_kernel_mod` is currently a direct copy of the CPU reference solution * `step_kernel_r...
a135e20b9e934c4881690a648313c46126e20c58.cu
#include <stdio.h> #include <math.h> // Simple define to index into a 1D array from 2D space #define I2D(num, c, r) ((r)*(num)+(c)) /* * `step_kernel_mod` is currently a direct copy of the CPU reference solution * `step_kernel_ref` below. Accelerate it to run as a CUDA kernel. */ // =============================...
4ac2f4ba67b3769a1cb8e9b050054b805d4fc0c6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_advec_mom_kernel2_x; int xdim0_advec_mom_kernel2_x_h = -1; __constant__ int ydim0_advec_mom_kernel2_x; int ydim0_advec_mom_kernel2_x_h = -1; __constant__ int xdim1_advec_mom_k...
4ac2f4ba67b3769a1cb8e9b050054b805d4fc0c6.cu
// // auto-generated by ops.py // __constant__ int xdim0_advec_mom_kernel2_x; int xdim0_advec_mom_kernel2_x_h = -1; __constant__ int ydim0_advec_mom_kernel2_x; int ydim0_advec_mom_kernel2_x_h = -1; __constant__ int xdim1_advec_mom_kernel2_x; int xdim1_advec_mom_kernel2_x_h = -1; __constant__ int ydim1_advec_mom_kernel2...
c6e71e53b201d3781e42d759ab6fa9bf923811da.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <string.h> #include <math.h> #include "hip/hip_runtime.h" #include "hip/device_functions.h" #include "time.h" #include <windows.h> #include "device_launch_parameters.h" #include "stdio.h" // includes, project // Thread block size #d...
c6e71e53b201d3781e42d759ab6fa9bf923811da.cu
#include <stdlib.h> #include <string.h> #include <math.h> #include "cuda_runtime.h" #include "device_functions.h" #include "time.h" #include <windows.h> #include "device_launch_parameters.h" #include "stdio.h" // includes, project // Thread block size #define BLOCK_SIZE 512 // Matrix dimensions // (chosen as multiple...
fb04c058b2352809d63ce5b0ff4fd9273c12dcf0.hip
// !!! This is a file automatically generated by hipify!!! //Example 2. Application Using C and cuBLAS: 0-based indexing //----------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <math.h> #include <hip/hip_runtime.h> #include "rocblas.h" #define M 6 #define N 5 #defin...
fb04c058b2352809d63ce5b0ff4fd9273c12dcf0.cu
//Example 2. Application Using C and cuBLAS: 0-based indexing //----------------------------------------------------------- #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cuda_runtime.h> #include "cublas_v2.h" #define M 6 #define N 5 #define IDX2C(i,j,ld) (((j)*(ld))+(i)) static __inline__ void mod...
bd91b607017fad7b85ef74328dfa04d0d221fea4.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime_api.h> #include "clusteringZero.h" using namespace std; __global__ void clusteringZero(float **var, int **intVar){ int nfib = *intVar[6]; int *cluster = intVar[35]; int *clusterAccess = in...
bd91b607017fad7b85ef74328dfa04d0d221fea4.cu
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime_api.h> #include "clusteringZero.h" using namespace std; __global__ void clusteringZero(float **var, int **intVar){ int nfib = *intVar[6]; int *cluster = intVar[35]; int *clusterAccess = intVar[36]; int m = threadIdx.x+blockIdx.x*blockDim.x; in...
5e34f090b39856020ba60b30d87b6e073b578f54.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "PPPMForceComputeGPU.cuh" #include "hoomd/TextureTools.h" // __...
5e34f090b39856020ba60b30d87b6e073b578f54.cu
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "PPPMForceComputeGPU.cuh" #include "hoomd/TextureTools.h" // __scalar2int_rd is __float2int_rd in single, __double2int_rd in double #ifdef SINGLE_PRECI...
2f4e20a564c8bf34bb5399984f06262f081dd840.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * Copyright (c) 2019 Konduit K.K. * * This program and the accompanying materials are made available under ...
2f4e20a564c8bf34bb5399984f06262f081dd840.cu
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * Copyright (c) 2019 Konduit K.K. * * 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.apa...
5c5cd9a6efdfcc9667e2a516179fa7b477326326.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 "kernel_hadamard_fl.cu" #include<chrono> #include<iostream> using...
5c5cd9a6efdfcc9667e2a516179fa7b477326326.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 "kernel_hadamard_fl.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16...
b0dc1227505c5461dd2a95381ca061d78caf5106.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2021-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.o...
b0dc1227505c5461dd2a95381ca061d78caf5106.cu
/* * Copyright (c) 2021-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...
567bb0f546573f8c5c58f7ec02f7131c1d990e9a.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, ...
567bb0f546573f8c5c58f7ec02f7131c1d990e9a.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...
fda85e4eae95f0ee69666a797d275b69e14ab07d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if GOOGLE_CUDA #include "ew_op_gpu.h" #include <stdio.h> // xmean = x - mean(x, axis=1) // xvar = var(x, axis=1) // xstdr = rcp(sqrt(xvar + epsilon)) // xhat = xmean * xstdr // y = xhat*g + b template <typename T, typename...
fda85e4eae95f0ee69666a797d275b69e14ab07d.cu
#if GOOGLE_CUDA #include "ew_op_gpu.h" #include <stdio.h> // xmean = x - mean(x, axis=1) // xvar = var(x, axis=1) // xstdr = rcp(sqrt(xvar + epsilon)) // xhat = xmean * xstdr // y = xhat*g + b template <typename T, typename V, int THREADS> __global__ void __launch_bounds__(THREADS) layer_norm_NC( ...
36c4123f711d0097e24499dde631d76d9409e228.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 @generated from ztranspose_inplace.cu normal z -> c, F...
36c4123f711d0097e24499dde631d76d9409e228.cu
/* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @generated from ztranspose_inplace.cu normal z -> c, Fri Sep 11 18:29:21 2015 @author Stan Tomov @author Mark Gates */ #include...
9230dfc9a607a28e87ebc2fe7b778145e7101d56.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*------------------------------------------------------------------------- * * MATLAB MEX functions for TV image denoising. Check inputs and parses * MATLAB data to C++ data. * * * CODE by Imanol Luengo * PhD st...
9230dfc9a607a28e87ebc2fe7b778145e7101d56.cu
/*------------------------------------------------------------------------- * * MATLAB MEX functions for TV image denoising. Check inputs and parses * MATLAB data to C++ data. * * * CODE by Imanol Luengo * PhD student University of Nottingham * imaluengo@gmail.com * 2015 * ...
b3cb6ec08e40a8ddd641d9a28eb077472bbbdfab.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2019 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 ...
b3cb6ec08e40a8ddd641d9a28eb077472bbbdfab.cu
/* Copyright (c) 2019 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...
5dbc302dafd21db4d1bac7b5140079769bf7183c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __device__ float gamma_correction(float f_stop, float gamma, float val) { return powf((val*powf(2.0,f_stop)),(1.0/gamma)); } __device__ float rgb2Lum(float B, float G, float R) { return B * 0.0722 + G * 0.7152 ...
5dbc302dafd21db4d1bac7b5140079769bf7183c.cu
#include "includes.h" __device__ float gamma_correction(float f_stop, float gamma, float val) { return powf((val*powf(2.0,f_stop)),(1.0/gamma)); } __device__ float rgb2Lum(float B, float G, float R) { return B * 0.0722 + G * 0.7152 + R * 0.2126; } __global__ void gamma_tonemap_kernel(float* imageIn, float* imageOut, in...
de40f16b14bd1d9658ba830bec4d4e1c563a36fd.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include "cuda_kernel.cuh" #include "cuda_threadindex.cuh" #include <stdio.h> /** * Calculate sum of vectors */ __global__ void matrix_mul_gpu_element(float *gpuA, float *gpuB, float *gpuC, int n) { ...
de40f16b14bd1d9658ba830bec4d4e1c563a36fd.cu
#include <cuda.h> #include <cuda_runtime.h> #include "cuda_kernel.cuh" #include "cuda_threadindex.cuh" #include <stdio.h> /** * Calculate sum of vectors */ __global__ void matrix_mul_gpu_element(float *gpuA, float *gpuB, float *gpuC, int n) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockId...
1a09cb2c5aba690e0489e12f7195f9862b3d5225.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 "dwt_per_X_O.cu" #include<chrono> #include<iostream> using namesp...
1a09cb2c5aba690e0489e12f7195f9862b3d5225.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 "dwt_per_X_O.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,2...
727996e4ef9e07cfbee192cca2fe898f9dd2e270.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include "image_properties.h" #include "array_properties.h" #include "shared_functions.h" #include "serial_functions.h" __global__ void parallel_train_ne...
727996e4ef9e07cfbee192cca2fe898f9dd2e270.cu
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include "image_properties.h" #include "array_properties.h" #include "shared_functions.h" #include "serial_functions.h" __global__ void parallel_train_network(image_chunk * image_grid, network_chunk * network_grid) ...
54beeccc68794622e7832e90dfb36c6d1288ee29.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2014 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this soft...
54beeccc68794622e7832e90dfb36c6d1288ee29.cu
/* * Copyright 1993-2014 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...
1abd15d986993fd3aca5a2986bd22759f0761c47.hip
// !!! This is a file automatically generated by hipify!!! /** https://blog.csdn.net/Bruce_0712/article/details/64928442 hipDeviceSynchronize()CPUGPUCUDAkernel hipDeviceSynchronize()cudaDeviceSynchronize()CUDA hipStreamSynchronize()stream IDCPUGPUstream IDCUDAstreamCUDA warp __ syncthreads (1)warpshared/global , g...
1abd15d986993fd3aca5a2986bd22759f0761c47.cu
/** https://blog.csdn.net/Bruce_0712/article/details/64928442 cudaDeviceSynchronize():该方法将停止CPU端线程的执行,直到GPU端完成之前CUDA的任务,包括kernel函数、数据拷贝等。 cudaThreadSynchronize():该方法的作用和cudaDeviceSynchronize()基本相同,但它不是一个被推荐的方法,也许在后期版本的CUDA中会被删除。 cudaStreamSynchronize():这个方法接受一个stream ID,它将阻止CPU执行直到GPU端完成相应stream ID的所有CUDA任务,但其它stream中...
f377b5a1141f552e495266dac94bb927b36736c1.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************* * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information **********************************************************************...
f377b5a1141f552e495266dac94bb927b36736c1.cu
/************************************************************************* * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "cuda_runtime.h" #include "common.h" void pr...
890f52f55341d843ccd46f482d19a09e5f6002d3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* % Function: generate_dmrs_pusch % Description: Generates LTE demodulation reference signal for PUSCH % Inputs: N_subfr - Subframe number within a radio frame % N_id_cell - Phys...
890f52f55341d843ccd46f482d19a09e5f6002d3.cu
/* % Function: generate_dmrs_pusch % Description: Generates LTE demodulation reference signal for PUSCH % Inputs: N_subfr - Subframe number within a radio frame % N_id_cell - Physical layer cell identity % delta_ss - Configurable portion ...
0bb265083258c67ecfc1f1c40c2e6d2b6b9d3f63.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...
0bb265083258c67ecfc1f1c40c2e6d2b6b9d3f63.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...
1d9b7fcc6cbaa1d63489b94c088a9f85b969c2b0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Driver for routine EIGSRT */ #include <stdio.h> //#include "nr.h" //#include "nrutil.h" #include <sys/time.h> #include <stdlib.h> //#include"jacobiMultipCUDA.h" //#define NP 128 #include <stdbool.h> #define NR_END 1 #define ...
1d9b7fcc6cbaa1d63489b94c088a9f85b969c2b0.cu
/* Driver for routine EIGSRT */ #include <stdio.h> //#include "nr.h" //#include "nrutil.h" #include <sys/time.h> #include <stdlib.h> //#include"jacobiMultipCUDA.h" //#define NP 128 #include <stdbool.h> #define NR_END 1 #define FREE_ARG char* void get_walltime_(double* wcTime) { struct timeval tp; gettimeofd...
a003a4217f4fa51782836dca315e1a410d6a2e6b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <vector> #include <stdlib.h> //#include <common\book.h> #define DIM 512 #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_t code, char *f...
a003a4217f4fa51782836dca315e1a410d6a2e6b.cu
#include <iostream> #include <fstream> #include <vector> #include <stdlib.h> //#include <common\book.h> #define DIM 512 #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, char *file, int line, bool abort=true) { if (code != cudaSuccess) { fprintf(stderr...
90750cda802b8cb4840f0f0e900e97783526efce.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <cstdio> #include <thrust/sort.h> #include <helper_cuda.h> #include <sys/time.h> #include <omp.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #inc...
90750cda802b8cb4840f0f0e900e97783526efce.cu
#include <iostream> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <cstdio> #include <thrust/sort.h> #include <helper_cuda.h> #include <sys/time.h> #include <omp.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "mpi.h" #include "tbb/parallel_sort.h...
23816bf4b82a0f52b1c5240e1b0d865cf166b593.hip
// !!! This is a file automatically generated by hipify!!! #ifndef CUDA_VISION_RL_KERNELS_H #define CUDA_VISION_RL_KERNELS_H // includes, system #include <algorithm> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <iostream> #include <time.h> #include <boost/math/common_factor.hp...
23816bf4b82a0f52b1c5240e1b0d865cf166b593.cu
#ifndef CUDA_VISION_RL_KERNELS_H #define CUDA_VISION_RL_KERNELS_H // includes, system #include <algorithm> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <iostream> #include <time.h> #include <boost/math/common_factor.hpp> #include <cuda.h> // includes, project #include <cuda_...
e6c456a1776a4ac6173a90bd8f55420eeed289ac.hip
// !!! This is a file automatically generated by hipify!!! // // Created by Jacob Austin on 5/17/18. // #define GLM_FORCE_PURE #include "mass.h" Mass::Mass() { m = 1.0; dt = 0.0001; damping = 1.0; T = 0; valid = true; arrayptr = nullptr; ref_count = 0; #ifdef GRAPHICS color = Vec(1.0,...
e6c456a1776a4ac6173a90bd8f55420eeed289ac.cu
// // Created by Jacob Austin on 5/17/18. // #define GLM_FORCE_PURE #include "mass.h" Mass::Mass() { m = 1.0; dt = 0.0001; damping = 1.0; T = 0; valid = true; arrayptr = nullptr; ref_count = 0; #ifdef GRAPHICS color = Vec(1.0, 0.2, 0.2); #endif } // constructor TODO fix timing void M...
9cf1233c476333c15de1b1b8cfdd6ef09891ad9d.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <iostream> //#define n 256000 using namespace std; int CPU_results(int *C, int *B,int *A,int N) { for(int i=0;i<N;i++) C[B[i]]=A[i]; return...
9cf1233c476333c15de1b1b8cfdd6ef09891ad9d.cu
#include <cuda.h> #include <stdio.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <iostream> //#define n 256000 using namespace std; int CPU_results(int *C, int *B,int *A,int N) { for(int i=0;i<N;i++) C[B[i]]=A[i]; return 0; } int check_results(int *C, int *B, int *A, int N) { for(int i=0;...
50a3917303fc6dfd269f42051056f6e5a05b025d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2020-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
50a3917303fc6dfd269f42051056f6e5a05b025d.cu
/* * Copyright (c) 2020-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
8a4c2b44313224a5ec1f30bd8040710d998e2d44.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <c10/macros/Macros.h> #include <ATen/hip/HIPContext.h> #include <ATen/native/hip/block_red...
8a4c2b44313224a5ec1f30bd8040710d998e2d44.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <c10/macros/Macros.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/native/cuda/block_reduce.cuh> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/...
b688735b3a60c9291adeb2c44ce24d687a33c547.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <tune_quda.h> #include <gauge_field.h> #include <jitify_helper.cuh> #include <kernels/field_strength_tensor.cuh> #include <instantiate.h> namespace quda { template <typename Float, int nColor, QudaReconstructType recon...
b688735b3a60c9291adeb2c44ce24d687a33c547.cu
#include <tune_quda.h> #include <gauge_field.h> #include <jitify_helper.cuh> #include <kernels/field_strength_tensor.cuh> #include <instantiate.h> namespace quda { template <typename Float, int nColor, QudaReconstructType recon> class Fmunu : TunableVectorYZ { FmunuArg<Float, nColor, recon> arg; const Ga...
27853cda90d971948a1c5d30cf692bcf3ce45314.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 16 __global__ void mandelKernel(int* d_img, float lowerX, float lowerY, float stepX, float stepY, int width, int height, int maxIterations) { // To avoid error caused by...
27853cda90d971948a1c5d30cf692bcf3ce45314.cu
#include <cuda.h> #include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 16 __global__ void mandelKernel(int* d_img, float lowerX, float lowerY, float stepX, float stepY, int width, int height, int maxIterations) { // To avoid error caused by the floating number, use the following pseudo code // float x = l...
b32cb76780c323c82cf3bc6a3ad629d73757f3c8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2016 csymv.cu is nearly identical to chemv.cu, just c...
b32cb76780c323c82cf3bc6a3ad629d73757f3c8.cu
/* -- MAGMA (version 2.2.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2016 csymv.cu is nearly identical to chemv.cu, just change names and drop MAGMA_C_CONJ. csymv_kernel_U (upper) in csymv_upper....
ca73f6ca8da1b5b395ba184dad692ef9f7d8eb1c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> // these are just for timing measurments #include <time.h> // error checking macro #define cudaCheckErrors(msg) \ do { \ hipError_t __err = hipGetLastError(); \ if (__err != hipSuccess) { \ ...
ca73f6ca8da1b5b395ba184dad692ef9f7d8eb1c.cu
#include <stdio.h> // these are just for timing measurments #include <time.h> // error checking macro #define cudaCheckErrors(msg) \ do { \ cudaError_t __err = cudaGetLastError(); \ if (__err != cudaSuccess) { \ fprintf(stderr, "Fatal error: %s (%s at %s:%d)\n", \ msg, ...
d286a8ff990063894dd22daf05694def9f9688e9.hip
// !!! This is a file automatically generated by hipify!!! /***************************************************************************** hotspot.cu (c) 2014 - Nikhil R Podduturi, J. Seth Strattan J. Michael Cherry Lab, Department of Genetics, Stanford University School of Medicine Licensed under the GNU Gene...
d286a8ff990063894dd22daf05694def9f9688e9.cu
/***************************************************************************** hotspot.cu (c) 2014 - Nikhil R Podduturi, J. Seth Strattan J. Michael Cherry Lab, Department of Genetics, Stanford University School of Medicine Licensed under the GNU General Public License 2.0 license. ***************************...
1f0c4b03dbf6f5bc3fdfce1561bdc9a5bea1453b.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,...
1f0c4b03dbf6f5bc3fdfce1561bdc9a5bea1453b.cu
/** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
0e37d6d2c26590beaf1e41879adcb4bdbcb1ea4a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * \file dnn/src/cuda/padding/padding.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 ag...
0e37d6d2c26590beaf1e41879adcb4bdbcb1ea4a.cu
/** * \file dnn/src/cuda/padding/padding.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 an * "A...
9a6f19152685e45b24ac07c376c5060f340971e0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2009-2023 The Regents of the University of Michigan. // Part of HOOMD-blue, released under the BSD 3-Clause License. #include "ActiveForceComputeGPU.cuh" #include "hoomd/RNGIdentifiers.h" #include "hoomd/RandomNumb...
9a6f19152685e45b24ac07c376c5060f340971e0.cu
// Copyright (c) 2009-2023 The Regents of the University of Michigan. // Part of HOOMD-blue, released under the BSD 3-Clause License. #include "ActiveForceComputeGPU.cuh" #include "hoomd/RNGIdentifiers.h" #include "hoomd/RandomNumbers.h" #include "hoomd/TextureTools.h" #include <assert.h> /*! \file ActiveForceComput...
6fbc6ff741810adcbe3f2a5fca25b37a84aa7f30.hip
// !!! This is a file automatically generated by hipify!!! #ifndef _STEER_TO_AVOID_CLOSE_NEIGHBORS_CU_ #define _STEER_TO_AVOID_CLOSE_NEIGHBORS_CU_ #include <hip/hip_runtime.h> #include "OpenSteer/VehicleData.h" #include "OpenSteer/NeighborData.h" #include "CUDAKernelOptions.cu" #include "CUDAVectorUtilities.cu" #defi...
6fbc6ff741810adcbe3f2a5fca25b37a84aa7f30.cu
#ifndef _STEER_TO_AVOID_CLOSE_NEIGHBORS_CU_ #define _STEER_TO_AVOID_CLOSE_NEIGHBORS_CU_ #include <cuda_runtime.h> #include "OpenSteer/VehicleData.h" #include "OpenSteer/NeighborData.h" #include "CUDAKernelOptions.cu" #include "CUDAVectorUtilities.cu" #define CHECK_BANK_CONFLICTS 0 #if CHECK_BANK_CONFLICTS #define N_I...
7c4201f53a419ebc2413e95e9c87716afc7235ab.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <transform.h> __device__ double op(double d1,double *params) { return -d1; } extern "C" __global__ void neg_strided_double(int n,int idx,double *dy,int incy,double *params,double *result) { transform(n,idx...
7c4201f53a419ebc2413e95e9c87716afc7235ab.cu
#include <transform.h> __device__ double op(double d1,double *params) { return -d1; } extern "C" __global__ void neg_strided_double(int n,int idx,double *dy,int incy,double *params,double *result) { transform(n,idx,dy,incy,params,result); }
33ede4ef504dbf35660bea402ac053102d85f42c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @precisions normal z -> c d s @author Peng Du ...
33ede4ef504dbf35660bea402ac053102d85f42c.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @precisions normal z -> c d s @author Peng Du @author Tingxing Dong @author Mark Gates @author Azzam Haidar ...
0ad62a6c6c8dc584772629997c79bca0822b3cc6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <omp.h> #include <stdio.h> using namespace std; template <class T> double cpu_perman64_sparse(int* cptrs, int* rows, T* cvals, double x[], int nov, long long start, long long end, int threads) { double p = 0; //product ...
0ad62a6c6c8dc584772629997c79bca0822b3cc6.cu
#include <omp.h> #include <stdio.h> using namespace std; template <class T> double cpu_perman64_sparse(int* cptrs, int* rows, T* cvals, double x[], int nov, long long start, long long end, int threads) { double p = 0; //product of the elements in vector 'x' long long one = 1; long long chunk_size = (end - start...
585f4d129ad943a8a467ac3fdf6208dfa81ed373.hip
// !!! This is a file automatically generated by hipify!!! // CUDA codes for Projection calculation #ifndef __BACKPROJ_CAL_CU #define __BACKPROJ_CAL_CU #include <stdio.h> #include <stdlib.h> #include <cutil_inline.h> #include <cutil.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #include <cutil_ma...
585f4d129ad943a8a467ac3fdf6208dfa81ed373.cu
// CUDA codes for Projection calculation #ifndef __BACKPROJ_CAL_CU #define __BACKPROJ_CAL_CU #include <stdio.h> #include <stdlib.h> #include <cutil_inline.h> #include <cutil.h> #include <cuda.h> #include <cuda_runtime_api.h> #include <cutil_math.h> #include "ParallelBeamEM.h" texture<float, 3, cudaReadModeElement...
703bd70864241edbbfab0623a0abd73a00ae4cad.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 "rsub_scalar_double.cu" #include<chrono> #include<iostream> using...
703bd70864241edbbfab0623a0abd73a00ae4cad.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 "rsub_scalar_double.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16...
e38d4dc9da9cb16ba1452fb6aecd9463e391b0d0.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <math.h> #include <vector> #include <hip/hip_runtime.h> #include <hip/hip_fp16.h> #include <hip/hip_runtime_api.h> #include <hip/hip_runtime.h> #include <ATen/ATen.h> #include <ATen/hip/HIPContext.h> #include <torch/extension.h> ...
e38d4dc9da9cb16ba1452fb6aecd9463e391b0d0.cu
#include <iostream> #include <math.h> #include <vector> #include <cuda.h> #include <cuda_fp16.h> #include <cuda_profiler_api.h> #include <cuda_runtime.h> #include <ATen/ATen.h> #include <ATen/cuda/CUDAContext.h> #include <torch/extension.h> #include "dropout.cuh" #include "softmax.cuh" #include "strided_batched_gemm...
ab57d38e098cb64110df8c11c5244b423acd3d85.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <vector> #include <cmath> #include "wfPad.h" #include "timer.h" extern "C" { typedef thrust::complex<float> fcomp; __global__ void copyPadded(fcomp * paste, fcomp * copyied, int nf, int nx, int M) {...
ab57d38e098cb64110df8c11c5244b423acd3d85.cu
#include <iostream> #include <vector> #include <cmath> #include "wfPad.h" #include "timer.h" extern "C" { typedef thrust::complex<float> fcomp; __global__ void copyPadded(fcomp * paste, fcomp * copyied, int nf, int nx, int M) { int dim_x = nx+2*M; int pixelIdx_x = blockIdx.x * blockDim.x + threadIdx.x; ...
a6003c0227610c866d6a0bc3360a3217b68b9593.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cfloat> #include <hipcub/hipcub.hpp> #include "caffe2/core/context_gpu.h" #include "softmax_op.h" #include "softmax_with_loss_op.h" #include "spatial_softmax_with_loss_op.h" namespace caffe2 { namespace { __global__ vo...
a6003c0227610c866d6a0bc3360a3217b68b9593.cu
#include <cfloat> #include <cub/block/block_reduce.cuh> #include "caffe2/core/context_gpu.h" #include "softmax_op.h" #include "softmax_with_loss_op.h" #include "spatial_softmax_with_loss_op.h" namespace caffe2 { namespace { __global__ void LabelCrossEntropyKernel( const int N, const int D, const float* ...
6ac560123b598cda30eb699205a8fe078a840647.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) Meta Platforms, Inc. and 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. */ // This file...
6ac560123b598cda30eb699205a8fe078a840647.cu
/* * Copyright (c) Meta Platforms, Inc. and 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. */ // This file is auto-generated. See "generate_kernels.py" #include <ATen/native/transformers/cuda/me...
48803654c89cb5f015262efe9d3bb94f7515529a.hip
// !!! This is a file automatically generated by hipify!!! #include <opencv2/cudafeatures2d.hpp> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "labeling_algorithms.h" #include "register.h" // This algorithm is a variation of BUF divided into two stages. // Initially, CCL il performed on...
48803654c89cb5f015262efe9d3bb94f7515529a.cu
#include <opencv2/cudafeatures2d.hpp> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "labeling_algorithms.h" #include "register.h" // This algorithm is a variation of BUF divided into two stages. // Initially, CCL il performed on separated blocks using shared memory. // Then, labels on bloc...
3d62dcc55395065d5b96c8c823fb332ba8306984.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /***************************************************************************************** dopoffs.c Takes the delay-correction polynomial for a Doppler...
3d62dcc55395065d5b96c8c823fb332ba8306984.cu
/***************************************************************************************** dopoffs.c Takes the delay-correction polynomial for a Doppler dataset and figures out the COM Doppler corrections (in units of Doppler bins) for each...
1dea2c9e9b60ac602b6296d46073881c4a9f7ce8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef SOFTMAX_LAYER_CUH_ #define SOFTMAX_LAYER_CUH_ #include <assert.h> #include <math.h> #include "basics/layer.hpp" #include "basics/tensor.cu" #include "basics/session.hpp" // TODO: implement CUDA kernel for backward() #def...
1dea2c9e9b60ac602b6296d46073881c4a9f7ce8.cu
#ifndef SOFTMAX_LAYER_CUH_ #define SOFTMAX_LAYER_CUH_ #include <assert.h> #include <math.h> #include "basics/layer.hpp" #include "basics/tensor.cu" #include "basics/session.hpp" // TODO: implement CUDA kernel for backward() #define BLOCKDIM 32 namespace SoftmaxGPUKernels { template <class Dtype> __global__ vo...
4990bee16e2de805e77f018ebbf23baa01eadad5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Accelerating large graph algorithms on the GPU using CUDA // http://dl.acm.org/citation.cfm?id=1782200 __global__ void kernel_cuda_frontier( int *v_adj_list, int *v_adj_begin, int *v_adj_length, int num_vertices,...
4990bee16e2de805e77f018ebbf23baa01eadad5.cu
// Accelerating large graph algorithms on the GPU using CUDA // http://dl.acm.org/citation.cfm?id=1782200 __global__ void kernel_cuda_frontier( int *v_adj_list, int *v_adj_begin, int *v_adj_length, int num_vertices, int *result, bool *updated, bool *frontier, bool *still_running, bo...
63d9f1ac996f394481e09ee61680e82d692bb888.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 <hiprand/hiprand.h> #include <stdio.h> #include <math.h> #include <float.h> #define NUM_THREADS 512 #define BLOCK 512 #define IDX(b,l,t,m,i,cum...
63d9f1ac996f394481e09ee61680e82d692bb888.cu
#include <torch/extension.h> #include <cuda.h> #include <cuda_runtime.h> #include <vector> #include <curand.h> #include <stdio.h> #include <math.h> #include <float.h> #define NUM_THREADS 512 #define BLOCK 512 #define IDX(b,l,t,m,i,cum,L) (i+2*(m+t*(2*l+1)+cum[l]+b*cum[L+1])) #define PLUSMINUS(k) ((k%2==1) ? -1 : 1)...
d19b47629f970c425ca928142613080179455d4e.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 "kernel_euclidean_norm.cu" #include<chrono> #include<iostream> us...
d19b47629f970c425ca928142613080179455d4e.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 "kernel_euclidean_norm.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16...
468b0da8152bd5290c1206388ce0a7d17ebebcea.hip
// !!! This is a file automatically generated by hipify!!! // 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:...
468b0da8152bd5290c1206388ce0a7d17ebebcea.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...
5e96c1a1108acb9d4ba291a570297e2bb6898939.hip
// !!! This is a file automatically generated by hipify!!! /* The MathWorks Inc. 2019*/ /* ResNet50 demo main.cu file with OpenCV interfaces to read and display data. */ #include "resnet50_wrapper.h" #include "main_resnet50.h" #include "resnet50_wrapper_terminate.h" #include "resnet50_wrapper_initialize.h" #include ...
5e96c1a1108acb9d4ba291a570297e2bb6898939.cu
/* The MathWorks Inc. 2019*/ /* ResNet50 demo main.cu file with OpenCV interfaces to read and display data. */ #include "resnet50_wrapper.h" #include "main_resnet50.h" #include "resnet50_wrapper_terminate.h" #include "resnet50_wrapper_initialize.h" #include "opencv2/opencv.hpp" #include <stdio.h> #include <stdlib.h>...
f9009ba0f388ea7454fd9a980f8ae137e472aff9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <hip/hip_cooperative_groups.h> #include <iostream> #include "constants.h" __global__ void sim_kernel(double *pos, double *vel, double *acc, double *mas){ cooperative_groups::grid_group g = cooperative_groups::this_gr...
f9009ba0f388ea7454fd9a980f8ae137e472aff9.cu
#include <cooperative_groups.h> #include <iostream> #include "constants.h" __global__ void sim_kernel(double *pos, double *vel, double *acc, double *mas){ cooperative_groups::grid_group g = cooperative_groups::this_grid(); int particle_id = blockIdx.x *blockDim.x + threadIdx.x; for (int t = 0; t < CUDA_...
801a054fb583523bfff2fdc6b42aa188bfb4f052.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { hipError_t err = hipGetLastError(); if (hipSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) {...
801a054fb583523bfff2fdc6b42aa188bfb4f052.cu
#include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { cudaError_t err = cudaGetLastError(); if (cudaSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) { fprintf(stderr, " (%s:%d)", file, line); } fprintf(stderr, ": %s: %s...
a7f90a66babbb70ee4a7893e5dab5e07cea126db.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void blend(float *cmap, float* oldd, float* newd, float weight,int * params) { int ax = blockIdx.x*blockDim.x + threadIdx.x; int ay = blockIdx.y*blockDim.y + threadIdx.y; int ch = params[0]; int ah ...
a7f90a66babbb70ee4a7893e5dab5e07cea126db.cu
#include "includes.h" __global__ void blend(float *cmap, float* oldd, float* newd, float weight,int * params) { int ax = blockIdx.x*blockDim.x + threadIdx.x; int ay = blockIdx.y*blockDim.y + threadIdx.y; int ch = params[0]; int ah = params[1]; int aw = params[2]; int slice_a = ah * aw; int pitch_a = aw; float thre =...
797bacd228ae744257fbe56a031c3eda95ab131d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Modified from // https://github.com/sshaoshuai/Pointnet2.PyTorch/tree/master/pointnet2/src/sampling_gpu.cu #include <stdio.h> #include <stdlib.h> #define TOTAL_THREADS 1024 #define THREADS_PER_BLOCK 256 #define DIVUP(m, n) ((m)...
797bacd228ae744257fbe56a031c3eda95ab131d.cu
// Modified from // https://github.com/sshaoshuai/Pointnet2.PyTorch/tree/master/pointnet2/src/sampling_gpu.cu #include <stdio.h> #include <stdlib.h> #define TOTAL_THREADS 1024 #define THREADS_PER_BLOCK 256 #define DIVUP(m, n) ((m) / (n) + ((m) % (n) > 0)) inline int opt_n_threads(int work_size) { const int pow_2 =...
3f33916a0a6f05b55d9109b1b1bf0d933fb590ac.hip
// !!! This is a file automatically generated by hipify!!! #include <hiprand/hiprand.h> #include <cstdio> #include <iostream> #include <hip/hip_runtime.h> #include "n_body_sim_cuda.cuh" // macro for error-handling #define gpuErrChk(ans) { gpuAssert((ans), (char*)__FILE__, __LINE__); } inline void gpuAssert(hipError_...
3f33916a0a6f05b55d9109b1b1bf0d933fb590ac.cu
#include <curand.h> #include <cstdio> #include <iostream> #include <cuda_runtime.h> #include "n_body_sim_cuda.cuh" // macro for error-handling #define gpuErrChk(ans) { gpuAssert((ans), (char*)__FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, char* file, int line, bool abort=true) { if (code != cudaSuc...
14dbed1f2c092a9ed84b4c59734f22054d7dcbc8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <stdlib.h> #include <iostream> #include "lodepng.h" using namespace std; __global__ void PictureKernell(unsigned char* ...
14dbed1f2c092a9ed84b4c59734f22054d7dcbc8.cu
#include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <stdlib.h> #include <iostream> #include "lodepng.h" using namespace std; __global__ void PictureKernell(unsigned char* d_Pin, unsigned char* d_Pout, int n, int m){ int y = blockIdx.y * blockDim.y + threadI...
0712e4b3431b558d9b891ee497af4f5c59507ad0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define __MAKEMORE_MEGATRON_CU__ 1 #include <stdio.h> #include <math.h> #include <vector> #include <map> #include "cudamem.hh" #include "megatron.hh" #include "mapfile.hh" namespace makemore { double adam_b1 = 0.9; double adam...
0712e4b3431b558d9b891ee497af4f5c59507ad0.cu
#define __MAKEMORE_MEGATRON_CU__ 1 #include <stdio.h> #include <math.h> #include <vector> #include <map> #include "cudamem.hh" #include "megatron.hh" #include "mapfile.hh" namespace makemore { double adam_b1 = 0.9; double adam_b2 = 0.999; double adam_b3 = 0.5; double adam_eps = 1e-8; __global__ void gpu_megatro...
60f34018bab0a4a5afab5cdaa1d42d7efbdffb5b.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <intrin.h> #include <ctime> #pragma comment(lib, "cudart") using namespace std; #define MATRIX_SIZE 1024 #define BlockSize 32 // CUDA ke...
60f34018bab0a4a5afab5cdaa1d42d7efbdffb5b.cu
#include <iostream> #include <cuda_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <intrin.h> #include <ctime> #pragma comment(lib, "cudart") using namespace std; #define MATRIX_SIZE 1024 #define BlockSize 32 // CUDA kernel: cubes each array value void matrixMultiplicationWithCud...
c210fadc57f0e033b444ad68ede5c819139d1003.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdint.h> #include <stdio.h> #define uint uint32_t #define WST 8 #define WSU 8 #define WSV 8 #define WS (WST*WSU*WSV) #define CELL_LENGTH 4 #define CELL_SIZE (CELL_LENGTH*CELL_LENGTH*CELL_LENGTH) #define BLOCK_SIZE (WS*...
c210fadc57f0e033b444ad68ede5c819139d1003.cu
#include <stdint.h> #include <stdio.h> #define uint uint32_t #define WST 8 #define WSU 8 #define WSV 8 #define WS (WST*WSU*WSV) #define CELL_LENGTH 4 #define CELL_SIZE (CELL_LENGTH*CELL_LENGTH*CELL_LENGTH) #define BLOCK_SIZE (WS*CELL_SIZE) #define WLT (WST*CELL_LENGTH) #define WLU (WSU*CELL_LENGTH) #define WLV (WSV*...
5d13d78e29fbed4f49adf871680d8259891b73a0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/elementwise_ops.h" #include <hipcub/hipcub.hpp> #include <hipcub/hipcub.hpp> #include <hipcub/hipcub.hpp> #include "caffe2/core/common_gpu.h" #include "caffe2/core/context_gpu.h" #include "caffe2/utils/c...
5d13d78e29fbed4f49adf871680d8259891b73a0.cu
#include "caffe2/operators/elementwise_ops.h" #include <cub/block/block_load.cuh> #include <cub/block/block_reduce.cuh> #include <cub/device/device_reduce.cuh> #include "caffe2/core/common_gpu.h" #include "caffe2/core/context_gpu.h" #include "caffe2/utils/conversions.h" namespace caffe2 { REGISTER_CUDA_OPERATOR( ...
310f99e5b04a706f59179c3139147da15342d6ef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef _FILTER_KERNEL_H_ #define _FILTER_KERNEL_H_ __global__ void SobelFilter(unsigned char* g_DataIn, unsigned char* g_DataOut, int width, int height) { __shared__ unsigned char sharedMem[BLOCK_HEIGHT * BLOCK_WIDTH]; flo...
310f99e5b04a706f59179c3139147da15342d6ef.cu
#ifndef _FILTER_KERNEL_H_ #define _FILTER_KERNEL_H_ __global__ void SobelFilter(unsigned char* g_DataIn, unsigned char* g_DataOut, int width, int height) { __shared__ unsigned char sharedMem[BLOCK_HEIGHT * BLOCK_WIDTH]; float s_SobelMatrix[9]; s_SobelMatrix[0] = -1; s_SobelMatrix[1] = 0; s_SobelMa...
8226305b1175a6957de27c6c867b5d7aa70fdcee.hip
// !!! This is a file automatically generated by hipify!!! /* ================================================================== Programmer: Daniel Sawyer (danielsawyer@mail.usf.edu) The basic SDH algorithm implementation for 3D data To compile: nvcc proj2-danielsawyer.cu -o SDH in the rc machines ===============...
8226305b1175a6957de27c6c867b5d7aa70fdcee.cu
/* ================================================================== Programmer: Daniel Sawyer (danielsawyer@mail.usf.edu) The basic SDH algorithm implementation for 3D data To compile: nvcc proj2-danielsawyer.cu -o SDH in the rc machines ================================================================== */ #in...
a8c9bf017d5c67eb2d8f7fdce201c678f5b7280e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #include <stdlib.h> #include <time.h> clock_t sum_time = 0; __global__ void kernel(int *or_mat, int * to){ __sh...
a8c9bf017d5c67eb2d8f7fdce201c678f5b7280e.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <cuda.h> #include <cuda_runtime_api.h> #include <stdlib.h> #include <time.h> clock_t sum_time = 0; __global__ void kernel(int *or_mat, int * to){ __shared__ int mat[16][16]; int bx = blockIdx.x * 16; int by = blockIdx.y * 16...
5ca2b3d3b5dd5b457954f8359ed6ddb1948bb60d.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <thrust/device_vector.h> #include <thrust/scan.h> #include <hip/hip_runtime.h> #include "device_launch_parameters.h" #include "helper_cuda.h" template <typename T, typename C> __global__ void sub(T* output, const C* starter, const ...
5ca2b3d3b5dd5b457954f8359ed6ddb1948bb60d.cu
#include <iostream> #include <thrust/device_vector.h> #include <thrust/scan.h> #include <cuda_runtime.h> #include "device_launch_parameters.h" #include "helper_cuda.h" template <typename T, typename C> __global__ void sub(T* output, const C* starter, const C* stopper, int64_t startsoffset, int64_t stopsoffset, int64_t...
c31bfa261bea35d92a31fa26071bee8f81e41f8c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* ENGR-E 517 High Performance Computing * Original Author : Matt Anderson (Serial Implementation 2D) * Name : Ninaad Joshi (Serial and Parallel Implementation 1D) * Project : Demonstration of the 2D Heat Distribution * Prob...
c31bfa261bea35d92a31fa26071bee8f81e41f8c.cu
/* ENGR-E 517 High Performance Computing * Original Author : Matt Anderson (Serial Implementation 2D) * Name : Ninaad Joshi (Serial and Parallel Implementation 1D) * Project : Demonstration of the 2D Heat Distribution * Problem using CUDA programming model */ #include <stdio.h> #include <stdlib.h> #include <mat...
1d448a5b0a9b5012335bed5caf40515f114b585b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #define GRID_SIZE 8 #define BLOCK_SIZE 24 hipError_t addWithCuda(int *c, const int *a, const int *b, size_t size); __global__ void addKernel(int *c, const int *a, const i...
1d448a5b0a9b5012335bed5caf40515f114b585b.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #define GRID_SIZE 8 #define BLOCK_SIZE 24 cudaError_t addWithCuda(int *c, const int *a, const int *b, size_t size); __global__ void addKernel(int *c, const int *a, const int *b) { int i = threadIdx.x; c[i] = a[i] + b[i]; } ...
6d442b045abf7220475ddbe1d63de00943050671.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Given a list (lst) of length n // Output its sum = lst[0] + lst[1] + ... + lst[n-1]; #include <wb.h> #define BLOCK_SIZE 512 //@@ You can change this #define wbCheck(stmt) \ ...
6d442b045abf7220475ddbe1d63de00943050671.cu
// Given a list (lst) of length n // Output its sum = lst[0] + lst[1] + ... + lst[n-1]; #include <wb.h> #define BLOCK_SIZE 512 //@@ You can change this #define wbCheck(stmt) \ do { \ cudaError...
f095e2df46b3841cd36902d51cccb1c85e878f27.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "utils.h" #include <iostream> using namespace std; #define BLOCK_DIM 16 // create the index of a diagonal matrix __global__ void diagCsrIndsKernel(const int numRows, int *inds) { unsigned int idx = threadIdx.x + blockIdx...
f095e2df46b3841cd36902d51cccb1c85e878f27.cu
#include "utils.h" #include <iostream> using namespace std; #define BLOCK_DIM 16 // create the index of a diagonal matrix __global__ void diagCsrIndsKernel(const int numRows, int *inds) { unsigned int idx = threadIdx.x + blockIdx.x*blockDim.x; if (idx <= numRows) { inds[idx] = idx; } } void createDiagXcsrInds(i...
ff37fba184216fe59dac676ccd1b8beeab19ac42.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <fstream> #include <stdio.h> #include <iostream> #define H2D hipMemcpyHostToDevice #define D2H hipMemcpyDeviceToHost #define OK hipSuccess using namespace std; typedef uint32_t uint; typedef unsigned char BYTE; //CPU uin...
ff37fba184216fe59dac676ccd1b8beeab19ac42.cu
#include <fstream> #include <stdio.h> #include <iostream> #define H2D cudaMemcpyHostToDevice #define D2H cudaMemcpyDeviceToHost #define OK cudaSuccess using namespace std; typedef uint32_t uint; typedef unsigned char BYTE; //CPU uint i = 0, ind = 0; const uint N = 8E3; //GPU __global__ void emptyKernel( BYTE *d_in ...
37b95292f2aeb0f4f0d4432d7e8f702ad1fb8640.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdlib> #include <cmath> #include <dlib/image_transforms.h> #include "textify.h" #include "cuda_helpers.h" static __global__ void gpu_gaussian_blur_h( textify::gpu_image src, textify::gpu_image dst, ...
37b95292f2aeb0f4f0d4432d7e8f702ad1fb8640.cu
#include <cstdlib> #include <cmath> #include <dlib/image_transforms.h> #include "textify.h" #include "cuda_helpers.h" static __global__ void gpu_gaussian_blur_h( textify::gpu_image src, textify::gpu_image dst, textify::gpu_gaussian_filter gpu_filter ) { int x = blockIdx.x * blockDim.x + t...
62ee075a6bd0d273059da9028f64d07be6da4bb8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel5_plus_4_right; int xdim0_update_halo_kernel5_plus_4_right_h = -1; __constant__ int ydim0_update_halo_kernel5_plus_4_right; int ydim0_update_halo_kernel5_plu...
62ee075a6bd0d273059da9028f64d07be6da4bb8.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel5_plus_4_right; int xdim0_update_halo_kernel5_plus_4_right_h = -1; __constant__ int ydim0_update_halo_kernel5_plus_4_right; int ydim0_update_halo_kernel5_plus_4_right_h = -1; __constant__ int xdim1_update_halo_kernel5_plus_4_right; int xdim1_upd...
698281fce426be7608004cb8b0e2d22f818f3689.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 -> s d c @author Mark Gates ...
698281fce426be7608004cb8b0e2d22f818f3689.cu
/* -- MAGMA (version 2.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2019 @precisions normal z -> s d c @author Mark Gates */ #include "magma_internal.h" #define BLK_X 64 #define BLK_Y 32 /* Divides matrix...
3675da7d335c08c2e4ba569e5408720c11dfd79c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2017 Stanford, NVIDIA * * 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:/...
3675da7d335c08c2e4ba569e5408720c11dfd79c.cu
/* Copyright 2017 Stanford, NVIDIA * * 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 t...