hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
1c87feba498504f435bf1595eea3097c143c0503.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* JCudaVec - Vector operations for JCuda
* http://www.jcuda.org
*
* Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org
*/
extern "C"
__global__ void vec_set (size_t n, double *result, double value)
{
int id ... | 1c87feba498504f435bf1595eea3097c143c0503.cu | /*
* JCudaVec - Vector operations for JCuda
* http://www.jcuda.org
*
* Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org
*/
extern "C"
__global__ void vec_set (size_t n, double *result, double value)
{
int id = threadIdx.x + blockIdx.x * blockDim.x;
if (id < n)
{
result[id] = valu... |
e3ccff1e7593c970c4257beabb2965270369d5c1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define TEST_KERNEL_NEWSEED 0
#define TEST_KERNEL_REFILL 0
#define kThreadBlockMinPtsScale 32
#define GPU_POINT_COORDS(pData,point_id,d) (pData[ARRAY_INDEX((point_id)*D + (d),N*D)])
#define ARRAY_INDEX(a,arrlen) (a) // can be used... | e3ccff1e7593c970c4257beabb2965270369d5c1.cu | #define TEST_KERNEL_NEWSEED 0
#define TEST_KERNEL_REFILL 0
#define kThreadBlockMinPtsScale 32
#define GPU_POINT_COORDS(pData,point_id,d) (pData[ARRAY_INDEX((point_id)*D + (d),N*D)])
#define ARRAY_INDEX(a,arrlen) (a) // can be used for checking
#define DBSCAN_WITHIDX_CLUSTER_ID_INIT (0)
#define DBSCAN_WITHIDX_CLU... |
98d834b3c95f75a5c7bd7d96fca48c9f11aa19f8.hip | // !!! This is a file automatically generated by hipify!!!
#include "relu_layer.h"
#include "sigmoid_layer.h"
#include "softmax_layer.h"
#include "dense_matrix.h"
#include "cuda_helper.h"
#include "cuda_unary_kernel.cuh"
#include "sparse_matrix.h"
#include <hip/hip_runtime.h>
#define min(x, y) (x < y ? x : y)
// ====... | 98d834b3c95f75a5c7bd7d96fca48c9f11aa19f8.cu | #include "relu_layer.h"
#include "sigmoid_layer.h"
#include "softmax_layer.h"
#include "dense_matrix.h"
#include "cuda_helper.h"
#include "cuda_unary_kernel.cuh"
#include "sparse_matrix.h"
#include <cuda_runtime.h>
#define min(x, y) (x < y ? x : y)
// =========================================== relu layer ===========... |
941b06ca1a450f0be3f5b16be4547135a53bcb6a.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2020, NVIDIA CORPORATION. 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:/... | 941b06ca1a450f0be3f5b16be4547135a53bcb6a.cu | // Copyright (c) 2020, NVIDIA CORPORATION. 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 ... |
c6b33d0ca0a79c7aed5ee3214c3cdc8644c53733.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void Mask_Intersect_Kernel( int* A, int* B, int* devOut)
{
const int idx = blockDim.x*blockIdx.x + threadIdx.x;
devOut[idx] = A[idx] * B[idx];
} | c6b33d0ca0a79c7aed5ee3214c3cdc8644c53733.cu | #include "includes.h"
__global__ void Mask_Intersect_Kernel( int* A, int* B, int* devOut)
{
const int idx = blockDim.x*blockIdx.x + threadIdx.x;
devOut[idx] = A[idx] * B[idx];
} |
13bddae2773526af68f871bbbf238a4ae28dbfca.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void pnpoly_cnGPU2(const float *px, const float *py, const float *vx, const float *vy, char* cs, int npoint, int nvert)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
__shared__ float tpx;
__shared__... | 13bddae2773526af68f871bbbf238a4ae28dbfca.cu | #include "includes.h"
__global__ void pnpoly_cnGPU2(const float *px, const float *py, const float *vx, const float *vy, char* cs, int npoint, int nvert)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
__shared__ float tpx;
__shared__ float tpy;
if (i < npoint) {
tpx = px[i];
tpy = py[i];
int j, k, c = 0;
for (j = 0, k =... |
a9b3b9962197d5986ef523b29771a2e71dfd5358.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHDeviceUtils.cuh>
#include <torch/torch.h>
#include <vector>
#include <iostream>
namespace rcnn{
namespace layers{
__launch_bounds__(25... | a9b3b9962197d5986ef523b29771a2e71dfd5358.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCDeviceUtils.cuh>
#include <torch/torch.h>
#include <vector>
#include <iostream>
namespace rcnn{
namespace layers{
__launch_bounds__(256) static __global__
void max_along_gt_idx(float *match, unsigned char *pred_forgi... |
2d4efec3e68468986b8bd002101d94187bfea016.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* (C) Copyright 2020, 2021 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tr... | 2d4efec3e68468986b8bd002101d94187bfea016.cu | /**
* (C) Copyright 2020, 2021 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivati... |
ec7bd757b4b923b98e79e444bc4f020adce2797f.hip | // !!! This is a file automatically generated by hipify!!!
#include "pch.h"
#include "../gridop2_src/gridop2_cpp.h"
#include "../gridop2_src/catch.h"
int main(int argc, char* argv[])
{
try {
const int cuda_devices = hpc::getCudaDeviceCount();
std::cout << "Number of CUDA devices: " << cuda_devices ... | ec7bd757b4b923b98e79e444bc4f020adce2797f.cu | #include "pch.h"
#include "../gridop2_src/gridop2_cpp.h"
#include "../gridop2_src/catch.h"
int main(int argc, char* argv[])
{
try {
const int cuda_devices = hpc::getCudaDeviceCount();
std::cout << "Number of CUDA devices: " << cuda_devices << std::endl;
if (cuda_devices < 1) {
s... |
ad68ef8c8afbb392fe788d66f92eab1df63d6279.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ftl/render/render_params.hpp>
#include "splatter_cuda.hpp"
#include <ftl/rgbd/camera.hpp>
#include <ftl/cuda_common.hpp>
#include <ftl/cuda/weighting.hpp>
#include <ftl/cuda/makers.hpp>
#define T_PER_BLOCK 8
#define ACCU... | ad68ef8c8afbb392fe788d66f92eab1df63d6279.cu | #include <ftl/render/render_params.hpp>
#include "splatter_cuda.hpp"
#include <ftl/rgbd/camera.hpp>
#include <ftl/cuda_common.hpp>
#include <ftl/cuda/weighting.hpp>
#include <ftl/cuda/makers.hpp>
#define T_PER_BLOCK 8
#define ACCUM_DIAMETER 8
using ftl::cuda::TextureObject;
using ftl::render::Parameters;
using ftl::... |
f6e6ae128ab8ab32e836104e7a5f8b405990c3a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/***********************************************************
tissueGPU1.cu
GPU kernel to accumulate contributions of tissue source
strengths qt to tissue solute levels pt.
TWS December 2011
Cuda 10.1 Version, A... | f6e6ae128ab8ab32e836104e7a5f8b405990c3a6.cu | #include "includes.h"
/***********************************************************
tissueGPU1.cu
GPU kernel to accumulate contributions of tissue source
strengths qt to tissue solute levels pt.
TWS December 2011
Cuda 10.1 Version, August 2019
************************************************************/
__global__ vo... |
5a6cc6490e6074268e34f45be9c0e3fad16f1a69.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <iostream>
using namespace std;
#define SIZE 7
__global__ void max(int *a , int *c)
{
int i = threadIdx.x;
*c = a[0];
if(a[i] > *c)
{
... | 5a6cc6490e6074268e34f45be9c0e3fad16f1a69.cu | #include <cuda.h>
#include <iostream>
using namespace std;
#define SIZE 7
__global__ void max(int *a , int *c)
{
int i = threadIdx.x;
*c = a[0];
if(a[i] > *c)
{
*c = a[i];
}
}
int main()
{
int... |
ac67f93516eb1f94655101c9e93073a42fc97e3d.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <math.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <chrono>
#include <algorithm>
#include <stdio.h>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std::chrono;
typedef void(*addFun... | ac67f93516eb1f94655101c9e93073a42fc97e3d.cu | #include <iostream>
#include <math.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <chrono>
#include <algorithm>
#include <stdio.h>
#include <Eigen/Dense>
using namespace Eigen;
using namespace std::chrono;
typedef void(*addFunc)(float*, float*, int);
__device__
void add(float *x, float ... |
8a42f854fee71cdd161c84b85b14e1f2ebf1ca0e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../include/constants.h"
#include "hip/hip_cooperative_groups.h"
#include "stencils.cu"
#include "prefetch_smem.cu"
#include "stencil_border_check.cu"
using namespace cooperative_groups;
__global__ void smem_padded_3d(floa... | 8a42f854fee71cdd161c84b85b14e1f2ebf1ca0e.cu | #include "../include/constants.h"
#include "cooperative_groups.h"
#include "stencils.cu"
#include "prefetch_smem.cu"
#include "stencil_border_check.cu"
using namespace cooperative_groups;
__global__ void smem_padded_3d(float* __restrict__ d_u1,
float* __restrict__ d_u2,
... |
bb9df2fc6d86265f6e2b22c6097a4b4867a0a99d.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2019-2022 by XGBoost Contributors
*/
#include <dmlc/filesystem.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <thrust/device_vector.h>
#include <xgboost/data.h>
#include <xgboost/c_api.h>
#include "test_hist_util... | bb9df2fc6d86265f6e2b22c6097a4b4867a0a99d.cu | /*!
* Copyright 2019-2022 by XGBoost Contributors
*/
#include <dmlc/filesystem.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <thrust/device_vector.h>
#include <xgboost/data.h>
#include <xgboost/c_api.h>
#include "test_hist_util.h"
#include "../helpers.h"
#include "../data/test_array_in... |
454c60df5911016741eb93a1b0868d868005d6e6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
CUDA implementation of the NFFT.
-----------
Accelerating the Non-equispaced Fast Fourier Transform on Commodity Graphics Hardware.
T.S. Srensen, T. Schaeffter, K.. Noe, M.S. Hansen.
IEEE Transactions on Medical Imag... | 454c60df5911016741eb93a1b0868d868005d6e6.cu | /*
CUDA implementation of the NFFT.
-----------
Accelerating the Non-equispaced Fast Fourier Transform on Commodity Graphics Hardware.
T.S. Sørensen, T. Schaeffter, K.Ø. Noe, M.S. Hansen.
IEEE Transactions on Medical Imaging 2008; 27(4):538-547.
Real-time Reconstruction of Sensitivity Encoded Radial Mag... |
e4a0f0c22f2547c4f10c362537d2a4e7a348acfe.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C" __global__
void adagradfloat(float *weights, //weights input and output
float *gsum, //storage
float *dw, //input and will have to set to zero
// float *loss1, //output... | e4a0f0c22f2547c4f10c362537d2a4e7a348acfe.cu | extern "C" __global__
void adagradfloat(float *weights, //weights input and output
float *gsum, //storage
float *dw, //input and will have to set to zero
// float *loss1, //output
// float *loss2, //output
float rate, //input
... |
2ea1d581daee6123b6348d8093142a7d3e149f9f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
//__global__ void kernel( void ) {
// does nothing
//}
int main(int argc, char** argv) {
// default the loop count to equal 1
int loopCount = 1;
// take in a command line arg to set the loop count
... | 2ea1d581daee6123b6348d8093142a7d3e149f9f.cu | #include <stdio.h>
//__global__ void kernel( void ) {
// does nothing
//}
int main(int argc, char** argv) {
// default the loop count to equal 1
int loopCount = 1;
// take in a command line arg to set the loop count
if(argc > 1){
loopCount = atoi(argv[1]);
}
// delcare two variables
int *dev_... |
0e465b36088a0176b1741959aa6dd2917246513e.hip | // !!! This is a file automatically generated by hipify!!!
//Includes for IntelliSense
#define _SIZE_T_DEFINED
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <texture_fetch_functions.h>
#include "float.h"
#include <builtin_types.h>
#include <vector_functions.h>
#include <math.h>
extern "... | 0e465b36088a0176b1741959aa6dd2917246513e.cu | //Includes for IntelliSense
#define _SIZE_T_DEFINED
#include <cuda.h>
#include <device_launch_parameters.h>
#include <texture_fetch_functions.h>
#include "float.h"
#include <builtin_types.h>
#include <vector_functions.h>
#include <math.h>
extern "C"
{
__global__ void FullyConnectedUpdateMovingAveragesKernel(
floa... |
e3729cc3c9c7f80c35ee21866ff7da9089fea0dd.hip | // !!! This is a file automatically generated by hipify!!!
//#include <opencv2/gpu/gpu.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core/version.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
#if CV_VERSION_EPOCH == 2
#define OPENCV2
#include <opencv2/gpu/gpu.hpp>
namespace GPU = cv::gpu;
#eli... | e3729cc3c9c7f80c35ee21866ff7da9089fea0dd.cu | //#include <opencv2/gpu/gpu.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core/version.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;
#if CV_VERSION_EPOCH == 2
#define OPENCV2
#include <opencv2/gpu/gpu.hpp>
namespace GPU = cv::gpu;
#elif CV_VERSION_MAJOR == 4
#define OPENCV4
#include <opencv2... |
f9144fec69b9fb3bfe7d5ad4ea377954f2fcc92b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void vecAdd(float * in1, float * in2, float * out, int len) {
//@@ Insert code to implement vector addition here
int i = blockDim.x*blockIdx.x+threadIdx.x;
if( i < len ) out[i] = in1[i] + in2[i];
} | f9144fec69b9fb3bfe7d5ad4ea377954f2fcc92b.cu |
__global__ void vecAdd(float * in1, float * in2, float * out, int len) {
//@@ Insert code to implement vector addition here
int i = blockDim.x*blockIdx.x+threadIdx.x;
if( i < len ) out[i] = in1[i] + in2[i];
} |
ff14a99094356ca1c569d92fc547d69e0cd303ba.hip | // !!! This is a file automatically generated by hipify!!!
//
// by Jan Eric Kyprianidis <www.kyprianidis.com>
// Copyright (C) 2010-2012 Computer Graphics Systems Group at the
// Hasso-Plattner-Institut, Potsdam, Germany <www.hpi3d.de>
//
// This program is free software: you can redistribute it and/or modify
// it un... | ff14a99094356ca1c569d92fc547d69e0cd303ba.cu | //
// by Jan Eric Kyprianidis <www.kyprianidis.com>
// Copyright (C) 2010-2012 Computer Graphics Systems Group at the
// Hasso-Plattner-Institut, Potsdam, Germany <www.hpi3d.de>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publishe... |
14d6141816eba3ef0bb9bfa2badd953ff60c41a2.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_div.cu"
#include<chrono>
#include<iostream>
using namespace ... | 14d6141816eba3ef0bb9bfa2badd953ff60c41a2.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_div.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{... |
88047e3c3bb919411b2b6ff196267b7f64d6250a.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include <unistd.h>
#include <math.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <ctime>
#include <sys/time.h>
#include "readWeights3... | 88047e3c3bb919411b2b6ff196267b7f64d6250a.cu | #include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include <unistd.h>
#include <math.h>
#include <stdlib.h>
#include <cuda.h>
#include <ctime>
#include <sys/time.h>
#include "readWeights30.h"//to read the weights
#include "deviceFunctions30.h"//contains dev... |
f2945ededddf061ec54cf9e4c882872609007b67.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <fstream>
#include "caffe2/core/common_gpu.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/batch_gather_ops.h"
// Shared batch kernel
#include "caffe2/operators/gather_op.cuh"
namespace caffe2 {
templat... | f2945ededddf061ec54cf9e4c882872609007b67.cu | #include <fstream>
#include "caffe2/core/common_gpu.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/batch_gather_ops.h"
// Shared batch kernel
#include "caffe2/operators/gather_op.cuh"
namespace caffe2 {
template <>
bool BatchGatherOp<CUDAContext>::RunOnDevice() {
return DispatchHelper<TensorType... |
a97f9a4a796b9db50a21bfada51081e55c4ce0c6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <hip/hip_runtime_api.h>
#include <errno.h>
#include <unistd.h>
#include "timer.c"
/*********************************************************
*
*
* To Compile:
* nvcc -o cuda_linear_regres... | a97f9a4a796b9db50a21bfada51081e55c4ce0c6.cu | #include <stdio.h>
#include <math.h>
#include <unistd.h>
#include <cuda_runtime_api.h>
#include <errno.h>
#include <unistd.h>
#include "timer.c"
/*********************************************************
*
*
* To Compile:
* nvcc -o cuda_linear_regression cuda_linear_regression.cu -lm
*
*
* To Run:
* ./cud... |
d2b3722a2ff7aa509e55a791980051fab63ee592.hip | // !!! This is a file automatically generated by hipify!!!
/*
******************************************************************
* HISTORY
* 15-Oct-94 Jeff Shufelt (js), Carnegie Mellon University
* Prepared for 15-681, Fall 1994.
* Modified by Shuai Che
**********************************************************... | d2b3722a2ff7aa509e55a791980051fab63ee592.cu | /*
******************************************************************
* HISTORY
* 15-Oct-94 Jeff Shufelt (js), Carnegie Mellon University
* Prepared for 15-681, Fall 1994.
* Modified by Shuai Che
******************************************************************
*/
#include <omp.h>
#include <stdio.h>
#include ... |
85f34289f48b6c371a74775b742878b21f806f03.hip | // !!! This is a file automatically generated by hipify!!!
//#include <hip/hip_runtime.h>
//#include "device_launch_parameters.h"
//#include <helper_cuda.h>
////#include "sm_20_atomic_functions.h"
//
//#include <thrust/host_vector.h>
//#include <thrust/device_vector.h>
//#include <thrust/count.h>
//#include <stdio.h>
/... | 85f34289f48b6c371a74775b742878b21f806f03.cu | //#include <cuda_runtime.h>
//#include "device_launch_parameters.h"
//#include <helper_cuda.h>
////#include "sm_20_atomic_functions.h"
//
//#include <thrust/host_vector.h>
//#include <thrust/device_vector.h>
//#include <thrust/count.h>
//#include <stdio.h>
//
//#define REAL float
////#define USE_CONST_MEM
//#define HAN... |
b84dfedcff79019dafd43771d7e685e21cf0a041.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include "tests.h"
#include "helper.h"
#include "gpu_pso.h"
texture<float, 2, hipReadModeElementType> texETCMatrix;
__device__ int GetDiscreteCoordT1(float val)
{
return ... | b84dfedcff79019dafd43771d7e685e21cf0a041.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>
#include "tests.h"
#include "helper.h"
#include "gpu_pso.h"
texture<float, 2, cudaReadModeElementType> texETCMatrix;
__device__ int GetDiscreteCoordT1(float val)
{
return floorf(val);
}
/* Unfortunately, we cannot do external calls... |
48398af3615846b55feb970cc38c0c2d8b1872a9.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 48398af3615846b55feb970cc38c0c2d8b1872a9.cu | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
7476fef4c303b1832c1117ded080bae154887c26.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void Float(float * x, bool* y, size_t idxf, size_t idxb, size_t N)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < N; i += blockDim.x * gridDim.x)
x[(idxf)*N + i] = float(y[(idxb-1)*N + i])... | 7476fef4c303b1832c1117ded080bae154887c26.cu | #include "includes.h"
__global__ void Float(float * x, bool* y, size_t idxf, size_t idxb, size_t N)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < N; i += blockDim.x * gridDim.x)
x[(idxf)*N + i] = float(y[(idxb-1)*N + i]);
return;
} |
016eb210649c4bf94afb1c29328ccca49b45ae9c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define TPB 256
#define B 1
__global__ void hello()
{
printf("Hello World ! My thread id is %2d \n",threadIdx.x);
}
int main()
{
hipLaunchKernelGGL(( hello), dim3(B),dim3(TPB), 0, 0, );
hipDeviceSynchronize();... | 016eb210649c4bf94afb1c29328ccca49b45ae9c.cu | #include <stdio.h>
#define TPB 256
#define B 1
__global__ void hello()
{
printf("Hello World ! My thread id is %2d \n",threadIdx.x);
}
int main()
{
hello<<<B,TPB>>>();
cudaDeviceSynchronize();
return 0;
}
|
074feecdddbad9864799c6bf4a1f76d6576c394a.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <stdio.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <hip/hip_runtime.h>
#include "convolution_common.h"
//#include "convolution_hip.cuh"
#include "convolution_test.cuh"
using namespace std;
extern "C" floa... | 074feecdddbad9864799c6bf4a1f76d6576c394a.cu | #include <iostream>
#include <stdio.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <cuda_runtime.h>
#include "convolution_common.h"
//#include "convolution.cuh"
#include "convolution_test.cuh"
using namespace std;
extern "C" float convolution(
float *input,
float *kernel,
... |
047cb6f0ea5fce403bd8e7c41d37f332975bf96a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Modifies by Frost for 1D ussage
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHAtomics.cuh>
#include <THH/TH... | 047cb6f0ea5fce403bd8e7c41d37f332975bf96a.cu | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Modifies by Frost for 1D ussage
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
// TODO make it in a common file
#define CUDA_1D_KERNEL_LOOP(i, n) ... |
7fe4b1111f11f87cc91c8114e3ad9108ff628518.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <chrono>
#define TILE_WIDTH 2
#define WIDTH 4
using namespace std;
/*
//MatrixMul_Kernel Algorithm GPU
__global__
void MatrixMulKernel(float* M, float* N, float* P, ... | 7fe4b1111f11f87cc91c8114e3ad9108ff628518.cu | #include <cuda.h>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <chrono>
#define TILE_WIDTH 2
#define WIDTH 4
using namespace std;
/*
//MatrixMul_Kernel Algorithm GPU
__global__
void MatrixMulKernel(float* M, float* N, float* P, int Width) {
__shared__ float Mds[TILE_WIDTH][TILE_WIDTH];
__shared_... |
9cab8d9e4ff29eaabbf25e3ea7ff0583397e2251.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 9cab8d9e4ff29eaabbf25e3ea7ff0583397e2251.cu | /*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
0dcb16219489c8718eceeccb34437a05633fdc17.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "check_gpu_hit_structures.h"
#include "Hit.h"
#include "HitStructures.h"
#include "HitStructuresCU.h"
#include "reorganize_gplex.h"
#include "gpu_utils.h"
#include <iostream>
__global__ void get_hit_pos_and_err(LayerOfH... | 0dcb16219489c8718eceeccb34437a05633fdc17.cu | #include "check_gpu_hit_structures.h"
#include "Hit.h"
#include "HitStructures.h"
#include "HitStructuresCU.h"
#include "reorganize_gplex.h"
#include "gpu_utils.h"
#include <iostream>
__global__ void get_hit_pos_and_err(LayerOfHitsCU *layers,
int ilay, int hit_idx, float *pos, float *err, int pos_size, int err_... |
827a57f552ac05e572c0dfaa1a282d7c6d7b19a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "Visualizer/Visualizer.cuh"
#include "Geometry/Scene.cuh"
#include <stdio.h>
#include <chrono>
inline __device__ __host__ unsigned int divide_up(unsigned int num, unsigned int denum)... | 827a57f552ac05e572c0dfaa1a282d7c6d7b19a4.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "Visualizer/Visualizer.cuh"
#include "Geometry/Scene.cuh"
#include <stdio.h>
#include <chrono>
inline __device__ __host__ unsigned int divide_up(unsigned int num, unsigned int denum);
void update(bool * keys);
bool updateCamera(bool * keys,Ca... |
b5d4c63aaadf404041f418aa439b8c30d8c1da11.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "full_screen_opengl.h"
struct CudaRenderContext {
unsigned int height, width;
cuda::raw_ptr<Pixel> out;
};
__global__ void renderKernel(CudaRenderContext ctx) {
auto x = blockIdx.x * blockDim.x + threadIdx.x;
auto... | b5d4c63aaadf404041f418aa439b8c30d8c1da11.cu | #include "full_screen_opengl.h"
struct CudaRenderContext {
unsigned int height, width;
cuda::raw_ptr<Pixel> out;
};
__global__ void renderKernel(CudaRenderContext ctx) {
auto x = blockIdx.x * blockDim.x + threadIdx.x;
auto y = blockIdx.y * blockDim.y + threadIdx.y;
//auto threadId = (blockIdx.x + blockIdx.... |
b0621a4181c50f8066df05c0acab837c96e0e019.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// MP 5 Scan
// Given a list (lst) of length n
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ... + lst[n-1]}
// Due Tuesday, January 22, 2013 at 11:59 p.m. PST
#include <wb.h>
#define BLOCK_SIZE 512 //@... | b0621a4181c50f8066df05c0acab837c96e0e019.cu | // MP 5 Scan
// Given a list (lst) of length n
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ... + lst[n-1]}
// Due Tuesday, January 22, 2013 at 11:59 p.m. PST
#include <wb.h>
#define BLOCK_SIZE 512 //@@ You can change this
#define wbCheck(stmt) do { \
... |
9d8b66d6b538254e55fe32e1290f833708f3b0b5.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/core/op_registration/op_registration.h>
#include <ATen/native/hip/Resize.cuh>
#include <ATen/native/ResizeCommon.h>
namespace at {
namespace native {
namespace {
Tensor& resize_cuda_(
... | 9d8b66d6b538254e55fe32e1290f833708f3b0b5.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/core/op_registration/op_registration.h>
#include <ATen/native/cuda/Resize.cuh>
#include <ATen/native/ResizeCommon.h>
namespace at {
namespace native {
namespace {
Tensor& resize_cuda_(
Tensor& self,
IntArrayRef size,
c10::optional<Me... |
1d9b7fb369473be61af351637b83e72fb98cc8ee.hip | // !!! This is a file automatically generated by hipify!!!
/* authors: Kostas Papagiannopoulos, RU
Arturo Cedillo, TU/e
Mathias Morbitzer, RU
Project Lola Scam Van [Low-latency scalar multiplication for VANETs]
This file is part of Project Lola Scam Van. The DIES research group, University of Twente
is... | 1d9b7fb369473be61af351637b83e72fb98cc8ee.cu | /* authors: Kostas Papagiannopoulos, RU
Arturo Cedillo, TU/e
Mathias Morbitzer, RU
Project Lola Scam Van [Low-latency scalar multiplication for VANETs]
This file is part of Project Lola Scam Van. The DIES research group, University of Twente
is free to use and modify the project for research and educat... |
70b91fba7ae8105ed9ee2b4a6a76014e3a34ef8c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
//original c by brade conte, ported to CUDA by jody
#define uchar unsigned char // 8-bit byte
#define uint unsigned int // 32-bit word
#define DBL_INT_ADD(a,b,c) if (a > 0xffffffff - (c)) ++b; a += c;
#defi... | 70b91fba7ae8105ed9ee2b4a6a76014e3a34ef8c.cu | #include "includes.h"
//original c by brade conte, ported to CUDA by jody
#define uchar unsigned char // 8-bit byte
#define uint unsigned int // 32-bit word
#define DBL_INT_ADD(a,b,c) if (a > 0xffffffff - (c)) ++b; a += c;
#define ROTLEFT(a,b) (((a) << (b)) | ((a) >> (32-(b))))
#define ROTRIGHT(a,b) (((a) >> (b)) |... |
8279c140c9b423b723affecaea60125bdd177822.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you... | 8279c140c9b423b723affecaea60125bdd177822.cu | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
b7ae22e453f01f0bf4c1054fff45bfc5b5e4075c.hip | // !!! This is a file automatically generated by hipify!!!
#include "flamegpu/flame_api.h"
#include "flamegpu/runtime/flamegpu_api.h"
#include "flamegpu/util/compute_capability.cuh"
#include "helpers/device_initialisation.h"
#include "gtest/gtest.h"
namespace test_cuda_simulation {
const char *MODEL_NAME = "Model... | b7ae22e453f01f0bf4c1054fff45bfc5b5e4075c.cu | #include "flamegpu/flame_api.h"
#include "flamegpu/runtime/flamegpu_api.h"
#include "flamegpu/util/compute_capability.cuh"
#include "helpers/device_initialisation.h"
#include "gtest/gtest.h"
namespace test_cuda_simulation {
const char *MODEL_NAME = "Model";
const char *MODEL_NAME2 = "Model2";
const char *... |
67b6ba7a2990099697fdc3e645401e99eb569b8e.hip | // !!! This is a file automatically generated by hipify!!!
#include <thrust/device_vector.h>
#include <thrust/scan.h>
#include <thrust/system/hip/execution_policy.h>
#include <typeinfo>
#include "time_invocation_cuda.hpp"
#include "utility.hpp"
template<class Vector>
struct inclusive_scan_functor
{
typename Vector::... | 67b6ba7a2990099697fdc3e645401e99eb569b8e.cu | #include <thrust/device_vector.h>
#include <thrust/scan.h>
#include <thrust/system/cuda/execution_policy.h>
#include <typeinfo>
#include "time_invocation_cuda.hpp"
#include "utility.hpp"
template<class Vector>
struct inclusive_scan_functor
{
typename Vector::iterator first, last, result;
__host__ __device__
inc... |
db5bcae7dd4602a538825c1f3eb13f6fce07fa6d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License,... | db5bcae7dd4602a538825c1f3eb13f6fce07fa6d.cu | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
a930719017174cdfc59fc9ad3fb56852638ed0cd.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2018-2020 NVIDIA Corporation
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Released under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
#include <cuda/std/cstdint>
#i... | a930719017174cdfc59fc9ad3fb56852638ed0cd.cu | // Copyright (c) 2018-2020 NVIDIA Corporation
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Released under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
#include <cuda/std/cstdint>
#include <cuda/std/atomic>
// TODO: It would be great if thi... |
7a5e6795063c1b3ef0c1ba5f1ec7affa71a6b9fb.hip | // !!! This is a file automatically generated by hipify!!!
// Includes
#include <stdio.h>
#include <stdlib.h>
// includes from project
// includes from CUDA
#include <hip/hip_runtime.h>
//#include <helper_math.h>
#define THREADS_PER_BLOCK 256
#define NUM_OF_BLOCKS 640
// Variables
float* h_A;
float* h_B;
float* h_... | 7a5e6795063c1b3ef0c1ba5f1ec7affa71a6b9fb.cu | // Includes
#include <stdio.h>
#include <stdlib.h>
// includes from project
// includes from CUDA
#include <cuda_runtime.h>
//#include <helper_math.h>
#define THREADS_PER_BLOCK 256
#define NUM_OF_BLOCKS 640
// Variables
float* h_A;
float* h_B;
float* h_C;
float* d_A;
float* d_B;
float* d_C;
// Functions
void Clea... |
5a67a6efda383c89fab30514a9f35e6507aba2d2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
__global__
void crossEntropyCostDerivative(float *desiredOutput, unsigned int length, float *networkOutput, float* result)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x;
i < length;
i += bl... | 5a67a6efda383c89fab30514a9f35e6507aba2d2.cu | extern "C"
__global__
void crossEntropyCostDerivative(float *desiredOutput, unsigned int length, float *networkOutput, float* result)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x;
i < length;
i += blockDim.x * gridDim.x)
{
result[i]=-desiredOutput[i]/(0.00001f+networkOu... |
c131a3c9c61662322aaedf8135f4112b52c99de3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
__global__ void VecAdd(float* A, float* B, float*
C, int N){
// Host code
int i = blockDim.x * blockIdx.x + threadIdx.x;
if (i < N)
C[i] = A[i] + B[i];
}
int main... | c131a3c9c61662322aaedf8135f4112b52c99de3.cu | #include <stdlib.h>
#include <stdio.h>
__global__ void VecAdd(float* A, float* B, float*
C, int N){
// Host code
int i = blockDim.x * blockIdx.x + threadIdx.x;
if (i < N)
C[i] = A[i] + B[i];
}
int main(int argc,char **argv) {
int N = pow(2,15);
size_t size = N * sizeof(float);
... |
023a4303cba14b01ceefb234ce4e26e817551328.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMath.cu"
#else
THC_API void
THCTensor_(fill)(THCState* state, THCTensor *self_, real value)
{
THCAssertSameGPU(THCTensor_(checkGPU)(state, 1, self_));
if (!TH... | 023a4303cba14b01ceefb234ce4e26e817551328.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorMath.cu"
#else
THC_API void
THCTensor_(fill)(THCState* state, THCTensor *self_, real value)
{
THCAssertSameGPU(THCTensor_(checkGPU)(state, 1, self_));
if (!THC_pointwiseApply1<real>(
state, self_, TensorFillOp<real>(value))) {
THArgCh... |
ff8c5916e75d0e2e1b21bf2b3d1d6aba9a0bf60a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | ff8c5916e75d0e2e1b21bf2b3d1d6aba9a0bf60a.cu | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
2339e2218c3b568ba723f5a98abd915c9092a10d.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2020, the YACCLAB contributors, as
// shown by the AUTHORS file. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <opencv2/cudafeatures2d.hpp>
#include "... | 2339e2218c3b568ba723f5a98abd915c9092a10d.cu | // Copyright (c) 2020, the YACCLAB contributors, as
// shown by the AUTHORS file. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include <opencv2/cudafeatures2d.hpp>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#inc... |
1c44780a6892ceebd060449c2e1892e6ede58008.hip | // !!! This is a file automatically generated by hipify!!!
#include "cuNVSM/gradient_check.h"
template <typename ModelT>
bool GradientCheckFn<ModelT>::operator()(
ModelT* const model,
const typename ModelT::Batch& batch,
const typename ModelT::ForwardResult& result,
const typename Model... | 1c44780a6892ceebd060449c2e1892e6ede58008.cu | #include "cuNVSM/gradient_check.h"
template <typename ModelT>
bool GradientCheckFn<ModelT>::operator()(
ModelT* const model,
const typename ModelT::Batch& batch,
const typename ModelT::ForwardResult& result,
const typename ModelT::Gradients& gradients,
const FloatT epsilon,
... |
254dc9b1bac71b28b2942b6de86f480cc7da5030.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <marginalized/kernel.h>
#include <misc/numpy_type.h>
using namespace graphdot;
using namespace numpy_type;
${node_kernel}
${edge_kernel}
using node_t = ${node_t};
using edge_t = ${edge_t};
using graph_t = graphdot::mar... | 254dc9b1bac71b28b2942b6de86f480cc7da5030.cu | #include <marginalized/kernel.h>
#include <misc/numpy_type.h>
using namespace graphdot;
using namespace numpy_type;
${node_kernel}
${edge_kernel}
using node_t = ${node_t};
using edge_t = ${edge_t};
using graph_t = graphdot::marginalized::graph_t<node_t, edge_t>;
using scratch_t = graphdot::marginalized::block_scra... |
89bb9c74f20d5d1956aff48f5596c4b09f9416b5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <float.h>
#include <math.h>
#include <iostream>
#include "libarff/arff_parser.h"
#include "libarff/arff_data.h"
using namespace std;
__global__ void sKNN(float *at... | 89bb9c74f20d5d1956aff48f5596c4b09f9416b5.cu | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <float.h>
#include <math.h>
#include <iostream>
#include "libarff/arff_parser.h"
#include "libarff/arff_data.h"
using namespace std;
__global__ void sKNN(float *attr, int *val, int n_att, int n_inst, float *distance, int com, float *smallestDistance){... |
69511bbbf53ad427f87f3a0be917a8f03eed6519.hip | // !!! This is a file automatically generated by hipify!!!
#include "FCLayer.h"
//#include <hip/hip_runtime.h>
//#include "hip/hip_runtime.h"
//#include "device_launch_parameters.h"
#include "math_functions.h"
#include <cmath>
#define GPU_WARP_DISPATCHERS 2
#define GPU_WARP_SIZE 32
void print_d_var2(float *d_v, int r... | 69511bbbf53ad427f87f3a0be917a8f03eed6519.cu | #include "FCLayer.h"
//#include <cuda.h>
//#include "cuda_runtime.h"
//#include "device_launch_parameters.h"
#include "math_functions.h"
#include <cmath>
#define GPU_WARP_DISPATCHERS 2
#define GPU_WARP_SIZE 32
void print_d_var2(float *d_v, int r, int c, bool print_elem = true) {
std::cout << "**********************... |
c062389dbf102e7cf7f41e1a634724c0bd4c780c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright (c) 2022, The Neko Authors
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 ... | c062389dbf102e7cf7f41e1a634724c0bd4c780c.cu | /*
Copyright (c) 2022, The Neko Authors
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, this list of conditions and ... |
336e64cbdd96c2b9a75ffb36adf6dc388efce8b0.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <algorithm>
#include "SyncedMemory.h"
#include "pgm.h"
#include "lab3.h"
using namespace std;
#define CHECK {\
auto e = hipDeviceSynchronize();\
if (e != hipSuccess) {\
printf("At " __FILE__ ... | 336e64cbdd96c2b9a75ffb36adf6dc388efce8b0.cu | #include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <algorithm>
#include "SyncedMemory.h"
#include "pgm.h"
#include "lab3.h"
using namespace std;
#define CHECK {\
auto e = cudaDeviceSynchronize();\
if (e != cudaSuccess) {\
printf("At " __FILE__ ":%d, %s\n", __LINE__, cudaGetErrorString(e));\
abort()... |
205df864744d76e1fea69f97ccfd487b8f6832ca.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Assignment 1: ParallelSine
// CSCI 415: Networking and Parallel Computation
// Spring 2017
// Name(s):
//
// Sine implementation derived from slides here: http://15418.courses.cs.cmu.edu/spring2016/lecture/basicarch
// stan... | 205df864744d76e1fea69f97ccfd487b8f6832ca.cu | //
// Assignment 1: ParallelSine
// CSCI 415: Networking and Parallel Computation
// Spring 2017
// Name(s):
//
// Sine implementation derived from slides here: http://15418.courses.cs.cmu.edu/spring2016/lecture/basicarch
// standard imports
#include <stdio.h>
#include <math.h>
#include <iomanip>
#include <iostream>... |
KernelInvoker.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "KernelInvoker.cuh"
#include <iostream>
#include <stdexcept>
extern int* h_no_sensors;
extern int* h_no_hits;
extern int* h_sensor_Zs;
extern int* h_sensor_hitStarts;
extern int* h_sensor_hitNums;
extern unsigne... | KernelInvoker.cu | #include "KernelInvoker.cuh"
#include <iostream>
#include <stdexcept>
extern int* h_no_sensors;
extern int* h_no_hits;
extern int* h_sensor_Zs;
extern int* h_sensor_hitStarts;
extern int* h_sensor_hitNums;
extern unsigned int* h_hit_IDs;
extern float* h_hit_Xs;
extern float* h_hit_Ys;
extern float* h_hit_Zs... |
b543099f60542696b9f6d6c65098201c8d5115ad.hip | // !!! This is a file automatically generated by hipify!!!
// incrementArray.cu
#include <stdio.h>
#include <assert.h>
#include <hip/hip_runtime.h>
void incrementArrayOnHost(float *a, int N)
{
int i;
for (i=0; i < N; i++) a[i] = a[i]+1.f;
}
__global__ void incrementArrayOnDevice(float *a, int N)
{
int idx = block... | b543099f60542696b9f6d6c65098201c8d5115ad.cu | // incrementArray.cu
#include <stdio.h>
#include <assert.h>
#include <cuda.h>
void incrementArrayOnHost(float *a, int N)
{
int i;
for (i=0; i < N; i++) a[i] = a[i]+1.f;
}
__global__ void incrementArrayOnDevice(float *a, int N)
{
int idx = blockIdx.x*blockDim.x + threadIdx.x;
if (idx<N) a[idx] = a[idx]+1.f;
}
in... |
38308573f79957dafdce5b9df0ff2506bddfb7d4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <petscsys.h>
#include <assert.h>
#include "ex52_gpu.h"
#if (SPATIAL_DIM_0 == 2)
__device__ vecType f1_laplacian_coef(realType u[], vecType gradU[], realType kappa, int comp) {
vecType l = {kappa*gradU[comp].x, kappa*gr... | 38308573f79957dafdce5b9df0ff2506bddfb7d4.cu | #include <petscsys.h>
#include <assert.h>
#include "ex52_gpu.h"
#if (SPATIAL_DIM_0 == 2)
__device__ vecType f1_laplacian_coef(realType u[], vecType gradU[], realType kappa, int comp) {
vecType l = {kappa*gradU[comp].x, kappa*gradU[comp].y};
return l;
}
__device__ vecType f1_elasticity_coef(realType u[], vecType... |
0ad41e2444c056a17d114a60d5e57752f1225a18.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath>
#include <vector>
#include <iostream>
#include "caffe/layers/truncation_layer.hpp"
#include "caffe/util/math_functions.hpp"
using namespace std;
namespace caffe {
template <typename Dtype>
__device__ Dtype Max(... | 0ad41e2444c056a17d114a60d5e57752f1225a18.cu | #include <cmath>
#include <vector>
#include <iostream>
#include "caffe/layers/truncation_layer.hpp"
#include "caffe/util/math_functions.hpp"
using namespace std;
namespace caffe {
template <typename Dtype>
__device__ Dtype Max(const Dtype x, const Dtype y) {
return ((x > y) ? x : y);
}
template <typename Dtype>... |
251df53aa45624968c5424c5920a25f542cb5b96.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "hipfft.h"
#include "cufftw.h"
#include <stdlib.h>
#include<math.h>
#include "hipfftXt.h"
#include <stdio.h>
#include<iostream>
#include<stdlib.h>
#include <fstream>
//using namesp... | 251df53aa45624968c5424c5920a25f542cb5b96.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "cufft.h"
#include "cufftw.h"
#include <stdlib.h>
#include<math.h>
#include "cufftXt.h"
#include <stdio.h>
#include<iostream>
#include<stdlib.h>
#include <fstream>
//using namespace std;
//#define PI 3.1415926535897932384626433832795028841971... |
a635867a3c9ffdbb544ab74da3c055534dbb3cc2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*------------int_add---------------------------------------------------------//
*
* Purpose: adding integers with the gpu! I am excited! Woo!
*
*-----------------------------------------------------------------------------*/
#incl... | a635867a3c9ffdbb544ab74da3c055534dbb3cc2.cu | /*------------int_add---------------------------------------------------------//
*
* Purpose: adding integers with the gpu! I am excited! Woo!
*
*-----------------------------------------------------------------------------*/
#include<iostream>
__global__ void add(int *a, int *b, int *c){
*c = *b + *a;
}
using ... |
a703e3ebd3f3e8201f4c6990153a56a05fb74725.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <hip/hip_runtime.h>
#include <signal.h>
#include "util.hpp"
#include <unistd.h>
using namespace std;
unsigned int *random_numbers;
unsigned int *random_numbers_dev;
/* launch one block */
#def... | a703e3ebd3f3e8201f4c6990153a56a05fb74725.cu | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cuda_runtime.h>
#include <signal.h>
#include "util.hpp"
#include <unistd.h>
using namespace std;
unsigned int *random_numbers;
unsigned int *random_numbers_dev;
/* launch one block */
#define BLOCKSIZE 256
#define NUM_THREADS BLOCKSIZE
#define NUM_RA... |
b32af3474b807451d2c1a9b300d0555258b1f920.hip | // !!! This is a file automatically generated by hipify!!!
/*
* ParaStation
*
* Copyright (C) 2016-2021 ParTec Cluster Competence Center GmbH, Munich
* Copyright (C) 2021-2023 ParTec AG, Munich
*
* This file may be distributed under the terms of the Q Public License
* as defined in the file LICENSE.QPL included ... | b32af3474b807451d2c1a9b300d0555258b1f920.cu | /*
* ParaStation
*
* Copyright (C) 2016-2021 ParTec Cluster Competence Center GmbH, Munich
* Copyright (C) 2021-2023 ParTec AG, Munich
*
* This file may be distributed under the terms of the Q Public License
* as defined in the file LICENSE.QPL included in the packaging of this
* file.
*/
#include <mpi.h>
ext... |
d64df5d2cbff1d24116d6d993d6acb4b860d6efb.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
#include <fstream>
#include <math.h>
#include <unistd.h>
#include <stdlib.h>
#include <string>
#include <stdio.h>
#include <cmath>
#include<sys/stat.h>
#include<ctime>
#include <hip... | d64df5d2cbff1d24116d6d993d6acb4b860d6efb.cu | #include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
#include <fstream>
#include <math.h>
#include <unistd.h>
#include <stdlib.h>
#include <string>
#include <stdio.h>
#include <cmath>
#include<sys/stat.h>
#include<ctime>
#include <cuda_runtime.h>
#include<thrust/reduce.h>
#include<cuda_runti... |
a73c0921a1f3ba6651e949af3ef56b258ad2da0d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms,... | a73c0921a1f3ba6651e949af3ef56b258ad2da0d.cu | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
79abe6de62d3fc1081955d7c745113b8b4ab031a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef INSIZE
#define DEBUG 0
#define INSIZE 256 //dimension of 'in'
#define N_ATOMS 64 //atoms inside 'in'
#define N_FRAGS 4 //number of fragments
#define MASKSIZE 256 //dimension of the 'mask'
#define VOLUMESIZE 1000000 //dimensi... | 79abe6de62d3fc1081955d7c745113b8b4ab031a.cu | #ifndef INSIZE
#define DEBUG 0
#define INSIZE 256 //dimension of 'in'
#define N_ATOMS 64 //atoms inside 'in'
#define N_FRAGS 4 //number of fragments
#define MASKSIZE 256 //dimension of the 'mask'
#define VOLUMESIZE 1000000 //dimension of 'score_pos'
#define MAX_ANGLE 256
#define LIMIT_DISTANCE2 2.0 //used in fragment_... |
eed68e691de9d769fbbdac6b98b54266870a5bbe.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
... | eed68e691de9d769fbbdac6b98b54266870a5bbe.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 ... |
eeaef0fec7c212777a842a2067642ea3d426252d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//#include "internal_shared.hpp"
#include <thrust/sort.h>
#include <opencv2/gpu/gpumat.hpp>
#include <opencv2/gpu/device/common.hpp>
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include... | eeaef0fec7c212777a842a2067642ea3d426252d.cu | //#include "internal_shared.hpp"
#include <thrust/sort.h>
#include <opencv2/gpu/gpumat.hpp>
#include <opencv2/gpu/device/common.hpp>
#include "opencv2/gpu/device/limits.hpp"
#include "opencv2/gpu/device/saturate_cast.hpp"
#include "opencv2/gpu/device/utility.hpp"
#include "opencv2/gpu/device/functional.hpp"
#include ... |
c31d759a92d133ff68f2edef774f755ad6dbf5f3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHAtomics.cuh>
#include <THH/THHDeviceUtils.cuh>
// TODO make it ... | c31d759a92d133ff68f2edef774f755ad6dbf5f3.cu | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
// TODO make it in a common file
#define CUDA_1D_KERNEL_LOOP(i, n) \
for ... |
ac5f01649e7cd7b7bb2c1a33bd027bcf75f3cd25.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#define ROWS 4
#define COLUMNS 5
typedef struct mystruct
{
int a[ROWS];
int **data;
}mystruct;
__global__ void printKernel(mystruct *d_var)
{
int i, j;
for(i = 0; i < ROWS; i++)
{
for(... | ac5f01649e7cd7b7bb2c1a33bd027bcf75f3cd25.cu | #include <stdio.h>
#include <stdlib.h>
#define ROWS 4
#define COLUMNS 5
typedef struct mystruct
{
int a[ROWS];
int **data;
}mystruct;
__global__ void printKernel(mystruct *d_var)
{
int i, j;
for(i = 0; i < ROWS; i++)
{
for(j = 0; j < COLUMNS; j++)
{
printf("%d\t", d_var->data[i][j]);
}
printf("\n");
... |
11b772792d2f1d6e9647c20d58cda71f188a0d5f.hip | // !!! This is a file automatically generated by hipify!!!
//ulimit -s unlimited
//nvcc -lcusparse test.cu
//nvcc -lcublas -lcusparse -arch sm_20 test.cu && ./a.out
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <hip/hip_runtime.h>
#include "hip/device_function... | 11b772792d2f1d6e9647c20d58cda71f188a0d5f.cu | //ulimit -s unlimited
//nvcc -lcusparse test.cu
//nvcc -lcublas -lcusparse -arch sm_20 test.cu && ./a.out
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <cuda.h>
#include "device_functions.h"
#include <curand.h>
#include <curand_kernel.h>
#include <cuda_runtime... |
32c0b400452c0d2c4b677d05f50ca8a45b2e64c2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "saber/funcs/impl/cuda/saber_concat.h"
#include "saber/funcs/impl/cuda/reorder.h"
#include "saber/funcs/calibrate.h"
namespace anakin{
namespace saber{
const int BLOCK_SIZE = 32;
template <typename dtype>
__global__ voi... | 32c0b400452c0d2c4b677d05f50ca8a45b2e64c2.cu | #include "saber/funcs/impl/cuda/saber_concat.h"
#include "saber/funcs/impl/cuda/reorder.h"
#include "saber/funcs/calibrate.h"
namespace anakin{
namespace saber{
const int BLOCK_SIZE = 32;
template <typename dtype>
__global__ void concat_impl_cuda(const int nthreads, const dtype* in_data,
... |
028b00303012732bab60397bb904c6c70197830c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2019,20-21-22 NVIDIA CORPORATION & AFFILIATES.
// All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You m... | 028b00303012732bab60397bb904c6c70197830c.cu | // Copyright (c) 2019,20-21-22 NVIDIA CORPORATION & AFFILIATES.
// All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//... |
a507bfe3c20e643f597f15c0df2ec5fcd23ca075.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 "decrementalColouringNew.cu"
#include<chrono>
#include<iostream>
... | a507bfe3c20e643f597f15c0df2ec5fcd23ca075.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 "decrementalColouringNew.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{... |
994f64da74f1e2c48aafacaca9f6fa498015d503.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include <cmath>
using namespace std;
#define CUDA_SAFE_CALL( err ) (safe_call(e... | 994f64da74f1e2c48aafacaca9f6fa498015d503.cu | #include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include <cmath>
using namespace std;
#define CUDA_SAFE_CALL( err ) (safe_call(err, __LINE__))
#define MAX_THREADS_PER_BLOCK 1024
#define GLOBAL_MAX_E... |
72bf24144b23ebc0535c2a2b5d35ee95a303bbc1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cu_dense_stereo.h"
#include "launch_utils.h"
#include "MatUtils.h"
#include "patch_score.h"
#include "disparity.h"
#include "InvalidValue.h"
#include "ImageApron.h"
namespace roo
{
const int MinDisparity = 0;
const int ... | 72bf24144b23ebc0535c2a2b5d35ee95a303bbc1.cu | #include "cu_dense_stereo.h"
#include "launch_utils.h"
#include "MatUtils.h"
#include "patch_score.h"
#include "disparity.h"
#include "InvalidValue.h"
#include "ImageApron.h"
namespace roo
{
const int MinDisparity = 0;
const int DefaultRad = 1;
//typedef SSNDPatchScore<float,DefaultRad,ImgAccessRaw> DefaultSafeScore... |
3f1eb6e15c69d6944ff5bc13a6c4632fd3b6f2d7.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/zlaswp_sym.cu, normal z -> s, T... | 3f1eb6e15c69d6944ff5bc13a6c4632fd3b6f2d7.cu | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from magmablas/zlaswp_sym.cu, normal z -> s, Tue Aug 30 09:38:32 2016
@author Stan Tomov
@author Mathieu Faverge... |
0854b815a106f20d618b6b93f3488f3e4b1e4999.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void kSoftMaxCrossEntropyRowMajor(float* mat, float* labels, float* target, unsigned int width, unsigned int height, float tiny) {
const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
cons... | 0854b815a106f20d618b6b93f3488f3e4b1e4999.cu | #include "includes.h"
__global__ void kSoftMaxCrossEntropyRowMajor(float* mat, float* labels, float* target, unsigned int width, unsigned int height, float tiny) {
const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
const unsigned int numThreads = blockDim.x * gridDim.x;
for (unsigned int i = idx; i < heigh... |
2d65a76698779bf622c46c7d5cf07440b8664c25.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2021 PlenOctree Authors
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code ... | 2d65a76698779bf622c46c7d5cf07440b8664c25.cu | /*
* Copyright 2021 PlenOctree Authors
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following dis... |
56ffd66bd6bd5f03ae64eecf4ceae90834c91a08.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zlarfgx-v2.cu normal z -> c, Fri Jan 30 ... | 56ffd66bd6bd5f03ae64eecf4ceae90834c91a08.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zlarfgx-v2.cu normal z -> c, Fri Jan 30 19:00:09 2015
*/
#include "common_magma.h"
#include "commonblas_c.h"
// 512 is maximum... |
b39fd5d0bd42a9368786d8ede44a573e61a5f702.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zlarf.cu normal z -> d, Wed Sep 17 15:... | b39fd5d0bd42a9368786d8ede44a573e61a5f702.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zlarf.cu normal z -> d, Wed Sep 17 15:08:23 2014
@author Azzam Haidar
*/
#include "common_magma.h"
#include "magma_tem... |
cbfe5e58c5f0287d3f726feda23b6bfbfe1dd382.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "../../Library/image_buffer.h"
#include "../../Library/image_function.h"
#include "../../Library/cuda/cuda_types.cuh"
#include "../../Library/cuda/image_function_cuda.cuh"
#include "unit_test_helper_cuda.cuh"
namespace
{
... | cbfe5e58c5f0287d3f726feda23b6bfbfe1dd382.cu | #include <cuda_runtime.h>
#include "../../Library/image_buffer.h"
#include "../../Library/image_function.h"
#include "../../Library/cuda/cuda_types.cuh"
#include "../../Library/cuda/image_function_cuda.cuh"
#include "unit_test_helper_cuda.cuh"
namespace
{
// This function must run with thread count as 1
__glob... |
6e80aac370f09c28715fe9ff3b0f7fae58fe7c15.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* objective
* C = A*B // A[m][k], B[k][n], C[m][n]
* compile: nvcc --gpu-architecture=compute_60 --gpu-code=sm_60 -O3 matmul_double.cu -o matmul_double
*/
#include <iostream>
#include <cstdlib>
#include <math.h>
# define BLK... | 6e80aac370f09c28715fe9ff3b0f7fae58fe7c15.cu | /* objective
* C = A*B // A[m][k], B[k][n], C[m][n]
* compile: nvcc --gpu-architecture=compute_60 --gpu-code=sm_60 -O3 matmul_double.cu -o matmul_double
*/
#include <iostream>
#include <cstdlib>
#include <math.h>
# define BLK_SIZE 4
#define EC(ans) { chkerr((ans), __FILE__, __LINE__); }
inline void chkerr(cudaEr... |
1e41a8b6a4d54755bcad0a4b5b4b514e1feadcf8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 30-May-2011 22:03:11
//
// user function
__device__ ... | 1e41a8b6a4d54755bcad0a4b5b4b514e1feadcf8.cu | //
// auto-generated by op2.m on 30-May-2011 22:03:11
//
// user function
__device__
#include "bres_calc.h" ... |
d87193e13ea547165cebf1a5efda3a885ad15681.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <vector>
#include "caffe/layers/contrastive_accuracy_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ContrastiveAccuracyLayer<Dtype>::Forward_gpu(... | d87193e13ea547165cebf1a5efda3a885ad15681.cu | #include <algorithm>
#include <vector>
#include "caffe/layers/contrastive_accuracy_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ContrastiveAccuracyLayer<Dtype>::Forward_gpu(
const vector<Blob<Dtype>*>& bottom, const vector<Blob<Dtype>*>& top) {
const int ... |
c1ef96b2cf2a2f093a8c3c1dd6dea31b6b3089d7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file test_count_neighbours.cu
* @author Adam Rogowiec
*
* This file is an integral part of the master thesis entitled:
* "Elaboration and implementation in CUDA technology parallel version of
* estimation of multidi... | c1ef96b2cf2a2f093a8c3c1dd6dea31b6b3089d7.cu | /**
* @file test_count_neighbours.cu
* @author Adam Rogowiec
*
* This file is an integral part of the master thesis entitled:
* "Elaboration and implementation in CUDA technology parallel version of
* estimation of multidimensional random variable density function ridge
* detection algorithm."
* , which is ... |
ae1a54ec18744a1ea6924dcdbc36188bcbfbaf65.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void mat_sum_by_row(
float* dst, float*src,int stride){
int tx = threadIdx.x;
float sum = 0;
for (int i = 0; i < stride; i++)
sum += src[tx + i * stride];
... | ae1a54ec18744a1ea6924dcdbc36188bcbfbaf65.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
__global__ void mat_sum_by_row(
float* dst, float*src,int stride){
int tx = threadIdx.x;
float sum = 0;
for (int i = 0; i < stride; i++)
sum += src[tx + i * stride];
dst[tx] = sum;
}
__global__ void mat_sum_by_column(
float* d... |
e68aff98ed061f86ad5a7fb650822a8087829f21.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <opencv2/opencv.hpp>
extern "C" void CUDA_Gaussian_Filter(uchar *pcuSrc, uchar *pcuDst,
int w, int h, float *cuGkernel, int kernel_size);
__global__
void cuda_Filt... | e68aff98ed061f86ad5a7fb650822a8087829f21.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <opencv2/opencv.hpp>
extern "C" void CUDA_Gaussian_Filter(uchar *pcuSrc, uchar *pcuDst,
int w, int h, float *cuGkernel, int kernel_size);
__global__
void cuda_Filter_2D(uchar * pSrcImage, uchar *pDstImage,
int SrcWidth, int ... |
69835c8f05261b03a33a37f258b32092475c1dd0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any... | 69835c8f05261b03a33a37f258b32092475c1dd0.cu | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modifications thereto. Any use, reproduction, disclosure, or distribution
* of this ... |
e15e45b8af8e98208d42c8cfb93f5aa9bd08b488.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use,... | e15e45b8af8e98208d42c8cfb93f5aa9bd08b488.cu | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduction, disclosure, or distribution of this software
* and related documentation... |
4b9b1f9b69e7e7e66001de13407e444b6f7c9231.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "repeat_interleave.h"
#include <ATen/hip/HIPContext.h>
__global__ static void compute_cuda_kernel(const int64_t * __restrict__ repeat_ptr, const int64_t * __restrict__ cumsum_ptr,
... | 4b9b1f9b69e7e7e66001de13407e444b6f7c9231.cu | #include "repeat_interleave.h"
#include <ATen/cuda/CUDAContext.h>
__global__ static void compute_cuda_kernel(const int64_t * __restrict__ repeat_ptr, const int64_t * __restrict__ cumsum_ptr,
int64_t * __restrict__ result_ptr, int64_t size) {
int64_t idx = blockIdx.x * blo... |
296fd9fb6f7d57bc574b5f696aba39a3216d9748.hip | // !!! This is a file automatically generated by hipify!!!
#include "BufferedWindow.cuh"
#include "../Window/WindowsWindow.cuh"
#include <new>
BufferedWindow::BufferedWindow(OptionFlags optionFlags, Window *target, const wchar_t *windowName, FrameBufferManager *frameBufferManager, int renderingDeviceId, int refreshIn... | 296fd9fb6f7d57bc574b5f696aba39a3216d9748.cu | #include "BufferedWindow.cuh"
#include "../Window/WindowsWindow.cuh"
#include <new>
BufferedWindow::BufferedWindow(OptionFlags optionFlags, Window *target, const wchar_t *windowName, FrameBufferManager *frameBufferManager, int renderingDeviceId, int refreshIntervalMilliseconds) {
options = optionFlags;
bufferManage... |
af3cb8561891f85b203a6a25dacbecd90de9f19b.hip | // !!! This is a file automatically generated by hipify!!!
#include "CudaHelpers.h"
#include "GatherShuffle.h"
#include "ScatterShuffle.h"
#include "shuffle/FeistelBijectiveShuffle.h"
#include "shuffle/FisherYatesShuffle.h"
#include "shuffle/GPUSwapShuffle.h"
#include "shuffle/LCGBijectiveShuffle.h"
#include "shuffle/L... | af3cb8561891f85b203a6a25dacbecd90de9f19b.cu | #include "CudaHelpers.h"
#include "GatherShuffle.h"
#include "ScatterShuffle.h"
#include "shuffle/FeistelBijectiveShuffle.h"
#include "shuffle/FisherYatesShuffle.h"
#include "shuffle/GPUSwapShuffle.h"
#include "shuffle/LCGBijectiveShuffle.h"
#include "shuffle/LubyRackoffBijectiveShuffle.h"
#include "shuffle/MergeShuffl... |
e2c1db860388c151774a985efe7f774c125acbaf.hip | // !!! This is a file automatically generated by hipify!!!
#include <vector>
#include <fstream>
#include <iostream>
#include <cmath>
#include <ctime>
#include <hip/hip_runtime.h>
#include <cuda_device_runtime_api.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#define DEBUG
#define CHECK_GPU_RES... | e2c1db860388c151774a985efe7f774c125acbaf.cu | #include <vector>
#include <fstream>
#include <iostream>
#include <cmath>
#include <ctime>
#include <cuda.h>
#include <cuda_device_runtime_api.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#define DEBUG
#define CHECK_GPU_RESULTS
#define PRINT_TIME
#define HEAD_LENGTH 5
// функция, которая ожи... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.