hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
93f2767f6353305f8daa66326d1d123864fb694a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMathReduce.cu"
#else
THC_API void
THCTensor_(sum)(THCState* state, THCTensor *self, THCTensor *src, int dimension, int keepdim) {
THCAssertSameGPU(THCTensor_(che... | 93f2767f6353305f8daa66326d1d123864fb694a.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMathReduce.cu"
#else
THC_API void
THCTensor_(sum)(THCState* state, THCTensor *self, THCTensor *src, int dimension, int keepdim) {
THCAssertSameGPU(THCTensor_(checkGPU)(state, 2, self, src));
if (!THC_reduceDim<real>(state, self, src,
... |
8ddf3521c148822c51221f573413942a6b54b73a.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#define N 10
#define num_threads 10000
__global__ void increment_naive(int *d)
{
int tid = threadIdx.x + blockIdx.x*blockDim.x;
tid = tid % ... | 8ddf3521c148822c51221f573413942a6b54b73a.cu | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <cuda_runtime.h>
#define N 10
#define num_threads 10000
__global__ void increment_naive(int *d)
{
int tid = threadIdx.x + blockIdx.x*blockDim.x;
tid = tid % N;
d[tid] += 1;
}
__global__ void increment_atomic(int *d)
{
int tid = ... |
6aa10299a14494d125766d9e0f30d29bff297e0b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, repr... | 6aa10299a14494d125766d9e0f30d29bff297e0b.cu | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduction, disclosure, or distribution of this software
* and related documentation witho... |
61901eb1e4fcf1c0b586b883dae79743efcfdf01.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
// Matrix is stored as 1d array in row-major order
typedef struct {
int width;
int height;
int stride;
float *elements;
} Matrix;
#define BLOCK_SIZE 16
#define A_WIDTH 2048
#define A_HEIGHT 204... | 61901eb1e4fcf1c0b586b883dae79743efcfdf01.cu | #include <stdio.h>
// Matrix is stored as 1d array in row-major order
typedef struct {
int width;
int height;
int stride;
float *elements;
} Matrix;
#define BLOCK_SIZE 16
#define A_WIDTH 2048
#define A_HEIGHT 2048
#define B_WIDTH 2048
#define B_HEIGHT 2048
#define C_WIDTH 2048
#define C_HEIGHT 204... |
e49e0fe67abc4f88eab4853054b24f941177b6a7.hip | // !!! This is a file automatically generated by hipify!!!
#include "userFitness.h"
#include "hip/hip_runtime_api.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <hiprand/hiprand_kernel.h>
__device__ float fitnessOfSearchAgent_SudokuWOA(float* searchAgent, int startPoint) {
float nilai ... | e49e0fe67abc4f88eab4853054b24f941177b6a7.cu | #include "userFitness.h"
#include "cuda_runtime_api.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <curand_kernel.h>
__device__ float fitnessOfSearchAgent_SudokuWOA(float* searchAgent, int startPoint) {
float nilai = 0.0f;
int i_d = startPoint;
float* searchAgentTemp = searchAgent;
for... |
d1dc2d57ff8ba184df582c03d704c833f2ed63d0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "trackerKCFparallel.hpp"
#include <opencv2/cudaarithm.hpp>
#include "dft.cu"
#include "mulspectrums.cu"
#define returnFromUpdate() {fprintf(stderr, "Error in %s line %d while updating frame %d\n", __FILE__, __LINE__, frame... | d1dc2d57ff8ba184df582c03d704c833f2ed63d0.cu | #include "trackerKCFparallel.hpp"
#include <opencv2/cudaarithm.hpp>
#include "dft.cu"
#include "mulspectrums.cu"
#define returnFromUpdate() {fprintf(stderr, "Error in %s line %d while updating frame %d\n", __FILE__, __LINE__, frame);}
/*---------------------------
| TrackerKCFModel
|---------------------------*/
nam... |
06bff03943921be0c165e4c1509a8c6082b148f0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "gputimer.h"
#define BLOCK_SIZE (1024)
double get_walltime()
{
struct timeval tp;
gettimeofday(&tp, NULL);
return (double) (tp.tv_se... | 06bff03943921be0c165e4c1509a8c6082b148f0.cu | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "gputimer.h"
#define BLOCK_SIZE (1024)
double get_walltime()
{
struct timeval tp;
gettimeofday(&tp, NULL);
return (double) (tp.tv_sec + tp.tv_usec*1e-6);
}
void Write(float* buffer, int np, char* output){
FILE *f;
... |
2046965ad57889be01cf2f88387c6c7becaf9936.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define BOOST_GPU_ENABLED __host__ __device__
#include "config.h"
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "util/cuda_util.hpp"
#include "util/boost/boost_array_openfpm.hpp"
#include "Vector/map_vec... | 2046965ad57889be01cf2f88387c6c7becaf9936.cu | #define BOOST_GPU_ENABLED __host__ __device__
#include "config.h"
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "util/cuda_util.hpp"
#include "util/boost/boost_array_openfpm.hpp"
#include "Vector/map_vector.hpp"
#include "scan_cuda.cuh"
#ifndef SCAN_WITH_CUB
#define SCAN_WITH_CUB
#endif
#... |
aef776dddab516c009a3672d3ace27df45d68bbe.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,... | aef776dddab516c009a3672d3ace27df45d68bbe.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.
*
*... |
5dd381e42fa6ff4e3006dd0aeafa26fb60d8fc1c.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 t... | 5dd381e42fa6ff4e3006dd0aeafa26fb60d8fc1c.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... |
c81b83ea38ece0ca448282122e76b5b3a3a51234.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in sour... | c81b83ea38ece0ca448282122e76b5b3a3a51234.cu | /***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
419f3243eb720816f80b225395271b998c138b4e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
/*
* Initialize array values on the host.
*/
void init(int *a, int N)
{
int i;
for (i = 0; i < N; ++i)
{
a[i] = i;
}
}
/*
* Double elements in parallel on the GPU.
*/
__global__
void doubleElem... | 419f3243eb720816f80b225395271b998c138b4e.cu | #include <stdio.h>
/*
* Initialize array values on the host.
*/
void init(int *a, int N)
{
int i;
for (i = 0; i < N; ++i)
{
a[i] = i;
}
}
/*
* Double elements in parallel on the GPU.
*/
__global__
void doubleElements(int *a, int N)
{
int i;
i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N)... |
9357f69b2c5459093746cbf2f9095991cd240ccf.hip | // !!! This is a file automatically generated by hipify!!!
#include <torch/extension.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <math.h>
#include <hiprand/hiprand.h>
#include <hip/hip_runtime_api.h>
#include "hipcub/hipcub.hpp"
#include "hipcub/hipcub.hpp"
#include <time.h>
#include <stdi... | 9357f69b2c5459093746cbf2f9095991cd240ccf.cu | #include <torch/extension.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <math.h>
#include <curand.h>
#include <cuda_runtime_api.h>
#include "cub/device/device_radix_sort.cuh"
#include "cub/util_allocator.cuh"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#... |
f3dbd27f2cb8160a8ded6daefc71adcaec9b0cdf.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 zlobpcg_maxpy.cu normal z -> c, Tue Se... | f3dbd27f2cb8160a8ded6daefc71adcaec9b0cdf.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zlobpcg_maxpy.cu normal z -> c, Tue Sep 2 12:38:33 2014
*/
#include "common_magma.h"
// 512 is maximum number of threads f... |
f550b44a152270fec4c01db572550181c6651e4d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdint.h>
#include <limits.h>
#include <stdlib.h>
#include <float.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <chrono>
#include <hip/hip_runtime.h>
#include "kernels.h"
#define CSV 0
#if(CSV)
#define PS(X... | f550b44a152270fec4c01db572550181c6651e4d.cu | #include <stdio.h>
#include <stdint.h>
#include <limits.h>
#include <stdlib.h>
#include <float.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <chrono>
#include <cuda.h>
#include "kernels.h"
#define CSV 0
#if(CSV)
#define PS(X, S) std::cout << X << ", " << S << ", "; fflush(stdout);
#define PV(X... |
2a19f4c97aca3415b60ed4513b06932d89a1d5ad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <chrono>
#include <hiprand/hiprand_kernel.h>
#include <limits>
#include <hipcub/hipcub.hpp>
#include "../configuration.h"
#include "util/util.h"
static const int kNullptr = std::numeric_limits<int>::ma... | 2a19f4c97aca3415b60ed4513b06932d89a1d5ad.cu | #include <assert.h>
#include <chrono>
#include <curand_kernel.h>
#include <limits>
#include <cub/cub.cuh>
#include "../configuration.h"
#include "util/util.h"
static const int kNullptr = std::numeric_limits<int>::max();
static const int kNumBlockSize = 256;
static const char kCellTypeNormal = 1;
static const char kC... |
ccf0584aa3fee1cceea2e58018e48804fafe7899.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... | ccf0584aa3fee1cceea2e58018e48804fafe7899.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... |
567af869c41298bcdd11f223c9d6436b8154b058.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* GEMM is a General Matrix Multiply - a subroutine in the Basic Linear Algebra Subprograms library*/
/* Includes, system */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#ifdef HOST
/* =========... | 567af869c41298bcdd11f223c9d6436b8154b058.cu | /* GEMM is a General Matrix Multiply - a subroutine in the Basic Linear Algebra Subprograms library*/
/* Includes, system */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#ifdef HOST
/* ======================================================= */
/* Simple implementation of dgemm */
/... |
2b24f1b137bc93c631d2b59ebadc69726306e1a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void advNextStep(double *d_prevPoint, double *d_umat, double d_stepDist, int nRxns, double *points, int pointsPerFile, int pointCount, int index){
int newindex= blockIdx.x * blockDim.x + threadIdx.x;... | 2b24f1b137bc93c631d2b59ebadc69726306e1a4.cu | #include "includes.h"
__global__ void advNextStep(double *d_prevPoint, double *d_umat, double d_stepDist, int nRxns, double *points, int pointsPerFile, int pointCount, int index){
int newindex= blockIdx.x * blockDim.x + threadIdx.x;
int stride= blockDim.x * gridDim.x;
for(int i=newindex;i<nRxns;i+=stride){
points[poin... |
4ec89b5dc64f5a36e61226ac75ad31641cb9d56e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow 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
... | 4ec89b5dc64f5a36e61226ac75ad31641cb9d56e.cu | /*
Copyright 2020 The OneFlow 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 agre... |
e07aa9fbd72b830f8b91d13f2b2c95518738d922.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "mdCuda.h"
int main(int argc, char* argv[])
{
if(CheckParameters(argc, argv) == false)
return 0;
if(OpenFiles() == false)
return -1;
if(Input() == false)
return -1;
Solve();
CloseFiles();
return 0;
}
boo... | e07aa9fbd72b830f8b91d13f2b2c95518738d922.cu | #include "mdCuda.h"
int main(int argc, char* argv[])
{
if(CheckParameters(argc, argv) == false)
return 0;
if(OpenFiles() == false)
return -1;
if(Input() == false)
return -1;
Solve();
CloseFiles();
return 0;
}
bool OpenFiles()
{
if(FileExists("mdse.out"))
{
cout << "mdse.out already exists. Enter... |
3e49b0a196b04bd447d65b9bbc2cd4a7fd2c130f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "timer.h"
char res_seq[100];
char res_par[100];
#define DIM 2 /* Two-dimensional system */
#define X 0 /* x-coordinate subscript */
#define Y ... | 3e49b0a196b04bd447d65b9bbc2cd4a7fd2c130f.cu | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "timer.h"
char res_seq[100];
char res_par[100];
#define DIM 2 /* Two-dimensional system */
#define X 0 /* x-coordinate subscript */
#define Y 1 /* y-coordinate subscript */
const double G = 6.673e-11;
typedef double vect_t[DIM... |
12def9f66226bda6ade7182afe13c05986c8d4b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "SparseMatrix.h"
#define threadsPerBlock 128
#define blocksPerGrid 128
__global__ void kernel(ColumnBegEndInLine* d_begEndLines, StructCOO* d_columnsValues, double* d_vect, double* d_result, int* d_N)
{
int i = t... | 12def9f66226bda6ade7182afe13c05986c8d4b8.cu | #include "SparseMatrix.h"
#define threadsPerBlock 128
#define blocksPerGrid 128
__global__ void kernel(ColumnBegEndInLine* d_begEndLines, StructCOO* d_columnsValues, double* d_vect, double* d_result, int* d_N)
{
int i = threadIdx.x + blockIdx.x*blockDim.x;
int columnIndex(0);
int nonZerosOnLine(0);... |
e2165e778c22374775bf05af950c15eee28ef130.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***************************************************************************
*cr
*cr (C) Copyright 2007 The Board of Trustees of the
*cr University of Illinois
*cr All Ri... | e2165e778c22374775bf05af950c15eee28ef130.cu | /***************************************************************************
*cr
*cr (C) Copyright 2007 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
********************************************************************... |
7d6f9e4d59e3b51124c9380556b8d76b16a9c421.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef USE_ROCM
#include "dragon/core/context_cuda.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernels {
namespace {
template <typename T>
__global__ void _AdamUpdate(
const int N,
const T lr,
... | 7d6f9e4d59e3b51124c9380556b8d76b16a9c421.cu | #ifdef USE_CUDA
#include "dragon/core/context_cuda.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernels {
namespace {
template <typename T>
__global__ void _AdamUpdate(
const int N,
const T lr,
const T beta1,
const T beta2,
const T eps,
T* g,
T* m,
T* v) {
... |
4dbe53a017527686b855e870f3ba714649a6d4cc.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdlib>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <functional>
#include <algorithm>
#include <vector>
#include <math.h>
#include <chrono>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
... | 4dbe53a017527686b855e870f3ba714649a6d4cc.cu | #include <cstdlib>
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <functional>
#include <algorithm>
#include <vector>
#include <math.h>
#include <chrono>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cuda.h>
#include <device_functions.h>
#include <math... |
2fb5da73e2a405bd50ab6bc15abc416c373216e4.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2017 XGBoost contributors
*/
#include "./host_device_vector.h"
#include <thrust/fill.h>
#include <xgboost/data.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "device_helpers_hip.cuh"
namespace xgboost {
// the handler... | 2fb5da73e2a405bd50ab6bc15abc416c373216e4.cu | /*!
* Copyright 2017 XGBoost contributors
*/
#include "./host_device_vector.h"
#include <thrust/fill.h>
#include <xgboost/data.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "./device_helpers.cuh"
namespace xgboost {
// the handler to call instead of cudaSetDevice; only used for testing
stat... |
a35c562e04593067555c4e5e3f523245efcde3f1.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright (c) 2021 Darius Rckert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/config.h"
#include "saiga/core/image/all.h"
#include "saiga/core/math/all.h"
#include "saiga/core/util/statistics.h"
#inclu... | a35c562e04593067555c4e5e3f523245efcde3f1.cu | /**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/config.h"
#include "saiga/core/image/all.h"
#include "saiga/core/math/all.h"
#include "saiga/core/util/statistics.h"
#include "saiga/cuda/imageProcessing/OrbDescriptors.h"
#include... |
debfafd2219e1279032cb15e79ee8891cb56fcf8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "MatrixCoverGPU.cuh"
#include <iostream>
#include <fstream>
#include <cstdio>
int main()
{
std::ifstream file("matrix.txt");
int graph_count=2;
int total_dl_matrix_row_num[2]={276,276};
int total_d... | debfafd2219e1279032cb15e79ee8891cb56fcf8.cu | #include "MatrixCoverGPU.cuh"
#include <iostream>
#include <fstream>
#include <cstdio>
int main()
{
std::ifstream file("matrix.txt");
int graph_count=2;
int total_dl_matrix_row_num[2]={276,276};
int total_dl_matrix_col_num[2]={29,29};
int offset_matrix[2]={0, 276*29};
int offset_row[2]... |
4476a3dc6e615cd4d6c40bce95fc53b8edc83a6e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hiprand/hiprand.h"
#include "hiprand/hiprand_kernel.h"
#include "math.h"
#include <thrust/device_vector.h>
#include <iostream>
__global__ void gerar(int *out, int n) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
... | 4476a3dc6e615cd4d6c40bce95fc53b8edc83a6e.cu | #include "curand.h"
#include "curand_kernel.h"
#include "math.h"
#include <thrust/device_vector.h>
#include <iostream>
__global__ void gerar(int *out, int n) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i >= n) return;
curandState st;
curand_init(0, i, 0, &st);
// números entre 10 e 40
... |
3a71d8c22035b5695fdb2bd629b401eb62993c2d.hip | // !!! This is a file automatically generated by hipify!!!
/*
** Hello World using CUDA
**
** The string "Hello World!" is mangled then restored using a common CUDA idiom
**
** Byron Galbraith
** 2009-02-18
*/
#include <hip/hip_runtime.h>
#include <stdio.h>
// Device kernel
__global__ void
helloWorld(char* str)
{
... | 3a71d8c22035b5695fdb2bd629b401eb62993c2d.cu | /*
** Hello World using CUDA
**
** The string "Hello World!" is mangled then restored using a common CUDA idiom
**
** Byron Galbraith
** 2009-02-18
*/
#include <cuda.h>
#include <stdio.h>
// Device kernel
__global__ void
helloWorld(char* str)
{
// determine where in the thread grid we are
int idx = blockIdx.x ... |
02539c6fa9595460f99bd58c9931c303b0ce85d3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// nvcc backGroundSubtractionWyatt.cu -o temp.exe -lm
#include <math.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
// size of vector
#define FRAMES 5 // Number of frames
#define PIXELS_PER_FRAME 10 // Number of pix... | 02539c6fa9595460f99bd58c9931c303b0ce85d3.cu | // nvcc backGroundSubtractionWyatt.cu -o temp.exe -lm
#include <math.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
// size of vector
#define FRAMES 5 // Number of frames
#define PIXELS_PER_FRAME 10 // Number of pixels per frame
#define BLOCK 128 // Size of blocks, best if it is a power of 2.
// Glo... |
712155fe5cecef8c804de75c2e3f9debd06616ad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef _TIMER_
#include "hip/hip_runtime_api.h"
#endif
#include "stdio.h"
#include <rocm_smi/rocm_smi.h>
#include <assert.h>
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) (... | 712155fe5cecef8c804de75c2e3f9debd06616ad.cu | #include "cuda.h"
#ifdef _TIMER_
#include "cuda_profiler_api.h"
#endif
#include "stdio.h"
#include <nvml.h>
#include <assert.h>
#define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) )
#define max(a,b) FORMA_MAX(a,b)
#define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) )
#define min(a,b) FORMA_MIN(a,b)
#define FORMA_CEIL(a,b) ( (a... |
9ef45729694f6098b1bd7e81f1fed2b1d50eb9c2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* bfs_main.cu
*
* Created on: Feb 28, 2017
* Author: chao
*
* The gpu version of BFS algorithm.
* Similar to the sequential version, but use one cuda thread to process one
* graph node in the font-wave in every iter... | 9ef45729694f6098b1bd7e81f1fed2b1d50eb9c2.cu | /*
* bfs_main.cu
*
* Created on: Feb 28, 2017
* Author: chao
*
* The gpu version of BFS algorithm.
* Similar to the sequential version, but use one cuda thread to process one
* graph node in the font-wave in every iteration. So for each iteration, the
* number of cuda threads of gpu kernel may change.
*... |
7ca3e63f28b0c470c4048dc436ea6fe6749704d2.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#define SIZE 1000
#define NUM_BIN 16
__global__ void histogram_without_atomic(int *d_b, int *d_a)
{
int tid = threadIdx.x + blockDim.x * blockIdx.x;
int item = d_a[tid];
if (tid < SIZE)
{
d_b[item]++;
}
... | 7ca3e63f28b0c470c4048dc436ea6fe6749704d2.cu | #include <stdio.h>
#include <cuda_runtime.h>
#define SIZE 1000
#define NUM_BIN 16
__global__ void histogram_without_atomic(int *d_b, int *d_a)
{
int tid = threadIdx.x + blockDim.x * blockIdx.x;
int item = d_a[tid];
if (tid < SIZE)
{
d_b[item]++;
}
}
__global__ void histogram_atomic(int *d_b, int *d_a)
{
in... |
aa26d4b3a0bfe86ecfda4b5dd3814f3ed10453bd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef GET_QUANTILE_CU
#define GET_QUANTILE_CU
__global__ void
quanMap_kernel(Record *d_R, int interval, int rLen,int *d_output)
{
extern __shared__ Record tempBuf[];
const int by = blockIdx.y;
const int bx = blockIdx.x;
... | aa26d4b3a0bfe86ecfda4b5dd3814f3ed10453bd.cu | #ifndef GET_QUANTILE_CU
#define GET_QUANTILE_CU
__global__ void
quanMap_kernel(Record *d_R, int interval, int rLen,int *d_output)
{
extern __shared__ Record tempBuf[];
const int by = blockIdx.y;
const int bx = blockIdx.x;
const int tx = threadIdx.x;
const int ty = threadIdx.y;
const int tid=tx+ty*blockDim.... |
21874fa2e63fed027da1c7d2d76aff7a5edec60e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* bf-knn (Brute-Force k-Nearest Neighbors Search on the GPU) is the proprietary
* property of The Regents of the University of California ("The Regen... | 21874fa2e63fed027da1c7d2d76aff7a5edec60e.cu | /*******************************************************************************
* bf-knn (Brute-Force k-Nearest Neighbors Search on the GPU) is the proprietary
* property of The Regents of the University of California ("The Regents.")
*
* Copyright © 2015 The Regents of the University of California, Davis campus.
... |
af10510ab3c9108c5145845ed23c9ab8a4971fc6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions a... | af10510ab3c9108c5145845ed23c9ab8a4971fc6.cu | // Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, ... |
9d22119e3c85b4b648d0b0d3a6c93dd9f3254dbf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <THHUNN/THHUNN.h>
#include <THH/THHTensor.hpp>
#include <THHUNN/common.h>
template <typename Dtype>
__global__ void MaxUnpoolForward(const int nthreads, const Dtype* bottom_data, const int64_t* bottom_mask,
const int n... | 9d22119e3c85b4b648d0b0d3a6c93dd9f3254dbf.cu | #include <THCUNN/THCUNN.h>
#include <THC/THCTensor.hpp>
#include <THCUNN/common.h>
template <typename Dtype>
__global__ void MaxUnpoolForward(const int nthreads, const Dtype* bottom_data, const int64_t* bottom_mask,
const int num, const int channels, const int iheight, const int iwidth, const int oheight, const in... |
af0ed5ad3d334d2c2b51e448338ca61a80412fc6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cassert>
#define BLOCK_SIZE 256
#define NUM_NEIGHBORS 4
#include "mp2.h"
#include "mp2-part3-util.h"
#include "mp2-util.h"
event_pair timer;
//---------------------------------------------------------------------------... | af0ed5ad3d334d2c2b51e448338ca61a80412fc6.cu | #include <cassert>
#define BLOCK_SIZE 256
#define NUM_NEIGHBORS 4
#include "mp2.h"
#include "mp2-part3-util.h"
#include "mp2-util.h"
event_pair timer;
//------------------------------------------------------------------------------
void host_knn_particle(
float3 *particles, int *bins, int *part_knn, int id, int ... |
b18cf7961940898ebc4d169e1c32c65d9c2140b4.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <thrust/complex.h>
using namespace std;
#define STB_IMAGE_IMPLEMENTATION
#include "../stbi_headers/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../stbi_headers/stb_image_write.h"
#include "../stbi_headers/stb_image_... | b18cf7961940898ebc4d169e1c32c65d9c2140b4.cu | #include <iostream>
#include <thrust/complex.h>
using namespace std;
#define STB_IMAGE_IMPLEMENTATION
#include "../stbi_headers/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../stbi_headers/stb_image_write.h"
#include "../stbi_headers/stb_image_resize.h"
#include <time.h>
#include <cuda_runtime.h>
#incl... |
9e6b1ad64b6f87e2ba9fc82fbeb6f72558ee2244.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 "kern_ResetSinkBuffer.cu"
#include<chrono>
#include<iostream>
usi... | 9e6b1ad64b6f87e2ba9fc82fbeb6f72558ee2244.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 "kern_ResetSinkBuffer.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,... |
e18320e62444c26678f89640c2f7845728f2796e.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are... | e18320e62444c26678f89640c2f7845728f2796e.cu | /***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are me... |
ef99aee0f276a434209daaf69d6c01e757163db9.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright 2018 XIAOLIN WANG (xiaolin.wang@nict.go.jp; arthur.xlw@google.com)
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:/... | ef99aee0f276a434209daaf69d6c01e757163db9.cu | /*
Copyright 2018 XIAOLIN WANG (xiaolin.wang@nict.go.jp; arthur.xlw@google.com)
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 ap... |
f2ae7defc6e28b4d0b19303e5333f840dba29723.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <vector>
#include "../utils.h"
#include "gpu_expInt_double.h"
__device__ double calcExp_simple_double(int n, double x, int maxIters){
double eulerConstant=0.5772156649015329;
double epsilon=1.E-30... | f2ae7defc6e28b4d0b19303e5333f840dba29723.cu | #include <cstdio>
#include <vector>
#include "../utils.h"
#include "gpu_expInt_double.h"
__device__ double calcExp_simple_double(int n, double x, int maxIters){
double eulerConstant=0.5772156649015329;
double epsilon=1.E-30;
double bigdouble = 3.40282E38;
double a,b,c,d,del,fact,h,psi,ans=0.0;
int ... |
a7efa316ee8995cb5d8555be3a9b7df183dd091c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass
//--gridDim=1 --blockDim=[9,9]
#include "common.h"
__global__ void
addForces_k(cData *v, int dx, int dy, int spx, int spy, float fx, float fy, int r, size_t pitch)
{
__requires(dx == 512);
__requires(dy == 512);
... | a7efa316ee8995cb5d8555be3a9b7df183dd091c.cu | //pass
//--gridDim=1 --blockDim=[9,9]
#include "common.h"
__global__ void
addForces_k(cData *v, int dx, int dy, int spx, int spy, float fx, float fy, int r, size_t pitch)
{
__requires(dx == 512);
__requires(dy == 512);
__requires(spx == 1);
__requires(spy == 1);
__requires(r == 4);
__requires(... |
92efb9dcd850a0b56823140e12e43b2ceab7c599.hip | // !!! This is a file automatically generated by hipify!!!
#include "matrix.h"
#include "gpuinfo.h"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
/**
* @brief cuda kernal -- matrix mul C = alpha * A * B + beta * C, single p... | 92efb9dcd850a0b56823140e12e43b2ceab7c599.cu | #include "matrix.h"
#include "gpuinfo.h"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
/**
* @brief cuda kernal -- matrix mul C = alpha * A * B + beta * C, single precision
* @param alpha coefficient parameter
* @param beta ... |
5fe50de79b46ffb7c08c4f03d8e2675d2038e2db.hip | // !!! This is a file automatically generated by hipify!!!
// ref_confusion_matrix should be copied from gpu 0 to others
hipStream_t stream[NGPU];
for (int i = 0; i < NGPU; ++i)
hipStreamCreate (&stream[i]);
for (int i = 0; i < NGPU; ++i) {
hipSetDevice (i);
CUDAKERNELSTREAMSYNC (MonteCarlo_Init_d, dim_grid, d... | 5fe50de79b46ffb7c08c4f03d8e2675d2038e2db.cu | // ref_confusion_matrix should be copied from gpu 0 to others
cudaStream_t stream[NGPU];
for (int i = 0; i < NGPU; ++i)
cudaStreamCreate (&stream[i]);
for (int i = 0; i < NGPU; ++i) {
cudaSetDevice (i);
CUDAKERNELSTREAMSYNC (MonteCarlo_Init_d, dim_grid, dim_block, 0, stream[i], rep_begin[i], rep_end[i]);
}
f... |
89c11f09617dbcbc7bd08770b20a63e0881ce906.hip | // !!! This is a file automatically generated by hipify!!!
#include <limits>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/hip/Loops.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/TensorIterator.h>
#include... | 89c11f09617dbcbc7bd08770b20a63e0881ce906.cu | #include <limits>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Math.cuh>
#include <ATen/native/cuda/zm... |
ace930cf526e5f70bd24351364aab71437bfa4c5.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... | ace930cf526e5f70bd24351364aab71437bfa4c5.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 ... |
ef8adbba787ce25f6330bb2e1ad9c41e9e061a35.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... | ef8adbba787ce25f6330bb2e1ad9c41e9e061a35.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... |
87e90361c8c34c3a71a1282e2e3d7aaae41e3237.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "GPU_Car_Drive.h"
#include <despot/GPUcore/thread_globals.h>
#include <ped_pomdp.h>
#include <despot/util/coord.h>
#include <hip/driver_types.h>
#include <stddef.h>
#include "despot/GPUutil/GPUmemorypool.h"
#include "despo... | 87e90361c8c34c3a71a1282e2e3d7aaae41e3237.cu | #include "GPU_Car_Drive.h"
#include <despot/GPUcore/thread_globals.h>
#include <ped_pomdp.h>
#include <despot/util/coord.h>
#include <driver_types.h>
#include <stddef.h>
#include "despot/GPUutil/GPUmemorypool.h"
#include "despot/GPUutil/GPUrandom.h"
#include "GPU_CarUpperBound.h"
#define THREADDIM 128
using namespac... |
ede267e55264748c70cf116af2776239d3518ebf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* sphTartakovskyMeakin.cuh
*
* Author: Kamil Szewc (kamil.szewc@gmail.com)
* Modified on: 26-09-2014
*
*/
#include <thrust/device_vector.h>
#include "../sph.h"
#include "sphTartakovskyMeakin/sphTartakovskyMeakin.cuh"
#include... | ede267e55264748c70cf116af2776239d3518ebf.cu | /*
* sphTartakovskyMeakin.cuh
*
* Author: Kamil Szewc (kamil.szewc@gmail.com)
* Modified on: 26-09-2014
*
*/
#include <thrust/device_vector.h>
#include "../sph.h"
#include "sphTartakovskyMeakin/sphTartakovskyMeakin.cuh"
#include "general/calcNumberOfCells/calcNumberOfCells.cuh"
#include "general/calcTimeStep/calcTi... |
be6cf5b5a54ba1aae2ada593fef9dfbbbea2b7a9.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <hip/hip_runtime.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include "sceneStructs.h"
#include "scene.h"
#include "glm/glm.hpp"
#include "glm/gtx/norm.hpp"
#include ... | be6cf5b5a54ba1aae2ada593fef9dfbbbea2b7a9.cu | #include <cstdio>
#include <cuda.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include "sceneStructs.h"
#include "scene.h"
#include "glm/glm.hpp"
#include "glm/gtx/norm.hpp"
#include "utilities.h"
#include "pathtrace.h"
#include "intersections.h"
#inclu... |
b9c505e48ea8300e6e9f70c9215af46b39b54955.hip | // !!! This is a file automatically generated by hipify!!!
// 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 of the License at
// https... | b9c505e48ea8300e6e9f70c9215af46b39b54955.cu | // 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 of the License at
// https://opensource.org/licenses/BSD-3-Clause
// Unless required ... |
08e52aa563ae71a79771469c8c709ca7bbe74f6b.hip | // !!! This is a file automatically generated by hipify!!!
/*
Author: Cao Thanh Tung
Filename: pba3DHost.cu
Copyright (c) 2010, School of Computing, National University of Singapore.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the ... | 08e52aa563ae71a79771469c8c709ca7bbe74f6b.cu | /*
Author: Cao Thanh Tung
Filename: pba3DHost.cu
Copyright (c) 2010, School of Computing, National University of Singapore.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source co... |
da2aea7746f9a7fae233064aa68c98849905ef40.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <ATen/hip/HIPBlas.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen... | da2aea7746f9a7fae233064aa68c98849905ef40.cu | #include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <ATen/cuda/CUDABlas.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/native/cuda/im2col.cuh>
namespace at {
namespace na... |
cd4a980004202fb7f783d68e73cb4e87f432676c.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/blas_l2/zgemv2_offset.cu
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPAC... | cd4a980004202fb7f783d68e73cb4e87f432676c.cu | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/blas_l2/zgemv2_offset.cu
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is provided ... |
e4727a75c82119d3a1fe9be064f686406df3a067.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void printValue( int *value) {
printf("value %d\n",value[0]);
printf("value %d\n",value[1]);
}
void hostFunction(){
int *value;
hipMallocManaged(&value, 2 * sizeof(int));
value[0]=1;
value[1]=2;hipLa... | e4727a75c82119d3a1fe9be064f686406df3a067.cu | #include <stdio.h>
__global__ void printValue( int *value) {
printf("value %d\n",value[0]);
printf("value %d\n",value[1]);
}
void hostFunction(){
int *value;
cudaMallocManaged(&value, 2 * sizeof(int));
value[0]=1;
value[1]=2;
printValue<<< 1, 1 >>>(value);
cudaDeviceSynchronize();
cudaFree(value);
}
int main() {
h... |
030cf60cb6b007d4336e19b7f1d4425aa8ce27b9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
__device__ void _2Dstencil_(int *d_e,int *d_r,float* c_coeff,int X,int Y,int k, int x, int y,int GX,int Gx,int Gy)
... | 030cf60cb6b007d4336e19b7f1d4425aa8ce27b9.cu | #include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
__device__ void _2Dstencil_(int *d_e,int *d_r,float* c_coeff,int X,int Y,int k, int x, int y,int GX,int Gx,int Gy)
{
int h_e_i;
int h_r_i = x + ( y * (X) );
h_e_i = h_r_i;
int temp =... |
0dc03596e6e16796fffa389331065763f7531d5f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorRandom.cu"
#else
#define NUM_BLOCKS min((int)THCCeilDiv(size, (ptrdiff_t) BLOCK_SIZE), MAX_NUM_BLOCKS)
#if defined(THC_REAL_IS_FLOAT) || defined(THC_REAL_IS_DOUBL... | 0dc03596e6e16796fffa389331065763f7531d5f.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorRandom.cu"
#else
#define NUM_BLOCKS min((int)THCCeilDiv(size, (ptrdiff_t) BLOCK_SIZE), MAX_NUM_BLOCKS)
#if defined(THC_REAL_IS_FLOAT) || defined(THC_REAL_IS_DOUBLE) || defined(THC_REAL_IS_HALF)
void THCTensor_(uniform)(THCState* state, THCTensor *se... |
b307be0353b9099adac366a2fb7b472af11ed94f.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
// Includes
#include <stdio.h>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// incl... | b307be0353b9099adac366a2fb7b472af11ed94f.cu | #include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
// Includes
#include <stdio.h>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// includes CUDA
#include <cuda_runtime.h>
#define THREADS_PER_BL... |
f081b504ffda005014626d0d0d56568383deadbc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void print_details()
{
printf("blockIdx.x : %d, blockIdx.y : %d, blockIdx.z : %d, blockIdx.x : %d, blockIdx.y : %d, blockIdx.z : %d, gridDim.x : %d, gridDim.y :%... | f081b504ffda005014626d0d0d56568383deadbc.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void print_details()
{
printf("blockIdx.x : %d, blockIdx.y : %d, blockIdx.z : %d, blockIdx.x : %d, blockIdx.y : %d, blockIdx.z : %d, gridDim.x : %d, gridDim.y :%d, gridDim.z :%d \n",
blockIdx.x, blockIdx.y, blockIdx.z, bl... |
a582ba953948270e1fe37e1ac27f4a9c5263523f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "gpu_runtime.h"
// y = inputs[0], y_ = inputs[1]
// np.mean(-np.sum(y_ * np.log(softmax(y)), axis=1), keepdims=True)
__global__ void matrix_softmax_cross_entropy_kernel(int nrow, int ncol,
... | a582ba953948270e1fe37e1ac27f4a9c5263523f.cu | #include "gpu_runtime.h"
// y = inputs[0], y_ = inputs[1]
// np.mean(-np.sum(y_ * np.log(softmax(y)), axis=1), keepdims=True)
__global__ void matrix_softmax_cross_entropy_kernel(int nrow, int ncol,
const float *input_a,
... |
bc8c7b2d669a296bd70256c523683e0718402a89.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "sssp_with_aux.cuh"
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <algorithm>
#define MAX_INT 2147483647
struct input_line {
int src, dst;
};
//From StackOverflow
int64_t timespecDiff(struct timespec... | bc8c7b2d669a296bd70256c523683e0718402a89.cu | #include "sssp_with_aux.cuh"
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <algorithm>
#define MAX_INT 2147483647
struct input_line {
int src, dst;
};
//From StackOverflow
int64_t timespecDiff(struct timespec *timeA_p, struct timespec *timeB_p)
{
return ((timeA_p->tv_sec * 1000000000) + timeA_... |
cac3e7ce2376af7a30cf1bc11d6c95779989831c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "THHUNN.h"
struct MaxFloat
{
__device__ __forceinline__ float operator()(float max, float v) const
{
return fmaxf(max, v);
}
};
struct SumFloat
{
__device__ __forceinline__ float operator()(float sum, float v)... | cac3e7ce2376af7a30cf1bc11d6c95779989831c.cu | #include "THCUNN.h"
struct MaxFloat
{
__device__ __forceinline__ float operator()(float max, float v) const
{
return fmaxf(max, v);
}
};
struct SumFloat
{
__device__ __forceinline__ float operator()(float sum, float v) const
{
return sum + v;
}
};
struct SumExpFloat
{
__device__ __forceinline__... |
a20d947166568faf5b328b09693c013825b83e7f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "pbf_predict.h"
#include "../../util/pbf_cuda_util.h"
#include "../../interaction/cuda/pbf_grid.h"
#include <thrust/device_vector.h>
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include <device_launch_parameters... | a20d947166568faf5b328b09693c013825b83e7f.cu | #include "pbf_predict.h"
#include "../../util/pbf_cuda_util.h"
#include "../../interaction/cuda/pbf_grid.h"
#include <thrust/device_vector.h>
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include <device_launch_parameters.h>
namespace pbf {
namespace cuda {
namespace {
// updated = a + b * c
__global__ vo... |
7fd7c036baeed6d802b229fce1061ce440280ab5.hip | // !!! This is a file automatically generated by hipify!!!
#define USE_MNIST_LOADER
#define MNIST_DOUBLE
#include "mnist.h"
#include "layer.h"
#include <hip/hip_runtime.h>
#include <cstdio>
#include <time.h>
static mnist_data *train_set, *test_set;
static unsigned int train_cnt, test_cnt;
// Define layers of CNN
sta... | 7fd7c036baeed6d802b229fce1061ce440280ab5.cu | #define USE_MNIST_LOADER
#define MNIST_DOUBLE
#include "mnist.h"
#include "layer.h"
#include <cuda.h>
#include <cstdio>
#include <time.h>
static mnist_data *train_set, *test_set;
static unsigned int train_cnt, test_cnt;
// Define layers of CNN
static Layer l_input = Layer(0, 0, 28, 0, 1);
static Layer l_conv1 = Laye... |
f6d1ecdd79cf3d1d89889635eb9b023df4704275.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "ScanHost.cu.h"
template<class OP, class T>
int testGeneric( unsigned int num_threads,
unsigned int block_size,
T* h_i... | f6d1ecdd79cf3d1d89889635eb9b023df4704275.cu | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "ScanHost.cu.h"
template<class OP, class T>
int testGeneric( unsigned int num_threads,
unsigned int block_size,
T* h_in,
int* flags_h,
... |
c9e7265def6778532f1263d64a20f73e0ef8dac5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// RUN: %clang_cc1 -no-opaque-pointers -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \
// RUN: -emit-llvm -o - %s | FileCheck %s
#include "Inputs/cuda.h"
// CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(%struct.A* noundef... | c9e7265def6778532f1263d64a20f73e0ef8dac5.cu | // RUN: %clang_cc1 -no-opaque-pointers -fcuda-is-device -triple amdgcn-amd-amdhsa -target-cpu gfx906 \
// RUN: -emit-llvm -o - %s | FileCheck %s
#include "Inputs/cuda.h"
// CHECK-LABEL: define {{.*}}@_ZN1AC2Ev(%struct.A* noundef nonnull align 8 dereferenceable(8) %this)
// CHECK: store %struct.A* %this, %struct.A**... |
c49d7f31f18a7464eb54117a3f0ed74d9f24e4b9.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "common.h"
#include "radix.h"
#include "efficient.h"
namespace StreamCompaction {
namespace Radix {
int* dev_tempData;
int* dev_inputData;
int* dev_boolData;
... | c49d7f31f18a7464eb54117a3f0ed74d9f24e4b9.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include "common.h"
#include "radix.h"
#include "efficient.h"
namespace StreamCompaction {
namespace Radix {
int* dev_tempData;
int* dev_inputData;
int* dev_boolData;
int* dev_notBoolData;
int* dev_scanData;
int* dev_output... |
fa3d266168f57f595dbd9fdece3ec6eaec341a11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//Based on the work of Andrew Krepps
#include <iostream>
#include <random>
#include <chrono>
#include <stdio.h>
__constant__ static const int VAL_A = 1;
__constant__ static const int VAL_B = 3;
enum gpu_tests_enum
{
GLOBAL,
... | fa3d266168f57f595dbd9fdece3ec6eaec341a11.cu | //Based on the work of Andrew Krepps
#include <iostream>
#include <random>
#include <chrono>
#include <stdio.h>
__constant__ static const int VAL_A = 1;
__constant__ static const int VAL_B = 3;
enum gpu_tests_enum
{
GLOBAL,
SHARED,
CONSTANT,
REGISTER,
STREAM,
NUM_GPU_TESTS
};
gpu_tests_enum& ... |
67eae237f22ed609285a113b17d2703fb929313d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/lrn_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Ftype>
__global__ void LRNFillScale(const int nthreads, const Ftype* const in,
const int nu... | 67eae237f22ed609285a113b17d2703fb929313d.cu | #include <vector>
#include "caffe/layers/lrn_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Ftype>
__global__ void LRNFillScale(const int nthreads, const Ftype* const in,
const int num, const int channels, const int height,
const int width, const int size, const floa... |
8a84f56cb77e1b1b81dfc6010d98d3f0210cfac4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <numeric>
#include <vector>
#include <complex>
#include <random>
#include <cstdlib>
#include <cstdio>
#include <hipfft.h>
#include <cufftMp.h>
#include <mpi.h>
#include <nvshmem.h>
#include "../common/error_checks.hpp"
#in... | 8a84f56cb77e1b1b81dfc6010d98d3f0210cfac4.cu | #include <numeric>
#include <vector>
#include <complex>
#include <random>
#include <cstdlib>
#include <cstdio>
#include <cufft.h>
#include <cufftMp.h>
#include <mpi.h>
#include <nvshmem.h>
#include "../common/error_checks.hpp"
#include "../common/scaling.cuh"
#include "../common/generate_random.hpp"
#include "../itera... |
fc0c78decf5fae97a7dfaea7a326255c5f0664c8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <torch/extension.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include "box_convolution.h" // for `enum class Parameter`
#define BLOCK_SIZE 256
#define NUM_THREADS 1024
using std::min;
using std::max;
names... | fc0c78decf5fae97a7dfaea7a326255c5f0664c8.cu | #include <torch/extension.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include "box_convolution.h" // for `enum class Parameter`
#define BLOCK_SIZE 256
#define NUM_THREADS 1024
using std::min;
using std::max;
namespace gpu {
template <typename T, size_t N>
using CudaAcsr = const at::PackedTensorAcc... |
31eb36854f0a9a53149f7303619d1e72ba1a2ffd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//Accelerated Computing for Deep Learning
#include <stdio.h>
#define N 64
__global__ void matrixMulGPU( int * a, int * b, int * c )
{
int val = 0;
int row = blockIdx.x * blockDim.x + threadIdx.x;//Build out the kernel.
int ... | 31eb36854f0a9a53149f7303619d1e72ba1a2ffd.cu | //Accelerated Computing for Deep Learning
#include <stdio.h>
#define N 64
__global__ void matrixMulGPU( int * a, int * b, int * c )
{
int val = 0;
int row = blockIdx.x * blockDim.x + threadIdx.x;//Build out the kernel.
int col = blockIdx.y * blockDim.y + threadIdx.y;
if (row < N && col < N)
{
for ( in... |
7196bb9ebbe65450f699057d117a6b370ae88948.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/layers/flow_warp_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/benchmark.hpp"
#include <iostream>
#include <fstream>
#define CUDART_NAN_F ... | 7196bb9ebbe65450f699057d117a6b370ae88948.cu | #include <vector>
#include "caffe/layer.hpp"
#include "caffe/layers/flow_warp_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/benchmark.hpp"
#include <iostream>
#include <fstream>
#define CUDART_NAN_F __int_as_float(0x7fffffff)
namespace caffe {
#define min(a,b) ((a<b)?(a):(b))... |
6fad27dc26c9f3d6b6a2f449d66b30761d4faec9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2011 Kerem KAT
//
// http://dissipatedheat.com/
// Do not hesisate to contact me about usage of the code or to make comments
// about the code. Your feedback will be appreciated.
// keremkat<@>gmail<.>com
//
// K... | 6fad27dc26c9f3d6b6a2f449d66b30761d4faec9.cu | // Copyright (c) 2011 Kerem KAT
//
// http://dissipatedheat.com/
// Do not hesisate to contact me about usage of the code or to make comments
// about the code. Your feedback will be appreciated.
// keremkat<@>gmail<.>com
//
// Kodun kullanımı hakkında veya yorum yapmak için benimle iletişim kurmaktan
// çekinmeyini... |
f1225cb84bf85896cf535110e1c6127acf83f404.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
#include<time.h>
#include<cuda.h>
#include<string.h>
__global__
void multiplicationKernell(float* m1, float* m2, float* m3, int rowsM1, int colsM2)
{
int Row = blockIdx.y ... | f1225cb84bf85896cf535110e1c6127acf83f404.cu | #include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
#include<time.h>
#include<cuda.h>
#include<string.h>
__global__
void multiplicationKernell(float* m1, float* m2, float* m3, int rowsM1, int colsM2)
{
int Row = blockIdx.y * blockDim.y + threadIdx.y;
int Col = blockIdx.x * blockDim.x + threadIdx.x;
if... |
965250f1095635509372be80856e7cea8689c975.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org... | 965250f1095635509372be80856e7cea8689c975.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
d1f84673e7413fc1486788098d57a07f2f83808a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include "matvec.h"
#include "matrixlib.h"
#include <helper_cuda.h>
#define BLOCK_SIZE 16
#define NUM_BLOCKS 16
int main(int argc, char **argv)
{
int m, n;
double *h_A, *d_A, *h_v, *d_... | d1f84673e7413fc1486788098d57a07f2f83808a.cu | #include <stdio.h>
#include <stdlib.h>
#include "matvec.h"
#include "matrixlib.h"
#include <helper_cuda.h>
#define BLOCK_SIZE 16
#define NUM_BLOCKS 16
int main(int argc, char **argv)
{
int m, n;
double *h_A, *d_A, *h_v, *d_v, *h_w, *d_w;
// Fetch command line parameters, otherwise use default
if (argc... |
d1682921b1413bc6e3648767ec1b5928cca387e3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright 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... | d1682921b1413bc6e3648767ec1b5928cca387e3.cu | /**
* Copyright 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 doc... |
8ec35c618c240e34533c4d737e7e0285b4e2ddc7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// This example demonstrates parallel floating point vector
// addition with a simple __global__ function.
#include <stdlib.h>
#include <stdio.h>
// this kernel computes the vector sum c = a + b
// each thread performs one pair-w... | 8ec35c618c240e34533c4d737e7e0285b4e2ddc7.cu | // This example demonstrates parallel floating point vector
// addition with a simple __global__ function.
#include <stdlib.h>
#include <stdio.h>
// this kernel computes the vector sum c = a + b
// each thread performs one pair-wise addition
__global__ void vector_add(const float *a,
const... |
c6d2c9dd5b7afb226db31fc6ac29b21ba7450daa.hip | // !!! This is a file automatically generated by hipify!!!
/*****************************************************************************************************
*
* main.cu
*
*****************************************************************************************************/
#include <stdio.h>
#include "suppor... | c6d2c9dd5b7afb226db31fc6ac29b21ba7450daa.cu | /*****************************************************************************************************
*
* main.cu
*
*****************************************************************************************************/
#include <stdio.h>
#include "support.h"
int main(int argc, char* argv[])
{
Timer timer;
//... |
0f4474be893f3e1c5486d679b69c39d94b10cff4.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/TensorUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <THH/THHTensorMathReduce.cuh>
#include <THH/THHTensorSort.cuh>
#include ... | 0f4474be893f3e1c5486d679b69c39d94b10cff4.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/TensorUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <THC/THCTensorMathReduce.cuh>
#include <THC/THCTensorSort.cuh>
#include <THC/THCThrustAllocator.cuh>
#include <c10/macros/Macros.h>
#include <ATen/Accumulate... |
898f84786df4c6cb590b332f83374b15d690cdfd.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <chrono>
#include <hip/hip_runtime.h>
#include "kernels.hip"
const int HIGHEST = 3;
const int ITER = 100;
const int WORKLOAD = 1;
int sizepernode;
// glob... | 898f84786df4c6cb590b332f83374b15d690cdfd.cu | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include <chrono>
#include <hip/hip_runtime.h>
#include "kernels.cu"
const int HIGHEST = 3;
const int ITER = 100;
const int WORKLOAD = 1;
int sizepernode;
// global var
float preScore = -99999999999.f;
float score = 0.f;
f... |
3da5dacc0df61659d0b07d776379c176abd8f8ef.hip | // !!! This is a file automatically generated by hipify!!!
//This program is written by Abubakr Shafique (abubakr.shafique@gmail.com)
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "CUDA_Histogram.h"
__global__ void Histogram_CUDA(unsigned char* Image, int* Histogram);
void Histogram_Cal... | 3da5dacc0df61659d0b07d776379c176abd8f8ef.cu | //This program is written by Abubakr Shafique (abubakr.shafique@gmail.com)
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "CUDA_Histogram.h"
__global__ void Histogram_CUDA(unsigned char* Image, int* Histogram);
void Histogram_Calculation_CUDA(unsigned char* Image, int Height, int Width, int... |
61b2dbee7e3ab948d7f2987512ceffb7b53672c3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you... | 61b2dbee7e3ab948d7f2987512ceffb7b53672c3.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, insta... |
78a835d364fff31f981104f0906e71d2f08b8e22.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <string>
#include <cassert>
#include <iostream>
#include <cstddef>
using namespace std;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned char uchar;
#define CSC(call) do { \... | 78a835d364fff31f981104f0906e71d2f08b8e22.cu | #include <cstdio>
#include <string>
#include <cassert>
#include <iostream>
#include <cstddef>
using namespace std;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned char uchar;
#define CSC(call) do { \
cudaError_t res = call; \
if (res != cudaSuccess) { \
fprintf(stderr, "CUDA Error i... |
8204ef542333b4b61099bf0adae021e3adda96ba.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Fabio D'Isidoro, ETH Zurich, 08.08.2017
*
* Implementation of a CUDA-based Cpp library for fast DRR generation with GPU acceleration
*
* Based both on the description found in the Improved Algorithm section in Jacobs paper (1998)
* https://www.researchgat... | 8204ef542333b4b61099bf0adae021e3adda96ba.cu | /**
* Fabio D'Isidoro, ETH Zurich, 08.08.2017
*
* Implementation of a CUDA-based Cpp library for fast DRR generation with GPU acceleration
*
* Based both on the description found in the �Improved Algorithm� section in Jacob�s paper (1998)
* https://www.researchgate.net/publication/2344985_A_Fast_Algorithm_to_Calculate_... |
74bab8de73798ee5c01c0c6e8d2200ae14c65e24.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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.o... | 74bab8de73798ee5c01c0c6e8d2200ae14c65e24.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... |
0eb0fb9c584d44a2b16d1c8a66aec3164e0d1557.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ProjHelperFun.h"
#include "Constants.h"
#include "TridagPar.h"
#include "../include/CudaUtilProj.cu.h"
#define EPSILON 0.01
#define VALIDATION
#define T 32
//{{{KERNELS
__global__ void
d_initTimeline( REAL* d_timeline, ... | 0eb0fb9c584d44a2b16d1c8a66aec3164e0d1557.cu | #include "ProjHelperFun.h"
#include "Constants.h"
#include "TridagPar.h"
#include "../include/CudaUtilProj.cu.h"
#define EPSILON 0.01
#define VALIDATION
#define T 32
//{{{KERNELS
__global__ void
d_initTimeline( REAL* d_timeline, const unsigned int numT, const REAL t){
const unsigned int gid = blockIdx.x*blockDim... |
00a02b4b9b662b23fe2865a376d7113dcf84e62e.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 "__extractmat.cu"
#include<chrono>
#include<iostream>
using names... | 00a02b4b9b662b23fe2865a376d7113dcf84e62e.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 "__extractmat.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,... |
934a267453f7bbf89f940901ab57cddfd12b5af7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
#include <cmath>
#include "AD.cuh"
#if defined (__HIPCC__)
#define KERNEL_ARGS2(grid,hipLaunchKernelGGL(( block)) , dim3(grid), dim3(block) , 0, 0,
#define KERNEL_ARGS3g... | 934a267453f7bbf89f940901ab57cddfd12b5af7.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
#include <cmath>
#include "AD.cuh"
#if defined (__CUDACC__)
#define KERNEL_ARGS2(grid, block) <<< grid, block >>>
#define KERNEL_ARGS3(grid, block, sh_mem) <<< grid, block, sh_mem >>>
#define KERNEL_ARGS4(grid, block, sh_mem, stream)... |
51891e00c8c46b5e5a1ef66975622a564f9c6dca.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,... | 51891e00c8c46b5e5a1ef66975622a564f9c6dca.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... |
e0671523ccd4d96bc7627b8fc95e5c18532e3d58.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2020 NVIDIA Corporation.
* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... | e0671523ccd4d96bc7627b8fc95e5c18532e3d58.cu | /*
* Copyright (c) 2020 NVIDIA Corporation.
* Copyright (c) Chris Choy (chrischoy@ai.stanford.edu).
*
* 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 with... |
4772c1006f981a623b61304da3eff202261caa84.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "find_ellipse_kernel.h"
#include <cutil.h>
#include <stdio.h>
// The number of sample points in each ellipse (stencil)
#define NPOINTS 150
// The maximum radius of a sample ellipse
#define MAX_RAD 20
// The total number o... | 4772c1006f981a623b61304da3eff202261caa84.cu | #include "find_ellipse_kernel.h"
#include <cutil.h>
#include <stdio.h>
// The number of sample points in each ellipse (stencil)
#define NPOINTS 150
// The maximum radius of a sample ellipse
#define MAX_RAD 20
// The total number of sample ellipses
#define NCIRCLES 7
// The size of the structuring element used in dila... |
33e67abf6f7ca8bcf29665da623c74634087171e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Implements the math functions for GPU.
#include "caffe2/utils/math.h"
#include <limits>
#include <numeric>
#include <vector>
#include <hipcub/hipcub.hpp>
#include <hipcub/hipcub.hpp>
#include "caffe2/core/context_gpu.h"
#incl... | 33e67abf6f7ca8bcf29665da623c74634087171e.cu | // Implements the math functions for GPU.
#include "caffe2/utils/math.h"
#include <limits>
#include <numeric>
#include <vector>
#include <cub/block/block_reduce.cuh>
#include <cub/cub.cuh>
#include "caffe2/core/context_gpu.h"
#include "caffe2/utils/conversions.h"
#if THRUST_VERSION >= 100800
#define THRUST_SUPPORT... |
125c71c3f77fff7609a60af5957529149621d81d.hip | // !!! This is a file automatically generated by hipify!!!
#include <algorithm>
#include <fstream>
#include <cmath>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <cusp/io/matrix_market.h>
#include <cusp/csr_matrix.h>
#include <cusp/multiply.h>
#include <cusp/blas.h>
#include <timer.h>
#include "hips... | 125c71c3f77fff7609a60af5957529149621d81d.cu | #include <algorithm>
#include <fstream>
#include <cmath>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <cusp/io/matrix_market.h>
#include <cusp/csr_matrix.h>
#include <cusp/multiply.h>
#include <cusp/blas.h>
#include <timer.h>
#include "cusparse.h"
// ----------------------------------------------... |
8b8d2689c863653da3072cdb3ca15f3ef4121daa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "depthwise_conv_op.hpp"
namespace Shadow {
namespace Vision {
#if defined(USE_ROCM)
template <typename T>
__global__ void KernelDepthwiseConv(const T *in_data, int count,
const T *weig... | 8b8d2689c863653da3072cdb3ca15f3ef4121daa.cu | #include "depthwise_conv_op.hpp"
namespace Shadow {
namespace Vision {
#if defined(USE_CUDA)
template <typename T>
__global__ void KernelDepthwiseConv(const T *in_data, int count,
const T *weight_data, const T *bias_data,
int in_c, int in_h, int... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.