hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
409877774841ac4126cdd55835e2f4ee228cfc77.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#define INF... | 409877774841ac4126cdd55835e2f4ee228cfc77.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#define INF 9999999
#define OFFSET 0
using namespace std;
namespace caffe {
template <typename D... |
8ec5564620e4cc7bcf6472e4685c8681839942b7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "dpCudaOxxxxx.hpp"
#include "errorCheck.hpp"
#define cudaErrChk(ans) { cudaAssert((ans), __FILE__, __LINE__); }
#define BEGIN hipEventRecord(begin, 0);
#define END hipEventRecord(end, 0); hipEventSynchronize(end); hipEventE... | 8ec5564620e4cc7bcf6472e4685c8681839942b7.cu | #include "dpCudaOxxxxx.hpp"
#include "errorCheck.hpp"
#define cudaErrChk(ans) { cudaAssert((ans), __FILE__, __LINE__); }
#define BEGIN cudaEventRecord(begin, 0);
#define END cudaEventRecord(end, 0); cudaEventSynchronize(end); cudaEventElapsedTime(&delTime, begin, end);
__device__ void oxxxxx(double* p, double fmass, ... |
42a8578939fefbc4d830fba788ee88bd0dd80c03.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@generated from sparse/blas/magma_zmconjugate.cu, normal... | 42a8578939fefbc4d830fba788ee88bd0dd80c03.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@generated from sparse/blas/magma_zmconjugate.cu, normal z -> d, Thu Oct 8 23:05:49 2020
@author Hartwig Anzt
*/
#include "magmasparse_... |
96d5e83260b05a418d90255c653d988bffef9104.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//xfail:ASSERTION_ERROR
//--warp-sync=32 --blockDim=32 --gridDim=1 --equality-abstraction --no-inline
__global__ void foo(int * A) {
A[0] = 1;
A[1] = 1;
A[2] = 1;
A[threadIdx.x] = 0;
__assert(A[0] == 1 | A[1] ==... | 96d5e83260b05a418d90255c653d988bffef9104.cu | //xfail:ASSERTION_ERROR
//--warp-sync=32 --blockDim=32 --gridDim=1 --equality-abstraction --no-inline
__global__ void foo(int * A) {
A[0] = 1;
A[1] = 1;
A[2] = 1;
A[threadIdx.x] = 0;
__assert(A[0] == 1 | A[1] == 1 | A[2] == 1);
}
|
e34364da9a696152641ae09d22aa73794301ef5a.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include "../common.h"
int main(int argc, char **argv) {
int dev = 0;
hipSetDevice(dev);
unsigned int isize = 1 << 22;
unsigned int nbytes = isize * sizeof(float);
hipDeviceProp_t deviceProp... | e34364da9a696152641ae09d22aa73794301ef5a.cu | #include <cuda_runtime.h>
#include <stdio.h>
#include "../common.h"
int main(int argc, char **argv) {
int dev = 0;
cudaSetDevice(dev);
unsigned int isize = 1 << 22;
unsigned int nbytes = isize * sizeof(float);
cudaDeviceProp deviceProp;
cudaGetDeviceProperties(&deviceProp, dev);
printf("%... |
1fea4ac792086fcdb4dbfa1b5794d7395f48cba9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <max_pool.cuh>
__global__ void operator_max_pool_h(
const int nthreads, const float* const bottom_data, const int channels,
const int height, const int width, const int pooled_height,
const int pooled_width, co... | 1fea4ac792086fcdb4dbfa1b5794d7395f48cba9.cu | #include <max_pool.cuh>
__global__ void operator_max_pool_h(
const int nthreads, const float* const bottom_data, const int channels,
const int height, const int width, const int pooled_height,
const int pooled_width, const int kernel_h, const int kernel_w,
const int stride_h, const int stride_w, const ... |
5ba552beececa04270bdde3b4a7d7083d7f59f0e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define WIDTH ${width}
#define HEIGHT ${height}
#define NLM_A ${a}
#define NLM_S ${s}
#define NLM_H ((float) (${h} / 79.636080791869483631941455867052))
#define NLM_H2 ((float) (${h2} / 79.636080791869483631941455867052))
#define ... | 5ba552beececa04270bdde3b4a7d7083d7f59f0e.cu | #define WIDTH ${width}
#define HEIGHT ${height}
#define NLM_A ${a}
#define NLM_S ${s}
#define NLM_H ((float) (${h} / 79.636080791869483631941455867052))
#define NLM_H2 ((float) (${h2} / 79.636080791869483631941455867052))
#define GET(pointer, y0, x0) pointer[max(min((y0), HEIGHT-1), 0) * WIDTH + max(min((x0), WIDTH-1... |
d55ccdcb06576d68113deb7b850654a1a9eadb3a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* nvcc -arch=compute_20 -code="sm_20,compute_20" -o smid smid.cu
* ./smid 20
*/
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
//#include <hip/hip_runtime.h>
/* E.D. Riedijk */
__device__ uint get_smid(void) {
uint ret;
asm("mo... | d55ccdcb06576d68113deb7b850654a1a9eadb3a.cu | /*
* nvcc -arch=compute_20 -code="sm_20,compute_20" -o smid smid.cu
* ./smid 20
*/
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
//#include <cuda_runtime.h>
/* E.D. Riedijk */
__device__ uint get_smid(void) {
uint ret;
asm("mov.u32 %0, %smid;" : "=r"(ret) );
return ret;
}
__global__ void kern(in... |
04abf543ca67097864d1d5b525363598cb3dd6b5.hip | // !!! This is a file automatically generated by hipify!!!
/*
Collatz code for CS 4380 / CS 5351
Copyright (c) 2019 Texas State University. All rights reserved.
Redistribution in source or binary form, with or without modification,
is *not* permitted. Use in source and binary forms, with or without
mod... | 04abf543ca67097864d1d5b525363598cb3dd6b5.cu | /*
Collatz code for CS 4380 / CS 5351
Copyright (c) 2019 Texas State University. All rights reserved.
Redistribution in source or binary form, with or without modification,
is *not* permitted. Use in source and binary forms, with or without
modification, is only permitted for academic use in CS 4380 or... |
c5d228d76d09f3e930a0ac0587f24a8018895396.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:... | c5d228d76d09f3e930a0ac0587f24a8018895396.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... |
b88a6c7cd31c178eb6d1eb33bdf85bf115e28072.hip | // !!! This is a file automatically generated by hipify!!!
#include "protonPreconditioner.h"
#include "vector_td_utilities.h"
#include "cuCgSolver.h"
#include "vector_td.h"
#include "cuNDFFT.h"
#include "radial_utilities.h"
#include "cuNFFT.h"
#include "cuNFFTOperator.h"
#include "cuNDArray_math.h"
#include "hoNDArra... | b88a6c7cd31c178eb6d1eb33bdf85bf115e28072.cu | #include "protonPreconditioner.h"
#include "vector_td_utilities.h"
#include "cuCgSolver.h"
#include "vector_td.h"
#include "cuNDFFT.h"
#include "radial_utilities.h"
#include "cuNFFT.h"
#include "cuNFFTOperator.h"
#include "cuNDArray_math.h"
#include "hoNDArray_fileio.h"
#include <thrust/sort.h>
#include <thrust/trans... |
0a1d636461d2d6954509c26418756d8093a34322.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//********************************************************************************************************************************************************//
//*********************************************** Proton CT Preprocessing a... | 0a1d636461d2d6954509c26418756d8093a34322.cu | //********************************************************************************************************************************************************//
//*********************************************** Proton CT Preprocessing and Image Reconstruction Code *************************************************//
//****... |
59e8aa1e222b43fb4762dc4de45c156fd31fd29d.hip | // !!! This is a file automatically generated by hipify!!!
#include "neural_net.h"
void NeuralNet::getComputationTime(void *X, int *y, double learning_rate,
std::vector<float> &fwd_computation_time,
std::vector<float> &bwd_computation_time) {
for ... | 59e8aa1e222b43fb4762dc4de45c156fd31fd29d.cu | #include "neural_net.h"
void NeuralNet::getComputationTime(void *X, int *y, double learning_rate,
std::vector<float> &fwd_computation_time,
std::vector<float> &bwd_computation_time) {
for (int i = 0; i < num_layers; i++) prefetched[i] = false;
... |
2a40ea21bf11be6492d2b2f6acdedbc29607a97d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cudaDefs.h>
#include <limits>
#include <benchmark.h>
#define __PRINT__ cout << __PRETTY_FUNCTION__ << endl
constexpr unsigned int TPB = 512;
constexpr unsigned int NO_BLOCKS = 46;
constexpr unsigned int N = 1 << 20;
... | 2a40ea21bf11be6492d2b2f6acdedbc29607a97d.cu | #include <cudaDefs.h>
#include <limits>
#include <benchmark.h>
#define __PRINT__ cout << __PRETTY_FUNCTION__ << endl
constexpr unsigned int TPB = 512;
constexpr unsigned int NO_BLOCKS = 46;
constexpr unsigned int N = 1 << 20;
constexpr int numberOfPasses = 1;
cudaError_t error = cudaSuccess;
cudaDeviceProp devic... |
e9706cbd49eec8e23d5377c154d3448325947063.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include "exclusive_scan.h"
void recursiveScan(float *input, float *output, int numInputs) {
const int scanGridSize = (numInputs + BLOCK_SIZE - 1) / BLOCK_SIZE;
if (scanGridSize == 1)... | e9706cbd49eec8e23d5377c154d3448325947063.cu | #include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include "exclusive_scan.h"
void recursiveScan(float *input, float *output, int numInputs) {
const int scanGridSize = (numInputs + BLOCK_SIZE - 1) / BLOCK_SIZE;
if (scanGridSize == 1) {
exclusiveScan<<<scanGridSize, BLOCK_SIZE, BLOCK_SIZ... |
f639e1218c1f89a23c5241a0554992ed874156d3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int are_vectors_equal(int* a, int* b, int n);
/* The old-fashioned CPU-only way to add two vectors */
void add_vectors_host(int *result, int *a, int *b, int n) {
for (in... | f639e1218c1f89a23c5241a0554992ed874156d3.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int are_vectors_equal(int* a, int* b, int n);
/* The old-fashioned CPU-only way to add two vectors */
void add_vectors_host(int *result, int *a, int *b, int n) {
for (int i=0; i<n; i++)
result[i] = a[i] + b[i];
}
/* The kernel that will execute on ... |
52c2f9be6287ff9962a66f18335bf532ef252edf.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 "ComputeDistanceKernel.cu"
#include<chrono>
#include<iostream>
us... | 52c2f9be6287ff9962a66f18335bf532ef252edf.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 "ComputeDistanceKernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16... |
9b3941b524930dd751946f989fa15f41d7799443.hip | // !!! This is a file automatically generated by hipify!!!
#include "./c_runtime_api.h"
#include <cassert>
#include <cstdio>
#include <rocblas.h>
#include <hip/hip_runtime.h>
#include <stdio.h>
#define THREADS_PER_BLOCK 512
/* TODO: Your code here */
/* all your GPU kernel code, e.g. matrix_softmax_cross_entropy_kern... | 9b3941b524930dd751946f989fa15f41d7799443.cu | #include "./c_runtime_api.h"
#include <cassert>
#include <cstdio>
#include <cublas_v2.h>
#include <cuda_runtime.h>
#include <stdio.h>
#define THREADS_PER_BLOCK 512
/* TODO: Your code here */
/* all your GPU kernel code, e.g. matrix_softmax_cross_entropy_kernel */
// y = inputs[0], y_ = inputs[1]
// np.mean(-np.sum(y... |
5f172721542be0848d1cf92dce9e7574f5874e48.hip | // !!! This is a file automatically generated by hipify!!!
#include "target_fn.h"
#include <hip/hip_runtime_api.h>
#include "../cpu/MatrixCover.h"
#include "../gpu-mg/MatrixCoverGPU.cuh"
// #include "../gpu/MatrixCoverGPU.cuh"
#define THRESHOLD 100
MeasureTimer Invoke_ORIGINAL_CPU(DataSet *dataset, bool print_resul... | 5f172721542be0848d1cf92dce9e7574f5874e48.cu | #include "target_fn.h"
#include <cuda_profiler_api.h>
#include "../cpu/MatrixCover.h"
#include "../gpu-mg/MatrixCoverGPU.cuh"
// #include "../gpu/MatrixCoverGPU.cuh"
#define THRESHOLD 100
MeasureTimer Invoke_ORIGINAL_CPU(DataSet *dataset, bool print_result) {
MeasureTimer timer;
int total_col = dataset->total_... |
adam.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBA... | adam.cu | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2016, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
0848e6dd4235c8290e25992a5ebf20e0adb53ebf.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Context.h>
#include <ATen/hip/HIPContext.h>
#include <c10/util/Exception.h>
#include <ATen/hip/Exceptions.h>
#include <ATen/native/sparse/hip/SparseHIPBlas.cuh>
#include <TH/THGeneral.h>
#include <hipsparse.h>
#if !defined(CUSPARSE_VERSION) ||... | 0848e6dd4235c8290e25992a5ebf20e0adb53ebf.cu | #include <ATen/Context.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/util/Exception.h>
#include <ATen/cuda/Exceptions.h>
#include <ATen/native/sparse/cuda/SparseCUDABlas.cuh>
#include <TH/THGeneral.h>
#include <cusparse.h>
#if !defined(CUSPARSE_VERSION) || (CUSPARSE_VERSION < 10200)
const char* cusparseGetErro... |
3f9af886614eac5cf0a87aedddf555c292e1b62c.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/device_vector.h>
#include <xgboost/base.h>
#include "../../../src/common/device_helpers.cuh"
#include "../../../src/common/quantile.h"
#include "../helpers.h"
#include "gtest/gtest.h"
TEST(SumRedu... | 3f9af886614eac5cf0a87aedddf555c292e1b62c.cu | /*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/device_vector.h>
#include <xgboost/base.h>
#include "../../../src/common/device_helpers.cuh"
#include "../../../src/common/quantile.h"
#include "../helpers.h"
#include "gtest/gtest.h"
TEST(SumReduce, Test) {
thrust::device_vector<float> data(100, 1.0f);... |
a2c3e80e516ef5bb769d409c93539eb9a37c9751.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.py
//
//user function
__device__ void gatherLocations_gpu( const float *values, const float *zmin, float *dest) {
dest[0] = values[0] + (values[3] - values[0] + *zmin);
dest[1] = values[0];
dest[2]... | a2c3e80e516ef5bb769d409c93539eb9a37c9751.cu | //
// auto-generated by op2.py
//
//user function
__device__ void gatherLocations_gpu( const float *values, const float *zmin, float *dest) {
dest[0] = values[0] + (values[3] - values[0] + *zmin);
dest[1] = values[0];
dest[2] = values[1]/values[0];
dest[3] = values[2]/values[0];
dest[4] = values[3];
}
// C... |
e3b27801d5cfbf41e0d196c91f49d242b2ab64bf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hist.cuh"
#include "hist_2_one_byte_base.cuh"
#include "tuning_policy_enums.cuh"
#include "compute_hist_loop_one_stat.cuh"
#include <hip/hip_cooperative_groups.h>
#include <library/cuda/wrappers/arch.cuh>
#include <catboo... | e3b27801d5cfbf41e0d196c91f49d242b2ab64bf.cu | #include "hist.cuh"
#include "hist_2_one_byte_base.cuh"
#include "tuning_policy_enums.cuh"
#include "compute_hist_loop_one_stat.cuh"
#include <cooperative_groups.h>
#include <library/cuda/wrappers/arch.cuh>
#include <catboost/cuda/cuda_util/kernel/instructions.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_helpe... |
a023d17ec9b4fe411f3ec13c59a75496e0fbc799.hip | // !!! This is a file automatically generated by hipify!!!
// @file nnconv_cudnn.cu
// @brief Convolution block CuDNN-based implementation.
// @author Andrea Vedaldi
/*
Copyright (C) 2015-16 Andrea Vedaldi.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD l... | a023d17ec9b4fe411f3ec13c59a75496e0fbc799.cu | // @file nnconv_cudnn.cu
// @brief Convolution block CuDNN-based implementation.
// @author Andrea Vedaldi
/*
Copyright (C) 2015-16 Andrea Vedaldi.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#if !defined(ENABLE_GPU)... |
67e1e1ea5e8fe71d01b180638e19bc3015deb72e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Tools.hpp"
__global__ static void newtonAnimation(uchar4* ptrDevPixels, int w, int h, DomaineMaths domainNew);
__device__ static int newton(float x, float y);
void launchNewtonAnimation(uchar4* ptrDevPixels, int w, int ... | 67e1e1ea5e8fe71d01b180638e19bc3015deb72e.cu | #include "Tools.hpp"
__global__ static void newtonAnimation(uchar4* ptrDevPixels, int w, int h, DomaineMaths domainNew);
__device__ static int newton(float x, float y);
void launchNewtonAnimation(uchar4* ptrDevPixels, int w, int h, const DomaineMaths& domainNew){
dim3 blockPerGrid = dim3(32, 16, 1);
dim3 thr... |
cb34e109c5bd46315b19320943c4c6848efac029.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
by Didem Unat
3D 7-point jacobi
Written to be used as an input program to mint translator
See the alloc2D function, which allocates contiguous memory space to
the array.
*/
//#include "common.h"
#include <... | cb34e109c5bd46315b19320943c4c6848efac029.cu | /*
by Didem Unat
3D 7-point jacobi
Written to be used as an input program to mint translator
See the alloc2D function, which allocates contiguous memory space to
the array.
*/
//#include "common.h"
#include <stdio.h>
#include <math.h>
//#include <omp.h>
#include <stdlib.h>
#include <assert.h>
#i... |
e00331e4ef978d3370696cc62a5c61d5cb786f34.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "im2col.hpp"
#define SHMEM_SIZE 32
__global__ void matrixMul(const float *A,const float *B, float *C, int m, int n, int k, int batch_size) {
// Compute each thread's global row and column index
int row = blockIdx.y ... | e00331e4ef978d3370696cc62a5c61d5cb786f34.cu | #include "im2col.hpp"
#define SHMEM_SIZE 32
__global__ void matrixMul(const float *A,const float *B, float *C, int m, int n, int k, int batch_size) {
// Compute each thread's global row and column index
int row = blockIdx.y * blockDim.y + threadIdx.y;
int col = blockIdx.x * blockDim.x + threadIdx.x;
//... |
3fdf3b3aa81cb6cd53a01d9947a36cbe1c11d16a.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/native/TensorIterator.h>
#include <ATen/native/quantized/affine_quantizer.h>
#include <math.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/native/hip/Loops.cuh>
namespace at {
namespace native {
namespace {
void quantize_tensor_per_ten... | 3fdf3b3aa81cb6cd53a01d9947a36cbe1c11d16a.cu | #include <ATen/native/TensorIterator.h>
#include <ATen/native/quantized/affine_quantizer.h>
#include <math.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/native/cuda/Loops.cuh>
namespace at {
namespace native {
namespace {
void quantize_tensor_per_tensor_affine_cuda(
const Tensor& rtensor,
Tensor& ... |
2e16c37ab410b57a9b0cf61de9e4c4e3126b4196.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,... | 2e16c37ab410b57a9b0cf61de9e4c4e3126b4196.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... |
e415c4abb1d0a7e2041376c69304ccb65b5c0ad6.hip | // !!! This is a file automatically generated by hipify!!!
#include "common_header.h"
cudaReturnValue cublasDgemmWrapper(
hipblasOperation_t transa, hipblasOperation_t transb,
int m, int n, int k,
const double* alpha,
const double* A, int lda,
const double* B, int ldb,
const double* beta,
d... | e415c4abb1d0a7e2041376c69304ccb65b5c0ad6.cu | #include "common_header.h"
cudaReturnValue cublasDgemmWrapper(
cublasOperation_t transa, cublasOperation_t transb,
int m, int n, int k,
const double* alpha,
const double* A, int lda,
const double* B, int ldb,
const double* beta,
double* C, int ldc) {
double* dev_A = 0;
const int de... |
a4a9fe0c3933d04c9f15c0b9166f37f26aae667f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <faiss/gpu/utils/DeviceUtils.h>
#include <faiss/gpu/utils/StaticUtils.h>
#include <faiss/impl/FaissAssert.h>
#include <faiss/gpu/impl/KmBurstAve4d.cuh>
#include <faiss/gpu/utils/ConversionOperators.cuh>
#include <faiss/gpu... | a4a9fe0c3933d04c9f15c0b9166f37f26aae667f.cu |
#include <faiss/gpu/utils/DeviceUtils.h>
#include <faiss/gpu/utils/StaticUtils.h>
#include <faiss/impl/FaissAssert.h>
#include <faiss/gpu/impl/KmBurstAve4d.cuh>
#include <faiss/gpu/utils/ConversionOperators.cuh>
#include <faiss/gpu/utils/DeviceDefs.cuh>
#include <faiss/gpu/utils/Float16.cuh>
#include <faiss/gpu/utils/... |
106c47d066281273d2e9a33baeb3dd17335a0ed3.hip | // !!! This is a file automatically generated by hipify!!!
/*
* This expermental software is provided AS IS.
* Feel free to use/modify/distribute,
* If used, please retain this disclaimer and cite
* "GPUfs: Integrating a file system with GPUs",
* M Silberstein,B Ford,I Keidar,E Witchel
* ASPLOS13, March 2013, Hous... | 106c47d066281273d2e9a33baeb3dd17335a0ed3.cu | /*
* This expermental software is provided AS IS.
* Feel free to use/modify/distribute,
* If used, please retain this disclaimer and cite
* "GPUfs: Integrating a file system with GPUs",
* M Silberstein,B Ford,I Keidar,E Witchel
* ASPLOS13, March 2013, Houston,USA
*/
#include <cuda.h>
#include <cuda_runtime.h>
#in... |
823f702f433f5db6370d563a62ca4285bcf6e8ad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "scalar.h"
//scalar and current element
__device__ double op(double d1,double d2,double *params) {
if(d2 < d1) {
return d1;
}
return d2;
}
extern "C"
__global__ void setvalorless_scalar_double(int n, i... | 823f702f433f5db6370d563a62ca4285bcf6e8ad.cu | #include "scalar.h"
//scalar and current element
__device__ double op(double d1,double d2,double *params) {
if(d2 < d1) {
return d1;
}
return d2;
}
extern "C"
__global__ void setvalorless_scalar_double(int n, int idx,double dx,double *dy,int incx,double *params,double *result) {
transform(n... |
51c5e9ae668dde61faf950d080ea2c3df0759ae3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 51c5e9ae668dde61faf950d080ea2c3df0759ae3.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... |
f102da3da30b80c917d9be095ec4a0fcbf21f53f.hip | // !!! This is a file automatically generated by hipify!!!
#include "funset.hpp"
#include <iostream>
#include <hip/hip_runtime.h> // For the CUDA runtime routines (prefixed with "cuda_")
#include <device_launch_parameters.h>
/* reference:
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\1_Utilities\deviceQuery
*/ ... | f102da3da30b80c917d9be095ec4a0fcbf21f53f.cu | #include "funset.hpp"
#include <iostream>
#include <cuda_runtime.h> // For the CUDA runtime routines (prefixed with "cuda_")
#include <device_launch_parameters.h>
/* reference:
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\1_Utilities\deviceQuery
*/
int get_device_info()
{
int device_count{ 0 };
// cudaGetDe... |
935c7e10be9154eb19693c3d70286d17a300d81a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <ctime>
// store data of image
unsigned char *data_rgb_image;
// cuda k... | 935c7e10be9154eb19693c3d70286d17a300d81a.cu | #include <stdio.h>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <ctime>
// store data of image
unsigned char *data_rgb_image;
// cuda kernel
__global__ void RGBtoGrey(unsigned char *rgb, unsigned char *grey, int _row, int _... |
175f7c49bbf8a69b2d7a3539d7b65835e4970705.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
using namespace std;
#include <thrust/reduce.h>
#include <thrust/sequence.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <un... | 175f7c49bbf8a69b2d7a3539d7b65835e4970705.cu | #include <iostream>
using namespace std;
#include <thrust/reduce.h>
#include <thrust/sequence.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <mat... |
956eb475b5a4e5bdd5e42a89dbfe9649a0a35cf7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright (c) 2015 by Contributors
* \file pad.cu
* \brief
* \author Sebastian Bodenstein
*/
#include "./pad-inl.h"
#include "../common/cuda_utils.h"
namespace mshadow {
namespace cuda {
/////////////////////////////////... | 956eb475b5a4e5bdd5e42a89dbfe9649a0a35cf7.cu | /*!
* Copyright (c) 2015 by Contributors
* \file pad.cu
* \brief
* \author Sebastian Bodenstein
*/
#include "./pad-inl.h"
#include "../common/cuda_utils.h"
namespace mshadow {
namespace cuda {
////////////////////////////////////////////////////////////////////////////////
// Special Case: 2d image (so only pad w... |
a42ca7d2a680ccfd3a8d5744d73457aa8a276ccf.hip | // !!! This is a file automatically generated by hipify!!!
/**
* 3mm.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Will Killian <killian@udel.edu>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~p... | a42ca7d2a680ccfd3a8d5744d73457aa8a276ccf.cu | /**
* 3mm.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Will Killian <killian@udel.edu>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <stdio.h>
#incl... |
d925b8603b5c332c7e67fda14dd54057e10744d2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "pairwise_transform.h"
__device__ double op(double d1,double d2,double *params) {
if(d1 < d2) return 1;
else return 0;
}
__device__ double op(double d1,double *params) {
return d1;
}
extern "C"
__global__ void ... | d925b8603b5c332c7e67fda14dd54057e10744d2.cu | #include "pairwise_transform.h"
__device__ double op(double d1,double d2,double *params) {
if(d1 < d2) return 1;
else return 0;
}
__device__ double op(double d1,double *params) {
return d1;
}
extern "C"
__global__ void lt_strided_double(int n,int xOffset,int yOffset, double *dx, double *dy,int incx,int inc... |
7945e0cc2d03c8109eaef61cd79c688748771338.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Graph/Device/cudaGraphBFS.cuh"
#include "Base/Host/fUtil.hpp"
#include "Base/Host/numeric.hpp"
#include "Base/Device/Util/cuda_util.cuh"
using namespace xlib;
namespace graph {
__constant__ _node_t* devF1 = 0;
__consta... | 7945e0cc2d03c8109eaef61cd79c688748771338.cu | #include "Graph/Device/cudaGraphBFS.cuh"
#include "Base/Host/fUtil.hpp"
#include "Base/Host/numeric.hpp"
#include "Base/Device/Util/cuda_util.cuh"
using namespace xlib;
namespace graph {
__constant__ _node_t* devF1 = 0;
__constant__ _node_t* devF2 = 0;
__constant__ _dist_t* devDistance = 0;
__device__ int devF2_si... |
55426937b84e83f044b5d8fe324ed66982297fb1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@precisions mixed zc -> ds
@author Mark Gates
*/... | 55426937b84e83f044b5d8fe324ed66982297fb1.cu | /*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@precisions mixed zc -> ds
@author Mark Gates
*/
#include "common_magma.h"
#define PRECISION_z
#define BLK_X 64
#define BLK_Y 32
/*
... |
7f8419935fc7560b5bf1dfcfd9d2ea533e40676a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdint.h>
#define MASTER 0
void Usage(char* prog_name) {
fprintf(stderr, "usage: %s <thread_count> <n>\n", prog_name);
fprintf(stderr, " ... | 7f8419935fc7560b5bf1dfcfd9d2ea533e40676a.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdint.h>
#define MASTER 0
void Usage(char* prog_name) {
fprintf(stderr, "usage: %s <thread_count> <n>\n", prog_name);
fprintf(stderr, " n is the number of terms and should be >= 1\n");
exit(1);
}
__host__
double seque... |
3f118b3fd16253e83c9811af7401cdb420719d27.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define N 2250
#define T 512
__global__ void vecReverse(int *a, int *b, int *c){
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N){
if (i % 2 == 0){
c[i] = a[i] + b[i];
... | 3f118b3fd16253e83c9811af7401cdb420719d27.cu | #include <stdio.h>
#define N 2250
#define T 512
__global__ void vecReverse(int *a, int *b, int *c){
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N){
if (i % 2 == 0){
c[i] = a[i] + b[i];
}else{
c[i] = a[i] - b[i];
}
}
}
int main(int argc, char *argv... |
9892757f081e0c20818cbea0633483e6f8125103.hip | // !!! This is a file automatically generated by hipify!!!
///////////////////////////////////////
///////////////////////////////// SSSP6
/////////////////////// usando texturas
///////////////////////////////////////
/* CWJ includes */
#include <hip/hip_runtime.h>
#include "comun.cu"
#define gpuErrchk(ans) { gpu... | 9892757f081e0c20818cbea0633483e6f8125103.cu | ///////////////////////////////////////
///////////////////////////////// SSSP6
/////////////////////// usando texturas
///////////////////////////////////////
/* CWJ includes */
#include <cuda.h>
#include "comun.cu"
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
#ifndef _SSSP6_Texture_AllOfAll
... |
f9ba889a8d9beb57fb2c618a968aa419a26df331.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this sou... | f9ba889a8d9beb57fb2c618a968aa419a26df331.cu | /*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
19c1d4b42e3c6b2f973e2db6d0b71fb5704ba33d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
__global__
void p_vec_dist(int dim, float3 p, float3 *vec, float *res){
int index = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDi... | 19c1d4b42e3c6b2f973e2db6d0b71fb5704ba33d.cu | #include <iostream>
#include <cstdlib>
#include <math.h>
using namespace std;
__global__
void p_vec_dist(int dim, float3 p, float3 *vec, float *res){
int index = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDim.x * gridDim.x;
for (int i = index; i < dim; i += stride){
res[i] = (p.x - ... |
b387ff63978c0b48e469da551c4f6e0a42ce3700.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | b387ff63978c0b48e469da551c4f6e0a42ce3700.cu |
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
dfdb8168bb7ab5a77044be9a9ca69b7b6575f8df.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBA... | dfdb8168bb7ab5a77044be9a9ca69b7b6575f8df.cu | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... |
32eca85ff5b5480110ba8a30305c49715642791a.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 "vec_sqrtf.cu"
#include<chrono>
#include<iostream>
using namespac... | 32eca85ff5b5480110ba8a30305c49715642791a.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 "vec_sqrtf.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24}... |
5f846303a5605acb93865b8f30d77087d7afd4a0.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2018-2020, Michael P. Howard
// Copyright (c) 2021, Auburn University
// This file is part of the azplugins project, released under the Modified BSD License.
#include "PairPotentials.cuh"
namespace azplugins
{
namespace gpu
{
//! Kernel driv... | 5f846303a5605acb93865b8f30d77087d7afd4a0.cu | // Copyright (c) 2018-2020, Michael P. Howard
// Copyright (c) 2021, Auburn University
// This file is part of the azplugins project, released under the Modified BSD License.
#include "PairPotentials.cuh"
namespace azplugins
{
namespace gpu
{
//! Kernel driver for Hertz pair potential
template cudaError_t compute_pa... |
2025cb75c91fa6259a0e14e4d6c3b869ca7071bd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lic... | 2025cb75c91fa6259a0e14e4d6c3b869ca7071bd.cu | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
4e9778e8488b1c26f753736de6024ee46c34e81c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "src/cuda/warp_perspective/common.h"
#include "src/cuda/utils.cuh"
#include "src/cuda/warp_perspective/common.cuh"
namespace megdnn {
namespace cuda {
namespace warp_perspective {
const int factor = 4;
template <typenam... | 4e9778e8488b1c26f753736de6024ee46c34e81c.cu | #include "src/cuda/warp_perspective/common.h"
#include "src/cuda/utils.cuh"
#include "src/cuda/warp_perspective/common.cuh"
namespace megdnn {
namespace cuda {
namespace warp_perspective {
const int factor = 4;
template <typename Getter, int factor>
__global__ void warp_perspective_bwd_data_kernel(
const fl... |
500b4b90f28290c603dd3ff5667f5b1c66e220e8.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h> //required for CUDA
#include <hiprand/hiprand_kernel.h>
#include <time.h>
#include <limits.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include <cassert>
#include <stdlib.h>
#include <string>
#include <sstream>
#inc... | 500b4b90f28290c603dd3ff5667f5b1c66e220e8.cu | #include <cuda.h> //required for CUDA
#include <curand_kernel.h>
#include <time.h>
#include <limits.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include <cassert>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
#define MAX_N_TERMS 10
__global__ void MC... |
362627d6e469d6f6720b4963c80e9ffde8f186cd.hip | // !!! This is a file automatically generated by hipify!!!
#include <limits>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/hip/Loops.cuh>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/native/hip/Loops.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/TensorIterator.h>
nam... | 362627d6e469d6f6720b4963c80e9ffde8f186cd.cu | #include <limits>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/TensorIterator.h>
namespace at { namespace native {
void bitwise_not_kernel_c... |
350abf2ed44485475fdf94da5516c4970f1565ec.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ATen/ATen.h"
#include "ATen/TensorUtils.h"
#include "ATen/NativeFunctions.h"
#include "ATen/Error.h"
#include "ATen/AccumulateType.h"
#include "ATen/hip/HIPTensorMethods.cuh"
#include "ATen/hip/HIPTypeConversion.cuh"
#in... | 350abf2ed44485475fdf94da5516c4970f1565ec.cu | #include "ATen/ATen.h"
#include "ATen/TensorUtils.h"
#include "ATen/NativeFunctions.h"
#include "ATen/Error.h"
#include "ATen/AccumulateType.h"
#include "ATen/cuda/CUDATensorMethods.cuh"
#include "ATen/cuda/CUDATypeConversion.cuh"
#include <THC/THCDeviceUtils.cuh>
#include <THC/THCNumerics.cuh>
#include <THC/THCTenso... |
ee6459e665af391f7c8ff1d06e22e6d06c58a442.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All... | ee6459e665af391f7c8ff1d06e22e6d06c58a442.cu | /******************************************************************************
*cr
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*****************************************************************... |
6b3487146d09cb3ee606c889317bb2ef987e86ff.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//2019 Eric Johnson
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "helper_cuda.h"
#include "cuda_computation_common.h"
////////////////////////////////////////////////////////////////////////////////
// GPU... | 6b3487146d09cb3ee606c889317bb2ef987e86ff.cu | //2019 Eric Johnson
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "helper_cuda.h"
#include "cuda_computation_common.h"
////////////////////////////////////////////////////////////////////////////////
// GPU-specific defines
/////////////////////////////////////////////////////////////////////... |
be29a90c2a878fea619590f547958fb1fc4d776e.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include "book.h"
#include "cuda_bridge.h"
#define BLOCK_SIZE 16
__global__ void gpu_square_matrix_mult(int *d_a, int *d_b, int *d_result, int n)
{
__shared__ int tile_a[BLOCK_SIZE][BLOCK_SIZE];
__shar... | be29a90c2a878fea619590f547958fb1fc4d776e.cu | #include <iostream>
#include <cuda_runtime.h>
#include "book.h"
#include "cuda_bridge.h"
#define BLOCK_SIZE 16
__global__ void gpu_square_matrix_mult(int *d_a, int *d_b, int *d_result, int n)
{
__shared__ int tile_a[BLOCK_SIZE][BLOCK_SIZE];
__shared__ int tile_b[BLOCK_SIZE][BLOCK_SIZE];
int row = blockI... |
f0551dc6330c429c7046ff50dc004ce63892d321.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <bits/stdc++.h>
#include <cassert>
#include <thrust/device_vector.h>
#include <thrust/reduce.h>
#include <thrust/copy.h>
#include <thrust/execution_policy.h>
#define to_ptr(x) thrust::raw_pointer_cast(&x[0])
#define gpu_cop... | f0551dc6330c429c7046ff50dc004ce63892d321.cu | #include <bits/stdc++.h>
#include <cassert>
#include <thrust/device_vector.h>
#include <thrust/reduce.h>
#include <thrust/copy.h>
#include <thrust/execution_policy.h>
#define to_ptr(x) thrust::raw_pointer_cast(&x[0])
#define gpu_copy(x, y) thrust::copy((x).begin(), (x).end(), (y).begin())
#define gpu_copy_to(x, y, pos)... |
06a890ac5620623a1133185ea092f49be4eae9e6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#define NUM_ELEM 8
#define NUM_THREADS 10
using namespace std;
__global__ void concurrentRW(int *data) {
// NUM_THREADS try to read and write at same location
// data[blockIdx.x] = data[b... | 06a890ac5620623a1133185ea092f49be4eae9e6.cu | #include <iostream>
#define NUM_ELEM 8
#define NUM_THREADS 10
using namespace std;
__global__ void concurrentRW(int *data) {
// NUM_THREADS try to read and write at same location
// data[blockIdx.x] = data[blockIdx.x] + threadIdx.x;
atomicAdd(&data[blockIdx.x], threadIdx.x);
}
int main(in... |
b6969592e28c5fab49cfff776d7ddc481cbff897.hip | // !!! This is a file automatically generated by hipify!!!
#include "defines.h"
#include "definesCuda.cuh"
#include <string.h>
#include "lib.cuh"
#include <hip/hip_runtime.h>
#include <rocblas.h>
/*
Calculate covariance matriz using double type
*/
__device__ void covarm(const REAL * __restrict__ w,const REAL * __res... | b6969592e28c5fab49cfff776d7ddc481cbff897.cu | #include "defines.h"
#include "definesCuda.cuh"
#include <string.h>
#include "lib.cuh"
#include <cuda_runtime.h>
#include <cublas_v2.h>
/*
Calculate covariance matriz using double type
*/
__device__ void covarm(const REAL * __restrict__ w,const REAL * __restrict__ w_d,const REAL sig,const float * __restrict__ spectr... |
820d40a8ec74449ec67ee58ac7e8807c3b878c59.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "kernel_vecDouble.cu"
#include<chrono>
#include<iostream>
using n... | 820d40a8ec74449ec67ee58ac7e8807c3b878c59.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "kernel_vecDouble.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
45baf5dff67d19215a657f2b5351865aa667c18d.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... | 45baf5dff67d19215a657f2b5351865aa667c18d.cu | /******************************************************************************
*cr
*cr (C) Copyright 2007 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
*****************************************************************... |
02de4d74b3abf9169a262201a975b5db2a777ce4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 02de4d74b3abf9169a262201a975b5db2a777ce4.cu | /* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
78c69e6ac5967a12aa9d27de999774c21617d7ed.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/*
sergeim19
April 27, 2015
Burgers equation - GPU CUDA version
*/
#define NADVANCE (4000)
#define nu (5.0e-2)
__global__ void kernel_rescale_u(double *u_dev, int N)
{
int j;
j = blockIdx.x * blockDim.x + th... | 78c69e6ac5967a12aa9d27de999774c21617d7ed.cu | #include "includes.h"
/*
sergeim19
April 27, 2015
Burgers equation - GPU CUDA version
*/
#define NADVANCE (4000)
#define nu (5.0e-2)
__global__ void kernel_rescale_u(double *u_dev, int N)
{
int j;
j = blockIdx.x * blockDim.x + threadIdx.x;
u_dev[j] = u_dev[j] / (double)N;
} |
86e3c8a6bfbeef90066ee1163fe01a65d028b785.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* http://github.com/dusty-nv
*/
#include "cudaRGB.h"
//-------------------------------------------------------------------------------------------------------------------------
__global__ void RGBToRGBAf(uchar3* srcImage,
... | 86e3c8a6bfbeef90066ee1163fe01a65d028b785.cu | /*
* http://github.com/dusty-nv
*/
#include "cudaRGB.h"
//-------------------------------------------------------------------------------------------------------------------------
__global__ void RGBToRGBAf(uchar3* srcImage,
float4* dstImage,
uint32_t width, ... |
2c0cf8af714edd5ee2b95cbec754c7c59dd4e6d0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/attention_random_conv_layer.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
namespace caffe {
template <typename Dtype>
__global__ void inspect_random_kernel(const int n, Dtype... | 2c0cf8af714edd5ee2b95cbec754c7c59dd4e6d0.cu | #include <vector>
#include "caffe/layers/attention_random_conv_layer.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
namespace caffe {
template <typename Dtype>
__global__ void inspect_random_kernel(const int n, Dtype* a) {
CUDA_KERNEL_LOOP(index, n) {
printf("%f\n",a[index] );
}
}
template <ty... |
ecec033e9640c54a67b0098f7121f4bae52ea599.hip | // !!! This is a file automatically generated by hipify!!!
#pragma once
#include "Material.cuh.cu"
#include "HitRecord.cuh.cu"
#include "Ray.cuh.cu"
#include "utils.cuh.cu"
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
namespace RayTracing
{
class Lambertian : public Material
{
protected:
con... | ecec033e9640c54a67b0098f7121f4bae52ea599.cu | #pragma once
#include "Material.cuh.cu"
#include "HitRecord.cuh.cu"
#include "Ray.cuh.cu"
#include "utils.cuh.cu"
#include <curand.h>
#include <curand_kernel.h>
namespace RayTracing
{
class Lambertian : public Material
{
protected:
const Texture* const * const m_albedo;
curandState *m_states;
public:
... |
b3b4114792da2ec9b6ed2936783c478a429d0577.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "GeantCudaUtils.h"
#include "backend/cuda/Interface.h"
#include "CoprocessorBrokerKernel.h"
#include "GeantTaskData.h"
#include "GeantTrack.h"
namespace Geant {
inline namespace cuda {
template void MakeInstanceArrayAt(... | b3b4114792da2ec9b6ed2936783c478a429d0577.cu |
#include "GeantCudaUtils.h"
#include "backend/cuda/Interface.h"
#include "CoprocessorBrokerKernel.h"
#include "GeantTaskData.h"
#include "GeantTrack.h"
namespace Geant {
inline namespace cuda {
template void MakeInstanceArrayAt(GeantTaskData *addr, size_t nElements, size_t sizeOf, size_t, int, GeantPropagator *);
... |
635788c723cfd74ceb50036404e2609f835a8d77.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "device_launch_parameters.h"
//#include <helper_functions.h>
#include <helper_cuda.h>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <hipfft.h>
#include <fstream>
usin... | 635788c723cfd74ceb50036404e2609f835a8d77.cu | #include <cuda_runtime.h>
#include "device_launch_parameters.h"
//#include <helper_functions.h>
#include <helper_cuda.h>
#include <ctime>
#include <time.h>
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <cufft.h>
#include <fstream>
using namespace std;
typedef float2 Complex;
__global__ void C... |
98ec12c4b6feffbe43ebd19e7088a2fb485ded90.hip | // !!! This is a file automatically generated by hipify!!!
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a co... | 98ec12c4b6feffbe43ebd19e7088a2fb485ded90.cu | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You ca... |
260fe58adc0f1dfa3aa1b31921a75845bd488686.hip | // !!! This is a file automatically generated by hipify!!!
//#include<cuda.h>
//#include <hip/hip_runtime.h>
//#include<stdio.h>
////int main(void) {
//// const int Width = 5;
//// float M[Width*Width], N[Width*Width], P[Width*Width];
//// for(int i = 0; i < (Width*Width) ; i++) {
//// M[i] = 5;
//// ... | 260fe58adc0f1dfa3aa1b31921a75845bd488686.cu | //#include<cuda.h>
//#include <cuda_runtime.h>
//#include<stdio.h>
////int main(void) {
//// const int Width = 5;
//// float M[Width*Width], N[Width*Width], P[Width*Width];
//// for(int i = 0; i < (Width*Width) ; i++) {
//// M[i] = 5;
//// N[i] = 5;
//// P[i] = 0;
//// }
//// Matri... |
724b76d6c00c4e663529bf71ea32070d61933f65.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <cmath>
#include <iostream>
#include <random>
#include <ctime>
#include <limits>
/**
* generate random double with range: @fMin ~ @fMax
*/
double fRand(double fMin, double fMax)
{
std::random_device rd;
std::mt... | 724b76d6c00c4e663529bf71ea32070d61933f65.cu | #include <cuda.h>
#include <cmath>
#include <iostream>
#include <random>
#include <ctime>
#include <limits>
/**
* generate random double with range: @fMin ~ @fMax
*/
double fRand(double fMin, double fMax)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> dis(fMin, fMax);... |
6fb5e3d385d379c96449ff1cbd599274ea402d53.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#include <stdio.h>
#define TPB 12
#define ATOMIC 1
__global__
void even_sort(int *d_b, const int n){
int tid = threadIdx.x;//0
if(1 == (tid + 1 ) % 2)//
{
if(d_b[tid] > d_b[tid + 1] && tid + 1 < n){
int ... | 6fb5e3d385d379c96449ff1cbd599274ea402d53.cu | #include "kernel.h"
#include <stdio.h>
#define TPB 12
#define ATOMIC 1
__global__
void even_sort(int *d_b, const int n){
int tid = threadIdx.x;//线程从0开始编号
if(1 == (tid + 1 ) % 2)//第奇数个轮回
{
if(d_b[tid] > d_b[tid + 1] && tid + 1 < n){
int tmp = d_b[tid];
d_b[tid] = d_b[tid + 1];
d_b[tid + 1] = tmp;
}
}
... |
409219d223d56d705cb2f62f8f2a29b1faabe47a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
The implementation of this file is based on gelu plugin in TensorRT demo:
https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/
Copyright 2019 NVIDIA Corporation
Licensed under the Apache License, Version 2.0 (the "L... | 409219d223d56d705cb2f62f8f2a29b1faabe47a.cu | /*
The implementation of this file is based on gelu plugin in TensorRT demo:
https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/
Copyright 2019 NVIDIA Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtai... |
7d8814aecff8686ebcbb92fe70b8b9a0b41ed971.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/SpatialReplicationPadding.cu"
#else
void THNN_(SpatialReplicationPadding_updateOutput)(
THCState *state,
THCTensor *input,
THCTensor *outpu... | 7d8814aecff8686ebcbb92fe70b8b9a0b41ed971.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/SpatialReplicationPadding.cu"
#else
void THNN_(SpatialReplicationPadding_updateOutput)(
THCState *state,
THCTensor *input,
THCTensor *output,
int padL, int padR,
int padT, int padB) {
THArgCheck(THCTenso... |
d7d7d3800ddab91546b4bf71a0a6687844c524c3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/greentea.hpp"
#include "c... | d7d7d3800ddab91546b4bf71a0a6687844c524c3.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
#ifdef USE_GREENTEA
#include "caffe/greentea/greentea.hpp"
#include "caffe/greentea/greentea_math_functions.hpp"
#endif // USE_GREENTEA
namespace caffe {
#... |
372931554e1ffeaf501327de16c508f164cd5814.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
#ifndef _MSC_VER
const float kBNLL_THRESHOLD = 50.;
#endif
template <typename Dtype>
__global__ void BNLLForw... | 372931554e1ffeaf501327de16c508f164cd5814.cu | #include <algorithm>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
#ifndef _MSC_VER
const float kBNLL_THRESHOLD = 50.;
#endif
template <typename Dtype>
__global__ void BNLLForward(const int n, const Dtype* in, Dtype* out) {
CUDA_KERNEL_LOOP(index, n) {
out[i... |
6bbbf2524fa6875e9d5fd49dbe5e4563a456c4a5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* 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
*
* ... | 6bbbf2524fa6875e9d5fd49dbe5e4563a456c4a5.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* 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 ag... |
4cb27c9fe272ee1ae448656422f64b0778fa8868.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <stdlib.h>
#define N 32
// Kernel definition
__global__ void MatAdd(int A[N][N], int B[N][N], int C[N][N])
{
//how to get the element index, fill out the values of indexi and indexj
int indexi = block... | 4cb27c9fe272ee1ae448656422f64b0778fa8868.cu | #include <stdio.h>
#include <cuda.h>
#include <stdlib.h>
#define N 32
// Kernel definition
__global__ void MatAdd(int A[N][N], int B[N][N], int C[N][N])
{
//how to get the element index, fill out the values of indexi and indexj
int indexi = blockIdx.x*blockDim.x;
int indexj = blockIdx.y*blockDim.y;
if (indexi < N... |
2ce2decf9801d1c20484e0b9044facd248c4808e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Using target data to promote data allocation to higher level, enabling reusing in iterations
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#ifdef _OPENMP
#include <omp.h>
#endif
// Add timing suppor... | 2ce2decf9801d1c20484e0b9044facd248c4808e.cu | // Using target data to promote data allocation to higher level, enabling reusing in iterations
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <stdlib.h>
#ifdef _OPENMP
#include <omp.h>
#endif
// Add timing support
#include <sys/time.h>
#include "libxomp.h"
#include "xomp_cuda_lib_inlined.cu"
doub... |
63e3aa06e52af70aa4617d73d6f342699ea417a8.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 "computeCost.cu"
#include<chrono>
#include<iostream>
using namesp... | 63e3aa06e52af70aa4617d73d6f342699ea417a8.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 "computeCost.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,2... |
68da458321e4a0224a191e00a494f6d7bf2a1aea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "test_utils.h"
Eigen::MatrixXf extractChannel(const renderer::OutputTensor& output, int channel)
{
return output.slice(channel).eval().toEigen();
}
__constant__ float TestConstantMemory[16];
__global__ void TestCopyCons... | 68da458321e4a0224a191e00a494f6d7bf2a1aea.cu | #include "test_utils.h"
Eigen::MatrixXf extractChannel(const renderer::OutputTensor& output, int channel)
{
return output.slice(channel).eval().toEigen();
}
__constant__ float TestConstantMemory[16];
__global__ void TestCopyConstantToMemory(dim3 virtual_size, float* output)
{
CUMAT_KERNEL_1D_LOOP(i, virtual_size)
... |
50e7772105b1000225d5979c310655f614c0b009.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 50e7772105b1000225d5979c310655f614c0b009.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... |
5a4d7d148e56929538262d308c357f662fb4c86d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
// CUDA RumTime API
#define TILE_WIDTH 32
void MatrixMultiplyOnHost(float* M, float* N, float* P, int width)
{
for(int i=0; i<width; ... | 5a4d7d148e56929538262d308c357f662fb4c86d.cu | #include <stdio.h>
#include <stdlib.h> /* srand, rand */
#include <time.h> /* time */
// CUDA RumTime API
#define TILE_WIDTH 32
void MatrixMultiplyOnHost(float* M, float* N, float* P, int width)
{
for(int i=0; i<width; ++i)
{
for (int j=0; j<width; ++j)
{
float sum = 0;
for(int k=0; k<width; ++k... |
9a9f88bbcc03fd13980491cfac10f11b25164250.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "star3d4r-32x32-2-256_kernel.hu"
__device__ float __sbref_wrap(float *sb, size_t index) { return sb[index]; }
__global__ void kernel0_2(float *A, int dimsize, int timestep, int c0)
{
#ifndef AN5D_TYPE
#define AN5D_TYPE uns... | 9a9f88bbcc03fd13980491cfac10f11b25164250.cu | #include "star3d4r-32x32-2-256_kernel.hu"
__device__ float __sbref_wrap(float *sb, size_t index) { return sb[index]; }
__global__ void kernel0_2(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 =... |
ee1dc3f1b1ac42f44dadc1c3a1b46c8366886c86.hip | // !!! This is a file automatically generated by hipify!!!
#include "Kernel.h"
#include <stdio.h>
#include <stdlib.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#ifdef PARALLEL
int getNumOfBlock(int pointsArrSize, hipDeviceProp_t prop);
void checkErrorStatus(hipError_t e);
_... | ee1dc3f1b1ac42f44dadc1c3a1b46c8366886c86.cu | #include "Kernel.h"
#include <stdio.h>
#include <stdlib.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#ifdef PARALLEL
int getNumOfBlock(int pointsArrSize, cudaDeviceProp prop);
void checkErrorStatus(cudaError e);
__device__ double calcDistanceCuda(double location1[DIMENSIONS], ... |
283b05a2896ed5a3fbc73f3a5355fcef2fee82cc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "THHUNN.h"
#include "THHHalf.h"
#include "THHHalfAutoNumerics.cuh"
#include "THHAtomics.cuh"
#define divup(a, b) ((a) + (b) - 1) / (b)
const int THREADS_PER_BLOCK = 256;
const int THREADS_X = 32;
const int THREADS_Y = THRE... | 283b05a2896ed5a3fbc73f3a5355fcef2fee82cc.cu | #include "THCUNN.h"
#include "THCHalf.h"
#include "THCHalfAutoNumerics.cuh"
#include "THCAtomics.cuh"
#define divup(a, b) ((a) + (b) - 1) / (b)
const int THREADS_PER_BLOCK = 256;
const int THREADS_X = 32;
const int THREADS_Y = THREADS_PER_BLOCK / THREADS_X;
const int REPEAT = 32;
const int64_t NNZ_PER_BLOCK_MAX = 1024... |
f75340d708ca6560a35ed54a2f8a25c30c97586a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright 2017 Stanford, NVIDIA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | f75340d708ca6560a35ed54a2f8a25c30c97586a.cu | /* Copyright 2017 Stanford, NVIDIA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
c84208a5704682e77b701d49125389fb0d304831.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 "cu_pooling_max.cu"
#include<chrono>
#include<iostream>
using nam... | c84208a5704682e77b701d49125389fb0d304831.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 "cu_pooling_max.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{2... |
281ec5b95f5a40b95ea351576a723a39d39b3395.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda.h>
#include<iostream>
__global__ void simpleKernel(int a, int* dA)
{
//this adds a value to a variable stored in global memory
int x = threadIdx.x;
int y = blockIdx.x;
// printf("x is %d, y is %d, inde... | 281ec5b95f5a40b95ea351576a723a39d39b3395.cu | #include<cuda.h>
#include<iostream>
__global__ void simpleKernel(int a, int* dA)
{
//this adds a value to a variable stored in global memory
int x = threadIdx.x;
int y = blockIdx.x;
// printf("x is %d, y is %d, index is %d, num is %d\n",x,8*y+x,a*x+y);
dA[8*y+x] = a*x + y;
}
int main()
{
int h... |
d8b8d7530dea2bddda8f151ccff01826ff8c939b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2021 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 ... | d8b8d7530dea2bddda8f151ccff01826ff8c939b.cu | /* Copyright (c) 2021 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... |
5ee22d3541029b8cf2790427fba6e0442af91fd5.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... | 5ee22d3541029b8cf2790427fba6e0442af91fd5.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... |
6142aa272693280d8207d26a8c65b7f1c414df2b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from magmablas/zlascl_2x2.cu, normal z -> c, T... | 6142aa272693280d8207d26a8c65b7f1c414df2b.cu | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from magmablas/zlascl_2x2.cu, normal z -> c, Tue Aug 30 09:38:32 2016
@author Ichitaro Yamazaki
*/
#include "magma_internal.h"... |
e5882278ed0df409d7a125fdfc9524de042df4d4.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
int main()
{
int device_no;
//get device number
hipGetDeviceCount(&device_no);
//for each device f... | e5882278ed0df409d7a125fdfc9524de042df4d4.cu | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
int main()
{
int device_no;
//get device number
cudaGetDeviceCount(&device_no);
//for each device find the props
int i, driverVersion, runtimeVersion;
for(i = 0; i < dev... |
fac64b7e6b50d4156f1077a994a0681eebd339ef.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 "norm2_strided_float.cu"
#include<chrono>
#include<iostream>
usin... | fac64b7e6b50d4156f1077a994a0681eebd339ef.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 "norm2_strided_float.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,1... |
ee5282b1f714ed8ac853f692c2bddd0ff0faf402.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2011-2016 Blender Foundation
*
* 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
*
* ... | ee5282b1f714ed8ac853f692c2bddd0ff0faf402.cu | /*
* Copyright 2011-2016 Blender Foundation
*
* 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 ag... |
54636b8120764399cad3a6505725ecc01a3ff5e7.hip | // !!! This is a file automatically generated by hipify!!!
/*
* This code is released into the public domain.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
... | 54636b8120764399cad3a6505725ecc01a3ff5e7.cu | /*
* This code is released into the public domain.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.