hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
50ca423c8cb6b0a6a88832e126c616ad537d0724.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/AccumulateType.h>
#include <ATen/div_rtn.h>
#include <ATen/hip/HIPBlas.h>
#include <ATen/hip/detail/KernelUtils.h>
#i... | 50ca423c8cb6b0a6a88832e126c616ad537d0724.cu | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/Dispatch.h>
#include <ATen/AccumulateType.h>
#include <ATen/div_rtn.h>
#include <ATen/cuda/CUDABlas.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <ATen/native/ConvUtils.h>
#include <ATen/native/cuda/block_reduce.cuh>
#includ... |
88c9e23c9d4ebc2c6cc567fc0149f733015cba88.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may n... | 88c9e23c9d4ebc2c6cc567fc0149f733015cba88.cu | /* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2017, Natural Language Processing Lab, Northestern University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the L... |
ff9a4e0d8bc3bf380276672abd17165b41e91a0c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda_runtime.h>
#include"matrix.h"
#include<cstdlib>
#include<cmath>
#include"layer.h"
#include<iostream>
// Matrix multiplication kernel called by MatMul()
__device__ void MatMulKernel(Matrix A, Matrix B, Matrix C)
{
... | ff9a4e0d8bc3bf380276672abd17165b41e91a0c.cu | #include<cuda_runtime.h>
#include"matrix.h"
#include<cstdlib>
#include<cmath>
#include"layer.h"
#include<iostream>
// Matrix multiplication kernel called by MatMul()
__device__ void MatMulKernel(Matrix A, Matrix B, Matrix C)
{
// Each thread computes one element of C
// by accumulating results into Cvalue
... |
bf7bf2c84fa04256196f4773d07e3ac959114ec6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution a... | bf7bf2c84fa04256196f4773d07e3ac959114ec6.cu | /******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
5ac606f3705e448fe5971b2c9f9fa325bccd9f9e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 5ac606f3705e448fe5971b2c9f9fa325bccd9f9e.cu | /* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
93fa09dc2e147a78f34c2b55a011b264d1491a5a.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
__global__ void global_reduce_kernel(float * d_out, float * d_in)
{
int myId = threadIdx.x + blockDim.x * blockIdx.x;
int tid = threadIdx.x;
// do reduction in global mem
... | 93fa09dc2e147a78f34c2b55a011b264d1491a5a.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
__global__ void global_reduce_kernel(float * d_out, float * d_in)
{
int myId = threadIdx.x + blockDim.x * blockIdx.x;
int tid = threadIdx.x;
// do reduction in global mem
for (int s = blockDim.x / 2; s > 0; s >>= 1)
{
if... |
97eca37a98cffd82dcb7ce15719cd91d1e7aac76.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/manual_crop_layer.hpp"
namespace caffe {
// Copy (one line per thread) from one array to another, with arbitrary
// strides in the last two dimensions.
template <typename Dtype>
__global__... | 97eca37a98cffd82dcb7ce15719cd91d1e7aac76.cu | #include <vector>
#include "caffe/layers/manual_crop_layer.hpp"
namespace caffe {
// Copy (one line per thread) from one array to another, with arbitrary
// strides in the last two dimensions.
template <typename Dtype>
__global__ void copy_kernel(const int n, const int height, const int width,
const int src_oute... |
85f5f8ad6f45bc6b6690c2aef227929bd7701092.hip | // !!! This is a file automatically generated by hipify!!!
//#pragma comment (lib, "cublas.lib")
//#include "stdio.h"
//#include <hip/hip_runtime.h>
//using namespace std;
//#include <ctime>
//#include "hip/hip_runtime.h"
//#include "hiprand/hiprand_kernel.h"
//#include "device_launch_parameters.h"
//#include <stdio.h>... | 85f5f8ad6f45bc6b6690c2aef227929bd7701092.cu | //#pragma comment (lib, "cublas.lib")
//#include "stdio.h"
//#include <cuda.h>
//using namespace std;
//#include <ctime>
//#include "cuda_runtime.h"
//#include "curand_kernel.h"
//#include "device_launch_parameters.h"
//#include <stdio.h>
//#include <stdlib.h>
//
//#include <string>
//#include <iomanip>
//#include <tim... |
25317514c975745c0349cd4cb89dd660278d0eaa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
__global__
void Blur(int height, int width, uint8_t *d_img, unsigned int *d_res)
{
int gid... | 25317514c975745c0349cd4cb89dd660278d0eaa.cu | #include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
__global__
void Blur(int height, int width, uint8_t *d_img, unsigned int *d_res)
{
int gidx = threadIdx.x + blockDim.x * blockIdx.x;
int size = height * width;
if (gidx <... |
a5192b4e76d6485c0e439bb7fbd781791d5b63fc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
// Define maximum number of vertices in the graph
#define N 317080
#define EDGES 1049886
// Data structure to store graph
struct Graph {
// An array of pointers to Node to represent adjacenc... | a5192b4e76d6485c0e439bb7fbd781791d5b63fc.cu | #include <stdio.h>
#include <stdlib.h>
// Define maximum number of vertices in the graph
#define N 317080
#define EDGES 1049886
// Data structure to store graph
struct Graph {
// An array of pointers to Node to represent adjacency list
struct Node* head[N+1];
};
// A data structure to store adjacency list nodes of... |
68cef633c61b507b5abcfeab2a2b61be280b1591.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <gauge_field_order.h>
namespace quda {
/**
Kernel argument struct
*/
template <typename OutOrder, typename InOrder>
struct CopyGaugeArg {
OutOrder out;
const InOrder in;
int volume;
int faceV... | 68cef633c61b507b5abcfeab2a2b61be280b1591.cu | #include <gauge_field_order.h>
namespace quda {
/**
Kernel argument struct
*/
template <typename OutOrder, typename InOrder>
struct CopyGaugeArg {
OutOrder out;
const InOrder in;
int volume;
int faceVolumeCB[QUDA_MAX_DIM];
int nDim;
CopyGaugeArg(const OutOrder &out, const InOrder... |
9414b0a892d386cded233c89e4f2128e219d3c1e.hip | // !!! This is a file automatically generated by hipify!!!
/*
* University of Illinois Open Source License
* Copyright 2008-2018 Luthey-Schulten Group,
* All rights reserved.
*
* Developed by: Luthey-Schulten Group
* University of Illinois at Urbana-Champaign
* http://www.scs.uiuc.edu/~schulten
... | 9414b0a892d386cded233c89e4f2128e219d3c1e.cu | /*
* University of Illinois Open Source License
* Copyright 2008-2018 Luthey-Schulten Group,
* All rights reserved.
*
* Developed by: Luthey-Schulten Group
* University of Illinois at Urbana-Champaign
* http://www.scs.uiuc.edu/~schulten
*
* Permission is hereby granted, free of charge, to any... |
9656a54949b54937cd2eab685592e269f00a57ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "upsampling.h"
// Textures
texture<float, 2, hipReadModeElementType> gray_img;
texture<float, 2, hipReadModeElementType> imgToFilter;
// Calculate weight
__global__ void CalcWeightKernel(float *input, float* weight, float... | 9656a54949b54937cd2eab685592e269f00a57ba.cu | #include "upsampling.h"
// Textures
texture<float, 2, cudaReadModeElementType> gray_img;
texture<float, 2, cudaReadModeElementType> imgToFilter;
// Calculate weight
__global__ void CalcWeightKernel(float *input, float* weight, float lambda_tgvl2, int width, int height, int stride) {
int iy = blockIdx.y * blockDim.y ... |
f2fa78ab5dd8a219125288a62d16edf60b55c640.hip | // !!! This is a file automatically generated by hipify!!!
// adjointness testing
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <thrust/complex.h>
#include <algorithm>
//#include <thrust>
using namespace thrust;
#include "ragridder_plan.h"
#include "conv_interp_invoker.h"
... | f2fa78ab5dd8a219125288a62d16edf60b55c640.cu | // adjointness testing
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <thrust/complex.h>
#include <algorithm>
//#include <thrust>
using namespace thrust;
#include "ragridder_plan.h"
#include "conv_interp_invoker.h"
#include "cuft.h"
#include "deconv.h"
#include "cugridder.h... |
1f5b4b95e3959eb97259b530dee203a79a50695f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void myKernel() {
printf("Hello World!\n");
}
int main() {
hipLaunchKernelGGL(( myKernel), dim3(1),dim3(1), 0, 0, );
return 0;
}
| 1f5b4b95e3959eb97259b530dee203a79a50695f.cu | #include <stdio.h>
__global__ void myKernel() {
printf("Hello World!\n");
}
int main() {
myKernel<<<1,1>>>();
return 0;
}
|
275280771f672e3650067246b27a6163eece2d70.hip | // !!! This is a file automatically generated by hipify!!!
/*Copyright (c) 2014, Edgar Solomonik, all rights reserved.*/
#include <complex>
#include <assert.h>
#include <stdio.h>
#include "int_timer.h"
#include <stdint.h>
#include "offload.h"
#include "../tensor/algstrct.h"
#include "../interface/timer.h"
#ifdef USE... | 275280771f672e3650067246b27a6163eece2d70.cu | /*Copyright (c) 2014, Edgar Solomonik, all rights reserved.*/
#include <complex>
#include <assert.h>
#include <stdio.h>
#include "int_timer.h"
#include <stdint.h>
#include "offload.h"
#include "../tensor/algstrct.h"
#include "../interface/timer.h"
#ifdef USE_CUDA
#include <cuda_runtime.h>
#include <cublas_v2.h>
#inc... |
42728c80bbb0f2971eceea329e6dfba9889cfd55.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#ifndef COMMON_H
#include "../include/common.h"
#endif
/*
__global__ void sum(int *a, int* b , int* c, size_t pitch, int xx, int yy){
// __shared__ int Pp[xx][yy];
// int x = blockIdx.x * blockDim.x + thread... | 42728c80bbb0f2971eceea329e6dfba9889cfd55.cu | #include <stdio.h>
#ifndef COMMON_H
#include "../include/common.h"
#endif
/*
__global__ void sum(int *a, int* b , int* c, size_t pitch, int xx, int yy){
// __shared__ int Pp[xx][yy];
// int x = blockIdx.x * blockDim.x + threadIdx.x;
// int y = blockIdx.y * blockDim.y + threadIdx.y;
// int *arow = (int *) ((ch... |
eddd911772a08d4c5ebe2704127c8a08b04036b0.hip | // !!! This is a file automatically generated by hipify!!!
char *title = "odd-even sort";
char *description = " - (odd-even sort)";
/*
-
. , , .. p=n -
( ). ,
. ai (i = 1, .. , n), pi (i = 1, ... , n).
- ,
- .
- .
-
Q(1). n;
Q(n).
... | eddd911772a08d4c5ebe2704127c8a08b04036b0.cu | char *title = "odd-even sort";
char *description = "Сортировка четно-нечетными перестановками (odd-even sort)";
/*
Для каждой итерации алгоритма операции сравнения-обмена для всех пар элементов независимы и
выполняются одновременно. Рассмотрим случай, когда число процессоров равно числу элементов, т.е. p=n -
число про... |
77038ece11cb46d2aa55b12f59878ecd63d77e76.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 "_adam64.cu"
#include<chrono>
#include<iostream>
using namespace ... | 77038ece11cb46d2aa55b12f59878ecd63d77e76.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 "_adam64.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{... |
8f046274137fab65f18c660823280c1fe2dc2e4a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 25-Oct-2011 14:59:20
//
// user function
__device__ ... | 8f046274137fab65f18c660823280c1fe2dc2e4a.cu | //
// auto-generated by op2.m on 25-Oct-2011 14:59:20
//
// user function
__device__
#include "save_soln.h" ... |
1ab32c5386232a73488bb650fd7300ce6d2b08f0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2013 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 soft... | 1ab32c5386232a73488bb650fd7300ce6d2b08f0.cu | /*
* Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
e3809eaf1ceb9738096548ddae225d97a11e6f29.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <assert.h>
#include "Error.h"
__global__ void cubeKernel(float * d_out, float * d_in){
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx]= f * f * f;
}
void onDevice(float *h_in, float *h_o... | e3809eaf1ceb9738096548ddae225d97a11e6f29.cu | #include <stdio.h>
#include <assert.h>
#include "Error.h"
__global__ void cubeKernel(float * d_out, float * d_in){
int idx = threadIdx.x;
float f = d_in[idx];
d_out[idx]= f * f * f;
}
void onDevice(float *h_in, float *h_out, int ARRAY_SIZE, int ARRAY_BYTES){
// declare GPU memory pointers
float * d_in;
... |
c1c67181472617b4521585ea7ee453f671625930.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "preprocess_kernel.cuh"
namespace CUDAKernel{
Norm Norm::mean_std(float mean[3], float std[3]){
Norm out;
out.type = NormType::MeanStd;
memcpy(out.mean, mean, sizeof(out.mean));
memcpy(out.std, std, sizeof(ou... | c1c67181472617b4521585ea7ee453f671625930.cu |
#include "preprocess_kernel.cuh"
namespace CUDAKernel{
Norm Norm::mean_std(float mean[3], float std[3]){
Norm out;
out.type = NormType::MeanStd;
memcpy(out.mean, mean, sizeof(out.mean));
memcpy(out.std, std, sizeof(out.std));
return out;
}
Norm Norm::alpha_beta(float alpha, float beta){
Norm out;... |
6cedaaf2ee642090d133bb81d06529b4c0852c3b.hip | // !!! This is a file automatically generated by hipify!!!
#include "timer.h"
namespace kmeans {
timer::timer() {
hipEventCreate(&m_start);
hipEventCreate(&m_stop);
}
timer::~timer() {
hipEventDestroy(m_start);
hipEventDestroy(m_stop);
}
void timer::start() {
hipEventRecord(m_start, 0)... | 6cedaaf2ee642090d133bb81d06529b4c0852c3b.cu | #include "timer.h"
namespace kmeans {
timer::timer() {
cudaEventCreate(&m_start);
cudaEventCreate(&m_stop);
}
timer::~timer() {
cudaEventDestroy(m_start);
cudaEventDestroy(m_stop);
}
void timer::start() {
cudaEventRecord(m_start, 0);
}
float timer::stop() {
float time;
cud... |
bea82d5158f54be3b6b2280bcd72b0faa4c609ee.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... | bea82d5158f54be3b6b2280bcd72b0faa4c609ee.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... |
4b77628fd561466ad6e8b625b88593a3993e433d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hiprand/hiprand.h"
#include "rocblas.h"
extern "C" {
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include "network.h"
#include "image.h"
#include "data.h"
#include "utils.h"
#include "parser.h"
#include "cr... | 4b77628fd561466ad6e8b625b88593a3993e433d.cu | #include "cuda_runtime.h"
#include "curand.h"
#include "cublas_v2.h"
extern "C" {
#include <stdio.h>
#include <time.h>
#include <assert.h>
#include "network.h"
#include "image.h"
#include "data.h"
#include "utils.h"
#include "parser.h"
#include "crop_layer.h"
#include "connected_layer.h"
#include "rnn_layer.h"
#incl... |
a812b596f5be0436e204c545613b7a01e0ad4502.hip | // !!! This is a file automatically generated by hipify!!!
/*
Implements the sequential cusp vectors.
*/
#include <petscconf.h>
PETSC_CUDA_EXTERN_C_BEGIN
#include <petsc-private/vecimpl.h> /*I "petscvec.h" I*/
#include <../src/vec/vec/impls/dvecimpl.h>
PETSC_CUDA_EXTERN_C_END
#include <../src/vec/vec/impls... | a812b596f5be0436e204c545613b7a01e0ad4502.cu | /*
Implements the sequential cusp vectors.
*/
#include <petscconf.h>
PETSC_CUDA_EXTERN_C_BEGIN
#include <petsc-private/vecimpl.h> /*I "petscvec.h" I*/
#include <../src/vec/vec/impls/dvecimpl.h>
PETSC_CUDA_EXTERN_C_END
#include <../src/vec/vec/impls/seq/seqcusp/cuspvecimpl.h>
#include <cuda_runtime.h>
#un... |
768a6b96cd2c84fa3df6618cf9ca5ce08d2d43c3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__
void sum_kernel(int n, const float *x, float *z) {
extern __shared__ float sdata[];
int offset = threadIdx.x * 256;
float total = 0;
for (int i = 0; i < 256; ++i) {
if (offset + i < n) {
total += x[offset + i];... | 768a6b96cd2c84fa3df6618cf9ca5ce08d2d43c3.cu | __global__
void sum_kernel(int n, const float *x, float *z) {
extern __shared__ float sdata[];
int offset = threadIdx.x * 256;
float total = 0;
for (int i = 0; i < 256; ++i) {
if (offset + i < n) {
total += x[offset + i];
}
}
sdata[threadIdx.x] = total;
__syncthreads();
if (offset == 0) {
float tt... |
ff99fe1cd028248d6923def3eab5233f6e58fe45.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | ff99fe1cd028248d6923def3eab5233f6e58fe45.cu | /*
* Copyright (c) 2018-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
218701a3c110f9c5327d9c63ab7ba0c1cf11df9e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// This file is modified from https://github.com/pytorch/pytorch/blob/master/modules/detectron/softmax_focal_loss_op.cu
// Jiajun Tang
// yelantingfeng@sjtu.edu.cn
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <T... | 218701a3c110f9c5327d9c63ab7ba0c1cf11df9e.cu | // This file is modified from https://github.com/pytorch/pytorch/blob/master/modules/detectron/softmax_focal_loss_op.cu
// Jiajun Tang
// yelantingfeng@sjtu.edu.cn
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
#include <c... |
4ae99bdc56567145d7cd87d5b17d4c9327c34b43.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* 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 soft... | 4ae99bdc56567145d7cd87d5b17d4c9327c34b43.cu | /*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
705e29fa2e588a1f5c77c2afc9db3940a415d9d3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 705e29fa2e588a1f5c77c2afc9db3940a415d9d3.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
2bff56d92e2a2e113c89ff48082ee429560231a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/clip2img_layer.hpp"
namespace caffe {
template <typename Dtype>
__global__ void clip2img_forward(const int nthreads, const Dtype* bottom,
const int num, const int channels, const int d... | 2bff56d92e2a2e113c89ff48082ee429560231a4.cu | #include <vector>
#include "caffe/layers/clip2img_layer.hpp"
namespace caffe {
template <typename Dtype>
__global__ void clip2img_forward(const int nthreads, const Dtype* bottom,
const int num, const int channels, const int depth, const int height,
const int width, Dtype* top) {
CUDA_KERNEL_LOOP(index, nth... |
9400b03561ca790d7a2273b3a29b0e552dc222e4.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org... | 9400b03561ca790d7a2273b3a29b0e552dc222e4.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
76254469f5afb2b0763d7d7c60f4f6b86c6efc20.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h" // cudaAPI
#include "device_launch_parameters.h"
#include <stdio.h>
hipError_t addWithCuda(int *c, const int *a, size_t size);
__global__ void addKernel( int *c, const int *a )
{
int i = threadIdx.x; //
extern __shared__ ... | 76254469f5afb2b0763d7d7c60f4f6b86c6efc20.cu | #include "cuda_runtime.h" // cuda运行时API
#include "device_launch_parameters.h"
#include <stdio.h>
cudaError_t addWithCuda(int *c, const int *a, size_t size);
__global__ void addKernel( int *c, const int *a )
{
int i = threadIdx.x; // 这是线程并行的代码
extern __shared__ int smem[];
smem[i]=a[i];
__syncthreads();
if... |
59a226118c40710508193054d25c22560736389f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "neural_net.h"
#include <time.h>
#include <cstdio>
#include <string>
template <typename T>
__global__ void softmaxLossBackProp(int *y, T *SO, T *dSO, int batch_size, int output_size, float eps) {
int i = blockIdx.x * bloc... | 59a226118c40710508193054d25c22560736389f.cu | #include "neural_net.h"
#include <time.h>
#include <cstdio>
#include <string>
template <typename T>
__global__ void softmaxLossBackProp(int *y, T *SO, T *dSO, int batch_size, int output_size, float eps) {
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i >= batch_size)
return;
int cur_class = static_cast<int>... |
2df631290245a86ee91cd8eac037334daa17f7a1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#include "Point.h"
#include <stdio.h>
const int MAX_THREADS_PER_BLOCK = 1024;
int numOfBlocks;
int dev_numOfPoints;
int chunkSize;
Point* dev_allPoints;
float* dev_distancesArr;
__global__ void setPointsForTime... | 2df631290245a86ee91cd8eac037334daa17f7a1.cu | #include "kernel.h"
#include "Point.h"
#include <stdio.h>
const int MAX_THREADS_PER_BLOCK = 1024;
int numOfBlocks;
int dev_numOfPoints;
int chunkSize;
Point* dev_allPoints;
float* dev_distancesArr;
__global__ void setPointsForTimeIncrement(Point* dev_allPoints, float cosCalc, float sinCalc, int numOfPoints)
{
//int ... |
3dca8a4348b2b5e51a770bce699353f31f62de8f.hip | // !!! This is a file automatically generated by hipify!!!
/**
*
* Date 11 june 2009
* ====
*
* Authors Vincent Garcia
* ======= Eric Debreuve
* Michel Barlaud
*
* Description Given a reference point set and a query point set, the program returns
* =========== the distance between e... | 3dca8a4348b2b5e51a770bce699353f31f62de8f.cu | /**
*
* Date 11 june 2009
* ====
*
* Authors Vincent Garcia
* ======= Eric Debreuve
* Michel Barlaud
*
* Description Given a reference point set and a query point set, the program returns
* =========== the distance between each query point and its k-th nearest neighbor in
* ... |
6d2fe3224fd49f424a1eb39d22fd31902855bbcc.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <util.h>
int main (int argc, char * argv[]) {
int n_dev;
hipGetDeviceCount(& n_dev);
printf("%d devices are available\n", n_dev);
if (n_dev <= 0) return 1;
printf("Checking stat... | 6d2fe3224fd49f424a1eb39d22fd31902855bbcc.cu | #include <cuda.h>
#include <stdio.h>
#include <util.h>
int main (int argc, char * argv[]) {
int n_dev;
cudaGetDeviceCount(& n_dev);
printf("%d devices are available\n", n_dev);
if (n_dev <= 0) return 1;
printf("Checking state of primary context -- before first CUDA runtime API call\n");
c... |
e5970fe490a1959d35b511b2a307efc1212df6b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <math.h>
#include "finite_difference.h"
void get_stencils_values(fd_container *fd_container, float *ddx, float *ddy, float dx, float dy,
int NY, int NX, int NY_STAG, int NX_STAG, int z) {
for(int j=0; j<NY; j++... | e5970fe490a1959d35b511b2a307efc1212df6b0.cu | #include <math.h>
#include "finite_difference.h"
void get_stencils_values(fd_container *fd_container, float *ddx, float *ddy, float dx, float dy,
int NY, int NX, int NY_STAG, int NX_STAG, int z) {
for(int j=0; j<NY; j++) {
int jp1 = minf(j+1, NY-1);
int jm1 = maxf(j-1, 0);
for(int i=0; i<... |
01aa67b0352e4d0f496739d52d777af9e36a76f8.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 "uplo_lgamma.cu"
#include<chrono>
#include<iostream>
using namesp... | 01aa67b0352e4d0f496739d52d777af9e36a76f8.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 "uplo_lgamma.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,2... |
baf04d570f8364d0e2bdd2c49ecc2ec0dd32fe41.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
* Full license terms provided in LICENSE.md file.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <NvInfer.h>
#include <opencv2/opencv.hpp>
#include "... | baf04d570f8364d0e2bdd2c49ecc2ec0dd32fe41.cu | /**
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
* Full license terms provided in LICENSE.md file.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <NvInfer.h>
#include <opencv2/opencv.hpp>
#include "examples/classify_image/utils.h"
using namespace std;
usi... |
49b7af5f5151ab9231b416c4b63eb75896b219c8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "cuda_apsp.cuh"
/**
* CUDA handle error, if error occurs print message and exit program
*
* @param error: CUDA error status
*/
#define HANDLE_ERROR(error)... | 49b7af5f5151ab9231b416c4b63eb75896b219c8.cu | #include "cuda.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "cuda_apsp.cuh"
/**
* CUDA handle error, if error occurs print message and exit program
*
* @param error: CUDA error status
*/
#define HANDLE_ERROR(error) { \
if (error != cudaSuccess) { \
fprintf(stderr, "%s in %s ... |
ed166aac475c56f07f8ec449c07c5f2bccb227e7.hip | // !!! This is a file automatically generated by hipify!!!
/*
*
*
* Created on: 27.6.2011
* Author: Teemu Rantalaiho (teemu.rantalaiho@helsinki.fi)
*
*
* Copyright 2011 Teemu Rantalaiho
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | ed166aac475c56f07f8ec449c07c5f2bccb227e7.cu | /*
*
*
* Created on: 27.6.2011
* Author: Teemu Rantalaiho (teemu.rantalaiho@helsinki.fi)
*
*
* Copyright 2011 Teemu Rantalaiho
*
* 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 Licens... |
bb86ad767fdf84de145c0925071761de3fc1f858.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... | bb86ad767fdf84de145c0925071761de3fc1f858.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... |
0a4f55f54c7204641b30e804c818caf48008ce17.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright (c) 2020 by Contributors
* \file array/cpu/array_sort.cu
* \brief Array sort GPU implementation
*/
#include <dgl/array.h>
#include <hipcub/hipcub.hpp>
#include "../../runtime/cuda/cuda_common.h"
#include "./utils.h"
namespace dgl {
using r... | 0a4f55f54c7204641b30e804c818caf48008ce17.cu | /*!
* Copyright (c) 2020 by Contributors
* \file array/cpu/array_sort.cu
* \brief Array sort GPU implementation
*/
#include <dgl/array.h>
#include <cub/cub.cuh>
#include "../../runtime/cuda/cuda_common.h"
#include "./utils.h"
namespace dgl {
using runtime::NDArray;
namespace aten {
namespace impl {
template <DLD... |
88220fdc1a5240eace969517756256291bb828a3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* CUJ2K - JPEG2000 Encoder on CUDA
http://cuj2k.sourceforge.net/
Copyright (c) 2009 Norbert Fuerst, Martin Heide, Armin Weiss, Simon Papandreou, Ana Balevic
Permission is hereby granted, free of charge, to any person obtaining a ... | 88220fdc1a5240eace969517756256291bb828a3.cu | /* CUJ2K - JPEG2000 Encoder on CUDA
http://cuj2k.sourceforge.net/
Copyright (c) 2009 Norbert Fuerst, Martin Heide, Armin Weiss, Simon Papandreou, Ana Balevic
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in th... |
c59ba63592a9cbd4cb92e60e135b230737829014.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "update_part_props.cuh"
#include "fill.cuh"
#include <catboost/libs/cuda_wrappers/arch.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh>
#include <catboost/cuda/cuda_util/gpu_data/partitions.h>
namespace N... | c59ba63592a9cbd4cb92e60e135b230737829014.cu | #include "update_part_props.cuh"
#include "fill.cuh"
#include <catboost/libs/cuda_wrappers/arch.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh>
#include <catboost/cuda/cuda_util/gpu_data/partitions.h>
namespace NKernel {
template <int BlockSize, int N = 1>
__forceinline__ __device__ doub... |
806f816cbf1d666a21584ddb5b09a03228d8c28d.hip | // !!! This is a file automatically generated by hipify!!!
#include <cv.h>
#include <highgui.h>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <hip/hip_runtime.h>
using namespace cv;
#define RED 2
#define GREEN 1
#define BLUE 0
#define MA... | 806f816cbf1d666a21584ddb5b09a03228d8c28d.cu | #include <cv.h>
#include <highgui.h>
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <cuda.h>
using namespace cv;
#define RED 2
#define GREEN 1
#define BLUE 0
#define MASK_WIDTH_M 3
#define MASK_WIDTH_S 5
#define TILE_SIZE 32 //tamaño de ... |
e73caa2dca8620dcfdfb82230fd22284662c828b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@precisions normal z -> s d c
@author Stan Tomov... | e73caa2dca8620dcfdfb82230fd22284662c828b.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@precisions normal z -> s d c
@author Stan Tomov
*/
#include "magma_internal.h"
#define PRECISION_z
#if defined(PRECISION_z)
#defi... |
d57028a51d4b4738920b0f12eb6f2c8c3c55e31a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@precisions normal z -> s d c
*/
#include "common_magm... | d57028a51d4b4738920b0f12eb6f2c8c3c55e31a.cu | /*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@precisions normal z -> s d c
*/
#include "common_magma.h"
#define PRECISION_z
#define hemv_bs 32
#define bank_shift 33
/***... |
yolo_layer.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* yolo_layer.cu
*
* This code was originally written by wang-xinyu under MIT license.
* I took it from:
*
* https://github.com/wang-xinyu/tensorrtx/tree/master/yolov4
*
* and made necessary modifications.
*
* - JK J... | yolo_layer.cu | /*
* yolo_layer.cu
*
* This code was originally written by wang-xinyu under MIT license.
* I took it from:
*
* https://github.com/wang-xinyu/tensorrtx/tree/master/yolov4
*
* and made necessary modifications.
*
* - JK Jung
*/
#include "trt_yolo/yolo_layer.h"
using namespace Yolo;
namespace
{
// Write v... |
3a48944222503e2d75290269cc5731a62e8bd58d.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "timer.h"
#include <cstdlib>
#include <device_launch_parameters.h>
#include <hip/hip_runtime.h>
#define SOFTENING 1e-9f
/*
* Each body contains x, y, and z coordinate positions,
* as well as... | 3a48944222503e2d75290269cc5731a62e8bd58d.cu | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "timer.h"
#include <cstdlib>
#include <device_launch_parameters.h>
#include <cuda_runtime.h>
#define SOFTENING 1e-9f
/*
* Each body contains x, y, and z coordinate positions,
* as well as velocities in the x, y, and z directions.
*/
typedef struct... |
c475ed085e0d007014a6999bd9178293c358f2a0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include "lodepng.h"
#include <time.h>
__global__ void process(unsigned char * d_in, unsigned char * d_out, int d_width, int d_height){
//Get the thread ID accross all the blocks
int ... | c475ed085e0d007014a6999bd9178293c358f2a0.cu | #include <stdio.h>
#include <stdlib.h>
#include "lodepng.h"
#include <time.h>
__global__ void process(unsigned char * d_in, unsigned char * d_out, int d_width, int d_height){
//Get the thread ID accross all the blocks
int tid = blockIdx.x*blockDim.x+threadIdx.x;
//A thread will go through with its ID rep... |
299ed51528ad7247ee733a10fa5161206b716d1a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <sstream>
#include "dataStructures/helper/matrix_helper.h"
#include "dataStructures/matrix_element.hpp"
#include "dataStructures/sparse_matrix.hpp"
#include "hd_data.hpp"
#include "helper/cuda/cuda_erro... | 299ed51528ad7247ee733a10fa5161206b716d1a.cu | #include <assert.h>
#include <sstream>
#include "dataStructures/helper/matrix_helper.h"
#include "dataStructures/matrix_element.hpp"
#include "dataStructures/sparse_matrix.hpp"
#include "hd_data.hpp"
#include "helper/cuda/cuda_error_check.h"
#include "helper/cuda/cuda_reduction_operation.hpp"
#include "helper/cuda/cud... |
f79be48292bd6c56b3f075c99a0b605746249a6a.hip | // !!! This is a file automatically generated by hipify!!!
#include "init_hip.cuh"
void init_params()
{
for(int i=0;i<CONV_W_NUM;i++)
{
for(int j=0;j<CONV_W_SIZE;j++)
for(int k=0;k<CONV_W_SIZE;k++)
conv_w[i][j][k]=get_rand(CONV_W_SIZE*CONV_W_SIZE);
conv_b[i]=get_rand(CONV_W_... | f79be48292bd6c56b3f075c99a0b605746249a6a.cu | #include "init.cuh"
void init_params()
{
for(int i=0;i<CONV_W_NUM;i++)
{
for(int j=0;j<CONV_W_SIZE;j++)
for(int k=0;k<CONV_W_SIZE;k++)
conv_w[i][j][k]=get_rand(CONV_W_SIZE*CONV_W_SIZE);
conv_b[i]=get_rand(CONV_W_SIZE*CONV_W_SIZE);
}
for(int i=0;i<FC1_SIZE;i++)
{... |
86a5deb3af4341c584c4dc8846e7c06108d0693c.hip | // !!! This is a file automatically generated by hipify!!!
#include "../shared/nelderMead.hpp"
#include "../shared/util.hpp"
#include "../shared/reading.hpp"
#include "../shared/printing.hpp"
#include "../shared/abOffLattice.hpp"
#include "nelderMead.cuh"
void run(int &executions, int &proteins_evalued, std::vector<N... | 86a5deb3af4341c584c4dc8846e7c06108d0693c.cu | #include "../shared/nelderMead.hpp"
#include "../shared/util.hpp"
#include "../shared/reading.hpp"
#include "../shared/printing.hpp"
#include "../shared/abOffLattice.hpp"
#include "nelderMead.cuh"
void run(int &executions, int &proteins_evalued, std::vector<NelderMead> ¶meters, std::vector<ABOffLattice*> ¶met... |
9e68f0e739992543643f70c5a12feecb5e2b272b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018, 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
*
*... | 9e68f0e739992543643f70c5a12feecb5e2b272b.cu | /*
* Copyright (c) 2018, 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 ... |
8d62311e439b4c6cbb1e10d4346c8ee032ec47fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ausmPlus.h"
#include <stdio.h>
__global__ void diffusiveFlux(cell *domain,float *R, float *gammma, float *mu,float wall_temp,float *k)
{
int x=blockIdx.x;
int y=threadIdx.x;
int note=-10;
int faces=(int)domain[x].fac... | 8d62311e439b4c6cbb1e10d4346c8ee032ec47fa.cu | #include "ausmPlus.h"
#include <stdio.h>
__global__ void diffusiveFlux(cell *domain,float *R, float *gammma, float *mu,float wall_temp,float *k)
{
int x=blockIdx.x;
int y=threadIdx.x;
int note=-10;
int faces=(int)domain[x].face[y]-1;
int ourFlag=(int)domain[x].flag;
float delu_delx=0.0,delv_delx=0.0,delu_dely=0... |
3eb7c4d535413c85c1a95afd73097ce1be83f801.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <string.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "PGM.h"
/*
This function basicaly does round process with a threshold 0.5
input : a float number
output : a rounded integer
*/
//
__de... | 3eb7c4d535413c85c1a95afd73097ce1be83f801.cu | #include <stdio.h>
#include <string.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include "PGM.h"
/*
This function basicaly does round process with a threshold 0.5
input : a float number
output : a rounded integer
*/
//
__device__ int Round(float num) {
return int(num)+0.5 < num ? int(num) +... |
6316c1e8f3ecf4e80fdc551ac3302eaebe042793.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <math.h>
#include <string.h>
#include <fstream>
#include <sstream>
//#include <bits/stdc++.h>
//#include <stdlib.h>
//#include <time.h>
using namespace std;
/***DEFINING THE DEFINES FO... | 6316c1e8f3ecf4e80fdc551ac3302eaebe042793.cu | #include <stdio.h>
#include <iostream>
#include <math.h>
#include <string.h>
#include <fstream>
#include <sstream>
//#include <bits/stdc++.h>
//#include <stdlib.h>
//#include <time.h>
using namespace std;
/***DEFINING THE DEFINES FOR THE ARRAY INDICES****************************/
//#define N 128
#define C 3
#define H 2... |
e55eed5f80452bdaa4d59ecbdd3c9783cf474720.hip | // !!! This is a file automatically generated by hipify!!!
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#include "... | e55eed5f80452bdaa4d59ecbdd3c9783cf474720.cu | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include <cuda_runtime.h>
#include <cuda_fp16.h>
#include "grid_stride_range.hpp"
#include "execution.hpp"
#include "vector_... |
7ac1f1575e3ebd70b5fbe504b81a981e0988e504.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda_runtime.h>
#include<iostream>
#include<stdio.h>
#include<sys/time.h>
#include<assert.h>
using namespace std;
#define REAL double
#define BX 128
#define BY 2
#define BZ 1
#define GZ 1
const REAL cc = 0.4;
const REAL ... | 7ac1f1575e3ebd70b5fbe504b81a981e0988e504.cu | #include<cuda_runtime.h>
#include<iostream>
#include<stdio.h>
#include<sys/time.h>
#include<assert.h>
using namespace std;
#define REAL double
#define BX 128
#define BY 2
#define BZ 1
#define GZ 1
const REAL cc = 0.4;
const REAL ce = 0.1;
const REAL cw = 0.1;
const REAL cs = 0.1;
const REAL cn = 0.1;
const REAL ct =... |
31a008f55274b01bb840f24a13b15ebeb146b4b4.hip | // !!! This is a file automatically generated by hipify!!!
#include "device_launch_parameters.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include<vector>
#include<iostream>
#include <cassert>
using std::vector;
using namespace std;
#define THREADS 16
// Forward dec... | 31a008f55274b01bb840f24a13b15ebeb146b4b4.cu |
#include "device_launch_parameters.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include<vector>
#include<iostream>
#include <cassert>
using std::vector;
using namespace std;
#define THREADS 16
// Forward declaration of the kernel
__global__ void matrixMul(const int* a, const int* b... |
bc596331ef09210e4a48d782f00b391c4d156200.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/magma_zdiagcheck.cu, nor... | bc596331ef09210e4a48d782f00b391c4d156200.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/magma_zdiagcheck.cu, normal z -> d, Tue Aug 30 09:38:46 2016
*/
#include "magmasparse_internal.h"
#define BLOC... |
4c745f58e57253259e34715b8a0b381f70f311fe.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @File main.cu
*
* The main file of the project
*
* Parallel Computations on GPU (PCG 2020)
* Assignment no. 1 (cuda)
* Login: xstupi00
*/
#include <sys/time.h>
#include <cstdio>
#include <cmath>
#include <vector>
#in... | 4c745f58e57253259e34715b8a0b381f70f311fe.cu | /**
* @File main.cu
*
* The main file of the project
*
* Parallel Computations on GPU (PCG 2020)
* Assignment no. 1 (cuda)
* Login: xstupi00
*/
#include <sys/time.h>
#include <cstdio>
#include <cmath>
#include <vector>
#include "nbody.h"
#include "h5Helper.h"
#define checkCudaErrors(ans) { gpuAssert((ans), ... |
764d1160fa59ecceb684896ad265bd2d0145471c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <wb.h>
#define wbCheck(stmt) \
do { \
hipError_t err = stmt; ... | 764d1160fa59ecceb684896ad265bd2d0145471c.cu | #include <wb.h>
#define wbCheck(stmt) \
do { \
cudaError_t err = stmt; \
if (err != cudaSuccess) { \... |
df1f31301d7fca39a000315500e43423e3eed6d9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
#define TILE_WIDTH 40
//-----------------------------------------------
//--------------------------------------------------
// Compute C = A * B
//-------------------------------------------------
__gl... | df1f31301d7fca39a000315500e43423e3eed6d9.cu | #include "includes.h"
#define TILE_WIDTH 40
//-----------------------------------------------
//--------------------------------------------------
// Compute C = A * B
//-------------------------------------------------
__global__ void matrixMultiplySharedMem(double * A, double * B, double * C, int numARows, in... |
95de7ca52ee7e22f26a4117c0491ce4ef6be2878.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void process_kernel1(const float* input1, const float* input2, float* output, int numElements){
int blockNum = blockIdx.z*(gridDim.x*gridDim.y) + blockIdx.y*gridDim.x + blockIdx.x;
int threadNum = t... | 95de7ca52ee7e22f26a4117c0491ce4ef6be2878.cu | #include "includes.h"
__global__ void process_kernel1(const float* input1, const float* input2, float* output, int numElements){
int blockNum = blockIdx.z*(gridDim.x*gridDim.y) + blockIdx.y*gridDim.x + blockIdx.x;
int threadNum = threadIdx.z*(blockDim.x*blockDim.y) + threadIdx.y*blockDim.x + threadIdx.x;
int globalThr... |
6e21c84f18b87c0532426c6bdc437bb0e2341e31.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2013 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 soft... | 6e21c84f18b87c0532426c6bdc437bb0e2341e31.cu | /*
* Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
f013489876e56dd987ffe7306f8a51ab16b5b3a9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ftl/operators/cuda/mls/multi_intensity.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
#include <ftl/cuda/weighting.hpp>
using ftl::cuda::MLSMultiIntensity;
using cv::cuda::GpuMat;
// ==== Multi image MLS =========... | f013489876e56dd987ffe7306f8a51ab16b5b3a9.cu | #include <ftl/operators/cuda/mls/multi_intensity.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
#include <ftl/cuda/weighting.hpp>
using ftl::cuda::MLSMultiIntensity;
using cv::cuda::GpuMat;
// ==== Multi image MLS ========================================================
__device__ inline float featureWeight(i... |
5afe03eb47115311403a10a8c64be17db7ed0004.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef _SLLN_KERNEL_CH_
#define _SLLN_KERNEL_CH_
#include <helper_functions.h>
#include <helper_math.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <hiprand/hiprand_kernel.h>
#include <hiprand/hiprand_kernel.h>
#include <... | 5afe03eb47115311403a10a8c64be17db7ed0004.cu | #ifndef _SLLN_KERNEL_CH_
#define _SLLN_KERNEL_CH_
#include <helper_functions.h>
#include <helper_math.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <curand_kernel.h>
#include <curand_normal.h>
#include <cuda_runtime.h>
#include <math.h>
#include <string>
#include <typeinfo>
#inc... |
27ab560bd384edaf3f2a7da038684621c46ae8e6.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2011-2014 Maxim Milakov
*
* 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/lic... | 27ab560bd384edaf3f2a7da038684621c46ae8e6.cu | /*
* Copyright 2011-2014 Maxim Milakov
*
* 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 ... |
b075a4a7c2feb448c62a30f872a5dd956756c084.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#define BLOCK_SIZE 256
#define STR_SIZE 256
#define DEVICE 0
#define HALO \
1 // hal... | b075a4a7c2feb448c62a30f872a5dd956756c084.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#define BLOCK_SIZE 256
#define STR_SIZE 256
#define DEVICE 0
#define HALO \
1 // halo width along one direction when advancing to the next iteration
void run(int argc, cha... |
af1b4448f09ff5f258eba653363801f8e5882a22.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) OpenMMLab. All rights reserved
// Modified from
// https://github.com/LikeLy-Journey/SegmenTron/blob/master/segmentron/modules/csrc/criss_cross_attention/ca_cuda.cu
#include <THH/THH.h>
#include <THH/THHDeviceUtil... | af1b4448f09ff5f258eba653363801f8e5882a22.cu | // Copyright (c) OpenMMLab. All rights reserved
// Modified from
// https://github.com/LikeLy-Journey/SegmenTron/blob/master/segmentron/modules/csrc/criss_cross_attention/ca_cuda.cu
#include <THC/THC.h>
#include <THC/THCDeviceUtils.cuh>
#include "cc_attention_cuda_kernel.cuh"
#include "pytorch_cuda_helper.hpp"
void... |
01c6abf0debef74548dc8dd1aa4d11706bd6d02c.hip | // !!! This is a file automatically generated by hipify!!!
#include "SRPS.h"
SRPS::SRPS(DataHandler& dh) {
this->dh = &dh;
}
SRPS::~SRPS() {}
template <typename T>
void set_sparse_matrix_for_gradient(SparseCOO<T>& D, thrust::host_vector<int>& ic, thrust::host_vector<int>& ir, float k1, float k2) {
memcpy(D.row, ic... | 01c6abf0debef74548dc8dd1aa4d11706bd6d02c.cu | #include "SRPS.h"
SRPS::SRPS(DataHandler& dh) {
this->dh = &dh;
}
SRPS::~SRPS() {}
template <typename T>
void set_sparse_matrix_for_gradient(SparseCOO<T>& D, thrust::host_vector<int>& ic, thrust::host_vector<int>& ir, float k1, float k2) {
memcpy(D.row, ic.data(), sizeof(int)*ic.size());
memcpy(D.row + ic.size(),... |
5804a8ff50523c5bbaa6bde68555a6dbfeb00d84.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Indice2D.h"
#include "IndiceTools.h"
#include "DomaineMath.h"
#include "cudaTools.h"
#include "Device.h"
#include "NewtonMath.h"
#include "JuliaMath.h"
/*-------------------------------------------------------------------... | 5804a8ff50523c5bbaa6bde68555a6dbfeb00d84.cu | #include "Indice2D.h"
#include "IndiceTools.h"
#include "DomaineMath.h"
#include "cudaTools.h"
#include "Device.h"
#include "NewtonMath.h"
#include "JuliaMath.h"
/*----------------------------------------------------------------------*\
|* Declaration *|
\*-----------------------------------------------------... |
94d2965a1f758973dc5966a059d8ebfd4303e865.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <math.h>
// function to add the elements of two arrays
__global__
void add(int n, float *x, float *y)
{
//int index = 0;
//int stride = 1;
int index = threadIdx.x;
int stride = blockDim.x;
for... | 94d2965a1f758973dc5966a059d8ebfd4303e865.cu | #include <iostream>
#include <math.h>
// function to add the elements of two arrays
__global__
void add(int n, float *x, float *y)
{
//int index = 0;
//int stride = 1;
int index = threadIdx.x;
int stride = blockDim.x;
for (int i = index; i < n; i += stride)
y[i] = x[i] + y[i];
}
int main(void)
{
int... |
34030429651195400e0f08733bce69fa6466f8cb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* The kernel is assumed to be tuned to each device by selecting
* the best performing combination of thread block dimensions
* and tiling factors in X and Y. In this implementation tiling
* in X increases the amount of work ... | 34030429651195400e0f08733bce69fa6466f8cb.cu | /**
* The kernel is assumed to be tuned to each device by selecting
* the best performing combination of thread block dimensions
* and tiling factors in X and Y. In this implementation tiling
* in X increases the amount of work per thread block and tiling
* in Y increases the amount of work per thread within the b... |
2efc9cc1a926d0c0aa75069b44b5f292cc41bf71.hip | // !!! This is a file automatically generated by hipify!!!
/**
* fdtd2d.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*... | 2efc9cc1a926d0c0aa75069b44b5f292cc41bf71.cu | /**
* fdtd2d.cu: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: Scott Grauer-Gray <sgrauerg@gmail.com>
* Louis-Noel Pouchet <pouchet@cse.ohio-state.edu>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>... |
93d641e7f21badc234b54a68c851d0124f34ae12.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2010-2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
*
* Redistribu... | 93d641e7f21badc234b54a68c851d0124f34ae12.cu | /******************************************************************************
* Copyright (c) 2010-2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... |
eee1e710b42ed6e0ce32b64bd0b0ce3841a6d083.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* KMeans.cpp
*
* Created on: 8 feb 2021
* Author: marco
*/
#include "KMeans.h"
#include <cmath>
#include <cstdio>
#include <cassert>
#include <iostream>
#include <chrono>
static void CheckCudaErrorAux(const char *, ... | eee1e710b42ed6e0ce32b64bd0b0ce3841a6d083.cu | /*
* KMeans.cpp
*
* Created on: 8 feb 2021
* Author: marco
*/
#include "KMeans.h"
#include <cmath>
#include <cstdio>
#include <cassert>
#include <iostream>
#include <chrono>
static void CheckCudaErrorAux(const char *, unsigned, const char *, cudaError_t);
#define CUDA_CHECK_RETURN(value) CheckCudaErrorAux... |
c0a59f2d48f66f7b72a079d6deef55aebbaaaa98.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void GPUAdd(float *array1, float *array2, float *result, int WIDTH)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
result[i] = array1[i] + array2[i];
} | c0a59f2d48f66f7b72a079d6deef55aebbaaaa98.cu | #include "includes.h"
__global__ void GPUAdd(float *array1, float *array2, float *result, int WIDTH)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
result[i] = array1[i] + array2[i];
} |
ae31b17b35ebbecf09746a6ae69ea7f2213b7da6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
#include<stdio.h>
#include<math.h>
#include<time.h>
#include <stdlib.h>
int Max=16384;
int width=32;
typedef struct {
double A1;
double A2;
double A3;
double A4;
}stru;
__global__ void multi(stru *A,stru *b,d... | ae31b17b35ebbecf09746a6ae69ea7f2213b7da6.cu | //合并 访存
#include<stdio.h>
#include<math.h>
#include<time.h>
#include <stdlib.h>
int Max=16384;
int width=32;
typedef struct {
double A1;
double A2;
double A3;
double A4;
}stru;
__global__ void multi(stru *A,stru *b,double *C,const int Max){
int idx = blockIdx.x * blockDim.x + threadIdx.x;
int... |
74f982985b032b7ffa9612170a60498785572c04.hip | // !!! This is a file automatically generated by hipify!!!
#include <algorithm>
#include <cassert>
#include <iostream>
#include <limits>
#include <random>
#include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"
#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#include "HeterogeneousCor... | 74f982985b032b7ffa9612170a60498785572c04.cu | #include <algorithm>
#include <cassert>
#include <iostream>
#include <limits>
#include <random>
#include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"
#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#include "HeterogeneousCore/CUDAUtilities/interface/HistoContainer.h"
#include "Heter... |
ee2a02d9652ff096c975e0611c3c8246c3062cff.hip | // !!! This is a file automatically generated by hipify!!!
// Jordan Cazamias
// CUDA World Gen 2015
#include <iostream>
#include <ctime>
#include <stdlib.h>
#include "hip/hip_runtime.h"
#include "hip/hip_runtime_api.h"
using namespace std;
__global__ void AddInts(int *a, int *b, int count)
{
int id = blockIdx.x * ... | ee2a02d9652ff096c975e0611c3c8246c3062cff.cu | // Jordan Cazamias
// CUDA World Gen 2015
#include <iostream>
#include <ctime>
#include <stdlib.h>
#include "cuda_runtime.h"
#include "cuda_runtime_api.h"
using namespace std;
__global__ void AddInts(int *a, int *b, int count)
{
int id = blockIdx.x * blockDim.x + threadIdx.x;
if (id < count)
{
a[id] += b[id];
... |
c086d7eb80ad92020138f32ee9c8d816083e837d.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 "copy.hip"
#include<chrono>
#include<iostream>
using namespace st... | c086d7eb80ad92020138f32ee9c8d816083e837d.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 "copy.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,... |
b8219c37311374e8b6b8072cac6e766820fe0a67.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <hip/hip_runtime.h>
//use INSTANTIATE when kernel is called from other files
#define INSTANTIATE_LAYER_GPU_FORWARD(func) \
template __global__ void func<floa... | b8219c37311374e8b6b8072cac6e766820fe0a67.cu |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <cuda_runtime.h>
//use INSTANTIATE when kernel is called from other files
#define INSTANTIATE_LAYER_GPU_FORWARD(func) \
template __global__ void func<float>(float* d_out, const float* d_in, \
... |
00f1972302402e0d9cd1380bc3184df78c211437.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*$Id: MarsLib.cu 755 2009-11-18 13:22:54Z wenbinor $*/
/**
*This is the source code for Mars, a MapReduce framework on graphics
*processors.
*Developers: Wenbin Fang (HKUST), Bingsheng He (Microsoft Research Asia)
*Naga K. Govi... | 00f1972302402e0d9cd1380bc3184df78c211437.cu | /*$Id: MarsLib.cu 755 2009-11-18 13:22:54Z wenbinor $*/
/**
*This is the source code for Mars, a MapReduce framework on graphics
*processors.
*Developers: Wenbin Fang (HKUST), Bingsheng He (Microsoft Research Asia)
*Naga K. Govindaraju (Microsoft Corp.), Qiong Luo (HKUST), Tuyong Wang (Sina.com).
*If you have any ... |
41c761009cc52b61eca25f2b2abe38885d24366e.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <hip/hip_runtime.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include <glm/gtc/matrix_inverse.hpp>
#include "s... | 41c761009cc52b61eca25f2b2abe38885d24366e.cu | #include <cstdio>
#include <cuda.h>
#include <cmath>
#include <thrust/execution_policy.h>
#include <thrust/random.h>
#include <thrust/remove.h>
#include <thrust/device_ptr.h>
#include <thrust/sort.h>
#include <glm/gtc/matrix_inverse.hpp>
#include "sceneStructs.h"
#include "scene.h"
#include "glm/glm.hpp"
#include "glm... |
80369eade15ecf1ac7dd43437c41a28e28eace5d.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 80369eade15ecf1ac7dd43437c41a28e28eace5d.cu | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
2053dfe3111d593ce6eb024880849f932dc1eb32.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution a... | 2053dfe3111d593ce6eb024880849f932dc1eb32.cu | /******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2013, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
ab48a28898b8fd6462ec962e9540a08787505ac7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// TODO: reduce the apparent redundancy of all the code below.
#include <cfloat>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/pool_op.h"
namespace caffe2 {
namespace {
struct LpPoolFunctor {
explicit LpPoolFun... | ab48a28898b8fd6462ec962e9540a08787505ac7.cu | // TODO: reduce the apparent redundancy of all the code below.
#include <cfloat>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/pool_op.h"
namespace caffe2 {
namespace {
struct LpPoolFunctor {
explicit LpPoolFunctor(const OperatorBase& /* op */) {}
};
} // namespace
namespace {
using c10::cuda::c... |
55af1aea55f6b203eadc5930bc921dbefeec9c3b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <fstream>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include "Pass.h"
#include "constants.h"
#include "lattice_PAR.h"
using... | 55af1aea55f6b203eadc5930bc921dbefeec9c3b.cu | #include <iostream>
#include <fstream>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include <curand.h>
#include <curand_kernel.h>
#include "Pass.h"
#include "constants.h"
#include "lattice_PAR.h"
using namespace std;
void emittance(COORD *y, REAL *PEx, REAL *PEy, REAL *PEdelta)
{
REAL avg_x=0,avg_xp=0... |
ec7a78d81312b1ff15a6fc3e03c630aae10cbb88.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
*... | ec7a78d81312b1ff15a6fc3e03c630aae10cbb88.cu | /* ******************************************************************************
*
*
* 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.
*
* See the NOTICE file distributed wit... |
71635d37cf2fd617e0abb528a6adb83080dad36b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/crf_norm_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__device__ Dtype dot_stride2(
const int count,
const Dtype* const data1,
... | 71635d37cf2fd617e0abb528a6adb83080dad36b.cu | #include <vector>
#include "caffe/layers/crf_norm_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__device__ Dtype dot_stride2(
const int count,
const Dtype* const data1,
const int stride1,
const Dtype* const data2,
const int stride2){
// Perform the do... |
722273d3d6c46ac20901b7d4edfba77b60859c01.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... | 722273d3d6c46ac20901b7d4edfba77b60859c01.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<... |
d9ea1bc1518899e03b624ae76432b66977b804de.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----
// ---- Computes the potential field for a volume
// ---- Input: volume file, dimensions: X, Y, Z, output file name
// ---- Output: normalized potential field:
// 1 vector for each point in the volume
//
// Last change:... | d9ea1bc1518899e03b624ae76432b66977b804de.cu | // ----
// ---- Computes the potential field for a volume
// ---- Input: volume file, dimensions: X, Y, Z, output file name
// ---- Output: normalized potential field:
// 1 vector for each point in the volume
//
// Last change: Thu May 15 15:20:38 EDT 2003 by Nicu D. Cornea
//
//
// #define TRACE
#include "potVe... |
48539e323b64ff26a71ca7d84c2111c5b46b33d1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cfloat>
#include <vector>
#include "caffe/scale_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void ScaleForward(const int n, const Dtype* in,
const Dtype*... | 48539e323b64ff26a71ca7d84c2111c5b46b33d1.cu | #include <cfloat>
#include <vector>
#include "caffe/scale_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void ScaleForward(const int n, const Dtype* in,
const Dtype* scale, const int scale_dim, const int inner_dim,
Dtype* out) {
CUDA_KERNEL_LOOP(i... |
069b0e253a1d0ca11c0140b3823e4480daa36bda.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "graph.h"
#include "sssp.h"
#include "timer.h"
//#define INF 1000000000
__constant__ unsigned INF = 1000000000;
__global__ void
initialize(Graph G, unsigned* d_dist, uint64... | 069b0e253a1d0ca11c0140b3823e4480daa36bda.cu | #include <stdio.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include "graph.h"
#include "sssp.h"
#include "timer.h"
//#define INF 1000000000
__constant__ unsigned INF = 1000000000;
__global__ void
initialize(Graph G, unsigned* d_dist, uint64_t nnodes){
uint64_t gid = threadIdx.x + blockDim.x * blockIdx.x;
if(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.