hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
ac4eadcb807994fecfafcbce8f72c4679446f6bf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <omp.h>
#include <math.h>
#include <stdio.h>
void jacobi_cpu(double* u, const double* u0, double h, long N) {
#pragma omp parallel for schedule(static)
for (long i=1; i<N-1; i++) {
for (long j=1; j<N-1; j++) {
... | ac4eadcb807994fecfafcbce8f72c4679446f6bf.cu | #include <omp.h>
#include <math.h>
#include <stdio.h>
void jacobi_cpu(double* u, const double* u0, double h, long N) {
#pragma omp parallel for schedule(static)
for (long i=1; i<N-1; i++) {
for (long j=1; j<N-1; j++) {
u[N*i + j] = (h*h + u0[N*(i-1)+j] + u0[N*(i+1)+j] + u0[N*i+j+1] + u0[N*i+j-1]) / 4.0;
... |
4b588292ebe74943d30d84782f42c3e92c2e1223.hip | // !!! This is a file automatically generated by hipify!!!
#include "common.h"
template<typename T>
device_vector_holder<T>::~device_vector_holder(){
__free();
}
template<typename T>
void device_vector_holder<T>::__free(){
if(valid){
hipFree(__gpu_memory);
valid = false;
__size = 0;
... | 4b588292ebe74943d30d84782f42c3e92c2e1223.cu | #include "common.h"
template<typename T>
device_vector_holder<T>::~device_vector_holder(){
__free();
}
template<typename T>
void device_vector_holder<T>::__free(){
if(valid){
cudaFree(__gpu_memory);
valid = false;
__size = 0;
}
}
template<typename T>
device_vector_holder<T>::devic... |
89c8e312ad7b46b86e97184084ab43e249cf4d23.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <THHUNN/THHUNN.h>
#include <THHUNN/common.h>
#include <THH/THHTensor.hpp>
#include <THHUNN/upsampling.h>
#include <THH/THHDeviceTensor.cuh>
#include <THH/THHDeviceTensorUtils.cuh>
#include <THH/THHDeviceUtils.cuh>
#includ... | 89c8e312ad7b46b86e97184084ab43e249cf4d23.cu | #include <THCUNN/THCUNN.h>
#include <THCUNN/common.h>
#include <THC/THCTensor.hpp>
#include <THCUNN/upsampling.h>
#include <THC/THCDeviceTensor.cuh>
#include <THC/THCDeviceTensorUtils.cuh>
#include <THC/THCDeviceUtils.cuh>
#include <TH/THHalf.h>
#include <THCUNN/THCHalfAutoNumerics.cuh>
#include <THC/THCAtomics.cuh>
... |
c387778567f8dd9e28f42ee69155420bb20bc843.hip | // !!! This is a file automatically generated by hipify!!!
#include "stdafx.h"
#include <iostream>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
using namespace std;
__global__ void myFirstKernel()
{
}
void main()
{
hipLaunchKernelGGL(( myFirstKernel), dim3(1),dim3(1) , 0, 0, );
cin.get();
}
| c387778567f8dd9e28f42ee69155420bb20bc843.cu | #include "stdafx.h"
#include <iostream>
#include <cuda.h>
#include <cuda_runtime.h>
using namespace std;
__global__ void myFirstKernel()
{
}
void main()
{
myFirstKernel<<< 1,1 >>>();
cin.get();
}
|
322b0ade2b2efa98f2bf7f946e06c40da946832a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* A program that compare performance of gfft and cuFFT library
* Test the speed and accuracy of FP16 and FP32 calculation
*/
// C library, CUDA runtime, helpers, and utilities
#include "../util/my_include.h"
#include <vector>
// gfft
#include "../util/... | 322b0ade2b2efa98f2bf7f946e06c40da946832a.cu | /*
* A program that compare performance of gfft and cuFFT library
* Test the speed and accuracy of FP16 and FP32 calculation
*/
// C library, CUDA runtime, helpers, and utilities
#include "../util/my_include.h"
#include <vector>
// gfft
#include "../util/gfft_using_fft4.h"
// CUFFT
#include <cufft.h>
#include <c... |
443305f54080fcc3984d681fd21cdf99acaa4c16.hip | // !!! This is a file automatically generated by hipify!!!
#include "cupoch/visualization/shader/texture_phong_shader.h"
#include "cupoch/geometry/image.h"
#include "cupoch/geometry/pointcloud.h"
#include "cupoch/geometry/trianglemesh.h"
#include "cupoch/visualization/shader/shader.h"
#include "cupoch/visualization/ut... | 443305f54080fcc3984d681fd21cdf99acaa4c16.cu | #include "cupoch/visualization/shader/texture_phong_shader.h"
#include "cupoch/geometry/image.h"
#include "cupoch/geometry/pointcloud.h"
#include "cupoch/geometry/trianglemesh.h"
#include "cupoch/visualization/shader/shader.h"
#include "cupoch/visualization/utility/color_map.h"
#include "cupoch/utility/console.h"
#inc... |
e1934865abb5f5000dd0b9110bbd496fd9f2e352.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "hip/device_functions.h"
#include <stdio.h>
#define SIZE 1024
#define ONERROR(expression) cudaStatus = expression;\
if(cudaStatus != hipSuccess) \
{\
fprintf(stderr, "%s failed ... | e1934865abb5f5000dd0b9110bbd496fd9f2e352.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "device_functions.h"
#include <stdio.h>
#define SIZE 1024
#define ONERROR(expression) cudaStatus = expression;\
if(cudaStatus != cudaSuccess) \
{\
fprintf(stderr, "%s failed on line %d!\n",__FUNCTION__,__LINE__);\
goto Error;\
}
__glo... |
a96b89c061319ddba93fd19f694391d17dee5bcd.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2019 by XGBoost Contributors
*
* \file data.cu
*/
#include "xgboost/data.h"
#include "xgboost/logging.h"
#include "xgboost/json.h"
#include "columnar.h"
#include "../common/device_helpers.cuh"
namespace xgboost {
void MetaInfo::SetInfo(co... | a96b89c061319ddba93fd19f694391d17dee5bcd.cu | /*!
* Copyright 2019 by XGBoost Contributors
*
* \file data.cu
*/
#include "xgboost/data.h"
#include "xgboost/logging.h"
#include "xgboost/json.h"
#include "columnar.h"
#include "../common/device_helpers.cuh"
namespace xgboost {
void MetaInfo::SetInfo(const char * c_key, std::string const& interface_str) {
Jso... |
8c599927c2be1f1575bf8d5814cfeb6be5ddeebe.hip | // !!! This is a file automatically generated by hipify!!!
#include <algorithm>
#include <new>
#include <cstddef>
#include <windows.h>
#include <iostream>
#include <cinttypes>
#include <random>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "hip/device_functions.h"
static const int MIN = ... | 8c599927c2be1f1575bf8d5814cfeb6be5ddeebe.cu | #include <algorithm>
#include <new>
#include <cstddef>
#include <windows.h>
#include <iostream>
#include <cinttypes>
#include <random>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "device_functions.h"
static const int MIN = -30;
static const int MAX = 30;
static const unsigned int BLOCK_S... |
84adbdee6b07ba17da8c3ec8e512162323f2bc33.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel5_minus_2_back;
int xdim0_update_halo_kernel5_minus_2_back_h = -1;
__constant__ int ydim0_update_halo_kernel5_minus_2_back;
int ydim0_update_halo_kernel5_min... | 84adbdee6b07ba17da8c3ec8e512162323f2bc33.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel5_minus_2_back;
int xdim0_update_halo_kernel5_minus_2_back_h = -1;
__constant__ int ydim0_update_halo_kernel5_minus_2_back;
int ydim0_update_halo_kernel5_minus_2_back_h = -1;
__constant__ int xdim1_update_halo_kernel5_minus_2_back;
int xdim1_upd... |
f8f061a69ee5288826cdad148143c9089f09aab2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void cudaKernel_maxlocPlusZoominOffset(float *offset, const int * padStart, const int * maxlocUpSample, const size_t nImages, float zoomInRatioX, float zoomInRatioY)
{
int imageIndex = threadIdx.x + ... | f8f061a69ee5288826cdad148143c9089f09aab2.cu | #include "includes.h"
__global__ void cudaKernel_maxlocPlusZoominOffset(float *offset, const int * padStart, const int * maxlocUpSample, const size_t nImages, float zoomInRatioX, float zoomInRatioY)
{
int imageIndex = threadIdx.x + blockDim.x *blockIdx.x; //image index
if (imageIndex < nImages)
{
int index=2*imageIndex... |
05bb266ef74b198e6cfa8fa3f44a2b198e5e9cb4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "dot.h"
#define imin(a,b) (a<b?a:b)
#include "book.h"
const int N = 33*1024;
const int threadsPerBlock = 256;
const int blocksPerGrid = imin(32, (N+threadsPerBlock-1)/threadsPerBlock);
__global__ void dodot(float *a, floa... | 05bb266ef74b198e6cfa8fa3f44a2b198e5e9cb4.cu | #include "dot.h"
#define imin(a,b) (a<b?a:b)
#include "book.h"
const int N = 33*1024;
const int threadsPerBlock = 256;
const int blocksPerGrid = imin(32, (N+threadsPerBlock-1)/threadsPerBlock);
__global__ void dodot(float *a, float *b, float *c);
void dot()
{
//int a[N],b[N],c[N];
//CPUBitmap bitmap(16,16);
... |
d6c9f0dd8541b7f096d2981c8f2f3fe137098b55.hip | // !!! This is a file automatically generated by hipify!!!
#include "timer.hpp"
#include <algorithm>
#include <numeric>
#include <cmath>
#include <rocblas.h>
#include <hip/hip_runtime.h>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define BLOCK_SIZE 256
#define GRID_SI... | d6c9f0dd8541b7f096d2981c8f2f3fe137098b55.cu | #include "timer.hpp"
#include <algorithm>
#include <numeric>
#include <cmath>
#include <cublas_v2.h>
#include <cuda_runtime.h>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#define BLOCK_SIZE 256
#define GRID_SIZE 128
// #define SEP ";"
// #define DEBUG
#ifndef DEBUG
... |
1c7515871364dcfe702ffaa994106243dcac532e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void
mat_transpose(float *a, float *out, int size_x, int size_y)
{
const int i = blockDim.y * blockIdx.y + threadIdx.y,
j = blockDim.x * blockIdx.x + threadIdx.x;
if (i < size_x && j < size_y)
{... | 1c7515871364dcfe702ffaa994106243dcac532e.cu | __global__ void
mat_transpose(float *a, float *out, int size_x, int size_y)
{
const int i = blockDim.y * blockIdx.y + threadIdx.y,
j = blockDim.x * blockIdx.x + threadIdx.x;
if (i < size_x && j < size_y)
{
out[j * size_y + i] = a[i * size_y + j];
}
}
|
d21f8a525648653851e4054ed2a71b5f7ac9be91.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void gpuFunc_copiarLayer(float *layer, float *layer_copy)
{
/*Formula para calcular la posicion*/
int bloqueId = blockIdx.x + blockIdx.y * gridDim.x;
int globalId = bloqueId * (blockDim.x * blockDim.y) + (threadIdx.y ... | d21f8a525648653851e4054ed2a71b5f7ac9be91.cu |
__global__ void gpuFunc_copiarLayer(float *layer, float *layer_copy)
{
/*Formula para calcular la posicion*/
int bloqueId = blockIdx.x + blockIdx.y * gridDim.x;
int globalId = bloqueId * (blockDim.x * blockDim.y) + (threadIdx.y * blockDim.x) + threadIdx.x;
layer_copy[globalId]=layer[globalId];
}
__global__ void g... |
1b58d79d16fc51e1a956f02ac1ca0222678a469c.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorFFT.cu"
#else
#if defined(THC_REAL_IS_ZFLOAT) || defined(THC_REAL_IS_ZDOUBLE)
// THC_API int THCState_getNumCuFFTPlans(THCState* state);
// THC_API hipfftHandle* THCState_getCuFFTPlan(THCStat... | 1b58d79d16fc51e1a956f02ac1ca0222678a469c.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "generic/THCTensorFFT.cu"
#else
#if defined(THC_REAL_IS_ZFLOAT) || defined(THC_REAL_IS_ZDOUBLE)
// THC_API int THCState_getNumCuFFTPlans(THCState* state);
// THC_API cufftHandle* THCState_getCuFFTPlan(THCState* state,int batch, int n1, int n2, int n3) ;
void THCTensor... |
ddebfb7a8fc5e039d454d50930cdaa5a9a3c3ac8.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "../gpu_lib/header.h"
#include "../utils/header.h"
#include <stdio.h>
#include <algorithm>
#include <cstdlib>
#include <cstring>
namespace ftxj {
__global__ void bf_spmm(
float* Y0, // input
float* Y1,
i... | ddebfb7a8fc5e039d454d50930cdaa5a9a3c3ac8.cu | #include <cuda.h>
#include "../gpu_lib/header.h"
#include "../utils/header.h"
#include <stdio.h>
#include <algorithm>
#include <cstdlib>
#include <cstring>
namespace ftxj {
__global__ void bf_spmm(
float* Y0, // input
float* Y1,
int* roffW, // len neuron * N_SLAB - 1
int* colsW, // index 32 * ... |
9ed5922f3ec26f4520da75574cf21bece7b03ac5.hip | // !!! This is a file automatically generated by hipify!!!
//--------------------------------------------------------------------------
// Project:
// Select the least utilized GPU on a CUDA-enabled system.
// Insert into your code as desired.
//
// Prerequisites:
// Must have installed the CUDA toolkit.
// Must be ... | 9ed5922f3ec26f4520da75574cf21bece7b03ac5.cu | //--------------------------------------------------------------------------
// Project:
// Select the least utilized GPU on a CUDA-enabled system.
// Insert into your code as desired.
//
// Prerequisites:
// Must have installed the CUDA toolkit.
// Must be running on a UNIX machine
//
// Independent testing info:
/... |
f1cacfeb529414593cb278284b90075675955a8d.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef CUDAERRORUTILS_INCLUDED
#define CUDAERRORUTILS_INCLUDED
#include <stdio.h>
#include <hiprand/hiprand.h>
// Define this to turn on error checking
#define CUDA_ERROR_CHECK
#define cudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ )
#define c... | f1cacfeb529414593cb278284b90075675955a8d.cu | #ifndef CUDAERRORUTILS_INCLUDED
#define CUDAERRORUTILS_INCLUDED
#include <stdio.h>
#include <curand.h>
// Define this to turn on error checking
#define CUDA_ERROR_CHECK
#define cudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ )
#define cudaCheckError() __cudaCheckError( __FILE__, __LINE__ )
#define cu... |
67daaa28360f4b6c1ed1281a30a5459171c8ce19.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <assert.h>
#define N 2//64
__device__ void bar(int* p) {
p[threadIdx.x] = 0;
//printf(" %d; ", p[threadIdx.x]);
}
__global__ void foo(int* p) {
bar(p);
}
| 67daaa28360f4b6c1ed1281a30a5459171c8ce19.cu | #include <stdio.h>
#include <cuda.h>
#include <assert.h>
#define N 2//64
__device__ void bar(int* p) {
p[threadIdx.x] = 0;
//printf(" %d; ", p[threadIdx.x]);
}
__global__ void foo(int* p) {
bar(p);
}
|
b8ab9a306b0ded1aaed77e45157375405ae9090e.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... | b8ab9a306b0ded1aaed77e45157375405ae9090e.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 ... |
7608221dcac1a18d10110a1e1a00b1ab499ae8d0.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2014 Google Inc. 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... | 7608221dcac1a18d10110a1e1a00b1ab499ae8d0.cu | /*
* Copyright 2014 Google Inc. 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 applicab... |
1ac3b245d3e36126687adff7817cc1dcc023e08c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "srad.h"
#include <stdio.h>
__global__ void
srad_cuda_1(
float *E_C,
float *W_C,
float *N_C,
float *S_C,
float * J_cuda,
float * C_cuda,
int cols,
int rows,
float q0sqr
) {
//b... | 1ac3b245d3e36126687adff7817cc1dcc023e08c.cu | #include "srad.h"
#include <stdio.h>
__global__ void
srad_cuda_1(
float *E_C,
float *W_C,
float *N_C,
float *S_C,
float * J_cuda,
float * C_cuda,
int cols,
int rows,
float q0sqr
) {
//block id
int bx = blockIdx.x;
int by = blockIdx.y;
//thread id
int tx = threadId... |
bc9df74ea02306bb66d41442e60b7df2c18fee12.hip | // !!! This is a file automatically generated by hipify!!!
// includes system
#include <cmath>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
// includes CUDA
#include "hip/hip_runtime.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
... | bc9df74ea02306bb66d41442e60b7df2c18fee12.cu | // includes system
#include <cmath>
#include <ctime>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
// includes CUDA
#include "cuda.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "nbody_exception.h"
#include "integrator.h"
#include "options.h... |
e77f4320ff375b479aba835e7131b4974aeab882.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#pragma clang diagnostic push
#pragma ide diagnostic ignored "openmp-use-default-none"
//
// Created by Francisco Jos Gonzlez Garca.
// Copyright (c) 2020 Universidad de Granada. All rights reserved.
//
#include "utilidades.h"
#inc... | e77f4320ff375b479aba835e7131b4974aeab882.cu | #pragma clang diagnostic push
#pragma ide diagnostic ignored "openmp-use-default-none"
//
// Created by Francisco José González García.
// Copyright (c) 2020 Universidad de Granada. All rights reserved.
//
#include "utilidades.h"
#include "algorithm"
#include "kernels.cuh"
#include <sys/time.h>
using namespace std;
... |
a75d79070b2ab25588e4f7fc0ce2f6cd3bf39ae7.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <hip/hip_runtime.h>
texture<unsigned char, 2, hipReadModeElementType> imgtex;
texture<int, 1, hipReadModeElementType> Ltex;
texture<int, 1, hipReadModeElementType> Rtex;
namespace naive... | a75d79070b2ab25588e4f7fc0ce2f6cd3bf39ae7.cu | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cuda.h>
texture<unsigned char, 2, cudaReadModeElementType> imgtex;
texture<int, 1, cudaReadModeElementType> Ltex;
texture<int, 1, cudaReadModeElementType> Rtex;
namespace naive_prop {
const int BLOCK_X = 16;
const int BLOCK_Y = 16;
__global_... |
39c7d6db10251a9431667837d785c889d27c3c9a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__ void matrixMultGPU(int *a_ll,int *a_lr,int *a_ul, int *a_ur,int *b_ll,int *b_lr,int *b_ul, int *b_ur, int *c_ll,int *c_lr,int *c_ul, int *c_ur, int *t_ll,int *t_lr... | 39c7d6db10251a9431667837d785c889d27c3c9a.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__ void matrixMultGPU(int *a_ll,int *a_lr,int *a_ul, int *a_ur,int *b_ll,int *b_lr,int *b_ul, int *b_ur, int *c_ll,int *c_lr,int *c_ul, int *c_ur, int *t_ll,int *t_lr,int *t_ul, int *t_ur,int N){
int k, sum_cur = 0,sum_cul = 0,sum_cll = 0,sum_clr = 0,s... |
labwork.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <include/labwork.h>
#include <hip/hip_runtime_api.h>
#include <omp.h>
#include <math.h>
#define ACTIVE_THREADS 4
int main(int argc, char **argv) {
printf("USTH ICT Master 2017, Advanced Programming for HPC.\n");
if (argc ... | labwork.cu |
#include <stdio.h>
#include <include/labwork.h>
#include <cuda_runtime_api.h>
#include <omp.h>
#include <math.h>
#define ACTIVE_THREADS 4
int main(int argc, char **argv) {
printf("USTH ICT Master 2017, Advanced Programming for HPC.\n");
if (argc < 2) {
printf("Usage: labwork <lwNum> <inputImage>\n")... |
3d5e8b27f411ac1e71e22179bede574be12149f1.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_complex.h>
#include <fftw3.h>
#include <hipfft.h>
#include <sys/time.h>
#include <assert.h>
using namespace std;
#define k_rangeres 30
#define k_calib 1941.05
#define RESU... | 3d5e8b27f411ac1e71e22179bede574be12149f1.cu | #include <iostream>
#include <stdlib.h>
#include <cuda.h>
#include <cuComplex.h>
#include <fftw3.h>
#include <cufft.h>
#include <sys/time.h>
#include <assert.h>
using namespace std;
#define k_rangeres 30
#define k_calib 1941.05
#define RESULT_SIZE 2
#define DEBUG
inline
cudaError_t checkCuda(cudaError_t result) {
... |
798a204d4b6fb7ced1ec70e82f1693dbfc58b89d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* This software is Copyright (c) 2011-2012 Lukas Odzioba <ukasz at openwall dot net>
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or withou... | 798a204d4b6fb7ced1ec70e82f1693dbfc58b89d.cu | /*
* This software is Copyright (c) 2011-2012 Lukas Odzioba <ukasz at openwall dot net>
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without modification, are permitted.
* This file is shared by raw-sha224-cuda and raw-sha256-c... |
17a5754d8a52e342cd2f44cd1de62d41b45524b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "myKernel.h"
__global__ void kernel( int *a, int dimx, int dimy )
{
int ix = blockIdx.x*blockDim.x + threadIdx.x;
int iy = blockIdx.y*blockDim.y + threadIdx.y;
int idx = iy*dimx + ix;
a[idx] = a[idx]+... | 17a5754d8a52e342cd2f44cd1de62d41b45524b8.cu | #include "myKernel.h"
__global__ void kernel( int *a, int dimx, int dimy )
{
int ix = blockIdx.x*blockDim.x + threadIdx.x;
int iy = blockIdx.y*blockDim.y + threadIdx.y;
int idx = iy*dimx + ix;
a[idx] = a[idx]+1;
}
// Please implement the following kernels2 through kernel6,
// in order to meet th... |
fb779ff7fda1efdd07ba3481eff525602848c81b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
Jacob Sword
Parallelized multiplication of matrix and matrix of random values given matrix dimensions
**/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <time.h>
#in... | fb779ff7fda1efdd07ba3481eff525602848c81b.cu | /**
Jacob Sword
Parallelized multiplication of matrix and matrix of random values given matrix dimensions
**/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <time.h>
#include "wtime.h"
#include "./error_handler.h"
using std::cout;
using std::endl;
const in... |
e89a84e60e0bcdd9dedb94f09f4b8744b69240a0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <memory>
#include <algorithm>
#include <chrono>
#include <vector>
#include <numeric>
#include <iostream>
#include "device_launch_parameters.h"
#include "CUDAUtils.h"
template <typename TFunc>
inline ... | e89a84e60e0bcdd9dedb94f09f4b8744b69240a0.cu | #include <cstdio>
#include <memory>
#include <algorithm>
#include <chrono>
#include <vector>
#include <numeric>
#include <iostream>
#include "device_launch_parameters.h"
#include "CUDAUtils.h"
template <typename TFunc>
inline double Timing(TFunc const &func, int times = 3) {
using namespace std::chrono;
... |
60633418eb2378d5874087ce4d40ac95a4b6a348.hip | // !!! This is a file automatically generated by hipify!!!
//xfail:BOOGIE_ERROR
//--blockDim=1024 --gridDim=1 --boogie-file=${KERNEL_DIR}/axioms.bpl --no-inline
//error: possible null pointer access
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <hip/hip_runtime.h>
#define N 8
typedef float(*fun... | 60633418eb2378d5874087ce4d40ac95a4b6a348.cu | //xfail:BOOGIE_ERROR
//--blockDim=1024 --gridDim=1 --boogie-file=${KERNEL_DIR}/axioms.bpl --no-inline
//error: possible null pointer access
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cuda.h>
#define N 8
typedef float(*funcType)(float*, unsigned int);
__device__ float multiplyByTwo(float *v... |
50fc91681c22e1e29e7553ebf5b93315f72ff8b4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct hipComplex {
float r;
float i;
__device__ hipComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
re... | 50fc91681c22e1e29e7553ebf5b93315f72ff8b4.cu | #include "kernel.h"
#define TX 32
#define TY 32
#define DIM 2100
struct cuComplex {
float r;
float i;
__device__ cuComplex( float a, float b ) : r(a), i(b) {}
__device__ float magnitude2( void ) {
return r * r + i * i;
}
__device__ cuComplex operator*(const cuComplex& a) {
... |
fe02e87d71c80268fe0829b463051ac946905904.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/common.h"
#include <hip/hip_runtime.h>
#include <stdio.h>
#define DIM 512
/*
* An example of using shared memory to optimize performance of a parallel
* reduction by constructing partial results for a thread block in shared memory
* befo... | fe02e87d71c80268fe0829b463051ac946905904.cu | #include "../common/common.h"
#include <cuda_runtime.h>
#include <stdio.h>
#define DIM 512
/*
* An example of using shared memory to optimize performance of a parallel
* reduction by constructing partial results for a thread block in shared memory
* before flushing to global memory.
*/
// Returns the current time... |
600211f253d568ade2627c370ec2555241e41029.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/LegacyTHFunctionsCUDA.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/hip/HIPBlas.h>
namespace at { namespace native {
Tensor baddbmm_cuda(const Tensor& self, const Tensor& batch1, const Tensor& batch2, Scalar beta, ... | 600211f253d568ade2627c370ec2555241e41029.cu | #include <ATen/ATen.h>
#include <ATen/LegacyTHFunctionsCUDA.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/cuda/CUDABlas.h>
namespace at { namespace native {
Tensor baddbmm_cuda(const Tensor& self, const Tensor& batch1, const Tensor& batch2, Scalar beta, Scalar alpha) {
Tensor b_self;
std::tie(b_self) = exp... |
025c487365e2a8c76fbbdbc5477430050f25f544.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include "constants.cuh"
#include "frequencies.cuh"
FrequenciesData* allocateMemoryToFrequenciesData(int numFrequencies){
FrequenciesData* frequenciesData = (FrequenciesData*)malloc(sizeof(FrequenciesData));
frequenciesData->numFrequenci... | 025c487365e2a8c76fbbdbc5477430050f25f544.cu | #include <math.h>
#include "constants.cuh"
#include "frequencies.cuh"
FrequenciesData* allocateMemoryToFrequenciesData(int numFrequencies){
FrequenciesData* frequenciesData = (FrequenciesData*)malloc(sizeof(FrequenciesData));
frequenciesData->numFrequencies = numFrequencies;
frequenciesData->frequencies = (doub... |
560c9e726c24e0123df4afe075bb44f92e36fc64.hip | // !!! This is a file automatically generated by hipify!!!
#include "pch.h"
#include "hip/hip_runtime.h"
#include "hiprand/hiprand.h"
#include "rocblas.h"
#include "hip/hip_fp16.h"
#include "cuda_fp16.hpp"
#include "hip/hip_runtime.h"
extern "C" {
#include "convolutional_layer.h"
#include "batchnorm_layer.h"
#include "... | 560c9e726c24e0123df4afe075bb44f92e36fc64.cu | #include "pch.h"
#include "cuda_runtime.h"
#include "curand.h"
#include "cublas_v2.h"
#include "cuda_fp16.h"
#include "cuda_fp16.hpp"
#include "cuda.h"
extern "C" {
#include "convolutional_layer.h"
#include "batchnorm_layer.h"
#include "gemm.h"
#include "blas.h"
#include "im2col.h"
#include "col2im.h"
#include "utils.h... |
612f804e358b6acff60a6c1256814f96dcd08e26.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright 2012 The Trustees of Indiana University. All rights reserved.
CGL MapReduce Framework on GPUs and CPUs
Code Name: Panda
File: PandaUtils.cu
First Version: 2012-07-01 V0.1
Current Version: 2012-09-01 V0.3
Last Updates: 2012-09-02
... | 612f804e358b6acff60a6c1256814f96dcd08e26.cu |
/*
Copyright 2012 The Trustees of Indiana University. All rights reserved.
CGL MapReduce Framework on GPUs and CPUs
Code Name: Panda
File: PandaUtils.cu
First Version: 2012-07-01 V0.1
Current Version: 2012-09-01 V0.3
Last Updates: 2012-09-02
Developer: Hui Li (lihui@indiana.edu)
This is the source ... |
6533b40c1838a8c74f296453647532e239ea0bff.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void double_value(double *x, double *y)
{
y[threadIdx.x] = 2. * x[threadIdx.x];
} | 6533b40c1838a8c74f296453647532e239ea0bff.cu | #include "includes.h"
__global__ void double_value(double *x, double *y)
{
y[threadIdx.x] = 2. * x[threadIdx.x];
} |
846bd4f82ee037395ce20d3100b91f3b69d47f7d.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 "gpu_blur.cu"
#include<chrono>
#include<iostream>
using namespace... | 846bd4f82ee037395ce20d3100b91f3b69d47f7d.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 "gpu_blur.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},... |
008cee34ccff7dbc4d42593db15e368f6951f467.hip | // !!! This is a file automatically generated by hipify!!!
/* To compile: nvcc GPUInfor.cu -o GPUInfo -lcudart -run
To run: ./GPUInfo
Archie "Douglas" Rowe
Homework 1*/
//#include "../common/book.h"
#include <stdio.h>
int main(){
hipDeviceProp_t prop;
int count;
hipGetDeviceCount( &count);
for (int i=0; i<coun... | 008cee34ccff7dbc4d42593db15e368f6951f467.cu | /* To compile: nvcc GPUInfor.cu -o GPUInfo -lcudart -run
To run: ./GPUInfo
Archie "Douglas" Rowe
Homework 1*/
//#include "../common/book.h"
#include <stdio.h>
int main(){
cudaDeviceProp prop;
int count;
cudaGetDeviceCount( &count);
for (int i=0; i<count; i++){
cudaGetDeviceProperties( &prop, i);
printf( " ... |
a4e00634fa7dfa74e0237df9f05d34a572c0da3c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <thrust/complex.h>
#include "../fast-fourier.h"
using namespace std;
using namespace fast_fourier;
__global__
void run_test(cfloat* input, cfloat* output, int n)
{
fast_fourier_transform(input, outp... | a4e00634fa7dfa74e0237df9f05d34a572c0da3c.cu | #include <iostream>
#include <thrust/complex.h>
#include "../fast-fourier.h"
using namespace std;
using namespace fast_fourier;
__global__
void run_test(cfloat* input, cfloat* output, int n)
{
fast_fourier_transform(input, output, n);
}
int main()
{
int n(8);
cfloat input[] = {1,2,3,4,5,6,7,8};
cfloat* expec... |
d0829e62207e37ffd29b2f740880db8aff48b5a9.hip | // !!! This is a file automatically generated by hipify!!!
// ----------------------------------------------------------------
// Gunrock -- Fast and Efficient GPU Graph Library
// ----------------------------------------------------------------
// This source code is distributed under the terms of LICENSE.TXT
// in th... | d0829e62207e37ffd29b2f740880db8aff48b5a9.cu | // ----------------------------------------------------------------
// Gunrock -- Fast and Efficient GPU Graph Library
// ----------------------------------------------------------------
// This source code is distributed under the terms of LICENSE.TXT
// in the root directory of this source distribution.
// ----------... |
979888b615ca6b20e8329205ad5fde882accb690.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <chrono>
#include <assert.h>
#include "matmul.h"
#define TILE_WIDTH 32
using namespace std;
void allocateDeviceMemory(void** M, int size)
{
hipError_t err = hipMalloc(M, size);
as... | 979888b615ca6b20e8329205ad5fde882accb690.cu | #include <stdio.h>
#include <iostream>
#include <chrono>
#include <assert.h>
#include "matmul.h"
#define TILE_WIDTH 32
using namespace std;
void allocateDeviceMemory(void** M, int size)
{
cudaError_t err = cudaMalloc(M, size);
assert(err==cudaSuccess);
}
void deallocateDeviceMemory(void* M)
{
cudaError_t err = ... |
bdac1ed40e4927fdceab5c8fa87d41ca6dd94074.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void ori_cutcp(
int binDim_x,
int binDim_y,
float4 *binZeroAddr, /* address of atom bins starting at origin */
float h, /* lattice spacing */
float cutoff2, /* square of cut... | bdac1ed40e4927fdceab5c8fa87d41ca6dd94074.cu |
__global__ void ori_cutcp(
int binDim_x,
int binDim_y,
float4 *binZeroAddr, /* address of atom bins starting at origin */
float h, /* lattice spacing */
float cutoff2, /* square of cutoff distance */
float inv_cutoff2,
float *regionZeroAddr, /* address of lattice ... |
52b615befb67eb1568d2aba1de4ccc44a95f1e57.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Equihash solver created by djeZo (l33tsoftw@gmail.com) for NiceHash
Based on CUDA solver by John Tromp released under MIT license.
Some helper functions taken out of OpenCL solver by Marc Bevand
released under MIT licen... | 52b615befb67eb1568d2aba1de4ccc44a95f1e57.cu | /*
Equihash solver created by djeZo (l33tsoftw@gmail.com) for NiceHash
Based on CUDA solver by John Tromp released under MIT license.
Some helper functions taken out of OpenCL solver by Marc Bevand
released under MIT license.
cuda_djezo solver is released by NiceHash (www.nicehash.com) under
GPL 3.0 lice... |
c4aeab4f81105f33b8bb399e4b3b3c6af2ebb130.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void sumArraysZeroCopy(float *A, float *B, float *C, const int N)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N) C[i] = A[i] + B[i];
} | c4aeab4f81105f33b8bb399e4b3b3c6af2ebb130.cu | #include "includes.h"
__global__ void sumArraysZeroCopy(float *A, float *B, float *C, const int N)
{
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N) C[i] = A[i] + B[i];
} |
2773f664feb76a317815b9649c50a1ecf5f3ff19.hip | // !!! This is a file automatically generated by hipify!!!
#include "Particles.h"
#include "Alloc.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#define TPB 64
/** allocate particle arrays */
void particle_allocate(struct parameters* param, struct particles* part, int is)
{
// set species ID
... | 2773f664feb76a317815b9649c50a1ecf5f3ff19.cu | #include "Particles.h"
#include "Alloc.h"
#include <cuda.h>
#include <cuda_runtime.h>
#define TPB 64
/** allocate particle arrays */
void particle_allocate(struct parameters* param, struct particles* part, int is)
{
// set species ID
part->species_ID = is;
// number of particles
part->nop = param-... |
6d19ab04fa2a756bdf3a1c0916e4d0950b9af676.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include "box2d1r-256-10-128_kernel.hu"
#define BENCH_DIM 2
#define BENCH_FPP 17
#define BENCH_RAD 1
#include "common.h"
double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool sc... | 6d19ab04fa2a756bdf3a1c0916e4d0950b9af676.cu | #include <assert.h>
#include <stdio.h>
#include "box2d1r-256-10-128_kernel.hu"
#define BENCH_DIM 2
#define BENCH_FPP 17
#define BENCH_RAD 1
#include "common.h"
double kernel_stencil(SB_TYPE *A1, int compsize, int timestep, bool scop)
{
double start_time = sb_time(), end_time = 0.0;
int dimsize = compsize + BENCH_... |
f8220d8be1ead643627cc307d6f993b4904934ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@precisions normal z -> s d c
*/
#include "common_mag... | f8220d8be1ead643627cc307d6f993b4904934ba.cu | /*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@precisions normal z -> s d c
*/
#include "common_magma.h"
/*********************************************************/
/*
* Swap diagonal... |
5b77b90f2ca1260cf8ec38fd79bbc0dac96aff1c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright 2019-2022 XGBoost contributors
*/
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_output_iterator.h>
#include "../common/categorical.h"
#include "../common/hist_util.cuh"
#include... | 5b77b90f2ca1260cf8ec38fd79bbc0dac96aff1c.cu | /*!
* Copyright 2019-2022 XGBoost contributors
*/
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_output_iterator.h>
#include "../common/categorical.h"
#include "../common/hist_util.cuh"
#include "../common/random.h"
#include "./ellpack_page.cuh"
#include "device_adapter.cuh"
#inclu... |
2761b79251ca8fcbe91041d42817fe029746e906.hip | // !!! This is a file automatically generated by hipify!!!
/*! \file fitmultimain.cu
* \author Fang Huang
* \date October 10, 2010
* \brief This file contains the mexFunction() call and relevant matlab
* interface code.
*/
/*
*float Floating point number. 4bytes +/- 3.4e +/- 38 (~7 digits)
*/
#include <w... | 2761b79251ca8fcbe91041d42817fe029746e906.cu | /*! \file fitmultimain.cu
* \author Fang Huang
* \date October 10, 2010
* \brief This file contains the mexFunction() call and relevant matlab
* interface code.
*/
/*
*float Floating point number. 4bytes +/- 3.4e +/- 38 (~7 digits)
*/
#include <windows.h>
#pragma comment(lib, "kernel32.lib")
#include <m... |
0bb7840aeaf2832685034a9bf14a33ecf36cc551.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "normal_cuda/normal_cuda.hpp"
#include <vector>
#include <iostream>
__device__ int eigenJacobiMethod(float *a, float *v, int n, float eps = 1e-8, int iter_max = 100)
{
float *bim, *bjm;
float bii... | 0bb7840aeaf2832685034a9bf14a33ecf36cc551.cu | #include <stdio.h>
#include "normal_cuda/normal_cuda.hpp"
#include <vector>
#include <iostream>
__device__ int eigenJacobiMethod(float *a, float *v, int n, float eps = 1e-8, int iter_max = 100)
{
float *bim, *bjm;
float bii, bij, bjj, bji;
bim = new float[n];
bjm = new float[n];
for(int i = 0; ... |
65d3238395632f01d7fa6a0fa192938179b669f5.hip | // !!! This is a file automatically generated by hipify!!!
/*
* nvmatrix_kernel.cu
*
* Created on: 21-Jan-2009
* Author: Alex Krizhevsky (akrizhevsky@gmail.com)
*/
#include <stdio.h>
#include <hip/hip_runtime.h>
#include "nvmatrix_kernel.cuh"
__global__ void kExp(float* gData, float* target, unsigned int n... | 65d3238395632f01d7fa6a0fa192938179b669f5.cu | /*
* nvmatrix_kernel.cu
*
* Created on: 21-Jan-2009
* Author: Alex Krizhevsky (akrizhevsky@gmail.com)
*/
#include <stdio.h>
#include <cuda_runtime.h>
#include "nvmatrix_kernel.cuh"
__global__ void kExp(float* gData, float* target, unsigned int numElements) {
const unsigned int idx = blockIdx.x * blockD... |
40de8a29fffdb76c13fcf807ae057b58db98415a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/TensorUtils.h>
#include <ATen/hip/HIPContext.h>
#include <c10/util/Exception.h>
#include <c10/macros/Macros.h>
#include <THH/THHDeviceUtils.cuh>
#include <THH/T... | 40de8a29fffdb76c13fcf807ae057b58db98415a.cu | #include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/TensorUtils.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/util/Exception.h>
#include <c10/macros/Macros.h>
#include <THC/THCDeviceUtils.cuh>
#include <THC/THCTensorMathReduce.cuh>
#include <THC/THCReduceApplyUtils.cuh>
#include <ATen/cuda/cu... |
88b5ad55826518aa83802b42d1f7a525a8b6371c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hip_runtime.h"
#ifndef _MATRIXMUL_KERNEL_H_
#define _MATRIXMUL_KERNEL_H_
#include <stdio.h>
// declare texture reference for 1D float texture
#ifdef USE_TEXTURES
texture<float4, 1, hipReadModeElementType> tex;
texture<f... | 88b5ad55826518aa83802b42d1f7a525a8b6371c.cu | #include "hip_runtime.h"
#ifndef _MATRIXMUL_KERNEL_H_
#define _MATRIXMUL_KERNEL_H_
#include <stdio.h>
// declare texture reference for 1D float texture
#ifdef USE_TEXTURES
texture<float4, 1, hipReadModeElementType> tex;
texture<float4, 1, hipReadModeElementType> txt;
#endif
__device__ float4 sortElem(float4 r) {
f... |
8b3909ac4cdcd560a9843fc00a4690d800ddca87.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "cutil.h"
#include <iostream>
#include <iomanip>
#include <hiprand/hiprand.h>
#include <ctime>
#define FLAG_PRINT_SPINS 0
#defi... | 8b3909ac4cdcd560a9843fc00a4690d800ddca87.cu | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "cutil.h"
#include <iostream>
#include <iomanip>
#include <curand.h>
#include <ctime>
#define FLAG_PRINT_SPINS 0
#define FLAG_ENERGY 0
#define T_START 2.30
#define T_FACTOR 0.001
#define T_END 2.20
#define GLOBAL_IT... |
4d3615e2cd75563ec9f53b1c21d981ae5a13d0ef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*-----------
*
* matrixMulGlobal.cu
*
* This is the source file for matrix multiplication with global memory only.
*
* This kernel is from NVIDIA CUDA samples. reduction_kernel.cu.
*
* streamsOptBenchmark/reduction_kernel.c... | 4d3615e2cd75563ec9f53b1c21d981ae5a13d0ef.cu | /*-----------
*
* matrixMulGlobal.cu
*
* This is the source file for matrix multiplication with global memory only.
*
* This kernel is from NVIDIA CUDA samples. reduction_kernel.cu.
*
* streamsOptBenchmark/reduction_kernel.cu
*
* By Hao Li
*
*------------
*/
/*
Parallel reduction kernels
*/
#include ... |
cd10d3050e3dc38073ab8171c1af4451bb0d4669.hip | // !!! This is a file automatically generated by hipify!!!
#include <errno.h>
#include <error.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <hip/hip_runtime.h>
#define DEVICE_NUMBER (0)
#define NOF_STAMPS (4096) //32kBytes for uin... | cd10d3050e3dc38073ab8171c1af4451bb0d4669.cu | #include <errno.h>
#include <error.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <cuda_runtime.h>
#define DEVICE_NUMBER (0)
#define NOF_STAMPS (4096) //32kBytes for uint64_t
#define NOF_BLOCKS (4)
#define SPIN() // spin(10000)
... |
f8c2fbfa36ba4d23f259637158aba35648d5f774.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 "read_G_matrix_kernel.cu"
#include<chrono>
#include<iostream>
usi... | f8c2fbfa36ba4d23f259637158aba35648d5f774.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 "read_G_matrix_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,... |
52a40cd9e056fd2336a1a3abfde75791f6582b1d.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
#include <hip/hip_runtime_api.h>
#define SQ(x) ((x) * (x))
static const float A = -4.0, B = 4.0; // limites de integracin
static const int N = 1 << 22; // nmero de intervalos... | 52a40cd9e056fd2336a1a3abfde75791f6582b1d.cu | #include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
#include <cuda_runtime_api.h>
#define SQ(x) ((x) * (x))
static const float A = -4.0, B = 4.0; // limites de integración
static const int N = 1 << 22; // número de intervalos = 2^22
static const float H = (B - A) / N; // tamaño del... |
d4921bf26d2983f140ef5b2a61f88cf1cb1319c9.hip | // !!! This is a file automatically generated by hipify!!!
#include <darknet/darknet.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand.h>
#include <rocblas.h>
#include <darknet/activations.h>
#include <darknet/dark_cuda.h>
__device__ float lhtan_activate_kernel(float x)
{
if(x < 0) return .001*x;
if(... | d4921bf26d2983f140ef5b2a61f88cf1cb1319c9.cu | #include <darknet/darknet.h>
#include <cuda_runtime.h>
#include <curand.h>
#include <cublas_v2.h>
#include <darknet/activations.h>
#include <darknet/dark_cuda.h>
__device__ float lhtan_activate_kernel(float x)
{
if(x < 0) return .001*x;
if(x > 1) return .001*(x-1) + 1;
return x;
}
__device__ float lhtan_... |
8747ea3d500940141203c94d82f5f2047514587b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.2) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date May 2015
@generated from magma_zmcsrcompressor_gpu.cu normal z -> s, ... | 8747ea3d500940141203c94d82f5f2047514587b.cu | /*
-- MAGMA (version 1.6.2) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date May 2015
@generated from magma_zmcsrcompressor_gpu.cu normal z -> s, Sun May 3 11:22:58 2015
@author Hartwig Anzt
*/
#include "common_magmasparse.h"... |
18597fd3003556a3184611f70a97bc9c05aef882.hip | // !!! This is a file automatically generated by hipify!!!
/*Author: Rodrigo Gonalves de Branco
Date: 24/03/2015
*/
#include <iostream>
#include <vector>
#include <hip/hip_runtime.h>
#include <cstdio>
#include <cmath>
#include <climits>
#include <stdio.h>
#include "cuda_util.h"
using namespace std;
__global__
void p... | 18597fd3003556a3184611f70a97bc9c05aef882.cu | /*Author: Rodrigo Gonçalves de Branco
Date: 24/03/2015
*/
#include <iostream>
#include <vector>
#include <cuda.h>
#include <cstdio>
#include <cmath>
#include <climits>
#include <stdio.h>
#include "cuda_util.h"
using namespace std;
__global__
void prefixsumJAxis(int* v, int N)
{
int sqrN = N*N;
for(int k = blockIdx... |
7c2b35b32be6d53c1cf2f5ce236b0978eaa5bb54.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime_api.h>
#include <thrust/device_vector.h>
#include <thrust/transform_reduce.h>
#include <stdio.h>
#include "cputime.h"
// float *accnew_gpu;
// float *velnew_gpu;
// float *parforce_gpu;
// float *parpot_gpu;
// float *parvel_gpu;
// f... | 7c2b35b32be6d53c1cf2f5ce236b0978eaa5bb54.cu | #include <cuda_runtime_api.h>
#include <thrust/device_vector.h>
#include <thrust/transform_reduce.h>
#include <stdio.h>
#include "cputime.h"
// float *accnew_gpu;
// float *velnew_gpu;
// float *parforce_gpu;
// float *parpot_gpu;
// float *parvel_gpu;
// float *acc_gpu;
// float *force_gpu;
// float *pos_gpu;
// floa... |
8eda559f15c5621bcf554a586781f64b49c50f35.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "MatrixTransposeSolveBankConflicts.h"
#include "config.h"
__global__ void matrixTransposeSolveBankConflicts(const int *d_a, int *d_b, const int rows, const int cols) {
__shared__ int mat[BLOCK_SIZE][BLOCK_SIZE + 1];
... | 8eda559f15c5621bcf554a586781f64b49c50f35.cu | #include "MatrixTransposeSolveBankConflicts.h"
#include "config.h"
__global__ void matrixTransposeSolveBankConflicts(const int *d_a, int *d_b, const int rows, const int cols) {
__shared__ int mat[BLOCK_SIZE][BLOCK_SIZE + 1];
int bx = blockIdx.x * BLOCK_SIZE;
int by = blockIdx.y * BLOCK_SIZE;
int i =... |
925f854f32fed6feda28c7eb130364189a75ea61.hip | // !!! This is a file automatically generated by hipify!!!
// Jin Pyo Jeon
// Lab 07
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <math.h>
#define T 1024 // Shared needs to be known at compile time??
#define N (1024 * 1024)
// Times for Reduced and non-reduced dot pro... | 925f854f32fed6feda28c7eb130364189a75ea61.cu | // Jin Pyo Jeon
// Lab 07
#include <cuda.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <math.h>
#define T 1024 // Shared needs to be known at compile time??
#define N (1024 * 1024)
// Times for Reduced and non-reduced dot product
// N Reduced Non-reduced Thread Count
// 2^27 8.95 8.91... |
c48cd8c4ff5ae52a6919cb5d7031e2de136bfda2.hip | // !!! This is a file automatically generated by hipify!!!
#include "helpers.hpp"
#include "caffe/blob.hpp"
#include "hip/hip_runtime.h"
#include "hip/hip_runtime.h"
#include <opencv2/cudev.hpp>
#include <opencv2/core/cuda/transform.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
float aq::Caffe::iou(const cv::R... | c48cd8c4ff5ae52a6919cb5d7031e2de136bfda2.cu | #include "helpers.hpp"
#include "caffe/blob.hpp"
#include "cuda.h"
#include "cuda_runtime.h"
#include <opencv2/cudev.hpp>
#include <opencv2/core/cuda/transform.hpp>
#include <opencv2/core/cuda_stream_accessor.hpp>
float aq::Caffe::iou(const cv::Rect& r1, const cv::Rect& r2)
{
float intersection = (r1 & r2).area();... |
c93ac7e300307334f871f40951e2ec1e990cec34.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2018 by Contributors
* \author Rory Mitchell
*/
#include <thrust/execution_policy.h>
#include <thrust/inner_product.h>
#include <xgboost/data.h>
#include <xgboost/linear_updater.h>
#include "../common/common.h"
#include "../common/span.h"
#i... | c93ac7e300307334f871f40951e2ec1e990cec34.cu | /*!
* Copyright 2018 by Contributors
* \author Rory Mitchell
*/
#include <thrust/execution_policy.h>
#include <thrust/inner_product.h>
#include <xgboost/data.h>
#include <xgboost/linear_updater.h>
#include "../common/common.h"
#include "../common/span.h"
#include "../common/device_helpers.cuh"
#include "../common/t... |
63c06d817b470c1a97c50210d8c1e03ba1edfc29.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 "upper_left_opt.cu"
#include<chrono>
#include<iostream>
using nam... | 63c06d817b470c1a97c50210d8c1e03ba1edfc29.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 "upper_left_opt.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{2... |
6337a2d672a8dc02ba25eaa4c5f82a0a1fd49c61.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 6337a2d672a8dc02ba25eaa4c5f82a0a1fd49c61.cu | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
103a1e90a620b5d99b36e27b0bf6011e873788a9.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 -> c d s
@author Hartwig Anz... | 103a1e90a620b5d99b36e27b0bf6011e873788a9.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@precisions normal z -> c d s
@author Hartwig Anzt
*/
#include "magmasparse_internal.h"
#define BLOCK_SIZE 256
#define PRECISION_z
/... |
de00c87e69461cbc8f034fb66c218b68938167fc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <numeric>
#include <stdlib.h>
#include <stdio.h>
#include<thrust/scan.h>
/*
Somethings so confuse me, why i can't get same correct result every time.
*/
/*
These two kernel could be used on large array... | de00c87e69461cbc8f034fb66c218b68938167fc.cu | #include <iostream>
#include <numeric>
#include <stdlib.h>
#include <stdio.h>
#include<thrust/scan.h>
/*
Somethings so confuse me, why i can't get same correct result every time.
*/
/*
These two kernel could be used on large array, but slow
Best advice: use __syncthreads() before you want to use different index
*/
__... |
3674b867b4244229a9761840e3b7079ef1f40950.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... | 3674b867b4244229a9761840e3b7079ef1f40950.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... |
d17ac0d6e078794ead84a767b24316ade707d879.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 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... | d17ac0d6e078794ead84a767b24316ade707d879.cu | /*
* Copyright 1993-2010 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... |
87a8137fc136502f278df704c203652d3980c03a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "IntegratorVerlet.h"
#include <chrono>
#undef _XOPEN_SOURCE
#undef _POSIX_C_SOURCE
#include <boost/python.hpp>
#include <boost/shared_ptr.hpp>
#include "Logging.h"
#include "State.h"
#include "Fix.h"
#include "cutils_func... | 87a8137fc136502f278df704c203652d3980c03a.cu | #include "IntegratorVerlet.h"
#include <chrono>
#undef _XOPEN_SOURCE
#undef _POSIX_C_SOURCE
#include <boost/python.hpp>
#include <boost/shared_ptr.hpp>
#include "Logging.h"
#include "State.h"
#include "Fix.h"
#include "cutils_func.h"
using namespace MD_ENGINE;
namespace py = boost::python;
__global__ void nve_v_cu... |
804f2f74ce990836dd935948032e19ab281820fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "THHUNN.h"
struct absupdateOutput_functor
{
__device__ void operator()(float* output, const float* input) const
{
*output = abs(*input);
}
};
void THNN_CudaAbs_updateOutput(THCState *state, THCudaTensor *input, THCudaTensor *output)
{
THA... | 804f2f74ce990836dd935948032e19ab281820fa.cu | #include "THCUNN.h"
struct absupdateOutput_functor
{
__device__ void operator()(float* output, const float* input) const
{
*output = abs(*input);
}
};
void THNN_CudaAbs_updateOutput(THCState *state, THCudaTensor *input, THCudaTensor *output)
{
THAssert(THCudaTensor_checkGPU(state, 2, input, output));
TH... |
d641389dc02dbdc92311317fa60359134eec96ef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Find BLANK and replace your own code.
* And submit report why do you replace the blank that way.
*/
/* 2015004693_YangSangheon */
#include<stdlib.h>
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
#... | d641389dc02dbdc92311317fa60359134eec96ef.cu | /*
* Find BLANK and replace your own code.
* And submit report why do you replace the blank that way.
*/
/* 2015004693_YangSangheon */
#include<stdlib.h>
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
#define TILE_WIDTH 32 /* set TILE_WIDTH 16 for the evaluation! */
#define MAXPOOL_IN... |
066b9460c89e1aa4967ba6439883c9ebd171f299.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <rocblas.h>
#include <time.h>
#define n 1024
__global__ void matmul(int *a, int *b, int *c){
int my_x = blockIdx.y * blockDim.y + threadIdx.y;
int my_y = blockIdx.x * blockDim.x... | 066b9460c89e1aa4967ba6439883c9ebd171f299.cu | #include <stdlib.h>
#include <stdio.h>
#include <cublas.h>
#include <time.h>
#define n 1024
__global__ void matmul(int *a, int *b, int *c){
int my_x = blockIdx.y * blockDim.y + threadIdx.y;
int my_y = blockIdx.x * blockDim.x + threadIdx.x;
int local_c = 0;
for (int i = 0; i < n; i++) {
local_c += a[my_x*n +... |
0c18fa1161b43c11cddd4f30b65596c9fba87ba8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright 2014 BVLC and contributors.
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/layers/resample_layer.hpp"
#include "caffe/util/math_functions.hpp"
//#include <opencv2/opencv.hpp>
//#include <opencv2/gpu/gpu... | 0c18fa1161b43c11cddd4f30b65596c9fba87ba8.cu | // Copyright 2014 BVLC and contributors.
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/layers/resample_layer.hpp"
#include "caffe/util/math_functions.hpp"
//#include <opencv2/opencv.hpp>
//#include <opencv2/gpu/gpu.hpp>
namespace caffe {
static __device__ __forceinline__ float bicubicCoeff(float x_)... |
a2b75c761745598fa22f0b8c5fe5f3bb86729d8a.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... | a2b75c761745598fa22f0b8c5fe5f3bb86729d8a.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... |
7fd3815b838f312a423fcedc0a4da447f7b3c7cd.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <cassert>
//! Get the block id
__device__ int block_idx(int grid_dim) {
int block_id = blockIdx.x + (grid_dim == 2 ? 1 : 0) ... | 7fd3815b838f312a423fcedc0a4da447f7b3c7cd.cu | #include <iostream>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <cuda.h>
#include <stdio.h>
#include <cassert>
//! Get the block id
__device__ int block_idx(int grid_dim) {
int block_id = blockIdx.x + (grid_dim == 2 ? 1 : 0) * blockIdx.y * gridDim.x +
(grid_dim == 3 ? 1 : 0) * ... |
36c9334a3e9cdbe6ca82ade5732d54aa651e88a2.hip | // !!! This is a file automatically generated by hipify!!!
#include "iter.cuh"
#include "mesh.h"
#include <mpi.h>
#include <getopt.h>
#include <cstring>
#include <fstream>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <cmath>
double phi(PointD p){
double x = p.first;
double y = p.second;
... | 36c9334a3e9cdbe6ca82ade5732d54aa651e88a2.cu | #include "iter.cuh"
#include "mesh.h"
#include <mpi.h>
#include <getopt.h>
#include <cstring>
#include <fstream>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <cmath>
double phi(PointD p){
double x = p.first;
double y = p.second;
return sqrt(4 + x*y);
}
PointUi splitFunction(int N0, in... |
94eb3f310aca102acd5afa792767e59ce72b09f4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <cstdio>
#include <cmath>
#include <chrono>
#include "common.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
//Funcion de imagen pixelBluePixelr
__globa... | 94eb3f310aca102acd5afa792767e59ce72b09f4.cu | #include <iostream>
#include <cstdio>
#include <cmath>
#include <chrono>
#include "common.h"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
//Funcion de imagen pixelBluePixelr
__global__ void blur_kernel(unsigned char* input, unsigned char* output, int width, int height,... |
37ea4e13e6a35c76ee982fa8d7a019645d96ad51.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <utility>
#include <cmath>
using namespace std;
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#define CUDA_CALL(func)\
{\
hipError_t e = (func);\
... | 37ea4e13e6a35c76ee982fa8d7a019645d96ad51.cu | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <utility>
#include <cmath>
using namespace std;
#include <cuda_runtime.h>
#include <curand_kernel.h>
#define CUDA_CALL(func)\
{\
cudaError_t e = (func);\
if(e != cudaSuccess)\ \
cout <<... |
c9ed91a087ca3fbc07e39ba81e71486fb3b50e33.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ReflectionWithBuildingCalculationOnGPU.cuh"
__device__ void RWBC_UitizeVectorOnGPU(float *a,float *b,float *c)//
{
float length=sqrt((*a)*(*a)+(*b)*(*b)+(*c)*(*c));
*a=*a/length;
*b=*b/length;
*c=*c/length;
}
__devi... | c9ed91a087ca3fbc07e39ba81e71486fb3b50e33.cu | #include "ReflectionWithBuildingCalculationOnGPU.cuh"
__device__ void RWBC_UitizeVectorOnGPU(float *a,float *b,float *c)//单位化向量
{
float length=sqrt((*a)*(*a)+(*b)*(*b)+(*c)*(*c));
*a=*a/length;
*b=*b/length;
*c=*c/length;
}
__device__ Point RWBC_GetReflectedVectorOnGPU(Point d,Point n)//计算反射射线方向向量
{
Point refle... |
77c216e0014df404eda444f58bc3aad55ec8b674.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// =============================================================================
// === GPUQREngine/Include/Kernel/Apply/pipelined_rearrange.cu =================
// ===================================================================... | 77c216e0014df404eda444f58bc3aad55ec8b674.cu | // =============================================================================
// === GPUQREngine/Include/Kernel/Apply/pipelined_rearrange.cu =================
// =============================================================================
//--------------------------------------------------------------------------... |
2099c901891b0be6d51b5cb3a7611fbad418a505.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#define NUM_BITS 4
#define NUM_BASES 5
#define SIZE_HW_WORD 32
#define MAX_VALUE 0xFFFFFFFF
#define HIGH_MASK_... | 2099c901891b0be6d51b5cb3a7611fbad418a505.cu | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <cuda.h>
#define NUM_BITS 4
#define NUM_BASES 5
#define SIZE_HW_WORD 32
#define MAX_VALUE 0xFFFFFFFF
#define HIGH_MASK_32 0x80000000
#define LOW_MASK_32 0x00000001
#define BASES_P... |
335d6666f8b2c17f4264ee3b1a13adf1c3f848c9.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zaicc_chow_csr_s.cu normal z -> c, Fri Jul 18 17:34:28 2014
*/
#... | 335d6666f8b2c17f4264ee3b1a13adf1c3f848c9.cu | /*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zaicc_chow_csr_s.cu normal z -> c, Fri Jul 18 17:34:28 2014
*/
#include "common_magma.h"
#include "../include/magmasparse_c... |
9991e11c96cec03e8981a73627bd0ee6de57c333.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
static void HandleError(hipError_t err,
const char *file,
int line) {
if (err != hipSuccess) {
printf("%s in %s at line %d\n",
hipGetErrorString(er... | 9991e11c96cec03e8981a73627bd0ee6de57c333.cu | #include <stdio.h>
static void HandleError(cudaError_t err,
const char *file,
int line) {
if (err != cudaSuccess) {
printf("%s in %s at line %d\n",
cudaGetErrorString(err),
file, line);
exit(EXIT_FAILURE);
}
... |
d66f9c5ee6f6f1c54ed77221719335b924046ee6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <math.h>
#include "dot.h"
__global__ void kernel(unsigned int rows, unsigned int cols , float* ddata,float* vdata ,float *results){
int i;
float dp =0;
... | d66f9c5ee6f6f1c54ed77221719335b924046ee6.cu | #include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <cuda.h>
#include <math.h>
#include "dot.h"
__global__ void kernel(unsigned int rows, unsigned int cols , float* ddata,float* vdata ,float *results){
int i;
float dp =0;
int tid = threadIdx.x + blockIdx.x * blockDim.x;
for(i =0; i<cols... |
4d0595d9fba220acf83fb85b8a48bd4db2b5f1b5.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Simulacion simplificada de bombardeo de particulas de alta energia
*
* Computacion Paralela (Grado en Informatica)
* 2017/2018
*
* (c) 2018 Arturo Gonzalez Escribano
*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<cuda.h>
#include<... | 4d0595d9fba220acf83fb85b8a48bd4db2b5f1b5.cu | /*
* Simulacion simplificada de bombardeo de particulas de alta energia
*
* Computacion Paralela (Grado en Informatica)
* 2017/2018
*
* (c) 2018 Arturo Gonzalez Escribano
*/
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<cuda.h>
#include<cputils.h>
#define PI 3.14159f
#define UMBRAL 0.001f
/* E... |
280d93a8c0ac85575d169a49597e3c212c6365a2.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 "GradientAverageKernel.cu"
#include<chrono>
#include<iostream>
us... | 280d93a8c0ac85575d169a49597e3c212c6365a2.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 "GradientAverageKernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16... |
855fbe9d34ce321de333738424c2e419a458557f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
namespace ann {
// CUDA2
}
__global__ void kernel_calc_gjL_2( int layer_id, int *l, int *s_ext, int *sw_ext, float *z_ext_arr, float *a_ext_arr, float *t_arr, float *gjl_ext, float *w_ext_arr ){
... | 855fbe9d34ce321de333738424c2e419a458557f.cu | #include "includes.h"
namespace ann {
// CUDA2
}
__global__ void kernel_calc_gjL_2( int layer_id, int *l, int *s_ext, int *sw_ext, float *z_ext_arr, float *a_ext_arr, float *t_arr, float *gjl_ext, float *w_ext_arr ){
int idx = threadIdx.y + blockDim.y*blockIdx.y;
int h = blockDim.x;
int pidx = threadIdx... |
7f626d3d2d98dedfe2882a50eaaf142748b6aa7d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... | 7f626d3d2d98dedfe2882a50eaaf142748b6aa7d.cu | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
6825327b499085c175291f7dadc60d6a72b7bcb9.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@author Tingxing Dong
@author Azzam Haidar
*/
#include "magma_internal.h"
#in... | 6825327b499085c175291f7dadc60d6a72b7bcb9.cu | /*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@author Tingxing Dong
@author Azzam Haidar
*/
#include "magma_internal.h"
#include "magma_templates.h"
#define PRECISION_s
#include "g... |
16ae1127cc39cd6ba98b973847a250dca53e11d8.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 "derive.cu"
#include<chrono>
#include<iostream>
using namespace s... | 16ae1127cc39cd6ba98b973847a250dca53e11d8.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 "derive.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{3... |
d9eb280258036149b4e6814bd990b51dfe73e2f4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <launch_kernel.cuh>
#include <unitarization_links.h>
#include <atomic.cuh>
#include <cub_hel... | d9eb280258036149b4e6814bd990b51dfe73e2f4.cu | #include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <launch_kernel.cuh>
#include <unitarization_links.h>
#include <atomic.cuh>
#include <cub_helper.cuh>
#include <index_helper.cuh>
#include <cufft.h>
#ifdef GPU_GAUGE_ALG
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.