hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
52835e2c97f6abd81f7a1174429b6610de565091.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to dea... | 52835e2c97f6abd81f7a1174429b6610de565091.cu | /*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
b38e9028dcc061361240535a1c6157c5e0979d1e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/detail/IndexUtils.cuh>
#include <ATen/hip/detail/TensorInfo.cuh>
#include "atomics.cuh"
#include "index.cuh"
#define THREADS 1024
#define BLOCKS(N) (N + TH... | b38e9028dcc061361240535a1c6157c5e0979d1e.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/cuda/detail/TensorInfo.cuh>
#include "atomics.cuh"
#include "index.cuh"
#define THREADS 1024
#define BLOCKS(N) (N + THREADS - 1) / THREADS
auto stream = at::cuda::getCurrentCUDAStream();
#define KERNE... |
29d9f905d2ff679247b7d63a0b4d12ee1e4c665f.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.
// Maintainer: mphoward
/*!
* \file BounceBackNVEGPU.cu
* \brief Templ... | 29d9f905d2ff679247b7d63a0b4d12ee1e4c665f.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.
// Maintainer: mphoward
/*!
* \file BounceBackNVEGPU.cu
* \brief Template specialization of CUDA kernels for BounceBackNVEGPU geometries. Each instance of
* ... |
70222ae22998222a6c4a23eef0a5b705bdd7c71d.hip | // !!! This is a file automatically generated by hipify!!!
/**
* (C) Copyright 2020 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/lice... | 70222ae22998222a6c4a23eef0a5b705bdd7c71d.cu | /**
* (C) Copyright 2020 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivative wor... |
f09a19efbd287e72e48c12ae30a7b15df4f30fb6.hip | // !!! This is a file automatically generated by hipify!!!
//
// Mex wrapper to CUSPARSE sort for CSR format (csrsort).
//
// Inspired by cusparse samples (conugateGradient) and Matlab gcsparse.
// http://docs.nvidia.com/cuda/cusparse/index.html#cusparse-lt-t-gt-csrmv
// http://www.mathworks.com/matlabcentral/fileex... | f09a19efbd287e72e48c12ae30a7b15df4f30fb6.cu | //
// Mex wrapper to CUSPARSE sort for CSR format (csrsort).
//
// Inspired by cusparse samples (conugateGradient) and Matlab gcsparse.
// http://docs.nvidia.com/cuda/cusparse/index.html#cusparse-lt-t-gt-csrmv
// http://www.mathworks.com/matlabcentral/fileexchange/44423-gpu-sparse--accumarray--non-uniform-grid
//
/... |
2c69ddec5a1970b61b572e21fe83c122fa40e704.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "stdafx.h"
#include "CudaHelper.h"
#include "CudaMathHelper.h"
namespace mf {
texture<float4, hipTextureType1D, hipReadModeElementType> vectorMangitudeCtfTex; // 1D texture for color transfer function.
texture<float4, ... | 2c69ddec5a1970b61b572e21fe83c122fa40e704.cu | #include "stdafx.h"
#include "CudaHelper.h"
#include "CudaMathHelper.h"
namespace mf {
texture<float4, cudaTextureType1D, cudaReadModeElementType> vectorMangitudeCtfTex; // 1D texture for color transfer function.
texture<float4, cudaTextureType3D, cudaReadModeElementType> vectorFieldTex; // 3D texture for storing... |
524ecdbcf63608a960dd9e46d68fad25952a2f4c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.py
//
__constant__ int opDat0_res_calc_stride_OP2CONSTANT;
int opDat0_res_calc_stride_OP2HOST=-1;
__constant__ int opDat2_res_calc_stride_OP2CONSTANT;
int opDat2_res_calc_stride_OP2HOST=-1;
//user functi... | 524ecdbcf63608a960dd9e46d68fad25952a2f4c.cu | //
// auto-generated by op2.py
//
__constant__ int opDat0_res_calc_stride_OP2CONSTANT;
int opDat0_res_calc_stride_OP2HOST=-1;
__constant__ int opDat2_res_calc_stride_OP2CONSTANT;
int opDat2_res_calc_stride_OP2HOST=-1;
//user function
__device__ void res_calc( const float *x1, const float *x2, const float *q1, const ... |
e9ef28e253bf26de22948bd9c36269ef49b15434.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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.o... | e9ef28e253bf26de22948bd9c36269ef49b15434.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... |
6aa57cb5893525cab4222edc33a5cec9505b3368.hip | // !!! This is a file automatically generated by hipify!!!
#define N 100000
#include "../COMMON/commons.cuh"
int main(int argc, char **argv){
float *d_arr;
// Memory allocation
CUDA_CHECK(hipMalloc(&d_arr, N * sizeof(float)));
// Memory set
CUDA_CHECK(hipMemset(d_arr, 0, N * sizeof(float)));
... | 6aa57cb5893525cab4222edc33a5cec9505b3368.cu | #define N 100000
#include "../COMMON/commons.cuh"
int main(int argc, char **argv){
float *d_arr;
// Memory allocation
CUDA_CHECK(cudaMalloc(&d_arr, N * sizeof(float)));
// Memory set
CUDA_CHECK(cudaMemset(d_arr, 0, N * sizeof(float)));
float *h_arr = new float[N]();
for (int i = 0; i <... |
862f0f0bd38864259d24dc7b46d3d078393ef215.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// DOUBLE PRECISION KERNEL for even/odd fermions
__global__ void DslashDDKernelEO(double2 *out,
double2 *in,
int *tables,
int *ph... | 862f0f0bd38864259d24dc7b46d3d078393ef215.cu | // DOUBLE PRECISION KERNEL for even/odd fermions
__global__ void DslashDDKernelEO(double2 *out,
double2 *in,
int *tables,
int *phases,
size_t gauge_offset)
{
int idx = blockIdx.x... |
453c6d4238af903595eb6eed08bd5c527019bb75.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (C) 2019 ETH Zurich
// Copyright (C) 2019 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Au... | 453c6d4238af903595eb6eed08bd5c527019bb75.cu | // Copyright (C) 2019 ETH Zurich
// Copyright (C) 2019 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Giovanni Balduzzi (gbalduzz@itp.phys.ethz.ch)
//
// Implementation of the G0 compu... |
7b4bfc62f44fbff185789cfcc22ca2c36956cd7e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuda_RandomForest_Constants.cu"
#include "..\cuda_Common_Include.cu"
#include "..\cuda_Common_RNG.cu"
namespace ExtremeFindSplit{
__constant__ SharedBuffer cb_constants;
// Host function for updates to constants
__hos... | 7b4bfc62f44fbff185789cfcc22ca2c36956cd7e.cu | #include "cuda_RandomForest_Constants.cu"
#include "..\cuda_Common_Include.cu"
#include "..\cuda_Common_RNG.cu"
namespace ExtremeFindSplit{
__constant__ SharedBuffer cb_constants;
// Host function for updates to constants
__host__ void cuda_RandomForest_UpdateConstants(void* src){
cudaMemcpyToSymbolAsync(cb_cons... |
225675cee1505a9e79e9c60b0cce48521ad8c083.hip | // !!! This is a file automatically generated by hipify!!!
// ***********************************************************************
//
// Demo program for education in subject
// Computer Architectures and Parallel Systems.
// Petr Olivka, dep. of Computer Science, FEI, VSB-TU Ostrava
// email:petr.olivka@vsb.cz
//
/... | 225675cee1505a9e79e9c60b0cce48521ad8c083.cu | // ***********************************************************************
//
// Demo program for education in subject
// Computer Architectures and Parallel Systems.
// Petr Olivka, dep. of Computer Science, FEI, VSB-TU Ostrava
// email:petr.olivka@vsb.cz
//
// Example of CUDA Technology Usage with unified memory.
//
... |
051e795268b3d5971efd359b594f74948c48e596.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... | 051e795268b3d5971efd359b594f74948c48e596.cu | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
89a4647e2eea948b2c95c6978e5bac5c2fc0c2b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "Header.h"
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#define MASK_LENGTH 7
__constant__ int mask[MASK_LENGTH];
__global__ void ConstantMem(int* a, int* result, const int N) {
int tid = blockIdx.x * block... | 89a4647e2eea948b2c95c6978e5bac5c2fc0c2b8.cu | #include "Header.h"
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#define MASK_LENGTH 7
__constant__ int mask[MASK_LENGTH];
__global__ void ConstantMem(int* a, int* result, const int N) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int r = MASK_LENGTH / 2;
int start = ti... |
346c787df4b71791dbc73ff0ca867567515383ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "morphology.h"
enum class MorphOpType {
ERODE,
DILATE,
};
template <MorphOpType opType>
inline __device__ unsigned char elementOp(unsigned char lhs, unsigned char rhs)
{
}
template <>
inline __device__ unsigned char ... | 346c787df4b71791dbc73ff0ca867567515383ba.cu | #include "morphology.h"
enum class MorphOpType {
ERODE,
DILATE,
};
template <MorphOpType opType>
inline __device__ unsigned char elementOp(unsigned char lhs, unsigned char rhs)
{
}
template <>
inline __device__ unsigned char elementOp<MorphOpType::ERODE>(unsigned char lhs, unsigned char rhs)
{
return min(lhs, ... |
77d9d8aad0866c32fe2d26c3e74c147a72728a39.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... | 77d9d8aad0866c32fe2d26c3e74c147a72728a39.cu | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
60bb44d266f2d5ca501fb30aa4d9d58b3cac7ea9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 30-May-2011 22:03:11
//
// user function
__device__ ... | 60bb44d266f2d5ca501fb30aa4d9d58b3cac7ea9.cu | //
// auto-generated by op2.m on 30-May-2011 22:03:11
//
// user function
__device__
#include "res_calc.h" ... |
184eb4c4373def1f1b633c2e14b1d5b73ef98763.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <cstdio>
#include <cmath>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "common.h"
#include <hip/hip_runtime.h>
using namespace std;
// input - input image one dimensional array
// ouput - outp... | 184eb4c4373def1f1b633c2e14b1d5b73ef98763.cu | #include <iostream>
#include <cstdio>
#include <cmath>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "common.h"
#include <cuda_runtime.h>
using namespace std;
// input - input image one dimensional array
// ouput - output image one dimensional array
// width, height - width and he... |
1f23fbe2ecd1f5e1c8234f3973571f830594cfc9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__constant__ float *c_Kernel;
__global__ void convolutionColumnsKernel_down_smp( float *d_Dst, float *d_Src, int imageW, int imageH, int n_imageH, int pitch, int filter_Rad, int Halo_steps )
{
extern __shared... | 1f23fbe2ecd1f5e1c8234f3973571f830594cfc9.cu | #include "includes.h"
__constant__ float *c_Kernel;
__global__ void convolutionColumnsKernel_down_smp( float *d_Dst, float *d_Src, int imageW, int imageH, int n_imageH, int pitch, int filter_Rad, int Halo_steps )
{
extern __shared__ float s_Data[];
//Offset to the upper halo edge
const int baseX = blockIdx.x * COLUM... |
f1e1710020a59d98564300f3bad5cd9018ff83d4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//********************************************************************************************************************************************************//
//*********************************************** Proton CT Preprocessing a... | f1e1710020a59d98564300f3bad5cd9018ff83d4.cu | //********************************************************************************************************************************************************//
//*********************************************** Proton CT Preprocessing and Image Reconstruction Code *************************************************//
//****... |
6f634305996ef1b9191afe326a0a6020369ef1b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void profileLevelZero_kernel() {} | 6f634305996ef1b9191afe326a0a6020369ef1b8.cu | #include "includes.h"
__global__ void profileLevelZero_kernel() {} |
93e9a100de46ccbba0e1beaa172d4bd06e2d6588.hip | // !!! This is a file automatically generated by hipify!!!
/*
xor_mlp.cu
XOR network implementation with general MLP CUDA code.
Andrei de A. Formiga, 2012-06-19
*/
#include <stdio.h>
#include "mlpnnets.h"
// constant for the RNG seed
#define SEED 419217ULL
//#define SEED 149317ULL
//#define... | 93e9a100de46ccbba0e1beaa172d4bd06e2d6588.cu | /*
xor_mlp.cu
XOR network implementation with general MLP CUDA code.
Andrei de A. Formiga, 2012-06-19
*/
#include <stdio.h>
#include "mlpnnets.h"
// constant for the RNG seed
#define SEED 419217ULL
//#define SEED 149317ULL
//#define SEED 27ULL
// maximum absolute value for random in... |
1c57b8ee125fe9ce68f9a8b19e3ed67b9358a242.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
*
* nullKernelAsync.cu
*
* Microbenchmark for throughput of asynchronous kernel launch.
*
* Build with: nvcc -I ../chLib <options> nullKernelAsync.cu
* Requires: No minimum SM requirement.
*
* Copyright (c) 2011-2012, Ar... | 1c57b8ee125fe9ce68f9a8b19e3ed67b9358a242.cu | /*
*
* nullKernelAsync.cu
*
* Microbenchmark for throughput of asynchronous kernel launch.
*
* Build with: nvcc -I ../chLib <options> nullKernelAsync.cu
* Requires: No minimum SM requirement.
*
* Copyright (c) 2011-2012, Archaea Software, LLC.
* All rights reserved.
*
* Redistribution and use in source and ... |
878d58af09bbc9e2baed8c600fb69dece7f3cd46.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/*
* JCudaVec - Vector operations for JCuda
* http://www.jcuda.org
*
* Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org
*/
extern "C"
//=== Vector arithmetic =======================================... | 878d58af09bbc9e2baed8c600fb69dece7f3cd46.cu | #include "includes.h"
/*
* JCudaVec - Vector operations for JCuda
* http://www.jcuda.org
*
* Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org
*/
extern "C"
//=== Vector arithmetic ======================================================
extern "C"
extern "C"
extern "C"
extern "C"
extern "C"
//===... |
cbab03164efced43f3ca5217754c8772548090ab.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 ... | cbab03164efced43f3ca5217754c8772548090ab.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... |
4b9a841c687b73df9ceda7a263932b164efd5a7d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the... | 4b9a841c687b73df9ceda7a263932b164efd5a7d.cu | /*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the information contained herein is PROPRIETARY and
* CONFIDENTIAL to NVIDIA and is being... |
365001c66cafe8aaceec404458437ef0a7c57e9c.hip | // !!! This is a file automatically generated by hipify!!!
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include "Header.h"
#define TX 27 // number of threads per block along x-axis
#... | 365001c66cafe8aaceec404458437ef0a7c57e9c.cu | #include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include "Header.h"
#define TX 27 // number of threads per block along x-axis
#define TY 27 // number of threads per block along y-axis
__gl... |
82b601d05cc86b3318231371a43c002643a6de02.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Tencent is pleased to support the open source community by making TNN available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you... | 82b601d05cc86b3318231371a43c002643a6de02.cu | // Tencent is pleased to support the open source community by making TNN available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy o... |
a09260ffcb3adc5daba30aa0c17f7311971bb03a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdlib>
#include <iostream>
#include <stdexcept>
#include "hist_processor.hpp"
using namespace thrust;
using namespace structured;
using namespace std;
int div_ceil(int numerator, int denominator)
{
std::div_t res =... | a09260ffcb3adc5daba30aa0c17f7311971bb03a.cu | #include <cstdlib>
#include <iostream>
#include <stdexcept>
#include "hist_processor.hpp"
using namespace thrust;
using namespace structured;
using namespace std;
int div_ceil(int numerator, int denominator)
{
std::div_t res = std::div(numerator, denominator);
return res.rem ? (res.quot + 1) : res.quot;
}
te... |
0d8dd587488696247928853abd515991339d1775.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
@generated from zjacobisetup.cu normal z -> s, Tue Sep... | 0d8dd587488696247928853abd515991339d1775.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zjacobisetup.cu normal z -> s, Tue Sep 2 12:38:33 2014
@author Hartwig Anzt
*/
#include "common_magma.h"
#if (GPUSHM... |
5b12e95ca2f2727b64dd6178aedb1f4a22b9c8b7.hip | // !!! This is a file automatically generated by hipify!!!
#include <hipfft.h>
#include <proj3.cuh>
CudaBuffer::CudaBuffer(int n): n(n) {
hipMalloc((void**)&data, sizeof(float)*n);
}
CudaBuffer::~CudaBuffer() {
hipFree(data);
}
| 5b12e95ca2f2727b64dd6178aedb1f4a22b9c8b7.cu | #include <cufft.h>
#include <proj3.cuh>
CudaBuffer::CudaBuffer(int n): n(n) {
cudaMalloc((void**)&data, sizeof(float)*n);
}
CudaBuffer::~CudaBuffer() {
cudaFree(data);
}
|
ca4131246f78982b22c216bd466aaf97b6b7c539.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <cstdio>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <hip/hip_runtime.h>
#include "helper_cuda.h"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/... | ca4131246f78982b22c216bd466aaf97b6b7c539.cu | #include <iostream>
#include <cstdio>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <cuda_runtime.h>
#include "helper_cuda.h"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/opencv.hpp"
#include "opencv2/gpu/gpu.hpp"
#include <stdio.h>
... |
a41ccc13ee020e09787df64fc933829f1a3cca9e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright (c) 2011-2013 Gerhard Reitmayr, TU Graz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without... | a41ccc13ee020e09787df64fc933829f1a3cca9e.cu | /*
Copyright (c) 2011-2013 Gerhard Reitmayr, TU Graz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publi... |
a8472b59cd768d5d602b1e33cdb410054f563359.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/ztranspose.cu normal z -> s, ... | a8472b59cd768d5d602b1e33cdb410054f563359.cu | /*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@generated from magmablas/ztranspose.cu normal z -> s, Tue Feb 9 16:05:33 2016
@author Stan Tomov
@author Mark Gates
*/
#includ... |
daf03458c2f482dbdbd5b595c0ca8a3cc068fb9c.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <fstream>
# include <sys/time.h>
#define ASIZE 256
struct timeval tim;
double dTime1,dTime2,dTime3;
int c=0;
__global__... | daf03458c2f482dbdbd5b595c0ca8a3cc068fb9c.cu | #include <cuda.h>
#include <helper_cuda.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
#include <fstream>
# include <sys/time.h>
#define ASIZE 256
struct timeval tim;
double dTime1,dTime2,dTime3;
int c=0;
__global__ void processPattern(char* x ,int m, int shifts[]) {
int idx = blo... |
f957d7f2a1bb1c9b4472f8c05b57f9a93f0fe651.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <thrust/scan.h>
#include "common.h"
#include "thrust.h"
namespace StreamCompaction {
namespace Thrust {
/**
* Performs prefix... | f957d7f2a1bb1c9b4472f8c05b57f9a93f0fe651.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <thrust/scan.h>
#include "common.h"
#include "thrust.h"
namespace StreamCompaction {
namespace Thrust {
/**
* Performs prefix-sum (aka scan) on idata, storing the result into odata.
*/
void scan(in... |
aaba552d3ae0bbee97417aec5d7a20d3c8939aaa.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 "Normalize_forward_.hip"
#include<chrono>
#include<iostream>
usin... | aaba552d3ae0bbee97417aec5d7a20d3c8939aaa.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 "Normalize_forward_.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16... |
53ffb019f632b8eef9e8b60728d4f7b1ba907861.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
// for the older gpus atomicAdd with double arguments does not exist
#if __CUDA_ARCH__ < 600 and defined(__CUDA_ARCH__)
static __inline__ __device__ double atomicAdd(double* add... | 53ffb019f632b8eef9e8b60728d4f7b1ba907861.cu | #include <ATen/ATen.h>
#include <cuda.h>
#include <cuda_runtime.h>
// for the older gpus atomicAdd with double arguments does not exist
#if __CUDA_ARCH__ < 600 and defined(__CUDA_ARCH__)
static __inline__ __device__ double atomicAdd(double* address, double val) {
unsigned long long int* address_as_ull = (unsigne... |
f3a018b95d3e47959010f96242898cf971cf1ea9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//Library Definition
#include <iostream> //cout
#include <fstream> //Files
#include <cstdlib> //atoi function
//Constant Definition
#define PI 3.141592654
#define blocksize 32
#define n 512
#define p 128
//Print matrix into st... | f3a018b95d3e47959010f96242898cf971cf1ea9.cu | //Library Definition
#include <iostream> //cout
#include <fstream> //Files
#include <cstdlib> //atoi function
//Constant Definition
#define PI 3.141592654
#define blocksize 32
#define n 512
#define p 128
//Print matrix into standard output
void print(double * M,int cols,int rows);
/*
DEVICE FUNCTIONS
*/
//Matrix... |
a823f59f45cc08985227147819e31745a104d4a2.hip | // !!! This is a file automatically generated by hipify!!!
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// I... | a823f59f45cc08985227147819e31745a104d4a2.cu | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
4aa2026b8633e9964a6deb0f9294e8e17d4a4e52.hip | // !!! This is a file automatically generated by hipify!!!
// CIS565 CUDA Rasterizer: A simple rasterization pipeline for Patrick Cozzi's CIS565: GPU Computing at the University of Pennsylvania
// Written by Yining Karl Li, Copyright (c) 2012 University of Pennsylvania
#include "rasterizeKernels.h"
#include "rasterize... | 4aa2026b8633e9964a6deb0f9294e8e17d4a4e52.cu | // CIS565 CUDA Rasterizer: A simple rasterization pipeline for Patrick Cozzi's CIS565: GPU Computing at the University of Pennsylvania
// Written by Yining Karl Li, Copyright (c) 2012 University of Pennsylvania
#include "rasterizeKernels.h"
#include "rasterizeTools.h"
//#include "cuda_runtime.h"
glm::vec3* framebuffer... |
7c2a7a5ee192fb4ede84fe1aca6e3330ecf68d34.hip | // !!! This is a file automatically generated by hipify!!!
#if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/in... | 7c2a7a5ee192fb4ede84fe1aca6e3330ecf68d34.cu | #if !MEGDNN_TEGRA_X1
// generated by gen_cuda_conv_bias_kern_impls.py
// ignore warning of cutlass
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#include "src/cuda/conv_bias/int8/conv_bias_int8_implicit_gemm_cutlass_wrapper.cuinl"
usi... |
c16840d69ecc027bfb2e3e9a40c62e2eff641000.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
void initialInt(int *ip, int size){
for(int i = 0; i<size; i++){
ip[i] = i;
}
}
void printMatrix(int *C, const int nx, const int ny){
int *ic = C;
printf("\n Matrix: (%d, %d) \n", nx, ny);
for (in... | c16840d69ecc027bfb2e3e9a40c62e2eff641000.cu | #include <cuda_runtime.h>
#include <stdio.h>
void initialInt(int *ip, int size){
for(int i = 0; i<size; i++){
ip[i] = i;
}
}
void printMatrix(int *C, const int nx, const int ny){
int *ic = C;
printf("\n Matrix: (%d, %d) \n", nx, ny);
for (int iy = 0; iy < ny; iy++){
for(int ix = 0; ix < nx; ix++){
... |
d55d51c97db68b6dfea656548885b00510aee346.hip | // !!! This is a file automatically generated by hipify!!!
#include <limits>
#include "custom_cuda_layers.h"
#include <hip/hip_runtime_api.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#define ATTN_THREADS 1024
#define MAX_REG_SIZE 8
#define minus_infinity -10000.0
void CheckCudaErrorAux(const char* file... | d55d51c97db68b6dfea656548885b00510aee346.cu | #include <limits>
#include "custom_cuda_layers.h"
#include <cuda_profiler_api.h>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#define ATTN_THREADS 1024
#define MAX_REG_SIZE 8
#define minus_infinity -10000.0
void CheckCudaErrorAux(const char* file, unsigned line)
{
cudaError_t err = cudaGetLastError();
... |
23e3cfa185ac8709cab0c5ad34b4e28cf38dc031.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
extern "C" {
#ifndef REAL
#define REAL float
#endif
#ifndef CAST
#define CAST(fun) fun ## f
#endif
#ifndef REAL2o3
#define REAL2o3 (REAL)0.6666666666666667
#endif
#ifndef REAL3o2
#define REAL3o2 (REAL)1.5
#... | 23e3cfa185ac8709cab0c5ad34b4e28cf38dc031.cu | #include "includes.h"
extern "C" {
#ifndef REAL
#define REAL float
#endif
#ifndef CAST
#define CAST(fun) fun ## f
#endif
#ifndef REAL2o3
#define REAL2o3 (REAL)0.6666666666666667
#endif
#ifndef REAL3o2
#define REAL3o2 (REAL)1.5
#endif
... |
34d47c6e252d0c28cdba99c46897174037399f34.hip | // !!! This is a file automatically generated by hipify!!!
#include "ActionReconstructionApp.h"
#include <cmath>
#include <chrono>
#include <thread>
#include <time.h>
#include <cinder/app/App.h>
#include <cinder/app/RendererGl.h>
#include <cinder/gl/gl.h>
#include <cinder/CameraUi.h>
#include <cinder/params/Params.h>... | 34d47c6e252d0c28cdba99c46897174037399f34.cu | #include "ActionReconstructionApp.h"
#include <cmath>
#include <chrono>
#include <thread>
#include <time.h>
#include <cinder/app/App.h>
#include <cinder/app/RendererGl.h>
#include <cinder/gl/gl.h>
#include <cinder/CameraUi.h>
#include <cinder/params/Params.h>
#include <cinder/Log.h>
#include <cinder/ObjLoader.h>
#i... |
1ccf8078f11f552d29ab78c2de1a792779e4c91c.hip | // !!! This is a file automatically generated by hipify!!!
#include <THH/THHTensorMasked.cuh>
#include <THH/THHTensor.hpp>
#include <THH/generic/THHTensorMasked.hip>
#include <THH/THHGenerateFloatType.h>
| 1ccf8078f11f552d29ab78c2de1a792779e4c91c.cu | #include <THC/THCTensorMasked.cuh>
#include <THC/THCTensor.hpp>
#include <THC/generic/THCTensorMasked.cu>
#include <THC/THCGenerateFloatType.h>
|
65f4bcb08172664f79131bbe90bcb3b424b8bce5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018-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
... | 65f4bcb08172664f79131bbe90bcb3b424b8bce5.cu | /*
* Copyright (c) 2018-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... |
35fce21279d36de672d934b1c51fcabca9451a1c.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:... | 35fce21279d36de672d934b1c51fcabca9451a1c.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... |
5bd5b832f4de413cde0719b65d2a99cf1d41063b.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 5bd5b832f4de413cde0719b65d2a99cf1d41063b.cu | /* Copyright 2021 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
193ed8a97eb4badfa8f3f93cd8eca9b948771c0a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2011 University of Sheffield.
* Author: Dr Paul Richmond
* Contact: p.richmond@sheffield.ac.uk (http://www.paulrichmond.staff.shef.ac.uk)
*
* University of Sheffield retain all intellectual property and
* proprietary rights in and to this... | 193ed8a97eb4badfa8f3f93cd8eca9b948771c0a.cu | /*
* Copyright 2011 University of Sheffield.
* Author: Dr Paul Richmond
* Contact: p.richmond@sheffield.ac.uk (http://www.paulrichmond.staff.shef.ac.uk)
*
* University of Sheffield retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduct... |
956331a1d1264f54a54974ba9d9f52a17589e437.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2016 Amazon.com, Inc. or its 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. A copy of the Lice... | 956331a1d1264f54a54974ba9d9f52a17589e437.cu | /*
Copyright 2016 Amazon.com, Inc. or its 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. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file acco... |
b632aeb9686a2d04e48c078cb55d7b662cdfa12e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "holder_cleaner.h"
#include "holder_cleaner_kernels.h"
using namespace MEM::MISC;
PlanetHolderCleaner::PlanetHolderCleaner( PhxPlanetFactory *f, FilteringPolicy p )
: fact( f )
, planetsInUse( 1 )
, needChecking( false... | b632aeb9686a2d04e48c078cb55d7b662cdfa12e.cu | #include "holder_cleaner.h"
#include "holder_cleaner_kernels.h"
using namespace MEM::MISC;
PlanetHolderCleaner::PlanetHolderCleaner( PhxPlanetFactory *f, FilteringPolicy p )
: fact( f )
, planetsInUse( 1 )
, needChecking( false )
, filteringPolicy( p )
{
}
PlanetHolderCleaner::~PlanetHolderCleaner()
{
}
void Pl... |
06140afe87d933f1b28d4f005540d79161dee80e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/************************* CudaMat ******************************************
* Copyright (C) 2008-2009 by Rainer Heintzmann *
* heintzmann@gmail.com ... | 06140afe87d933f1b28d4f005540d79161dee80e.cu | #include "includes.h"
/************************* CudaMat ******************************************
* Copyright (C) 2008-2009 by Rainer Heintzmann *
* heintzmann@gmail.com *
* ... |
873136b310afe4ea0ec69d6b6c6f282767311a4b.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 873136b310afe4ea0ec69d6b6c6f282767311a4b.cu | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
ec2fe8fde341d778c83caa79df91d3223c0b8d3f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "mvs.cuh"
#include "kernel_helpers_hip.cuh"
#include "random_gen.cuh"
#include "reduce_hip.cuh"
#include <library/cpp/cuda/wrappers/arch.cuh>
#include <contrib/libs/cub/hipcub/hipcub.hpp>
#include <contrib/libs/cub/cub/bl... | ec2fe8fde341d778c83caa79df91d3223c0b8d3f.cu | #include "mvs.cuh"
#include "kernel_helpers.cuh"
#include "random_gen.cuh"
#include "reduce.cuh"
#include <library/cpp/cuda/wrappers/arch.cuh>
#include <contrib/libs/cub/cub/cub.cuh>
#include <contrib/libs/cub/cub/block/block_radix_sort.cuh>
#include <contrib/libs/cub/cub/block/block_scan.cuh>
namespace NKernel {
... |
ba9c0c8684acc06c0d79fac3c88a035d4eb38e53.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image.h"
#include "stb_image_write.h"
#include <hip/hip_runtime.h>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <io... | ba9c0c8684acc06c0d79fac3c88a035d4eb38e53.cu | #include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image.h"
#include "stb_image_write.h"
#include <cuda.h>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <iostream>
#include "cuda_runtime.h"
#define FILTRE_SIZE 3
#define BLOC... |
e21ad0d17e764484db6d97b2cfe7e6b2b32f02c4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Distributed under MIT licence. See https://github.com/QuEST-Kit/QuEST/blob/master/LICENCE.txt for details
/** @file
* An implementation of the backend in ../QuEST_internal.h for a GPU environment.
*
* @author Ania Brown
* @... | e21ad0d17e764484db6d97b2cfe7e6b2b32f02c4.cu | // Distributed under MIT licence. See https://github.com/QuEST-Kit/QuEST/blob/master/LICENCE.txt for details
/** @file
* An implementation of the backend in ../QuEST_internal.h for a GPU environment.
*
* @author Ania Brown
* @author Tyson Jones
*/
# include "QuEST.h"
# include "QuEST_precision.h"
# include "QuE... |
048a822d13755a4e110690e29332ad720fb2f146.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <hip/hip_runtime.h>
#include <cusparse_v2.h>
#include "rocblas.h"
#include <hiprand/hiprand.h>
#include <helper_functions.h>
#include <helper_cuda.h>
#include "mex.h"
#i... | 048a822d13755a4e110690e29332ad720fb2f146.cu | #include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <cuda_runtime.h>
#include <cusparse_v2.h>
#include "cublas_v2.h"
#include <curand.h>
#include <helper_functions.h>
#include <helper_cuda.h>
#include "mex.h"
#include "kcDefs.h" //see for info on anything starting with KC_
#inclu... |
c5e975f032b2d4852487ea7cf1ca7cee6beed1b6.hip | // !!! This is a file automatically generated by hipify!!!
#include <unittest/unittest.h>
#if defined(__HIPCC__)
#include <thrust/experimental/arch.h>
using namespace thrust::experimental::arch;
void set_compute_capability(hipDeviceProp_t& properties, int major, int minor)
{
properties.major = major;
proper... | c5e975f032b2d4852487ea7cf1ca7cee6beed1b6.cu | #include <unittest/unittest.h>
#if defined(__CUDACC__)
#include <thrust/experimental/arch.h>
using namespace thrust::experimental::arch;
void set_compute_capability(cudaDeviceProp& properties, int major, int minor)
{
properties.major = major;
properties.minor = minor;
}
void set_G80(cudaDeviceProp& propert... |
677e053afc8b00384a2487f1b69d1a5f88d50c10.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void scale_random(float *random, size_t total_size){
size_t index = blockIdx.x * blockDim.x + threadIdx.x;
if(index < total_size){
random[index] = random[index] * 2.0 - 1.0;
__syncthreads();
}
} | 677e053afc8b00384a2487f1b69d1a5f88d50c10.cu | #include "includes.h"
__global__ void scale_random(float *random, size_t total_size){
size_t index = blockIdx.x * blockDim.x + threadIdx.x;
if(index < total_size){
random[index] = random[index] * 2.0 - 1.0;
__syncthreads();
}
} |
420612870899fbcaa13997b35a85a2feb03cfa1c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
# ifndef OCTAVES
# define OCTAVES 8
# endif
# define clamp(a, low, high) (((a) >= (low) && (low) <= (high)) ? (a) : ((a) < (low) ? (low) : (high)))
__device__ int grad[12][3] = {
{1, 1, 0}, {-1, 1, 0}, {1, -1, 0}, {-1,... | 420612870899fbcaa13997b35a85a2feb03cfa1c.cu | # ifndef OCTAVES
# define OCTAVES 8
# endif
# define clamp(a, low, high) (((a) >= (low) && (low) <= (high)) ? (a) : ((a) < (low) ? (low) : (high)))
__device__ int grad[12][3] = {
{1, 1, 0}, {-1, 1, 0}, {1, -1, 0}, {-1, -1, 0},
{1, 0, 1}, {-1, 0, 1}, {1, 0, -1}, {-1, 0, -1},
{0, 1, 1}, {0, -1, 1}, {0, ... |
c78a9ede1af6ac2823066bf27c2f9e771f9482ea.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
... | c78a9ede1af6ac2823066bf27c2f9e771f9482ea.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... |
3e7318c61d73cd8fcb1c07bab0acfaca3ca2cc58.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void randomWalk(double *results, int *crossTimes, int T, int N, int numSims, double upperThreshold, double deviceID) {
// a variable to keep track of this simulation's position in the crossTimes arr... | 3e7318c61d73cd8fcb1c07bab0acfaca3ca2cc58.cu | #include "includes.h"
__global__ void randomWalk(double *results, int *crossTimes, int T, int N, int numSims, double upperThreshold, double deviceID) {
// a variable to keep track of this simulation's position in the crossTimes array
int crossTimeIndex = threadIdx.x + blockIdx.x * blockDim.x;
if (crossTimeIndex < num... |
57023ba297949187230ca5ce4c2b461934e94184.hip | // !!! This is a file automatically generated by hipify!!!
#include "testfuncs.cuh"
__host__ void test_updateSimsAndPropensities() {
const int s = 3;
const int n = 3;
const int m = 3;
const int max_reactants = 2;
const int max_affected = 3;
double propensities[s * m] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
double rea... | 57023ba297949187230ca5ce4c2b461934e94184.cu | #include "testfuncs.cuh"
__host__ void test_updateSimsAndPropensities() {
const int s = 3;
const int n = 3;
const int m = 3;
const int max_reactants = 2;
const int max_affected = 3;
double propensities[s * m] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 };
double reaction_rates[n] = { 1, 2, 0.5 };
// 2A -> B, 1
// A 2B ->... |
6c114a8c901db6ea6b9cfd0c1d0b11151f0381e1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* SpectRE - A Spectral Code for Reheating
* Copyright (C) 2009-2010 Hal Finkel, Nathaniel Roth and Richard Easther
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided... | 6c114a8c901db6ea6b9cfd0c1d0b11151f0381e1.cu | /*
* SpectRE - A Spectral Code for Reheating
* Copyright (C) 2009-2010 Hal Finkel, Nathaniel Roth and Richard Easther
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must ret... |
91360ef1087533f8802e5bec5dd4174942a78998.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "star2d2r-512-8-256_kernel.hu"
__device__ float __sbref_wrap(float *sb, size_t index) { return sb[index]; }
__global__ void kernel0_8(float *A, int dimsize, int timestep, int c0)
{
#ifndef AN5D_TYPE
#define AN5D_TYPE unsig... | 91360ef1087533f8802e5bec5dd4174942a78998.cu | #include "star2d2r-512-8-256_kernel.hu"
__device__ float __sbref_wrap(float *sb, size_t index) { return sb[index]; }
__global__ void kernel0_8(float *A, int dimsize, int timestep, int c0)
{
#ifndef AN5D_TYPE
#define AN5D_TYPE unsigned
#endif
const AN5D_TYPE __c0Len = (timestep - 0);
const AN5D_TYPE __c0Pad = (... |
f9f151ab2d6cbb8113d7ff144c01f6ef294b99cf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// This is problem 2, page ranking
// The problem is to compute the rank of a set of webpages
// given a link graph, aka a graph where each node is a webpage,
// and each edge is a link from one page to another.
// We're going to u... | f9f151ab2d6cbb8113d7ff144c01f6ef294b99cf.cu | // This is problem 2, page ranking
// The problem is to compute the rank of a set of webpages
// given a link graph, aka a graph where each node is a webpage,
// and each edge is a link from one page to another.
// We're going to use the Pagerank algorithm (http://en.wikipedia.org/wiki/Pagerank),
// specifically the i... |
50b81386888768a526e15fdea57e7014de2a4d25.hip | // !!! This is a file automatically generated by hipify!!!
/* Bluebird Library - High performance CPUs and GPUs computing library.
*
* Copyright (C) 2012-2013 Orange Owl Solutions.
*
* This file is part of Bluebird Library.
* Bluebird Library is free software: you can redistribute it and/or modify
* ... | 50b81386888768a526e15fdea57e7014de2a4d25.cu | /* Bluebird Library - High performance CPUs and GPUs computing library.
*
* Copyright (C) 2012-2013 Orange Owl Solutions.
*
* This file is part of Bluebird Library.
* Bluebird Library is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public Licens... |
414a541c55082fcbd47e4bdf2addfd0812cb634c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "adNOC_2Pb_runKernels.cuh"
#include <assert.h>
RunKernels::RunKernels(char *fname)
{
readinParamFile(fname);
dataInitialization();
}
void RunKernels::readinParamFile(char *fname)
{
FILE* FID = fopen(fname, ... | 414a541c55082fcbd47e4bdf2addfd0812cb634c.cu | #include "adNOC_2Pb_runKernels.cuh"
#include <assert.h>
RunKernels::RunKernels(char *fname)
{
readinParamFile(fname);
dataInitialization();
}
void RunKernels::readinParamFile(char *fname)
{
FILE* FID = fopen(fname, "r");
if(!FID) {
printf("Parameter file %s is missing. Abort...\n", fname);
exit(1)... |
15dc4bba303b086fe70bcbad1d946c54f6dea01b.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>
#define N 8
__global__ void reduceVector(float *a, int thread){
int id = blockIdx.x*blockDim.x+threadIdx.x;
for(int s=N/2; s>=1; s/=2){
if(id<s)
*(a+id) += *(... | 15dc4bba303b086fe70bcbad1d946c54f6dea01b.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda.h>
#define N 8
__global__ void reduceVector(float *a, int thread){
int id = blockIdx.x*blockDim.x+threadIdx.x;
for(int s=N/2; s>=1; s/=2){
if(id<s)
*(a+id) += *(a+id+s);
__syncthreads();
}
}
int main() {
int memsize = size... |
7b344ece979c237528d12bcd8664ab726e6c3936.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*Suma Matrices por Fila*/
#include <iostream>
using namespace std;
__global__
void sumaMatrizKernel(float* A, float* B, float* C, int n)
{
int i = threadIdx.x + (blockDim.x * blockIdx.x);
if(i<n)
{
for(int j=0;j<n;j++)
C... | 7b344ece979c237528d12bcd8664ab726e6c3936.cu | /*Suma Matrices por Fila*/
#include <iostream>
using namespace std;
__global__
void sumaMatrizKernel(float* A, float* B, float* C, int n)
{
int i = threadIdx.x + (blockDim.x * blockIdx.x);
if(i<n)
{
for(int j=0;j<n;j++)
C[i*n+j] = A[i*n+j] + B[i*n+j];
}
}
void sumaMatrix(float* A, float* B, float* C, ... |
8ac236c7d3a0cbb1da72ce821cdf562fe628f5fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @brief
* utils
*
* @copyright
* Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*/
#include <algorithm>
#include ... | 8ac236c7d3a0cbb1da72ce821cdf562fe628f5fa.cu | /**
* @brief
* utils
*
* @copyright
* Copyright (c) 2020 Xiaomi Corporation (authors: Daniel Povey, Haowen Qiu)
*
* @copyright
* See LICENSE for clarification regarding multiple authors
*/
#include <algorithm>
#include "k2/csrc/macros.h"
#include "k2/csrc/math.h"
#include "k2/csrc/nvtx.h"
#include "k2/csrc... |
53f01784f22581016ac1dcebc6857c1ab3bd6444.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 53f01784f22581016ac1dcebc6857c1ab3bd6444.cu | /*
* Copyright (c) 2018-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
91fba8bed34a31599001482dabbe01722187d60f.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include <algorithm>
#include <complex>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <random>
#include <vector>
#include "cu_complex.h"
#include "gpu_error.cuh"
#inc... | 91fba8bed34a31599001482dabbe01722187d60f.cu | #include <cuda_runtime.h>
#include <sys/time.h>
#include <algorithm>
#include <complex>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <random>
#include <vector>
#include "cu_complex.h"
#include "gpu_error.cuh"
#include "types.hpp"
#include "versions.hpp"
#if !defined PARM ||... |
f28de38270d0a6900e560ed9a476edf104e6c7a2.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... | f28de38270d0a6900e560ed9a476edf104e6c7a2.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 ... |
0903439ad6865b55bdd4b41b2704c150da95ac0b.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <time.h>
#include "config.h"
#define TIMER_CREATE(t) \
hipEvent_t t##_start, t##_end; \
hipEventCreate(&t##_start); \
hipEventCreate(&t##_end); ... | 0903439ad6865b55bdd4b41b2704c150da95ac0b.cu |
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <time.h>
#include "config.h"
#define TIMER_CREATE(t) \
cudaEvent_t t##_start, t##_end; \
cudaEventCreate(&t##_start); \
cudaEventCreate(&t##_end);
#define TIMER_START(t) \
cudaEventReco... |
7ba9365f54c7a99b18cab6042a4ccf17602aecf2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you... | 7ba9365f54c7a99b18cab6042a4ccf17602aecf2.cu | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* 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 o... |
92636b5d1f5ead624ceb66fa3d2454f835d6e2ee.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
using namespace std;
#ifndef MAP_FILE
#define MAP_FILE MAP_SHARED
#endif
__global__ void elementwise_1D_1D_exp(float* in, float* out, int size) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int stride = ... | 92636b5d1f5ead624ceb66fa3d2454f835d6e2ee.cu | #include "includes.h"
using namespace std;
#ifndef MAP_FILE
#define MAP_FILE MAP_SHARED
#endif
__global__ void elementwise_1D_1D_exp(float* in, float* out, int size) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int stride = gridDim.x * blockDim.x;
for (; tid < size; tid += stride)
if (tid < size) out[tid] = exp... |
b2789284f83b8d98aa2f1418e6c79a6d27d12ab8.hip | // !!! This is a file automatically generated by hipify!!!
//======================================
//
// GPU
//======================================
#include"stdafx.h"
#include"ExponentialNormalization_LayerData_GPU.cuh"
#include"ExponentialNormalization_FUNC.hpp"
#include"ExponentialNormalization_GPU.cuh"
#includ... | b2789284f83b8d98aa2f1418e6c79a6d27d12ab8.cu | //======================================
// バッチ正規化のレイヤーデータ
// GPU制御
//======================================
#include"stdafx.h"
#include"ExponentialNormalization_LayerData_GPU.cuh"
#include"ExponentialNormalization_FUNC.hpp"
#include"ExponentialNormalization_GPU.cuh"
#include"Library/NeuralNetwork/Optimizer.h"
#incl... |
22ee3446bc1cb2cf02cc3953e5be70fcf4e9f42a.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... | 22ee3446bc1cb2cf02cc3953e5be70fcf4e9f42a.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 ... |
8ca0add7c0712be6c58e8f8f462e131f93b39f33.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <fftw3.h>
//CBLAS
extern "C"
{
#include <cblas.h>
}
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
//CuBlas
#include <rocblas.h>
#include "omp.h"
// custom hea... | 8ca0add7c0712be6c58e8f8f462e131f93b39f33.cu |
#define _USE_MATH_DEFINES
#include <math.h>
#include <fftw3.h>
//CBLAS
extern "C"
{
#include <cblas.h>
}
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
//CuBlas
#include <cublas_v2.h>
#include "omp.h"
// custom headers
#include "./include/tools.h"
/*__global__ void julia_kernel( int n, double *a, d... |
b3c1b7fde82fff2be60bab1987e298553d869b28.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <time.h>
__global__ void vAdd(int* a, int* b, int* c, int n){
int i = threadIdx.x;
if(i<n)
c[i] = a[i] + b[i];
}
void wrapper(int* a, int* b, int* c, int n){
int *d_a,*d_b,*d_c;
hipMalloc(&d_a,... | b3c1b7fde82fff2be60bab1987e298553d869b28.cu | #include <stdio.h>
#include <time.h>
__global__ void vAdd(int* a, int* b, int* c, int n){
int i = threadIdx.x;
if(i<n)
c[i] = a[i] + b[i];
}
void wrapper(int* a, int* b, int* c, int n){
int *d_a,*d_b,*d_c;
cudaMalloc(&d_a,n*sizeof(int));
cudaMalloc(&d_b,n*sizeof(int));
cudaMalloc(&d_c,n*sizeof(int));
cud... |
d4b1f34d93baa6cb286f713e4b56387b64a92d66.hip | // !!! This is a file automatically generated by hipify!!!
// /usr/local/cuda/bin/nvcc testSpeedUp.cu -o test -O3
// WARNING for OPTIMIZATION
// warning: compiling with nvcc -O3 filename.cu will pass the -O3 option to host code only.
// nvcc -Xptxas -O3,-v filename.cu
// https://stackoverflow.com/questions/43706755/h... | d4b1f34d93baa6cb286f713e4b56387b64a92d66.cu |
// /usr/local/cuda/bin/nvcc testSpeedUp.cu -o test -O3
// WARNING for OPTIMIZATION
// warning: compiling with nvcc -O3 filename.cu will pass the -O3 option to host code only.
// nvcc -Xptxas -O3,-v filename.cu
// https://stackoverflow.com/questions/43706755/how-can-i-get-the-nvcc-cuda-compiler-to-optimize-more
#incl... |
3b763a2e3aee9396ef438a33cd9528bc8fa3110e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//#include <math.h>
#include <matrix.h>
#include <mex.h>
#include "include/utils.cuh"
#include "include/settings.h"
#include "cutil.h"
__global__ void convolve(float *a, float *b, float *c, int N, int K0, int K, int n, int m, int... | 3b763a2e3aee9396ef438a33cd9528bc8fa3110e.cu | //#include <math.h>
#include <matrix.h>
#include <mex.h>
#include "include/utils.cuh"
#include "include/settings.h"
#include "cutil.h"
__global__ void convolve(float *a, float *b, float *c, int N, int K0, int K, int n, int m, int nz, int gridOffset) {
int i = blockIdx.y, j = blockIdx.x, ni = gridOffset + threadI... |
fa8d05d40f5fe4c4ee544e1b36d13bd3d370a78b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define BLOCK_SIZE 512
#include <stdio.h>
__global__
void force (float *virialArray, float *potentialArray, float *pval, float *vval, float *rx, float *ry, float *rz, float *fx, float *fy, float *fz, float sigma, float rcut, float ... | fa8d05d40f5fe4c4ee544e1b36d13bd3d370a78b.cu | #define BLOCK_SIZE 512
#include <stdio.h>
__global__
void force (float *virialArray, float *potentialArray, float *pval, float *vval, float *rx, float *ry, float *rz, float *fx, float *fy, float *fz, float sigma, float rcut, float vrcut, float dvrc12, float dvrcut, int *head, int *list, int mx, int my, int mz, int nat... |
9c8afa56e8a9fa2617b5ddbfe57c68a859d7155a.hip | // !!! This is a file automatically generated by hipify!!!
#include "Entity.hpp"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "Vector2.hpp"
#include "Grid.hpp"
#include "Entity.hpp"
#include "Player.hpp"
#include "Item.hpp"
#include "Map.hpp"
#include "Model.hpp"
#include "MapEditor.hpp... | 9c8afa56e8a9fa2617b5ddbfe57c68a859d7155a.cu | #include "Entity.hpp"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "Vector2.hpp"
#include "Grid.hpp"
#include "Entity.hpp"
#include "Player.hpp"
#include "Item.hpp"
#include "Map.hpp"
#include "Model.hpp"
#include "MapEditor.hpp"
using namespace std;
unsigned int entities_... |
e45afb9b18b102c0f171973e8873f6aaba7d4e51.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <chrono>
#include <sstream>
#include <iostream>
#include <fstream>
#include "tuningParameters.h"
#include "qtclib.h"
#include "OptionParser.h"
#i... | e45afb9b18b102c0f171973e8873f6aaba7d4e51.cu | #include <math.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <chrono>
#include <sstream>
#include <iostream>
#include <fstream>
#include "tuningParameters.h"
#include "qtclib.h"
#include "OptionParser.h"
#include "libdata.h"
#include "cudacommon.h"
#define _USE_MATH_DEFINES
#include <float.h>... |
9103a44bc753ae98bb7c4da88b3a70a2d853d86f.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include "util.hpp"
#include "cuda_stream.hpp"
#include "cuda_event.hpp"
template <int Threads>
__global__
void blur_shared(const double *in, double* out, int n) {
__shared__ double buffer[Threads+2];
... | 9103a44bc753ae98bb7c4da88b3a70a2d853d86f.cu | #include <iostream>
#include <cuda.h>
#include "util.hpp"
#include "cuda_stream.hpp"
#include "cuda_event.hpp"
template <int Threads>
__global__
void blur_shared(const double *in, double* out, int n) {
__shared__ double buffer[Threads+2];
auto block_start = blockDim.x * blockIdx.x;
auto li = threadIdx.x... |
ccc90c7239d1451524d3184634ed85e92e7e4e57.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* \brief gemm: C = A * B.
*/
#include "cuda_util.h"
// Initialize the input data.
void GenMatrix(const int height, const int width, float *mat) {
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
... | ccc90c7239d1451524d3184634ed85e92e7e4e57.cu | /*!
* \brief gemm: C = A * B.
*/
#include "cuda_util.h"
// Initialize the input data.
void GenMatrix(const int height, const int width, float *mat) {
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
mat[i*width + j] = (float)rand() / RAND_MAX + (float)rand() / (RAND_MAX*RAND_MAX);
}... |
287f802637d6f2f28e91af3335255ad66cf780e0.hip | // !!! This is a file automatically generated by hipify!!!
/* CUDA blur
* Kevin Yuh, 2014 */
#include <cstdio>
#include <hip/hip_runtime.h>
#include <hipfft.h>
#include "fft_convolve.cuh"
/*
Atomic-max function. You may find it useful for normalization.
We haven't really talked about this yet, but __device__ fu... | 287f802637d6f2f28e91af3335255ad66cf780e0.cu | /* CUDA blur
* Kevin Yuh, 2014 */
#include <cstdio>
#include <cuda_runtime.h>
#include <cufft.h>
#include "fft_convolve.cuh"
/*
Atomic-max function. You may find it useful for normalization.
We haven't really talked about this yet, but __device__ functions not
only are run on the GPU, but are called from within... |
1f1e500620fe7794ff9955b45299b9db0287bbb1.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "efficient.h"
#include <iostream>
#define DEBUG 0
namespace StreamCompaction {
namespace Efficient {
const int threadCount = 32;
#define FILENAME (strrchr(__FILE__, '/') ? strrchr(__FILE__, ... | 1f1e500620fe7794ff9955b45299b9db0287bbb1.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include "efficient.h"
#include <iostream>
#define DEBUG 0
namespace StreamCompaction {
namespace Efficient {
const int threadCount = 32;
#define FILENAME (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
#define checkCUDAError(msg) checkCUDAErrorFn(msg, FI... |
4c951f83edf2e72e17cccaf1749407fd4548eae1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <math.h>
__global__ void evenReduce(int *a, int *b, int numP)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
if(index < numP)
b[index] = a[index * 2] + a[index * 2 + 1];
}
__global__ void oddR... | 4c951f83edf2e72e17cccaf1749407fd4548eae1.cu | #include <stdio.h>
#include <math.h>
__global__ void evenReduce(int *a, int *b, int numP)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
if(index < numP)
b[index] = a[index * 2] + a[index * 2 + 1];
}
__global__ void oddReduce(int *a, int *b, int numP)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
i... |
8e855a362691bc4b5673ee1cb552c69b0140734e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void helloFromGPU(void)
{
printf("Hello World from GPU!\n");
printf("%d", threadIdx.x);
}
int main(void)
{
printf("Hello World from CPU!\n");
hipLaunchKernelGGL(( helloFromGPU) , dim3(1... | 8e855a362691bc4b5673ee1cb552c69b0140734e.cu | #include <stdio.h>
__global__ void helloFromGPU(void)
{
printf("Hello World from GPU!\n");
printf("%d", threadIdx.x);
}
int main(void)
{
printf("Hello World from CPU!\n");
helloFromGPU <<<1, 10>>>();
cudaDeviceReset();
} |
1e9355923e6cdc53f51d5174cf8c6b11e47bf4e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "latms.hpp"
#include <cutf/memory.hpp>
#include <cutf/type.hpp>
#include <cutf/cublas.hpp>
#include <cutf/cusolver.hpp>
#include <cutf/hiprand.hpp>
template <class T>
void mtk::utils::latms(
T* const mat_ptr,
const std::size_t m,
const std::size... | 1e9355923e6cdc53f51d5174cf8c6b11e47bf4e5.cu | #include "latms.hpp"
#include <cutf/memory.hpp>
#include <cutf/type.hpp>
#include <cutf/cublas.hpp>
#include <cutf/cusolver.hpp>
#include <cutf/curand.hpp>
template <class T>
void mtk::utils::latms(
T* const mat_ptr,
const std::size_t m,
const std::size_t n,
const std::size_t rank,
const T* const s_array,
... |
3ad021a2b0207bd93ae28f7753827bc3942b9be5.hip | // !!! This is a file automatically generated by hipify!!!
//Zrdo: http://www.cs.fsu.edu/
#include <stdio.h>
// Print device properties
void printDevProp(hipDeviceProp_t devProp)
{
printf("Major revision number: %d\n", devProp.major);
printf("Minor revision number: %d\n", devProp.minor);
... | 3ad021a2b0207bd93ae28f7753827bc3942b9be5.cu | //Zródło: http://www.cs.fsu.edu/
#include <stdio.h>
// Print device properties
void printDevProp(cudaDeviceProp devProp)
{
printf("Major revision number: %d\n", devProp.major);
printf("Minor revision number: %d\n", devProp.minor);
printf("Name: %s\n", devProp.n... |
e3f544710af3bcf3a28f472c847026aa6cc6a0a3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
__global__ void reduce(float *g_idata, float *g_odata, unsigned int n)
{
extern __shared__ float sdata[];
// perform first level of reduction,
// reading from global memory, writing to shared memory
unsi... | e3f544710af3bcf3a28f472c847026aa6cc6a0a3.cu |
extern "C"
__global__ void reduce(float *g_idata, float *g_odata, unsigned int n)
{
extern __shared__ float sdata[];
// perform first level of reduction,
// reading from global memory, writing to shared memory
unsigned int tid = threadIdx.x;
unsigned int i = blockIdx.x*blockDim.x*2 + threadIdx.x;
... |
b9b66f5051ffebec7f4798b1779de31a77dd2fcb.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
@generated from ztranspose.cu normal z -> s, Fri Jan 30 ... | b9b66f5051ffebec7f4798b1779de31a77dd2fcb.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from ztranspose.cu normal z -> s, Fri Jan 30 19:00:09 2015
@author Stan Tomov
@author Mark Gates
*/
#include "common_m... |
ab338b7abe16e2b36e91d6dea902da0b1191dc21.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <arbor/gpu/gpu_common.hpp>
#include <arbor/gpu/math_cu.hpp>
#include <arbor/gpu/reduce_by_key.hpp>
#include <arbor/mechanism_abi.h>
namespace arb {
namespace allen_catalogue {
#define PPACK_IFACE_BLOCK \
auto _pp_var_wid... | ab338b7abe16e2b36e91d6dea902da0b1191dc21.cu | #include <arbor/gpu/gpu_common.hpp>
#include <arbor/gpu/math_cu.hpp>
#include <arbor/gpu/reduce_by_key.hpp>
#include <arbor/mechanism_abi.h>
namespace arb {
namespace allen_catalogue {
#define PPACK_IFACE_BLOCK \
auto _pp_var_width __attribute__((unused)) = params_.width;\
auto _pp_var_n_detectors ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.