hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
408cb2885a8a9071d67d9636fbf058b21107c4e3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "thinning.h"
#include "cuda_includes.h"
#include "neighbor.cuh"
#include "attachment.cuh"
#include "clique.cuh"
#include "thinning_details.cuh"
namespace thin
{
void initDevice()
{
nb::initDevice();
attach::initDevic... | 408cb2885a8a9071d67d9636fbf058b21107c4e3.cu | #include "thinning.h"
#include "cuda_includes.h"
#include "neighbor.cuh"
#include "attachment.cuh"
#include "clique.cuh"
#include "thinning_details.cuh"
namespace thin
{
void initDevice()
{
nb::initDevice();
attach::initDevice();
clique::initDevice();
details::_setDeviceInited();
}
void shutdownDevice()
... |
3658cc072e97cf3e581a96bd874052b77a160b1a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
hipError_t addWithCuda(int *c, const int *a, const int *b, size_t size);
__global__ void addKernel(int *c, const int *a, const int *b)
{
int i = threadIdx.x;
c[i] ... | 3658cc072e97cf3e581a96bd874052b77a160b1a.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
cudaError_t addWithCuda(int *c, const int *a, const int *b, size_t size);
__global__ void addKernel(int *c, const int *a, const int *b)
{
int i = threadIdx.x;
c[i] = a[i] + b[i];
}
int main()
{
const int arraySize = 5;
... |
e6712acd2eb1a22b6a6d62fa6c1e853d11bf617d.hip | // !!! This is a file automatically generated by hipify!!!
//
// This code performs 3D cone beam CT forwards and backwards projection
//
#include "conebeam_projection.h"
#include "float3x3.h"
#include "hoCuNDArray_math.h"
#include "vector_td.h"
#include "cuNDArray_elemwise.h"
#include "cuNDArray_operators.h"
#include ... | e6712acd2eb1a22b6a6d62fa6c1e853d11bf617d.cu | //
// This code performs 3D cone beam CT forwards and backwards projection
//
#include "conebeam_projection.h"
#include "float3x3.h"
#include "hoCuNDArray_math.h"
#include "vector_td.h"
#include "cuNDArray_elemwise.h"
#include "cuNDArray_operators.h"
#include "cuNDArray_utils.h"
#include "cuNFFT.h"
#include "check_CUD... |
acededd09ff9389f5e6547cccef6b961383e167f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "distconv/cudnn/batchnorm.hpp"
#include "distconv/util/util_mpi.hpp"
#include "distconv/tensor/algorithms_cuda.hpp"
#include <type_traits>
using distconv::tensor::LocaleMPI;
using distconv::tensor::HIPAllocator;
template... | acededd09ff9389f5e6547cccef6b961383e167f.cu | #include "distconv/cudnn/batchnorm.hpp"
#include "distconv/util/util_mpi.hpp"
#include "distconv/tensor/algorithms_cuda.hpp"
#include <type_traits>
using distconv::tensor::LocaleMPI;
using distconv::tensor::CUDAAllocator;
template <typename DataType>
using Tensor = distconv::tensor::Tensor<DataType, LocaleMPI, CUDAA... |
e306c18bc1248e8b865f335a497ecacb28cf8fa4.hip | // !!! This is a file automatically generated by hipify!!!
#include "XLib.hpp"
const int SIZE = (1 << 27);
const int BLOCKDIM = 256;
int main() {
int* devInput;
hipMalloc(&devInput, SIZE * sizeof(int));
//Timer<DEVICE> TM;
//TM.start();
//xlib::fill<<<SIZE / BLOCKDIM, BLOCKDIM>>>(devInput, 102... | e306c18bc1248e8b865f335a497ecacb28cf8fa4.cu | #include "XLib.hpp"
const int SIZE = (1 << 27);
const int BLOCKDIM = 256;
int main() {
int* devInput;
cudaMalloc(&devInput, SIZE * sizeof(int));
//Timer<DEVICE> TM;
//TM.start();
//xlib::fill<<<SIZE / BLOCKDIM, BLOCKDIM>>>(devInput, 1024, 131072, 1, 1024);
/*TM.getTime("fill1");
CUDA_... |
14f36756133b6e7846de40c33244cf944190c219.hip | // !!! This is a file automatically generated by hipify!!!
/*
* nvbio
* Copyright (c) 2011-2014, 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 met:
* * Redistributions of ... | 14f36756133b6e7846de40c33244cf944190c219.cu | /*
* nvbio
* Copyright (c) 2011-2014, 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 met:
* * Redistributions of source code must retain the above copyright
* notice,... |
14e198b921441085d39a0901859bb6f347cc251b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void square(float* d_out, float* d_in) {
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f * f;
} | 14e198b921441085d39a0901859bb6f347cc251b.cu | #include "includes.h"
__global__ void square(float* d_out, float* d_in) {
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx] = f * f;
} |
2622dc610ee85272ac2b0d9c7084f2cac3d35eb0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <cutil.h>
// includes, kernels
#include <conv_kernel.cu>
////////////////////////////////////////////... | 2622dc610ee85272ac2b0d9c7084f2cac3d35eb0.cu |
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <cutil.h>
// includes, kernels
#include <conv_kernel.cu>
////////////////////////////////////////////////////////////////////////////////
// declaration, forward
void runTest(int argc, char... |
19883f308ef024c0beead04e865aebd74dc6fd3b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Main.cuh"
extern double *Dens_d;
extern double ScalingFactor;
extern int NRAD, NSEC, size_grid;
extern dim3 dimGrid2, dimBlock2;
__host__ void MultiplyPolarGridbyConstant (double *Dens)
{
hipLaunchKernelGGL(( MultiplyP... | 19883f308ef024c0beead04e865aebd74dc6fd3b.cu | #include "Main.cuh"
extern double *Dens_d;
extern double ScalingFactor;
extern int NRAD, NSEC, size_grid;
extern dim3 dimGrid2, dimBlock2;
__host__ void MultiplyPolarGridbyConstant (double *Dens)
{
MultiplyPolarGridbyConstantKernel<<<dimGrid2, dimBlock2>>>(Dens_d, NRAD, NSEC, ScalingFactor);
gpuErrchk(cudaDevice... |
2f28bbd82a06e40f70d1df27f08a20a81e5f1fa1.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef _CUDA_CU
#define _CUDA_CU
#include "Header.cuh"
#include "hip/hip_runtime_api.h"
#include "device_launch_parameters.h";
#include "DXF.h"
#include "Voxel.h"
#include <stdio.h>
#include <thrust/copy.h>
#include <thrust/fill.h>
#include <thrust/device_ve... | 2f28bbd82a06e40f70d1df27f08a20a81e5f1fa1.cu | #ifndef _CUDA_CU
#define _CUDA_CU
#include "Header.cuh"
#include "cuda_runtime_api.h"
#include "device_launch_parameters.h";
#include "DXF.h"
#include "Voxel.h"
#include <stdio.h>
#include <thrust/copy.h>
#include <thrust/fill.h>
#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust... |
a6072540a251506d14ff4364eacac28b84b9e029.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* SmoothL1LossLayer.cpp
*
* Created on: Nov 23, 2016
* Author: jkim
*/
#include <vector>
#include "SmoothL1LossLayer.h"
#include "MathFunctions.h"
#include "PropMgmt.h"
#include "SysLog.h"
#include "MemoryMgmt.h"
#d... | a6072540a251506d14ff4364eacac28b84b9e029.cu | /*
* SmoothL1LossLayer.cpp
*
* Created on: Nov 23, 2016
* Author: jkim
*/
#include <vector>
#include "SmoothL1LossLayer.h"
#include "MathFunctions.h"
#include "PropMgmt.h"
#include "SysLog.h"
#include "MemoryMgmt.h"
#define SMOOTHL1LOSSLAYER_LOG 0
using namespace std;
template <typename Dtype>
int Smoot... |
eb0f63270510c8b0c7ffd45cc80488d59fcfdedd.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>
static const int CYPHER_OFFSET = 3;
__global__ void add(int * a, int * b, int * c)
{
const unsigned int thread_idx... | eb0f63270510c8b0c7ffd45cc80488d59fcfdedd.cu | //Based on the work of Andrew Krepps
#include <iostream>
#include <random>
#include <chrono>
#include <stdio.h>
static const int CYPHER_OFFSET = 3;
__global__ void add(int * a, int * b, int * c)
{
const unsigned int thread_idx = (blockIdx.x * blockDim.x) + threadIdx.x;
c[thread_idx] = a[thread_idx] + b[t... |
0df807804bf4a24cdf127ea555ded5e8c48a6329.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// 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.
/*!
* \file TwoStepLangevinFlowGPU.cu
* \brief Definit... | 0df807804bf4a24cdf127ea555ded5e8c48a6329.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.
/*!
* \file TwoStepLangevinFlowGPU.cu
* \brief Definition of kernel drivers and kernels for TwoStepLangevinFlowGPU
*/
#include "TwoStepLange... |
20354d41aca0c6d0ebdb7e46bff2207c596ac67c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@generated from sparse-iter/blas/zmergecg.cu normal z -... | 20354d41aca0c6d0ebdb7e46bff2207c596ac67c.cu | /*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@generated from sparse-iter/blas/zmergecg.cu normal z -> s, Tue Feb 9 16:05:43 2016
@author Hartwig Anzt
*/
#include "magmasparse_inte... |
702045048bdbd0c78ab2776d7452493e562ef544.hip | // !!! This is a file automatically generated by hipify!!!
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license tha... | 702045048bdbd0c78ab2776d7452493e562ef544.cu | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
dbf515e3c9beea90dc9c0a25678b08970286b9d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<cuda_runtime.h>
#include<stdlib.h>
__global__ void reduce_kernel(float *d_out,float *d_in)
{
//Size of shared memory is set by third parameter of kernel launch
extern __shared__ float shared_arra... | dbf515e3c9beea90dc9c0a25678b08970286b9d6.cu | #include<stdio.h>
#include<cuda_runtime.h>
#include<stdlib.h>
__global__ void reduce_kernel(float *d_out,float *d_in)
{
//Size of shared memory is set by third parameter of kernel launch
extern __shared__ float shared_array[];
int globalThreadId = threadIdx.x + blockDim.x*blockIdx.x;
int blockThreadI... |
f11865cd93ed3f4e7fbcca1e0070a5f80c1aafa9.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#define N 1024
__global__ void saxpy(float *d_x, float *d_y){
int tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < N) d_y[tid] = d_x[tid] * 2.0f + d_y[tid];
}
int main(){
f... | f11865cd93ed3f4e7fbcca1e0070a5f80c1aafa9.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#define N 1024
__global__ void saxpy(float *d_x, float *d_y){
int tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < N) d_y[tid] = d_x[tid] * 2.0f + d_y[tid];
}
int main(){
float *h_y, *h_x;
float *d_y, *d_x;
int memSize = sizeo... |
71fe22e7e212990b09b87111fa0ef96bbcab857c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#define N 4
#define T 2
__global__ void sum_matrix(int** mat1, int** ddmat1, int** mat2, int** ddmat2, int** mat3, int** ddmat3, int n, int m){
int x = threadIdx.x + blockIdx.x*blockDim... | 71fe22e7e212990b09b87111fa0ef96bbcab857c.cu | #include <stdlib.h>
#include <stdio.h>
#define N 4
#define T 2
__global__ void sum_matrix(int** mat1, int** ddmat1, int** mat2, int** ddmat2, int** mat3, int** ddmat3, int n, int m){
int x = threadIdx.x + blockIdx.x*blockDim.x;
int y = threadIdx.y + blockIdx.y*blockDim.y;
mat3[1][x] = 0;
}
void cr... |
7506f5a1035f360ed3c8026dd31de5a2533b2afa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <ctime>
#define N 50000
const int threads_per_block = 256;
__global__
void dot_gpu(float *a, float *b, float *c) {
__shared__
float cache[threads_per_block];
int tid = threadIdx.x + ... | 7506f5a1035f360ed3c8026dd31de5a2533b2afa.cu |
#include <iostream>
#include <ctime>
#define N 50000
const int threads_per_block = 256;
__global__
void dot_gpu(float *a, float *b, float *c) {
__shared__
float cache[threads_per_block];
int tid = threadIdx.x + blockIdx.x * blockDim.x;
int cacheIndex = threadIdx.x;
float temp = 0;
whil... |
90e6589657e6827f0c59d165e91cac05698b6e29.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda.h>
#include<cuda_runtime.h>
#include<device_launch_parameters.h>
#include<stdio.h>
#include<conio.h>
__device__ long long int mod(int base,int exponent,int den)
{
unsigned int a=(base%den)*(base%den);
unsigned long... | 90e6589657e6827f0c59d165e91cac05698b6e29.cu | #include<cuda.h>
#include<cuda_runtime.h>
#include<device_launch_parameters.h>
#include<stdio.h>
#include<conio.h>
__device__ long long int mod(int base,int exponent,int den)
{
unsigned int a=(base%den)*(base%den);
unsigned long long int ret=1;
float size=(float)exponent/2;
if(exponent==0)
{
return base%den;
... |
0eb555ea8b554f69497c0d2ad15f64a0e3a89da7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Lab 5, image filters with CUDA.
// Compile with a command-line similar to Lab 4:
// nvcc filter.cu -c -arch=sm_30 -o filter.o
// g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter
// o... | 0eb555ea8b554f69497c0d2ad15f64a0e3a89da7.cu | // Lab 5, image filters with CUDA.
// Compile with a command-line similar to Lab 4:
// nvcc filter.cu -c -arch=sm_30 -o filter.o
// g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter
// or (multicore lab)
// nvcc filter.cu -c -arch=sm_20 -o filter.o
// g++ filter.o milli.c r... |
04bee4b67635eca8acc78878a83a34911517f086.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***********************************************************************
Copyright (C) 2020 Hironori Fujimoto
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public L... | 04bee4b67635eca8acc78878a83a34911517f086.cu | /***********************************************************************
Copyright (C) 2020 Hironori Fujimoto
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, ... |
68ac339a879572e1627ea66ff6e5d3ca2a6eaca0.hip | // !!! This is a file automatically generated by hipify!!!
/* CREDITS
* Author : Martin Garaj <garaj.martin@gmail.com>
* Date : 12/2017
* Project : HPC MPI Testing application
*
* REDISTRIBUTION
* The software is meant for internal use at City University of Hong Kong only.
* Further redistribution/... | 68ac339a879572e1627ea66ff6e5d3ca2a6eaca0.cu | /* CREDITS
* Author : Martin Garaj <garaj.martin@gmail.com>
* Date : 12/2017
* Project : HPC MPI Testing application
*
* REDISTRIBUTION
* The software is meant for internal use at City University of Hong Kong only.
* Further redistribution/sharing of the software or any parts of the source code wit... |
36ac9ec480058a164ab2c9e6ae6b3cbdbc23f717.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* -----------------------------------------------------------------
* Programmer(s): David J. Gardner @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-20... | 36ac9ec480058a164ab2c9e6ae6b3cbdbc23f717.cu | /* -----------------------------------------------------------------
* Programmer(s): David J. Gardner @ LLNL
* -----------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2023, Lawrence Livermore National Security
* and Southern Methodist University.
* All ri... |
21413c0193a45b441a7d3ba7afdeafa6ffd0ddeb.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 "kMultiSoftmaxCost.cu"
#include<chrono>
#include<iostream>
using ... | 21413c0193a45b441a7d3ba7afdeafa6ffd0ddeb.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 "kMultiSoftmaxCost.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16}... |
e34ee7eb9767a90a72949d5ada1ab43e998bc2bd.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include "GoLgeneric.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <cuda_device_runtime_api.h>
#include <hip/hip_runtime_api.h>
#include <device_launch_parameters.h>
#define getl(X,Y) local[((X)+1) + (blockDim.x+2) *... | e34ee7eb9767a90a72949d5ada1ab43e998bc2bd.cu | #include <stdlib.h>
#include "GoLgeneric.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_device_runtime_api.h>
#include <cuda_runtime_api.h>
#include <device_launch_parameters.h>
#define getl(X,Y) local[((X)+1) + (blockDim.x+2) * ((Y)+1)]
__global__ void cuda_kernel(int * src, int * dst, size_t width, s... |
644216e8d6cfd3360b62f678780fb09c6f8d4ef8.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Name: Hiu Yin Tang
* Student ID: 1831535
* the Assignment goals achieved: block scan / full scan for large vectors / Bank conflict avoidance optimization (BCAO)
* time to execute the different scans on a vector of 10,000,000 entries:
* Block scan ... | 644216e8d6cfd3360b62f678780fb09c6f8d4ef8.cu | /*
* Name: Hiu Yin Tang
* Student ID: 1831535
* the Assignment goals achieved: block scan / full scan for large vectors / Bank conflict avoidance optimization (BCAO)
* time to execute the different scans on a vector of 10,000,000 entries:
* Block scan without BCAO: ms
* Block scan with BCAO: ms
* Full scan w... |
00903d64d68331e81c49dc0a69dfdbfc13cbcc69.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ComputationalScheme/include/LBM/LatticeBoltzmannScheme.hpp>
typedef LatticeBoltzmannScheme::Cell Cell;
#include <string>
#include <exception>
#include <cmath>
/**
* @brief
*/
__host__ __device__ void initLBParams(LB... | 00903d64d68331e81c49dc0a69dfdbfc13cbcc69.cu | #include <ComputationalScheme/include/LBM/LatticeBoltzmannScheme.hpp>
typedef LatticeBoltzmannScheme::Cell Cell;
#include <string>
#include <exception>
#include <cmath>
/**
* @brief
*/
__host__ __device__ void initLBParams(LBParams* p)
{
STRUCT_DATA_TYPE W0 = 4.0 / 9.0;
STRUCT_DATA_TYPE Wx = 1.0 / 9.0;
STRUCT... |
8fe6fb2ee306bc571b50902f84273e57b04d3ef2.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <cusp/complex.h>
#include <cusp/blas/blas.h>
#include<cusp/csr_matrix.h>
#include<cusp/multiply.h>
#include <cusp/array1d.h>
#include <cusp/copy.h>
#include <thrust/device_ptr.h>
#include "mex.h"
#include "gpu/mxGPUArray.h"... | 8fe6fb2ee306bc571b50902f84273e57b04d3ef2.cu | #include <cuda.h>
#include <cusp/complex.h>
#include <cusp/blas/blas.h>
#include<cusp/csr_matrix.h>
#include<cusp/multiply.h>
#include <cusp/array1d.h>
#include <cusp/copy.h>
#include <thrust/device_ptr.h>
#include "mex.h"
#include "gpu/mxGPUArray.h"
/* Input Arguments */
#define VAL prhs[0]
#define COL prhs[1]
#defin... |
d65e5c4a9fb6c175716769fe5c4c3c0cf3c129d7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef __cplusplus
//extern "C" {
#endif
#include <float.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include "../external/cub-1.3.2/hipcub/hipcub.hpp"
#define CUDA
#include "common_funcs.h"
#include "constants.h... | d65e5c4a9fb6c175716769fe5c4c3c0cf3c129d7.cu |
#ifdef __cplusplus
//extern "C" {
#endif
#include <float.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include "../external/cub-1.3.2/cub/cub.cuh"
#define CUDA
#include "common_funcs.h"
#include "constants.h"
#include "gpu_kernels.h"
#define MAX_BLOCKS 65535
/* UTIL FUNCTIONS */
int PrintOnCud... |
04ea25e7d2860d8110f5edd64ed9e3991139b8a8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void _mat_sum_row_fast(float *m, float *target,int nrow, int ncol, int agg_col){
int tx = blockIdx.x * blockDim.x + threadIdx.x;
__shared__ float accum[NUM_THREAD_PER_ROW];
if(tx < ncol){
accum[thr... | 04ea25e7d2860d8110f5edd64ed9e3991139b8a8.cu | #include "includes.h"
__global__ void _mat_sum_row_fast(float *m, float *target,int nrow, int ncol, int agg_col){
int tx = blockIdx.x * blockDim.x + threadIdx.x;
__shared__ float accum[NUM_THREAD_PER_ROW];
if(tx < ncol){
accum[threadIdx.x] = m[blockIdx.y*ncol+tx];
}else{
accum[threadIdx.x] = 0.0f;
}
__syncthreads();
... |
87ab0e51b2411125b31bfe762f2bd5db443449ef.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 kernel {
namespace {
template <typename T>
__global__ void _SigmoidCrossEntropy(
const int nthreads,
... | 87ab0e51b2411125b31bfe762f2bd5db443449ef.cu | #ifdef USE_CUDA
#include "dragon/core/context_cuda.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernel {
namespace {
template <typename T>
__global__ void _SigmoidCrossEntropy(
const int nthreads,
const T* logit,
const T* target,
T* loss,
T* mask) {
CUDA_1D_KERNEL_LOOP... |
504ab31964c9452e864c787e38ad4547f75d9d5e.hip | // !!! This is a file automatically generated by hipify!!!
#include <memory.h>
#include <hip/hip_runtime.h>
#include <rmm/rmm.h>
#include "regex.cuh"
#include "regcomp.h"
#include "../custring_view.cuh"
// from is_flags.h -- need to put these somewhere else
#define IS_SPACE(x) ((x & 16)>0)
#define IS_ALPHA(x) ((x & 8... | 504ab31964c9452e864c787e38ad4547f75d9d5e.cu |
#include <memory.h>
#include <cuda_runtime.h>
#include <rmm/rmm.h>
#include "regex.cuh"
#include "regcomp.h"
#include "../custring_view.cuh"
// from is_flags.h -- need to put these somewhere else
#define IS_SPACE(x) ((x & 16)>0)
#define IS_ALPHA(x) ((x & 8)>0)
#define IS_DIGIT(x) ((x & 4)>0)
#define IS_NUMERIC(x) ((x... |
bcbe8b66ee9fe68c070df76c5235bc6c4bc20563.hip | // !!! This is a file automatically generated by hipify!!!
//This code is a modification of L1 cache benchmark from
//"Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarking": https://arxiv.org/pdf/1804.06826.pdf
//This benchmark measures the maximum read bandwidth of L1 cache for 64 bit read
//This code... | bcbe8b66ee9fe68c070df76c5235bc6c4bc20563.cu | //This code is a modification of L1 cache benchmark from
//"Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarking": https://arxiv.org/pdf/1804.06826.pdf
//This benchmark measures the maximum read bandwidth of L1 cache for 64 bit read
//This code have been tested on Volta V100 architecture
#include <std... |
05ccd50d19b4e1a5f662b3e23db9f7f4b5d53ba7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void forward_maxpool_layer_kernel(int n, int in_h, int in_w, int in_c, int stride, int size, int pad, float *input, float *output, int *indexes)
{
int h = (in_h + pad - size) / stride + 1;
int w = (i... | 05ccd50d19b4e1a5f662b3e23db9f7f4b5d53ba7.cu | #include "includes.h"
__global__ void forward_maxpool_layer_kernel(int n, int in_h, int in_w, int in_c, int stride, int size, int pad, float *input, float *output, int *indexes)
{
int h = (in_h + pad - size) / stride + 1;
int w = (in_w + pad - size) / stride + 1;
int c = in_c;
int id = (blockIdx.x + blockIdx.y*gridDim... |
2fe92ef78cb30bac648abf09f791874d33e68d32.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <math.h>
#include <hiprand/hiprand_kernel.h>
#define GET_BLOB_ADDRESS(ptr, offset) (&((ptr)[(offset)/sizeof((ptr)[0])]))
#define GET_ARRAY_CAPACITY(ptr) (((long *)(ptr))[0])
#define GET_ARRAY_LENGTH... | 2fe92ef78cb30bac648abf09f791874d33e68d32.cu |
#include <assert.h>
#include <math.h>
#include <curand_kernel.h>
#define GET_BLOB_ADDRESS(ptr, offset) (&((ptr)[(offset)/sizeof((ptr)[0])]))
#define GET_ARRAY_CAPACITY(ptr) (((long *)(ptr))[0])
#define GET_ARRAY_LENGTH(ptr) (((long *)(ptr))[1])
#define GET_ARRAY_BODY(ptr) (&((ptr)[128/sizeof((ptr)[0])]))
#defi... |
0f7822e9cd2f611c0034e0cfdc040d9db01b4d09.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include <hipfft.h>
#include <cufinufft.h>
#include "../cuspreadinterp.h"
#include "../cudeconvolve.h"
#include "../memtransfer.h"... | 0f7822e9cd2f611c0034e0cfdc040d9db01b4d09.cu | #include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include <cufft.h>
#include <cufinufft.h>
#include "../cuspreadinterp.h"
#include "../cudeconvolve.h"
#include "../memtransfer.h"
using namespace std;
int cufinufft3d1_exec(CUCPX* d_c, CUCPX* d_fk, cufinufft_plan *d_... |
adae9e44ecc1f38bdbd031880f8877c58fe6cb62.hip | // !!! This is a file automatically generated by hipify!!!
#include <cupy/type_dispatcher.cuh>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/tuple.h>
#include <thrust/execution_policy.h>
#... | adae9e44ecc1f38bdbd031880f8877c58fe6cb62.cu | #include <cupy/type_dispatcher.cuh>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/tuple.h>
#include <thrust/execution_policy.h>
#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11... |
5dd0916c32e4c0fadf0bbde411098b6a89e49e6f.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 "grad.cu"
#include<chrono>
#include<iostream>
using namespace std... | 5dd0916c32e4c0fadf0bbde411098b6a89e49e6f.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 "grad.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,... |
0d639bf6a007d09544e7877e0801235c45ecfb75.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:... | 0d639bf6a007d09544e7877e0801235c45ecfb75.cu | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
5a3cdd8c6ebe3724875fc342818352c192b782b7.hip | // !!! This is a file automatically generated by hipify!!!
#include <cassert>
#include <hip/hip_runtime.h>
#include "transpose_device.cuh"
/*
* TODO for all kernels (including naive):
* Leave a comment above all non-coalesced memory accesses and bank conflicts.
* Make it clear if the suboptimal access is a read or ... | 5a3cdd8c6ebe3724875fc342818352c192b782b7.cu | #include <cassert>
#include <cuda_runtime.h>
#include "transpose_device.cuh"
/*
* TODO for all kernels (including naive):
* Leave a comment above all non-coalesced memory accesses and bank conflicts.
* Make it clear if the suboptimal access is a read or write. If an access is
* non-coalesced, specify how many cach... |
d5951078c03678f593dfe9a9f3b98ca5a83d6b64.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
int main() {
int n;
int i, j, k;
printf("Please enter the size of matrix: \n");
scanf("%d", &n);
int *a, *b, *c;
hipHostMalloc((void**)&a, sizeof(int) * n * n);
hipHostMalloc((... | d5951078c03678f593dfe9a9f3b98ca5a83d6b64.cu |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
int main() {
int n;
int i, j, k;
printf("Please enter the size of matrix: \n");
scanf("%d", &n);
int *a, *b, *c;
cudaMallocHost((void**)&a, sizeof(int) * n * n);
cudaMallocHost((void**)&b, sizeof(int) * n * n);
cudaMallocHost((void**)... |
54b351c64ecd0b7ecf62ff2b4739f788aefba59f.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <stdio.h>
#include <stdlib.h>
__global__ void add(int *a, int *b, int *c) {
*c = *a + *b;
}
int main(void)
{
int a, b, c;
int *d_a, *d_b, *d_c;
int size = sizeof(int);
hipMalloc... | 54b351c64ecd0b7ecf62ff2b4739f788aefba59f.cu | #include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <stdio.h>
#include <stdlib.h>
__global__ void add(int *a, int *b, int *c) {
*c = *a + *b;
}
int main(void)
{
int a, b, c;
int *d_a, *d_b, *d_c;
int size = sizeof(int);
cudaMalloc((void**)&d_a, size);
cudaMalloc((void**)&d_b, size);
cudaM... |
798cc6cc632583ad31bd996da960e7021193ef6c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "UpsampleLayer.h"
namespace nvinfer1 {
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
int x, y, z, w;
w = ii % d3;
ii = ii / d3;
z = ii % d2;
ii = ii / d2;
y = ii % d1;
ii = ... | 798cc6cc632583ad31bd996da960e7021193ef6c.cu | #include "UpsampleLayer.h"
namespace nvinfer1 {
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
int x, y, z, w;
w = ii % d3;
ii = ii / d3;
z = ii % d2;
ii = ii / d2;
y = ii % d1;
ii = ii / d1;
x = ii;
w = w / scale_factor;
z = z / scale_factor;
d2 /= scale_factor;... |
7f186af1e200a1f80f293463d7e02ec50eb13287.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*------------------------------*/
/* KSVD-OPERATION */
/* IMPLEMENTATION */
/*------------------------------*/
#include <vector>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "Globa... | 7f186af1e200a1f80f293463d7e02ec50eb13287.cu | /*------------------------------*/
/* KSVD-OPERATION */
/* IMPLEMENTATION */
/*------------------------------*/
#include <vector>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "GlobalDeclarations.cuh"
#include "Globals.cuh"
#include "FileManager.cuh"
#include "HostMemor... |
af382f2f326a641f0cbadfb26152bafd1bef885e.hip | // !!! This is a file automatically generated by hipify!!!
#include <cfloat>
#include <stdio.h>
#include "assert.h"
#include "hip/hip_runtime.h"
#include "utility/src/print.h"
#include "utility/src/Msg.h"
#include <hipcub/hipcub.hpp>
DREAMPLACE_BEGIN_NAMESPACE
template <typename T>
__global__ void permuteGrad(
const... | af382f2f326a641f0cbadfb26152bafd1bef885e.cu | #include <cfloat>
#include <stdio.h>
#include "assert.h"
#include "cuda_runtime.h"
#include "utility/src/print.h"
#include "utility/src/Msg.h"
#include <cub/cub.cuh>
DREAMPLACE_BEGIN_NAMESPACE
template <typename T>
__global__ void permuteGrad(
const T* grad_out_x,
const T* grad_out_y,
const int* flat_node2pin_map,... |
8a101936e3c6db8f25e2b02131d415999998a821.hip | // !!! This is a file automatically generated by hipify!!!
// @file datamex.cu
// @brief Basic data structures (MEX support)
// @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... | 8a101936e3c6db8f25e2b02131d415999998a821.cu | // @file datamex.cu
// @brief Basic data structures (MEX support)
// @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).
*/
#include "datamex.hpp"
#if ENABLE_GPU
#... |
d04f3b81cbc86dffe8c58b28b0d035a142df54f9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright (c) 2017 Microsoft
* Licensed under The Apache-2.0 License [see LICENSE for details]
* \file deformable_psroi_pooling.cu
* \brief
* \author Yi Li, Guodong Zhang, Jifeng Dai
*/
#include "./deformable_psroi_pooli... | d04f3b81cbc86dffe8c58b28b0d035a142df54f9.cu | /*!
* Copyright (c) 2017 Microsoft
* Licensed under The Apache-2.0 License [see LICENSE for details]
* \file deformable_psroi_pooling.cu
* \brief
* \author Yi Li, Guodong Zhang, Jifeng Dai
*/
#include "./deformable_psroi_pooling-inl.h"
#include <mshadow/tensor.h>
#include <mshadow/cuda/reduce.cuh>
#include <algor... |
9466973bc091956b0d5d48c30ce7fa738c39db94.hip | // !!! This is a file automatically generated by hipify!!!
//==================================================================
// Title: x-drop seed-and-extend alignment algorithm
// Author: A. Zeni, G. Guidi
//==================================================================
#include "logan_functions.cuh"
#include ... | 9466973bc091956b0d5d48c30ce7fa738c39db94.cu | //==================================================================
// Title: x-drop seed-and-extend alignment algorithm
// Author: A. Zeni, G. Guidi
//==================================================================
#include "logan_functions.cuh"
#include "seed.cuh"
#include <cuda.h>
#include <chrono>
using names... |
bd4fac552e47822bb49f2522b6eb6ef4f81858d9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void addOneColumnPerThread(double* a, double* b, double* c, int n)
{
// Get the column for current thread
int column = (blockIdx.x * blockDim.x + threadIdx.x);
// Make sure we do not go out of bound... | bd4fac552e47822bb49f2522b6eb6ef4f81858d9.cu | #include "includes.h"
__global__ void addOneColumnPerThread(double* a, double* b, double* c, int n)
{
// Get the column for current thread
int column = (blockIdx.x * blockDim.x + threadIdx.x);
// Make sure we do not go out of bounds
if (column < n)
{
for (int i = 0; i < n; i++)
{
c[i * n + column] = a[i * n + column] ... |
1d877f988ff167df5f95b2c6009ef20bbdc35701.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright 2019-2020 XGBoost contributors
*/
#include <xgboost/data.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_output_iterator.h>
#include "../common/categorical.h"
#include "../commo... | 1d877f988ff167df5f95b2c6009ef20bbdc35701.cu | /*!
* Copyright 2019-2020 XGBoost contributors
*/
#include <xgboost/data.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_output_iterator.h>
#include "../common/categorical.h"
#include "../common/hist_util.cuh"
#include "../common/random.h"
#include "./ellpack_page.cuh"
#include "d... |
ea5cb608d6d2b91bdcaf78b0532f08edf89aa6c9.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <opencv2/cudafilters.hpp>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/core/cvstd.hpp>
#include "support.h"
#define NUM_STREAMS 100
int main(int argc, char* argv[])
{
time_t t;
srand((unsigned) time(&t));
string baseDir... | ea5cb608d6d2b91bdcaf78b0532f08edf89aa6c9.cu | #include <stdio.h>
#include <opencv2/cudafilters.hpp>
#include <opencv2/cudaarithm.hpp>
#include <opencv2/core/cvstd.hpp>
#include "support.h"
#define NUM_STREAMS 100
int main(int argc, char* argv[])
{
time_t t;
srand((unsigned) time(&t));
string baseDir = "/home/headleyjz/captcha_data/captchas";
vector<string>... |
d90295df1d4028ecd78b802c05acb18475b0c834.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/roi_align_layer.hpp"
using std::max;
using std::min;
namespace caffe {
template <typename Dtype>
__global__ void ROIPoolForward(const int nthreads,... | d90295df1d4028ecd78b802c05acb18475b0c834.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/roi_align_layer.hpp"
using std::max;
using std::min;
namespace caffe {
template <typename Dtype>
__global__ void ROIPoolForward(const int nthreads, const Dtype* bottom_data,
const Dtype spatial_scale, const int channels, const int ... |
84a16a45f05af6e784216ab793c9643c8af7ea6a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
__global__ void init5(int* arr, int n){
int idx=blockDim.x*blockIdx.x+threadIdx.x;
if(idx<n*n)
arr[idx]=5;
}
__global__ void init7(int* arr,int n){
int idx=blockDim.x*blockIdx.x+threadIdx.x;
int idy=blockDim... | 84a16a45f05af6e784216ab793c9643c8af7ea6a.cu | #include <cstdio>
__global__ void init5(int* arr, int n){
int idx=blockDim.x*blockIdx.x+threadIdx.x;
if(idx<n*n)
arr[idx]=5;
}
__global__ void init7(int* arr,int n){
int idx=blockDim.x*blockIdx.x+threadIdx.x;
int idy=blockDim.y*blockIdx.y+threadIdx.y;
if(idx<n && idy<n)
arr[idy*n+idx]=7;
}
__host__ void prin... |
2483ea730b73a42811b219b207d3d51bc2b96414.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include "device_launch_parameters.h"
const int DSIZE =8192;
const int block_size =32;
const float A_val = 3.0f;
const float B_val = 2.0f;
//matrix addition in CUDA
__global__ void madd(const float *A, const fl... | 2483ea730b73a42811b219b207d3d51bc2b96414.cu | #include<stdio.h>
#include "device_launch_parameters.h"
const int DSIZE =8192;
const int block_size =32;
const float A_val = 3.0f;
const float B_val = 2.0f;
//matrix addition in CUDA
__global__ void madd(const float *A, const float *B, const float *C, int ds ){
int idx = threadIDx.x + blockDim.x*blockIDx.x;
i... |
92a02d0066ed3662279ff9b4c89ece44be78d39d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from magmablas/zgetf2.cu, normal z -> c, Mon Jun... | 92a02d0066ed3662279ff9b4c89ece44be78d39d.cu | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from magmablas/zgetf2.cu, normal z -> c, Mon Jun 25 18:24:14 2018
*/
#include "magma_internal.h"
#define cgeru_bs 512 // 512 is max th... |
c69445f71262ac839300b9d944c8c1c90ac3848c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ImageProcessing.cuh"
__global__ void convertToGrayscale(unsigned char *gray, unsigned char *r, unsigned char *g, unsigned char *b, int dimension) {
int index = blockIdx.x * blockDim.x + threadIdx.x;
if (index < dimen... | c69445f71262ac839300b9d944c8c1c90ac3848c.cu | #include "ImageProcessing.cuh"
__global__ void convertToGrayscale(unsigned char *gray, unsigned char *r, unsigned char *g, unsigned char *b, int dimension) {
int index = blockIdx.x * blockDim.x + threadIdx.x;
if (index < dimension)
gray[index] = 1 / 3.0 * (r[index] + g[index] + b[index]);
}
__global__ void ge... |
c4999622d3162fd2fa339072ace74b3119e627e5.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 sparse-iter/blas/zbajac_csr_overlap.cu, n... | c4999622d3162fd2fa339072ace74b3119e627e5.cu | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from sparse-iter/blas/zbajac_csr_overlap.cu, normal z -> d, Tue Aug 30 09:38:41 2016
*/
#include "magmasparse_internal.h"
#define PR... |
7a8408ddd24a2e722c14e9b694a8ac2780e0a25c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
#include <cmath>
#include "caffe/common.hpp"
#incl... | 7a8408ddd24a2e722c14e9b694a8ac2780e0a25c.cu | #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
#include <cmath>
#include "caffe/common.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <>
void caffe_gpu_gemm<... |
0baf0b005d5cbc865c182136ae52acc80ea299b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include <random>
#include <iomanip>
#include <cmath>
#include <png++/png.hpp>
#include <hiprand/hiprand.h>
template<typename charT>
std::m... | 0baf0b005d5cbc865c182136ae52acc80ea299b8.cu | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <map>
#include <random>
#include <iomanip>
#include <cmath>
#include <png++/png.hpp>
#include <curand.h>
template<typename charT>
std::map<std::string, std::string>
read_file(std::basic_istream<charT>& is)
{
if(!is.good())
... |
44e77281105b37e9889bfc25791c5efe6255d65c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
All modification made by Cambricon Corporation: 2018 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2018, the respective contributors
All rights reserved.
For the list of contributors go ... | 44e77281105b37e9889bfc25791c5efe6255d65c.cu | /*
All modification made by Cambricon Corporation: © 2018 Cambricon Corporation
All rights reserved.
All other contributions:
Copyright (c) 2014--2018, the respective contributors
All rights reserved.
For the list of contributors go to https://github.com/BVLC/caffe/blob/master/CONTRIBUTORS.md
Redistribution and use in ... |
05896e7f477d01de75c6db9e6c0f4f5822cb854b.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Just run sh compileRun.sh
* Use config.h in order to adjust problem size
*/
#include <hip/hip_runtime.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "config.h"
void printSparseMatrix(double* A) {
for (int i =... | 05896e7f477d01de75c6db9e6c0f4f5822cb854b.cu | /*
* Just run sh compileRun.sh
* Use config.h in order to adjust problem size
*/
#include <cuda.h>
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "config.h"
void printSparseMatrix(double* A) {
for (int i = 0; i < N; i++) {
int x = i % D;
int y = i / D;
for (int j = 0; ... |
a69ba9648b0e77c46332d81feca5962c0a543f5c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void filter_kernel(const float* box_preds, const float* cls_preds, const float* dir_preds, const int* anchor_mask, const float* dev_anchors_px, const float* dev_anchors_py, const float* dev_anchors_p... | a69ba9648b0e77c46332d81feca5962c0a543f5c.cu | #include "includes.h"
__global__ void filter_kernel(const float* box_preds, const float* cls_preds, const float* dir_preds, const int* anchor_mask, const float* dev_anchors_px, const float* dev_anchors_py, const float* dev_anchors_pz, const float* dev_anchors_dx, const float* dev_anchors_dy, const float* dev_anchors_dz... |
f5daecb270296298dff9bb31b100d205e53b2eb8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<math.h>
#include <sys/time.h>
int rowSize;
__global__ void printGpu(float *d_a, int size)
{
int i, j;
for (i = 0; i < size; i++)
{
for (j = 0; j < size; j++)
printf("%0.1f\t", d_a[i * size + j]);... | f5daecb270296298dff9bb31b100d205e53b2eb8.cu | #include<stdio.h>
#include<math.h>
#include <sys/time.h>
int rowSize;
__global__ void printGpu(float *d_a, int size)
{
int i, j;
for (i = 0; i < size; i++)
{
for (j = 0; j < size; j++)
printf("%0.1f\t", d_a[i * size + j]);
printf("\n");
}
}
__global__ void Cloop_FW(float *d_a, int rowSize)
{
__shared__ i... |
deb0d72b09bb46597b5184d8352dbac494aa9a21.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <time.h>
#include <unistd.h>
#include <string>
#include <sys/time.h>
#include <float.h>
// helper functions
#include "helper_string.h"
#include "helper_cuda.h"
#define DEFAULT_INPUT_... | deb0d72b09bb46597b5184d8352dbac494aa9a21.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <time.h>
#include <unistd.h>
#include <string>
#include <sys/time.h>
#include <float.h>
// helper functions
#include "helper_string.h"
#include "helper_cuda.h"
#define DEFAULT_INPUT_SIZE 8192
#define BLOCK_SIZE 32
int k=0;
int size;
float *A, *B, *GO... |
8627fa0dcd85e498fb5bf4053df4410c660a9e6c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "optimization.cuh"
#define BIAS 1.0f
using namespace CUDA;
// l = layer
// n = neuron number in layers
// w = weight number and result in neurons
extern "C"
{
//=========================================================... | 8627fa0dcd85e498fb5bf4053df4410c660a9e6c.cu | #include "optimization.cuh"
#define BIAS 1.0f
using namespace CUDA;
// l = layer
// n = neuron number in layers
// w = weight number and result in neurons
extern "C"
{
//=====================================================================
// /!\ WARINING /!\
//====================================================... |
f4916b1a52c873cede0c2a217df5937fba327d8f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "wb.h"
#include<stdio.h>
#include<iostream>
#warning "Proper usage of the object file is : ./MatrixMultiplication input_file0 input_file1 output_file"
using namespace std;
#define TILE_WIDTH 32
__global__
void tiled_mm(... | f4916b1a52c873cede0c2a217df5937fba327d8f.cu |
#include "wb.h"
#include<stdio.h>
#include<iostream>
#warning "Proper usage of the object file is : ./MatrixMultiplication input_file0 input_file1 output_file"
using namespace std;
#define TILE_WIDTH 32
__global__
void tiled_mm(float *d_A, float *d_B, float *d_C, int P, int Q,int R)
{
__shared__ float A[TILE_WI... |
ea968ca866302b454f838f75e477fbccff40c148.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "helpers.h"
__constant__ float ckernel[81];
__global__ void conv_cuda(float *input, float *output, int width, int height,
float *kernel, int channels, int k_width,
int ke... | ea968ca866302b454f838f75e477fbccff40c148.cu | #include "helpers.h"
__constant__ float ckernel[81];
__global__ void conv_cuda(float *input, float *output, int width, int height,
float *kernel, int channels, int k_width,
int kernels) {
int k = blockIdx.z;
int j = threadIdx.x + blockIdx.x * blockDim.x;
int i... |
f13665e6710eec732ca35f27880af0c7b4f29326.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1999-2017 Alibaba Group.
*
* 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
*
* ... | f13665e6710eec732ca35f27880af0c7b4f29326.cu | /*
* Copyright 1999-2017 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
4b856d5d74a3061ac6cdc897d41185f3cb0d4b4e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "CudaCollidingParticles.cuh"
//When using the thrust library, anytime you want to use an anonomous function
// to process the array, you need to wrap it in a struct and pass that in instead.
//For example, this method is ... | 4b856d5d74a3061ac6cdc897d41185f3cb0d4b4e.cu | #include "CudaCollidingParticles.cuh"
//When using the thrust library, anytime you want to use an anonomous function
// to process the array, you need to wrap it in a struct and pass that in instead.
//For example, this method is triggered by thrust for each element in our Particle
// array, and the output will is st... |
414f793c7a749a28e020432d5bec3e819929e3a8.hip | // !!! This is a file automatically generated by hipify!!!
#if GOOGLE_CUDA
#define EIGEN_USE_GPU
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include <hip/hip_runtime.h>
#include "backproject.hcu"
#include <iostream>
using namespace std;
// from
// https://stackoverflow.com/questions/14038589/what-is... | 414f793c7a749a28e020432d5bec3e819929e3a8.cu | #if GOOGLE_CUDA
#define EIGEN_USE_GPU
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
#include <cuda.h>
#include "backproject.hcu"
#include <iostream>
using namespace std;
// from
// https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api
#def... |
ce207af2eb33e7512dbf4bbdf1a16368dec5c9ed.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2011-2013 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
*
* ... | ce207af2eb33e7512dbf4bbdf1a16368dec5c9ed.cu | /*
* Copyright 2011-2013 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... |
22d3bac6bd9e02d8f4a51374dee4100247a2d8fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "file_system.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "stdio.h"
__device__ void user_program(FileSystem *fs, uchar *input, uchar *output) {
/*
/////////////// Test Case 1 ///////////////
u32 fp = fs_open(fs, "t... | 22d3bac6bd9e02d8f4a51374dee4100247a2d8fa.cu | #include "file_system.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include "stdio.h"
__device__ void user_program(FileSystem *fs, uchar *input, uchar *output) {
/*
/////////////// Test Case 1 ///////////////
u32 fp = fs_open(fs, "t.txt\0", G_WRITE);
fs_write(fs, input, 64, fp);
fp = fs_open(fs,... |
522e88a5d81024c31c46e5b200db1da5c08ceb2e.hip | // !!! This is a file automatically generated by hipify!!!
// Rishabh Agarwal - 18JE0676
#include <bits/stdc++.h>
#include <hip/hip_runtime.h>
using namespace std;
// kernel function
__global__ void kernelFunction(int *a, int *b, int *c, int n) {
int idx = threadIdx.x + blockIdx.x * blockDim.x;
if (idx < n) {... | 522e88a5d81024c31c46e5b200db1da5c08ceb2e.cu | // Rishabh Agarwal - 18JE0676
#include <bits/stdc++.h>
#include <cuda.h>
using namespace std;
// kernel function
__global__ void kernelFunction(int *a, int *b, int *c, int n) {
int idx = threadIdx.x + blockIdx.x * blockDim.x;
if (idx < n) {
int idx1 = (idx + 1) % 256;
int idx2 = (idx + 2) % 25... |
3c76eb7d7a5947af4f69f6edfc6d5a4ba5aa8388.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Dispatch.h>
#include <ATen/native/ForeachUtils.h>
#include <ATen/native/hip/ForeachFunctors.cuh>
#include <ATen/NumericUtils.h>
namespace at { namespace native {
template<template<class> class Op>
std::vector<Tensor> foreach_pointwise_op(Tensor... | 3c76eb7d7a5947af4f69f6edfc6d5a4ba5aa8388.cu | #include <ATen/Dispatch.h>
#include <ATen/native/ForeachUtils.h>
#include <ATen/native/cuda/ForeachFunctors.cuh>
#include <ATen/NumericUtils.h>
namespace at { namespace native {
template<template<class> class Op>
std::vector<Tensor> foreach_pointwise_op(TensorList input, TensorList tensors1, TensorList tensors2, Scal... |
be2a9e83a3b73a80b128799bba62574d6056be38.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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 und... | be2a9e83a3b73a80b128799bba62574d6056be38.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 ... |
64fec70dc018978d4f63b7bb915815b6ff8fed03.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 "assisted_activation_kernel.cu"
#include<chrono>
#include<iostrea... | 64fec70dc018978d4f63b7bb915815b6ff8fed03.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 "assisted_activation_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8... |
b185d2f83a4262408338116add0f89a946926e11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <cassert>
#include <functional>
#include "unified.h"
#include "lock.h"
#include "graph.h"
#include "pool.h"
#include "state.h"
#include "unified_vector.h"
void square_host(void* xv) {
State* state = ... | b185d2f83a4262408338116add0f89a946926e11.cu | #include <iostream>
#include <cassert>
#include <functional>
#include "unified.h"
#include "lock.h"
#include "graph.h"
#include "pool.h"
#include "state.h"
#include "unified_vector.h"
void square_host(void* xv) {
State* state = static_cast<State*>(xv);
state->x = (state->x) * (state->x);
}
__global__ void pool_k... |
b2eb7e91deb06dc2eca970a2fe1282fb3df5121e.hip | // !!! This is a file automatically generated by hipify!!!
// Didymos Optimization Project using CUDA and a genetic algorithm
//TODO: Clarify complexities of the include paths
//TODO: What / why we are including
#include "../Earth_calculations/earthInfo.h" // For launchCon and EarthInfo()
#include "../Genetic_Algorit... | b2eb7e91deb06dc2eca970a2fe1282fb3df5121e.cu | // Didymos Optimization Project using CUDA and a genetic algorithm
//TODO: Clarify complexities of the include paths
//TODO: What / why we are including
#include "../Earth_calculations/earthInfo.h" // For launchCon and EarthInfo()
#include "../Genetic_Algorithm/individuals.h" // For individual structs, paths to rkPar... |
a549bcc547c986335856d14f39cca8f0f5ed92e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/** @file im2col.cu
** @brief Image to columns and back (GPU)
** @author Andrea Vedaldi
**/
#include "im2col.cpp"
#include "gpu.hpp"
/* ---------------------------------------------------------------- */
/* ... | a549bcc547c986335856d14f39cca8f0f5ed92e5.cu | /** @file im2col.cu
** @brief Image to columns and back (GPU)
** @author Andrea Vedaldi
**/
#include "im2col.cpp"
#include "gpu.hpp"
/* ---------------------------------------------------------------- */
/* im2col (GPU) */
/* -------------------------------------... |
ed48c9a80cda44b33c458fe051277c3c21eb4474.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <windows.h>
// OpenGL Graphics includes
#include <GL/glew.h>
#include <GL/freeglut.h>
// includes, system
#include<stdlib.h>
#include <stdio.h>
#include <math.h>
// includes, project
#include <cutil_inline.h>
//... | ed48c9a80cda44b33c458fe051277c3c21eb4474.cu |
#include <windows.h>
// OpenGL Graphics includes
#include <GL/glew.h>
#include <GL/freeglut.h>
// includes, system
#include<stdlib.h>
#include <stdio.h>
#include <math.h>
// includes, project
#include <cutil_inline.h>
//#include <shrQATest.h>
#include<iostream>
using namespace std;
#include "KDTree.h"
#in... |
a779db9b40f3795f4a0b878c26b13026090c8850.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
*
* Matrix Multiplication - CUDA for GPUs
*
* CS3210
*
**/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
int size;
typedef struct
{
float** element;
} matrix;
long... | a779db9b40f3795f4a0b878c26b13026090c8850.cu | /**
*
* Matrix Multiplication - CUDA for GPUs
*
* CS3210
*
**/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
int size;
typedef struct
{
float** element;
} matrix;
long long wall_clock_time()
{
#ifdef __linux__
struct timespec tp;
clock_gettime(CLOCK_REA... |
965a5c7e2413ccb179cbbe6e9b3d71f184f6b531.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... | 965a5c7e2413ccb179cbbe6e9b3d71f184f6b531.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... |
11c5fb411397f9d719fec444d7eccaac7f999487.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
********************************* BLUEBOTTLE **********************************
*********************************************************************... | 11c5fb411397f9d719fec444d7eccaac7f999487.cu | /*******************************************************************************
********************************* BLUEBOTTLE **********************************
*******************************************************************************
*
* Copyright 2012 - 2015 Adam Sierakowski, The Johns Hopkins University
... |
9efdd722f9266832457d99ef35159f6b1fc64039.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/IVFFlatScan.cuh>... | 9efdd722f9266832457d99ef35159f6b1fc64039.cu | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <faiss/gpu/impl/IVFFlatScan.cuh>
#include <faiss/gpu/impl/DistanceUtils.cuh>
#include <faiss/gpu/impl/IVFUtils.cuh>
#inc... |
872cde6b54dc5f63f17ce9ea74de2181aaf93fe4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* GPU Quicksort Kernels
* ---------------------
* Functions part1, part2, part3 and lqsort
* Copyright (c) 2007-2008, Daniel Cederman and Philippas Tsigas
* All rights reserved.
*
* Redistribution and use in source and binary fo... | 872cde6b54dc5f63f17ce9ea74de2181aaf93fe4.cu | /**
* GPU Quicksort Kernels
* ---------------------
* Functions part1, part2, part3 and lqsort
* Copyright (c) 2007-2008, Daniel Cederman and Philippas Tsigas
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
* conditio... |
6feaadbef274169413966549ab30cc1535b053ab.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/PReLU.cu"
#else
void THNN_(PReLU_updateOutput)(
THCState *state,
THCTensor *input,
THCTensor *output,
THCTensor *weight)
{
THC... | 6feaadbef274169413966549ab30cc1535b053ab.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/PReLU.cu"
#else
void THNN_(PReLU_updateOutput)(
THCState *state,
THCTensor *input,
THCTensor *output,
THCTensor *weight)
{
THCTensor_(resizeAs)(state, output, input);
int64_t nOutputPlane = THCTensor_(numel)(stat... |
3ffe5448310d5f92021807ef7e2a04723d130b3a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C" {
#include "../shape/head.h"
}
__global__ void clrvect_krnl(struct dat_t *ddat, int s, int f, int nThreads) {
/* multi-threaded kernel */
int offset = blockIdx.x * blockDim.x + threadIdx.x;
if (offset < nThreads){
s... | 3ffe5448310d5f92021807ef7e2a04723d130b3a.cu | extern "C" {
#include "../shape/head.h"
}
__global__ void clrvect_krnl(struct dat_t *ddat, int s, int f, int nThreads) {
/* multi-threaded kernel */
int offset = blockIdx.x * blockDim.x + threadIdx.x;
if (offset < nThreads){
switch (ddat->set[s].type) {
case DELAY:
ddat->set[s].desc.deldop.frame[f].fit_s[off... |
4cb7e6a3f9e647d31e0aceb0d8cf4ead52f228b9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__device__ void mul(float a, float b, float *res)
{
*res = a * b;
// overflow
*res = (*res) * (1e30f * 1e10f);
}
__global__ void dot_prod(float *x, float *y, int size)
{
float d;
for (int i=0; i < si... | 4cb7e6a3f9e647d31e0aceb0d8cf4ead52f228b9.cu |
#include <stdio.h>
__device__ void mul(float a, float b, float *res)
{
*res = a * b;
// overflow
*res = (*res) * (1e30f * 1e10f);
}
__global__ void dot_prod(float *x, float *y, int size)
{
float d;
for (int i=0; i < size; ++i)
{
float tmp;
mul(x[i], y[i], &tmp);
d += tmp;
}
int tid = bl... |
61a31a0ce39ddbe40a3e0e9ea08ecf0f001c7395.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <stdlib.h>
#include "matrixfunctions.h"
#include <cblas.h>
/* ******** NAIVE FUNCTION FOR TESTING PURPOSE *********/
void scalMatrix(double *B,int incB,double *A,int incA,int rows,int co... | 61a31a0ce39ddbe40a3e0e9ea08ecf0f001c7395.cu | #include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <stdlib.h>
#include "matrixfunctions.h"
#include <cblas.h>
/* ******** NAIVE FUNCTION FOR TESTING PURPOSE *********/
void scalMatrix(double *B,int incB,double *A,int incA,int rows,int cols,double scalar){
memcpy(B,A,rows*cols*sizeof(double));
... |
d649e67d9f6b283f20a749f1fd91d534d65521a9.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <hipfft.h>
#include <cutil_inline.h>
#include <cudabuffer.h>
#include <defines.h>
void runTest(int x, int y, int z)
{
unsigned int timer = 0;
cutilCheckError(cutCreateTi... | d649e67d9f6b283f20a749f1fd91d534d65521a9.cu | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cufft.h>
#include <cutil_inline.h>
#include <cudabuffer.h>
#include <defines.h>
void runTest(int x, int y, int z)
{
unsigned int timer = 0;
cutilCheckError(cutCreateTimer(&timer));
int batch = TEST_BUFFER_SIZE / (x * y * z * ... |
ad568a3abe57807c094f5b0c68a619eadd3835cd.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <math.h>
#include <iostream>
#include <thrust/device_vector.h>
static const size_t N = 102400;
__global__ void kernel(const thrust::device_ptr<float> A, const thrust::device_ptr<float> B, thrust::device_ptr<float> C, int... | ad568a3abe57807c094f5b0c68a619eadd3835cd.cu | #include <cuda.h>
#include <math.h>
#include <iostream>
#include <thrust/device_vector.h>
static const size_t N = 102400;
__global__ void kernel(const thrust::device_ptr<float> A, const thrust::device_ptr<float> B, thrust::device_ptr<float> C, int N)
{
int tid = blockDim.x * blockIdx.x + threadIdx.x;
if (tid... |
ef0b0005e159bd7f295fc71b8122d159bec2617e.hip | // !!! This is a file automatically generated by hipify!!!
#include <torch/extension.h>
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHAtomics.cuh>
#include <THH/THHDeviceUtils.cuh>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <cfloat>
#include <i... | ef0b0005e159bd7f295fc71b8122d159bec2617e.cu |
#include <torch/extension.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cfloat>
#include <iostream>
using std::cout;
using std::endl;
#define BLOCKSIZE 512
na... |
222f041c3e8b3073339a3ae197bad84c73328b33.hip | // !!! This is a file automatically generated by hipify!!!
#include "STLPSimulatorCUDA.h"
#include "ShaderManager.h"
#include "STLPUtils.h"
#include "Utils.h"
#include "HeightMap.h"
#include "CUDAUtils.cuh"
#include "ParticleSystem.h"
#include <random>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.... | 222f041c3e8b3073339a3ae197bad84c73328b33.cu | #include "STLPSimulatorCUDA.h"
#include "ShaderManager.h"
#include "STLPUtils.h"
#include "Utils.h"
#include "HeightMap.h"
#include "CUDAUtils.cuh"
#include "ParticleSystem.h"
#include <random>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
__constant__ int d_const_numProfiles;
__constant__ floa... |
102398ebbb9e29f724816566f761126d51e1de68.hip | // !!! This is a file automatically generated by hipify!!!
/* Based on the NVIDIA example
* Yekta & Dogukan
*/
/**
* 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 gover... | 102398ebbb9e29f724816566f761126d51e1de68.cu | /* Based on the NVIDIA example
* Yekta & Dogukan
*/
/**
* 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, disc... |
69eb16824bde1b7535a2bbfd926eaecec20b88ce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//Author: Dongwei Shi
//Created: 06/15/2016
//Description: this program is for template matching with cuda. The program is expected to template match several template simutaneously
#include <stdio.h>
#include <iostream>
#include <m... | 69eb16824bde1b7535a2bbfd926eaecec20b88ce.cu | //Author: Dongwei Shi
//Created: 06/15/2016
//Description: this program is for template matching with cuda. The program is expected to template match several template simutaneously
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <vector>
#include <unistd.h>
#include <string>
#include <opencv2/opencv.... |
85128f76d957d64399ee4cf9059d902d696dd0a3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define NUM_BLOCKS 16
#define BLOCK_WIDTH 1
__global__ void hello()
{
printf("Hello world! I'm a thread in block %d\n", blockIdx.x);
}
int main(int argc,char **argv)
{
// launch the kernel
hipLaunch... | 85128f76d957d64399ee4cf9059d902d696dd0a3.cu | #include <stdio.h>
#define NUM_BLOCKS 16
#define BLOCK_WIDTH 1
__global__ void hello()
{
printf("Hello world! I'm a thread in block %d\n", blockIdx.x);
}
int main(int argc,char **argv)
{
// launch the kernel
hello<<<NUM_BLOCKS, BLOCK_WIDTH>>>();
// force the printf()s to flush
cudaDeviceSynchro... |
b55804fe3ba32e6b21778a2d3f52af8c6f566ade.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "dynamicconv_cuda.cuh"
#include ... | b55804fe3ba32e6b21778a2d3f52af8c6f566ade.cu | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "dynamicconv_cuda.cuh"
#include "dynamicconv_cuda_forward.cu"
#include "dynamicconv_cuda_backward.cu"
#include "cuda_uti... |
95fb6dd1b2c51b9cbed95890353bbbe3511f1cde.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Implementing the FFT algorithm for general input
* Input should be fp32 vectors with size equals to the power of 4
* Number of vectors is given by BATCH (B)
* Recursive algorithm
* Base case is fft4
* Combine all components in one file
*/
// C incl... | 95fb6dd1b2c51b9cbed95890353bbbe3511f1cde.cu | /*
* Implementing the FFT algorithm for general input
* Input should be fp32 vectors with size equals to the power of 4
* Number of vectors is given by BATCH (B)
* Recursive algorithm
* Base case is fft4
* Combine all components in one file
*/
// C includes
#include <stdio.h>
#include <assert.h>
#include <math.... |
fe0abd00c7eff7d1196eafe293ce0da7a90632a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Memory object sizes:
// 1. hash table build: 2 * 8 * RLEN + 2 * 32 * 1024 * RBUCKETS
// 2. after hash_build before hash_join: 8 * RLEN
// 3. each hash_join: 8 * S_CHUNK_LEN + 8 * RLEN + 8 * n_results
#include <stdio.h>
#include <... | fe0abd00c7eff7d1196eafe293ce0da7a90632a6.cu | // Memory object sizes:
// 1. hash table build: 2 * 8 * RLEN + 2 * 32 * 1024 * RBUCKETS
// 2. after hash_build before hash_join: 8 * RLEN
// 3. each hash_join: 8 * S_CHUNK_LEN + 8 * RLEN + 8 * n_results
#include <stdio.h>
#include <stdlib.h>
#include "../md5/defs.h"
#include "../md5/kernels.cu"
#include "hj.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.