hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
8cbe39854b42825e294b04cd98eb394c6be92c82.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__
/**
* This is the kernel that convolutes the two given float arrays.
* The result is saved in the third array.
*/
void cudaConvolve(float *a, float *b, float *res, int aLen, int bLen)
{
// Calculate the length of t... | 8cbe39854b42825e294b04cd98eb394c6be92c82.cu | __global__
/**
* This is the kernel that convolutes the two given float arrays.
* The result is saved in the third array.
*/
void cudaConvolve(float *a, float *b, float *res, int aLen, int bLen)
{
// Calculate the length of the result
int abMax = max(aLen, bLen);
int convLen = aLen + bLen - 1;
// Fi... |
baba6e506f888d781c009e0f979395bd6738e1a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "pooling_common.cu"
#include "random.cu"
/// @brief Does max pooling over convolutional layer output.
/// @param h batch of input multichannel interleaved images.
/// @param y batch of output multichannel interleaved image... | baba6e506f888d781c009e0f979395bd6738e1a4.cu | #include "pooling_common.cu"
#include "random.cu"
/// @brief Does max pooling over convolutional layer output.
/// @param h batch of input multichannel interleaved images.
/// @param y batch of output multichannel interleaved images.
/// @param h_offs indexes of y value in corresponding to it h array.
/// @details If ... |
abc8dd1934f64ab108c932780cc634e2716c805e.hip | // !!! This is a file automatically generated by hipify!!!
/**
* \file dnn/src/cuda/conv_bias/int8_imma/kimpl/conv_bias_int8_implicit_gemm_imma32x8x16_cdiv4hwn4_reorder_filter_per_chan_hswish.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All... | abc8dd1934f64ab108c932780cc634e2716c805e.cu | /**
* \file dnn/src/cuda/conv_bias/int8_imma/kimpl/conv_bias_int8_implicit_gemm_imma32x8x16_cdiv4hwn4_reorder_filter_per_chan_hswish.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law o... |
357d8395817171b4a130367b7e144f3d0e89718a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "compute.cuh"
#include "../../../global.hpp"
#include "../../../timer.cuh"
#include "../../../utils.hpp"
#include <cstdio>
void pagerank_graph_init(graph_shard<float> &graph, config_t *conf){
for(uint nodeIdex = 0; nod... | 357d8395817171b4a130367b7e144f3d0e89718a.cu | #include "compute.cuh"
#include "../../../global.hpp"
#include "../../../timer.cuh"
#include "../../../utils.hpp"
#include <cstdio>
void pagerank_graph_init(graph_shard<float> &graph, config_t *conf){
for(uint nodeIdex = 0; nodeIdex < graph.n; ++nodeIdex){
graph.values[nodeIdex] = conf->init_prval;
}
}... |
4f4d1c978419abb7d6be7e4f59cbff7bdb3b1d47.hip | // !!! This is a file automatically generated by hipify!!!
#include <cupy/type_dispatcher.cuh>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/tuple.h>
#include <thrust/execution_policy.h>
#... | 4f4d1c978419abb7d6be7e4f59cbff7bdb3b1d47.cu | #include <cupy/type_dispatcher.cuh>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/tuple.h>
#include <thrust/execution_policy.h>
#if (__CUDACC_VER_MAJOR__ >11 || (__CUDACC_VER_MAJOR__ == 11... |
3fbdc2f7a6e560a25d3ff3acff8631758f42f80d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel3_plus_4_b;
int xdim0_update_halo_kernel3_plus_4_b_h = -1;
__constant__ int ydim0_update_halo_kernel3_plus_4_b;
int ydim0_update_halo_kernel3_plus_4_b_h = -1... | 3fbdc2f7a6e560a25d3ff3acff8631758f42f80d.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel3_plus_4_b;
int xdim0_update_halo_kernel3_plus_4_b_h = -1;
__constant__ int ydim0_update_halo_kernel3_plus_4_b;
int ydim0_update_halo_kernel3_plus_4_b_h = -1;
__constant__ int xdim1_update_halo_kernel3_plus_4_b;
int xdim1_update_halo_kernel3_plu... |
e6d37ed8aa2b54594068c47451307911bcf40eef.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
int main(int argc,char *argv[]){
if(argc<3){
printf("Usage: ./test.cu <ptx_file> <cuda_device>\n");
exit(0);
}
// Error code
hipError_t error;
// My number
unsigned int h_var=7;
//... | e6d37ed8aa2b54594068c47451307911bcf40eef.cu | #include <cuda.h>
#include <stdio.h>
int main(int argc,char *argv[]){
if(argc<3){
printf("Usage: ./test.cu <ptx_file> <cuda_device>\n");
exit(0);
}
// Error code
CUresult error;
// My number
unsigned int h_var=7;
// Initialize driver API
error = cuInit(0);
if((int)error!=0){
pri... |
90509672f40e1c36a6e4a916b56a4d6e7776f762.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//xfail:BOOGIE_ERROR
//--blockDim=1024 --gridDim=1 --no-inline
//possible attempt to modify constant memory
__constant__ int A[1024];
__global__ void foo(int *B) {
A[threadIdx.x] = B[threadIdx.x];
}
| 90509672f40e1c36a6e4a916b56a4d6e7776f762.cu | //xfail:BOOGIE_ERROR
//--blockDim=1024 --gridDim=1 --no-inline
//possible attempt to modify constant memory
__constant__ int A[1024];
__global__ void foo(int *B) {
A[threadIdx.x] = B[threadIdx.x];
}
|
b3464defb24e399cbd548a85b4afd0c0c739cd59.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "util.cuh"
// __device__ char char_atomicCAS(char *addr, char cmp, char val) {
// unsigned *al_addr = reinterpret_cast<unsigned *>(((unsigned long long)addr)
// &
// (... | b3464defb24e399cbd548a85b4afd0c0c739cd59.cu | #include "util.cuh"
// __device__ char char_atomicCAS(char *addr, char cmp, char val) {
// unsigned *al_addr = reinterpret_cast<unsigned *>(((unsigned long long)addr)
// &
// (0xFFFFFFFFFFFFFFFCULL));
// unsigned al_offset = ((unsigned)(((unsigned long long)addr... |
1080044572d09a60657b1cf7307c363d4d053338.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "pow_utv_gpu.h"
#include <mkl.h>
#include <time.h>
#define max( a, b ) ( (a) > (b) ? (a) : (b) )
#define min( a, b ) ( (a) < (b) ? (a) : (b) )
// =======================... | 1080044572d09a60657b1cf7307c363d4d053338.cu | #include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include "pow_utv_gpu.h"
#include <mkl.h>
#include <time.h>
#define max( a, b ) ( (a) > (b) ? (a) : (b) )
#define min( a, b ) ( (a) < (b) ? (a) : (b) )
// ============================================================================
// De... |
ed173aa8ea6d9db26fc439556ed4d438c1bc4923.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2009-2016 The Regents of
the University of Michigan All rights reserved.
HOOMD-blue may contain modifica... | ed173aa8ea6d9db26fc439556ed4d438c1bc4923.cu | /*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2009-2016 The Regents of
the University of Michigan All rights reserved.
HOOMD-blue may contain modifications ("Contributions") provided, and to which
copyright is held, by various Contributor... |
556b9dfe524869c4d80a2ceb479d8a0803ba3c73.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code ... | 556b9dfe524869c4d80a2ceb479d8a0803ba3c73.cu | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
ce4e59fdbd9df4a89ecc9219b32015d33a477616.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
//#include <torch/extension.h>
#include <torch/serialize/tensor.h>
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include "common.h"
#include "device_tensor.h"
namespace {
template <typename DType, typ... | ce4e59fdbd9df4a89ecc9219b32015d33a477616.cu | #include <vector>
//#include <torch/extension.h>
#include <torch/serialize/tensor.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include "common.h"
#include "device_tensor.h"
namespace {
template <typename DType, typename Acctype, typename DeviceTensor3>
struct GradOp {
__device__ GradOp(Acctype m, ... |
c7a23011700b1fab0ebd5e3bcb18bb2c00d84865.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/fill.h>
#include <thrust/reduce.h>
#include <iostream>
#include "reduction1.cuh"
#include "... | c7a23011700b1fab0ebd5e3bcb18bb2c00d84865.cu | #include <cuda_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/fill.h>
#include <thrust/reduce.h>
#include <iostream>
#include "reduction1.cuh"
#include "reduction1_template.cuh"
#include "reduction2.cuh"
#include "r... |
97af1a706ea9c9ddd2cdee00172f285ec91d2d26.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <primitiv/config.h>
#include <primitiv/devices/cuda16/device.h>
#include <primitiv/devices/cuda16/ops/common.h>
#include <primitiv/internal/cuda/utils.h>
namespace {
CUDA16_KERNEL_FW_X_CONST(multiply_const, X_VAL * k);
C... | 97af1a706ea9c9ddd2cdee00172f285ec91d2d26.cu | #include <primitiv/config.h>
#include <primitiv/devices/cuda16/device.h>
#include <primitiv/devices/cuda16/ops/common.h>
#include <primitiv/internal/cuda/utils.h>
namespace {
CUDA16_KERNEL_FW_X_CONST(multiply_const, X_VAL * k);
CUDA16_KERNEL_BW_X_CONST(multiply_const, k * GY_VAL);
CUDA16_KERNEL_FW_X_SCALAR_R(multip... |
b78e2a1ff5214151011dbc96f69d015f9e82b6c8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <math.h>
__global__ void add(int n, float* x, float* y) {
int tid = threadIdx.x + blockIdx.x * blockDim.x;
int pulo = gridDim.x * blockDim.x;
for(int i=tid;i < n; i += pulo) {
y[i] = x[i] + y[i];
}... | b78e2a1ff5214151011dbc96f69d015f9e82b6c8.cu | #include <stdio.h>
#include <math.h>
__global__ void add(int n, float* x, float* y) {
int tid = threadIdx.x + blockIdx.x * blockDim.x;
int pulo = gridDim.x * blockDim.x;
for(int i=tid;i < n; i += pulo) {
y[i] = x[i] + y[i];
}
}
int main() {
int n = 1 << 25;
float *x,*y;
cudaMallocManaged(&x, n*si... |
ff39b6da82f12abd84c4b697764de334e7f00444.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#include "ImageData.h"
#include "NeuralNet.h"
#define IMG_SIZE 6*6
#define ALPHABET_SIZE 10
#define CUDA_SAFE_CALL(ans) { gpuAss... | ff39b6da82f12abd84c4b697764de334e7f00444.cu | #include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#include "ImageData.h"
#include "NeuralNet.h"
#define IMG_SIZE 6*6
#define ALPHABET_SIZE 10
#define CUDA_SAFE_CALL(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cud... |
aa9ad1919eae01c781ba3d61209e25b706bd496f.hip | // !!! This is a file automatically generated by hipify!!!
/*
Defines the matrix operations for sequential dense with CUDA
*/
#include <petscpkg_version.h>
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1
#include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/
#include <petsccublas.h>
/* cublas definiti... | aa9ad1919eae01c781ba3d61209e25b706bd496f.cu | /*
Defines the matrix operations for sequential dense with CUDA
*/
#include <petscpkg_version.h>
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1
#include <../src/mat/impls/dense/seq/dense.h> /*I "petscmat.h" I*/
#include <petsccublas.h>
/* cublas definitions are here */
#include <../src/vec/vec/impls/seq/seqcuda/... |
5e9ad29ea5e01fd9a40399889b320b72d361fc3c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
// This file... | 5e9ad29ea5e01fd9a40399889b320b72d361fc3c.cu | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
// This file is auto-generated. See "generate_kernels.py"
#include <ATen/native/transformers/cuda/me... |
8e4c4505ed077147fab9815e6577525bf8920fa9.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include "gMat.cuh"
#include <vector>
#include "mytime.h"
#include <functional>
#include <math.h>
#include <stdlib.h>
#include <string>
void manyMult(gMat& A, gMat& B, gMat& C,int iter,int mem){
for (int i=0; i!=iter; ++i){
prod(A,B,C,me... | 8e4c4505ed077147fab9815e6577525bf8920fa9.cu | #include <iostream>
#include "gMat.cuh"
#include <vector>
#include "mytime.h"
#include <functional>
#include <math.h>
#include <stdlib.h>
#include <string>
void manyMult(gMat& A, gMat& B, gMat& C,int iter,int mem){
for (int i=0; i!=iter; ++i){
prod(A,B,C,mem);
prod(A,C,B,mem);
}
}
void multstat(int mem, int row... |
6f253f1573b6ba658d50d286bf25d88c5689e757.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda.h>
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#include<iostream>
#include<cuda_runtime.h>
using namespace std ;
#define THR 512 // 2^9
#define BLK 2048 // 2^11
#define NUM BLK*THR // 2^20
void print_elaps... | 6f253f1573b6ba658d50d286bf25d88c5689e757.cu | #include<cuda.h>
#include<stdio.h>
#include<time.h>
#include<stdlib.h>
#include<iostream>
#include<cuda_runtime.h>
using namespace std ;
#define THR 512 // 2^9
#define BLK 2048 // 2^11
#define NUM BLK*THR // 2^20
void print_elapsed(clock_t start, clock_t stop)
{
double elapsed = ((double)(stop - start)) / CLOCKS_PE... |
d32a9a85dc43afda1ab780c0c4467e93f26c8141.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* * APPROXIMATE PATTERN MATCHING
* *
* * INF560 X2016
* */
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#define APM_DEBUG 0
#define gpuEr... | d32a9a85dc43afda1ab780c0c4467e93f26c8141.cu | /**
* * APPROXIMATE PATTERN MATCHING
* *
* * INF560 X2016
* */
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#define APM_DEBUG 0
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cudaError_t co... |
534f558e692e1bee1cff1fe36ae10f711669ce5e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "MSELoss.h"
#include "../Common.cuh"
#include <iostream>
#define MSELOSS_PRINT_DEBUG false
using namespace std;
extern hipError_t cudaStatus;
__global__ void mse_loss(CUDATensor* input, CUDATensor* target, CUDATensor* ou... | 534f558e692e1bee1cff1fe36ae10f711669ce5e.cu | #include "MSELoss.h"
#include "../Common.cuh"
#include <iostream>
#define MSELOSS_PRINT_DEBUG false
using namespace std;
extern cudaError_t cudaStatus;
__global__ void mse_loss(CUDATensor* input, CUDATensor* target, CUDATensor* output) {
int input_idx = blockIdx.z * gridDim.y * gridDim.x +
blockIdx.y * gridDim.x... |
03b9e09c682beff921ac2024911e10854a691d0a.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 <THH/THHDeviceUtils.cuh>
#include <THH/THHTensorMathReduce.cuh>
#includ... | 03b9e09c682beff921ac2024911e10854a691d0a.cu | #include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/TensorUtils.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/util/Exception.h>
#include <THC/THCDeviceUtils.cuh>
#include <THC/THCTensorMathReduce.cuh>
#include <THC/THCTensorSort.cuh>
#include <THC/THCThrustAllocator.cuh>
#include <thrust/exec... |
d584f926fed70552f830ac21aa92fa6b13d17aae.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/resize_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/gpu_util.cuh"
namespace caffe {
template <typename Dtype>
__global_... | d584f926fed70552f830ac21aa92fa6b13d17aae.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "caffe/layers/resize_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/gpu_util.cuh"
namespace caffe {
template <typename Dtype>
__global__ void NNInterporationForward(const int nthreads,
const Dtype* bottom_data, Dtype* top... |
65708210af56a64366b3053fa9d17cbbc9a035f8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../ops.cuh"
// feature dim = 1
__global__ void softmax_v(const float *features, const int *pointer,
const int *indices, float *__restrict__ next_layer) {
int neighbor_offset = pointer[blockIdx.... | 65708210af56a64366b3053fa9d17cbbc9a035f8.cu | #include "../ops.cuh"
// feature dim = 1
__global__ void softmax_v(const float *features, const int *pointer,
const int *indices, float *__restrict__ next_layer) {
int neighbor_offset = pointer[blockIdx.x];
int degree = pointer[blockIdx.x + 1] - neighbor_offset;
float max_local = 0.0f;... |
f42a2ea6d7bfe7c914da8ab1682147285453aaf8.hip | // !!! This is a file automatically generated by hipify!!!
#include "include/setup.cuh"
#include "../cpp/include/files.h"
#include "../include/structs.h"
#include <iostream>
#include <iomanip>
#include <math.h>
#include <vector>
#include <string>
#include <hip/hip_runtime.h>
#include <fstream>
#include <time.h>
__glo... | f42a2ea6d7bfe7c914da8ab1682147285453aaf8.cu | #include "include/setup.cuh"
#include "../cpp/include/files.h"
#include "../include/structs.h"
#include <iostream>
#include <iomanip>
#include <math.h>
#include <vector>
#include <string>
#include <cuda_runtime.h>
#include <fstream>
#include <time.h>
__global__ void wKernel(int Lx, int Ly, const prec* __restrict__ h,... |
c320999469dc9d9d27e14de691662845addcb916.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
// This file... | c320999469dc9d9d27e14de691662845addcb916.cu | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
// This file is auto-generated. See "generate_kernels.py"
#include <ATen/native/transformers/cuda/me... |
767f06a2cf35a685ccc73d8faa002daa6327da1c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define _USE_MATH_DEFINES
#include "particle_positions.cuh"
#include "utilities.cuh"
#include "VTK.cuh"
#include "hashing.cuh"
#include "particle_parameters.cuh"
#include <math.h>
#include <future>
#include <chrono>
#include <math... | 767f06a2cf35a685ccc73d8faa002daa6327da1c.cu | #define _USE_MATH_DEFINES
#include "particle_positions.cuh"
#include "utilities.cuh"
#include "VTK.cuh"
#include "hashing.cuh"
#include "particle_parameters.cuh"
#include <math.h>
#include <future>
#include <chrono>
#include <math.h>
//declaration of all global variables that are going to be used in this file
char... |
e07a65007b0b3e3204141de0481ba5b174248cd3.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 "dUpdateSignif.cu"
#include<chrono>
#include<iostream>
using name... | e07a65007b0b3e3204141de0481ba5b174248cd3.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 "dUpdateSignif.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24... |
420c0e7a3ecdbc341b04081e0d40d54999c99dc7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
extern "C" {
#ifndef REAL
#define REAL float
#endif
}
__global__ void uplo_swap_no_transp (const int sd, const int unit, const int bottom, REAL* a, const int offset_a, const int ld_a, REAL... | 420c0e7a3ecdbc341b04081e0d40d54999c99dc7.cu | #include "includes.h"
extern "C" {
#ifndef REAL
#define REAL float
#endif
}
__global__ void uplo_swap_no_transp (const int sd, const int unit, const int bottom, REAL* a, const int offset_a, const int ld_a, REAL* b, const int offset_b, const int ld_b) {
const int gid_0 = blockIdx.x * blockDim.x + t... |
55cc3718778fbc79dca1f5ba0791072269008931.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... | 55cc3718778fbc79dca1f5ba0791072269008931.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... |
ddfaf232782120b44bf402c423639f0fa9e9a831.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 "cudaDadd_kernel.cu"
#include<chrono>
#include<iostream>
using na... | ddfaf232782120b44bf402c423639f0fa9e9a831.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 "cudaDadd_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{... |
d315b8a509c09b9bdb01010d8db81c85093b7f12.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
/*
* Initialize array values on the host.
*/
void init(int *a, int N)
{
int i;
for (i = 0; i < N; ++i)
{
a[i] = i;
}
}
/*
* Double elements in parallel on the GPU.
*/
__global__
void doubleElem... | d315b8a509c09b9bdb01010d8db81c85093b7f12.cu | #include <stdio.h>
/*
* Initialize array values on the host.
*/
void init(int *a, int N)
{
int i;
for (i = 0; i < N; ++i)
{
a[i] = i;
}
}
/*
* Double elements in parallel on the GPU.
*/
__global__
void doubleElements(int *a, int N)
{
int i;
i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < N)... |
3055bfd783b3d4b5504b37d67945d86d4fd6eb2a.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#define THREADNUM 512
__device__ float randGpu(hiprandState_t *global_state, int ind){
//int ind = threadIdx.x;
hiprandSta... | 3055bfd783b3d4b5504b37d67945d86d4fd6eb2a.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <curand.h>
#include <curand_kernel.h>
#define THREADNUM 512
__device__ float randGpu(curandState *global_state, int ind){
//int ind = threadIdx.x;
curandState local_state = global_state[ind];
float rand_num = curand_uniform(&local_state);
globa... |
d27f48971f68f895a8b98378a2c9e10dc9976a2b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <hiprand/hiprand.h>
#include <ctime>
#include <assert.h>
// Define some error checking macros.
#define cudaErrCheck(stat) { cudaErrCheck_((stat), __FILE__, __LINE__); }
void cudaErrCheck_(hipError_t stat,... | d27f48971f68f895a8b98378a2c9e10dc9976a2b.cu | #include <stdio.h>
#include <curand.h>
#include <ctime>
#include <assert.h>
// Define some error checking macros.
#define cudaErrCheck(stat) { cudaErrCheck_((stat), __FILE__, __LINE__); }
void cudaErrCheck_(cudaError_t stat, const char *file, int line) {
if (stat != cudaSuccess) {
fprintf(stderr, "CUDA Error: ... |
2d939db8111a939ad14b3b60f7624c3875dbe22c.hip | // !!! This is a file automatically generated by hipify!!!
/**
* calculate pi
*/
#include <stdio.h>
#include <math.h>
#include <iostream>
// For the CUDA runtime routines (prefixed with "cuda_")
#include <hip/hip_runtime.h>
//#define BLOCKS 512
#define NUMTHREADS 8192
#define ITERATIONS 2e09
/**
* CUDA Kernel D... | 2d939db8111a939ad14b3b60f7624c3875dbe22c.cu |
/**
* calculate pi
*/
#include <stdio.h>
#include <math.h>
#include <iostream>
// For the CUDA runtime routines (prefixed with "cuda_")
#include <cuda_runtime.h>
//#define BLOCKS 512
#define NUMTHREADS 8192
#define ITERATIONS 2e09
/**
* CUDA Kernel Device code
*
*/
/*****************************************... |
32ca540d8d722189b71f40a554272c0a318e7375.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "CudaCircularize.cuh"
#include "Common/CudaErrorCheck.cuh"
#include <Havana2/Configuration.h>
#ifdef CUDA_ENABLED
#include <math_functions.h>
#include <math_constants.h>
// GPU kernels
__global__ void getInterpolation... | 32ca540d8d722189b71f40a554272c0a318e7375.cu |
#include "CudaCircularize.cuh"
#include "Common/CudaErrorCheck.cuh"
#include <Havana2/Configuration.h>
#ifdef CUDA_ENABLED
#include <math_functions.h>
#include <math_constants.h>
// GPU kernels
__global__ void getInterpolationMap(float* rho, float* theta, int radius, int width)
{
int x = threadIdx.x + blockIdx.x... |
d611c799f54929ebbd75884b7e714c2777a3b747.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include <stdio.h>
#include "bitmap_image.hpp"
#define MazesizeX 500
#define MazesizeY 300
#... | d611c799f54929ebbd75884b7e714c2777a3b747.cu | #include <iostream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <curand.h>
#include <curand_kernel.h>
#include <stdio.h>
#include "bitmap_image.hpp"
#define MazesizeX 500
#define MazesizeY 300
#define vert MazesizeX*MazesizeY
#define WHITE 1
#define BLACK 2
#define GRAY 3
#define UP 1
#define DOW... |
5f1638371a369e87d5560662c233a3b59826569a.hip | // !!! This is a file automatically generated by hipify!!!
// System includes
#include <stdio.h>
#include <assert.h>
// CUDA runtime
#include <hip/hip_runtime.h>
// helper functions and utilities to work with CUDA
#include <stdlib.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <cutil.h>
#include <fcntl.h... | 5f1638371a369e87d5560662c233a3b59826569a.cu | // System includes
#include <stdio.h>
#include <assert.h>
// CUDA runtime
#include <cuda_runtime.h>
// helper functions and utilities to work with CUDA
#include <stdlib.h>
#include <stdio.h>
#include <cuda.h>
#include <cutil.h>
#include <fcntl.h>
#include <float.h>
#include <unistd.h>
#include "texton.h"
#include "co... |
f55de4ff62de4d5ac9d285e7eae7cba37f6b4fd4.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
int log2(int i)
{
int r = 0;
while (i >>= 1) r++;
return r;
}
int bit_reverse(int w, int bits)
{
int r = 0;
for (int i = 0; i < bits; i++)
{
int bit = (w & (1 << i)) >> i;
... | f55de4ff62de4d5ac9d285e7eae7cba37f6b4fd4.cu | #include <stdio.h>
#include <cuda_runtime.h>
int log2(int i)
{
int r = 0;
while (i >>= 1) r++;
return r;
}
int bit_reverse(int w, int bits)
{
int r = 0;
for (int i = 0; i < bits; i++)
{
int bit = (w & (1 << i)) >> i;
r |= bit << (bits - i - 1);
}
return r;
}
__global__... |
1bb30ba6ec23fb75eb077540be565c5441114dfc.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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.o... | 1bb30ba6ec23fb75eb077540be565c5441114dfc.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... |
a75f2aa799c9ace3564690811c31108f947d2361.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2015-2019 by Contributors
* \file regression_obj.cu
* \brief Definition of single-value regression and classification objectives.
* \author Tianqi Chen, Kailong Chen
*/
#include <dmlc/omp.h>
#include <xgboost/logging.h>
#include <xgboost/o... | a75f2aa799c9ace3564690811c31108f947d2361.cu | /*!
* Copyright 2015-2019 by Contributors
* \file regression_obj.cu
* \brief Definition of single-value regression and classification objectives.
* \author Tianqi Chen, Kailong Chen
*/
#include <dmlc/omp.h>
#include <xgboost/logging.h>
#include <xgboost/objective.h>
#include <cmath>
#include <memory>
#include <ve... |
a10948baf85a445768a76d64495ba92c73f03e0c.hip | // !!! This is a file automatically generated by hipify!!!
#include "dbscan.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <rocblas.h>
#include <stack>
#include <time.h>
#include <ctime>
__constant__ Point sp[2000];
#define CUDA_CHECK_RE... | a10948baf85a445768a76d64495ba92c73f03e0c.cu | #include "dbscan.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <cublas_v2.h>
#include <stack>
#include <time.h>
#include <ctime>
__constant__ Point sp[2000];
#define CUDA_CHECK_RETURN(value) { \
cudaError_t _m_cudaStat = value; \
... |
7c6889e201344fe5529ea1d025763b8bc51ee380.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/Dispatch.h>
#include <THH/THHAtomics.cuh>
#include <stdio.h>
#include <math.h>
#include <numeric>
#include <float.h>
#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK
#endif
using namespace at;
#... | 7c6889e201344fe5529ea1d025763b8bc51ee380.cu | #include <ATen/ATen.h>
#include <ATen/Dispatch.h>
#include <THC/THCAtomics.cuh>
#include <stdio.h>
#include <math.h>
#include <numeric>
#include <float.h>
#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK
#endif
using namespace at;
#define CUDA_KERNEL_LOOP(i, n) \
for (int i = blockIdx.... |
e1be741f7502b8bd62fdb86b8129275a49f180c1.hip | // !!! This is a file automatically generated by hipify!!!
#define EIGEN_USE_GPU
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "tensor_benchmarks.h"
// Simple functions
#define BM_FuncGPU(FUNC) \
static void BM_##FUNC(int iters, int N) { ... | e1be741f7502b8bd62fdb86b8129275a49f180c1.cu | #define EIGEN_USE_GPU
#include <cuda.h>
#include <cuda_runtime.h>
#include "tensor_benchmarks.h"
// Simple functions
#define BM_FuncGPU(FUNC) \
static void BM_##FUNC(int iters, int N) { \
StopBenchmarkTiming(); ... |
bfffe950a440f042ce5bf960d07bf4922a58fa87.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright (c) 2014, Evghenii Gaburov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistribu... | bfffe950a440f042ce5bf960d07bf4922a58fa87.cu | /*
Copyright (c) 2014, Evghenii Gaburov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditio... |
d27f34ac1b89ad0b96d10e6209c9a2c6fed56b20.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include "book.h"
__global__ void add(int a, int b, int *c) {
*c = a + b;
};
int main(void) {
int c;
int *dev_c;
HANDLE_ERROR(hipMalloc((void**)&dev_c, sizeof(int)));
add << <1, 1 >> >(2, 7, dev_c);
HA... | d27f34ac1b89ad0b96d10e6209c9a2c6fed56b20.cu | #include <iostream>
#include "book.h"
__global__ void add(int a, int b, int *c) {
*c = a + b;
};
int main(void) {
int c;
int *dev_c;
HANDLE_ERROR(cudaMalloc((void**)&dev_c, sizeof(int)));
add << <1, 1 >> >(2, 7, dev_c);
HANDLE_ERROR(cudaMemcpy(&c, dev_c, sizeof(int), cudaMemcpyDeviceToHost));
printf("2 + 7... |
99fcbda2f75e975586b861052a3af7baed12c1cd.hip | // !!! This is a file automatically generated by hipify!!!
//
// =============== SHA256 part on nVidia GPU ======================
//
// NOTE: compile this .cu module for compute_10,sm_10 with --maxrregcount=64
//
#include <stdio.h>
#include <map>
#include <hip/hip_runtime.h>
#define applog(...) (void)0
//#include "... | 99fcbda2f75e975586b861052a3af7baed12c1cd.cu | //
// =============== SHA256 part on nVidia GPU ======================
//
// NOTE: compile this .cu module for compute_10,sm_10 with --maxrregcount=64
//
#include <stdio.h>
#include <map>
#include <cuda.h>
#define applog(...) (void)0
//#include "salsa_kernel.h"
//#include "miner.h"
#include "sha256.h"
// define s... |
c1a5fc9b77675ef45333f5efa6bb70f7944a25f3.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... | c1a5fc9b77675ef45333f5efa6bb70f7944a25f3.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... |
f2b9fcdcce2a5b258825a73110d458ac7d9dbf86.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "SGDLM/HostWrapperImpl.cuh"
#include "kernel_functions.cuh"
#include "cublas_manager.cuh"
#include "curand_manager.cuh"
#include "SGDLM/SGDLM.cuh"
template<typename DOUBLE> SGDLM::HostWrapperImpl<DOUBLE>::HostWrapperIm... | f2b9fcdcce2a5b258825a73110d458ac7d9dbf86.cu | #include "SGDLM/HostWrapperImpl.cuh"
#include "kernel_functions.cuh"
#include "cublas_manager.cuh"
#include "curand_manager.cuh"
#include "SGDLM/SGDLM.cuh"
template<typename DOUBLE> SGDLM::HostWrapperImpl<DOUBLE>::HostWrapperImpl(std::size_t no_gpus) :
memory_initialized(false), sim_memory_initialized(false), ev... |
266d601255e047517acfa41cc319d4f5d1f69bc2.hip | // !!! This is a file automatically generated by hipify!!!
/* Gaussian Elimination.
*
* Copyright (C) 2012-2013 Orange Owl Solutions.
*
* This file is part of Bluebird Library.
* Gaussian Elimination is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU Gener... | 266d601255e047517acfa41cc319d4f5d1f69bc2.cu | /* Gaussian Elimination.
*
* Copyright (C) 2012-2013 Orange Owl Solutions.
*
* This file is part of Bluebird Library.
* Gaussian Elimination is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as published by
* the Free Software Fo... |
36323a40dec692ece21fcbf5d12f89676d2a8cb7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <Std.h>
#include <CudaSupport.h>
#include <Definitions.h>
#include <CudaObjects.h>
#include <kernel.h>
///////////////////////////////////////////////////////////////////////////////
const dim3 BlockDim( BlockDimX, BlockD... | 36323a40dec692ece21fcbf5d12f89676d2a8cb7.cu | #include <Std.h>
#include <CudaSupport.h>
#include <Definitions.h>
#include <CudaObjects.h>
#include <kernel.h>
///////////////////////////////////////////////////////////////////////////////
const dim3 BlockDim( BlockDimX, BlockDimY );
const size_t BlockSize = BlockDimX * BlockDimY;
const size_t SharedMemSize = Bloc... |
739a0c71068196e272a2f4d5a404d21e55d94dd6.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
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 the Software without rest... | 739a0c71068196e272a2f4d5a404d21e55d94dd6.cu | /*
Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.
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 the Software without restriction, including without limitation the rights
to use, co... |
51dd321167cce88184ec18b6b3476baa143c2d77.hip | // !!! This is a file automatically generated by hipify!!!
// author: Felice Pantaleo, CERN, 2018
#include <cassert>
#include <iostream>
#include <new>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "HeterogeneousCore/CUDAUtilities/interface/GPUSimpleVector.h"
#include "HeterogeneousCore/CUDAUtil... | 51dd321167cce88184ec18b6b3476baa143c2d77.cu | // author: Felice Pantaleo, CERN, 2018
#include <cassert>
#include <iostream>
#include <new>
#include <cuda.h>
#include <cuda_runtime.h>
#include "HeterogeneousCore/CUDAUtilities/interface/GPUSimpleVector.h"
#include "HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h"
#include "HeterogeneousCore/CUDAUtilities/in... |
11cb666d23300781c4879363292b2ef940ab8236.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
int main(int argc, char **argv){
// define total data elements
int nElem = 1024;
// define grid and block structure
dim3 block(1024);
dim3 grid((nElem+block.x-1)/block.x);
printf("grid.x %d block.x %... | 11cb666d23300781c4879363292b2ef940ab8236.cu | #include <cuda_runtime.h>
#include <stdio.h>
int main(int argc, char **argv){
// define total data elements
int nElem = 1024;
// define grid and block structure
dim3 block(1024);
dim3 grid((nElem+block.x-1)/block.x);
printf("grid.x %d block.x %d \n", grid.x, block.x);
// reset block
block.x = 512;
... |
44c33cfbe05df8e28a62529364bfd3898c437bf6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/reduction_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void prod_reduction_forward(
const int N, const int K, const int M,... | 44c33cfbe05df8e28a62529364bfd3898c437bf6.cu | #include <vector>
#include "caffe/layers/reduction_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void prod_reduction_forward(
const int N, const int K, const int M, const int G,
const Dtype* const X,
Dtype* const Y)
{
const int NK = N*K;
CU... |
4cf18045276949bc74dc11e814f0c3812eaaf92b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void k_Exposure( float* p_Input, int p_Width, int p_Height, float p_Exposure) {
const int x = blockIdx.x * blockDim.x + threadIdx.x;
const int y = blockIdx.y * blockDim.y + threadIdx.y;
if (x < p_Wid... | 4cf18045276949bc74dc11e814f0c3812eaaf92b.cu | #include "includes.h"
__global__ void k_Exposure( float* p_Input, int p_Width, int p_Height, float p_Exposure) {
const int x = blockIdx.x * blockDim.x + threadIdx.x;
const int y = blockIdx.y * blockDim.y + threadIdx.y;
if (x < p_Width && y < p_Height) {
const int index = (y * p_Width + x) * 4;
p_Input[index] = p_Input[... |
37c69c56418994d9fe9b33c702db5feb0b55594f.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <assert.h>
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
extern "C" __global__
void memcpy_kernel(unsigned char* __restrict__ output, const unsigned char* __restrict__ input){
output +=... | 37c69c56418994d9fe9b33c702db5feb0b55594f.cu | #include <cuda_runtime.h>
#include <stdio.h>
#include <assert.h>
#include <iostream>
#include <stdlib.h>
#include <unistd.h>
extern "C" __global__
void memcpy_kernel(unsigned char* __restrict__ output, const unsigned char* __restrict__ input){
output += (blockIdx.x<<13)|(threadIdx.x<<2);
input += (blockIdx.x<... |
fc57eac17889f2c29d28ced2eb71eba9b010d610.hip | // !!! This is a file automatically generated by hipify!!!
#include <cudnn.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <malloc.h>
#include <cstdlib>
#include <time.h>
#include <iostream>
#include <sys/types.h>
#include <errno.h>
#include <vector>
#include <fstream>
#include <string>
#include <omp.h>
#de... | fc57eac17889f2c29d28ced2eb71eba9b010d610.cu | #include <cudnn.h>
#include <stdio.h>
#include <cuda.h>
#include <malloc.h>
#include <cstdlib>
#include <time.h>
#include <iostream>
#include <sys/types.h>
#include <errno.h>
#include <vector>
#include <fstream>
#include <string>
#include <omp.h>
#define TH 3
#define TW 5
#define TC 32
#define C 64
#define N 32
#define... |
a48382de51e69ac3fc31ce7543bd5ad682df97f2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <rocblas.h>
// includes, project
#include <cutil_inline.h>
// includes, kernels
#include <strsm_kernel.cu>
////////////////... | a48382de51e69ac3fc31ce7543bd5ad682df97f2.cu |
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cublas.h>
// includes, project
#include <cutil_inline.h>
// includes, kernels
#include <strsm_kernel.cu>
////////////////////////////////////////////////////////////////////////////////
// declaration, forward
... |
d826999b066c91294774126ff258f31351d24e1e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void scal_kernel(int N, float ALPHA, float *X, int INCX)
{
int i = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + threadIdx.x;
if(i < N) X[i*INCX] *= ALPHA;
} | d826999b066c91294774126ff258f31351d24e1e.cu | #include "includes.h"
__global__ void scal_kernel(int N, float ALPHA, float *X, int INCX)
{
int i = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + threadIdx.x;
if(i < N) X[i*INCX] *= ALPHA;
} |
881a8d0e7632d3e24077016ed35fc0e29944c524.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../../gpu_utils/runtime.h"
#include "GTJ.h"
__device__ void reset_tj_neuron(GTJNeurons *d_neurons, int *shared_buf, volatile int size, int start_id)
{
for (int idx=threadIdx.x; idx<size; idx+=blockDim.x) {
int nid =... | 881a8d0e7632d3e24077016ed35fc0e29944c524.cu |
#include "../../gpu_utils/runtime.h"
#include "GTJ.h"
__device__ void reset_tj_neuron(GTJNeurons *d_neurons, int *shared_buf, volatile int size, int start_id)
{
for (int idx=threadIdx.x; idx<size; idx+=blockDim.x) {
int nid = shared_buf[idx] - start_id;
d_neurons->p_refrac_step[nid] = d_neurons->p_refrac_time[... |
dab5c72b2c3e6943d3828c047d200117955cd506.hip | // !!! This is a file automatically generated by hipify!!!
#include <unittest/unittest.h>
#include <thrust/functional.h>
#include <thrust/sequence.h>
#include <thrust/device_malloc_allocator.h>
#include <thrust/sort.h>
#include <thrust/system/hip/detail/detail/stable_radix_sort.h>
#if THRUST_DEVICE_SYSTEM == THRUST_D... | dab5c72b2c3e6943d3828c047d200117955cd506.cu | #include <unittest/unittest.h>
#include <thrust/functional.h>
#include <thrust/sequence.h>
#include <thrust/device_malloc_allocator.h>
#include <thrust/sort.h>
#include <thrust/system/cuda/detail/detail/stable_radix_sort.h>
#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
using namespace unittest;
typedef unit... |
be057b7adda15f4afa36728f4419e9d82fa5efe7.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 the License ... | be057b7adda15f4afa36728f4419e9d82fa5efe7.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 by applicable law or... |
ec0c6cfa14b283505894920da70cd4a97734326b.hip | // !!! This is a file automatically generated by hipify!!!
#include "common_hip.cuh"
#include "app.cuh"
#include <gflags/gflags.h>
bool SSSP_single_gpu();
bool SSSP_multi_gpu();
namespace sssp
{
struct App
{
static bool Single() { return SSSP_single_gpu(); }
static bool Multi() { return SSSP_multi_gpu(); }
}... | ec0c6cfa14b283505894920da70cd4a97734326b.cu |
#include "common.cuh"
#include "app.cuh"
#include <gflags/gflags.h>
bool SSSP_single_gpu();
bool SSSP_multi_gpu();
namespace sssp
{
struct App
{
static bool Single() { return SSSP_single_gpu(); }
static bool Multi() { return SSSP_multi_gpu(); }
};
} // namespace sssp
int main(int argc, char **argv)
{
Sk... |
5e2fafdb8b16f6259b8eb159fb64a4d3375948c9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "header.h"
#include "util.h"
#include "mapper.cuh"
#include "reducer.cuh"
#include "wtime.h"
#include "barrier.cuh"
#include "gpu_graph.cuh"
#include "meta_data.cuh"
#include "mapper_enactor.cuh"
#include "reducer_enactor.c... | 5e2fafdb8b16f6259b8eb159fb64a4d3375948c9.cu | #include "header.h"
#include "util.h"
#include "mapper.cuh"
#include "reducer.cuh"
#include "wtime.h"
#include "barrier.cuh"
#include "gpu_graph.cuh"
#include "meta_data.cuh"
#include "mapper_enactor.cuh"
#include "reducer_enactor.cuh"
#include "cpu_sssp_route.hpp"
void bellman_ford_outbound_cpu(
graph<long, long,... |
bd6b7bcfda943dcaac5eee61f853260fb6b2f3d5.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <cfloat>
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <rocblas.h>
#include <cusolverDn.h>
#include "struct.h"
#include "constants.h"
void assignObjfcnStructMemory(long long &, fcndata &, double *);
void ob... | bd6b7bcfda943dcaac5eee61f853260fb6b2f3d5.cu | #include <cstdio>
#include <cstdlib>
#include <cfloat>
#include "mex.h"
#include "gpu/mxGPUArray.h"
#include <cublas_v2.h>
#include <cusolverDn.h>
#include "struct.h"
#include "constants.h"
void assignObjfcnStructMemory(long long &, fcndata &, double *);
void objfcn(double *, double *, fcndata &);
void mexFunction(in... |
4a75baa0df8adbdbee767d0e5586fe10ed4d3bee.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken fro... | 4a75baa0df8adbdbee767d0e5586fe10ed4d3bee.cu | #include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken from http://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functio... |
c139266bdf722b59efea72b04179e0e635859cfb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from ztrtri_upper.cu normal z -> d, Fri Jan 3... | c139266bdf722b59efea72b04179e0e635859cfb.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from ztrtri_upper.cu normal z -> d, Fri Jan 30 19:00:10 2015
@author Peng Du
@author Tingxing Dong
@author Mark... |
01ae597686403f658fcf3c532a8b20e77be3f5d8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Tools.hpp"
__global__ static void juliaAnimation(uchar4* ptrDevPixels, int w, int h, int N, DomaineMaths domainNew, CalibreurCudas calibreur);
__device__ static float julia(float x, float y, int N);
void launchJuliaAnim... | 01ae597686403f658fcf3c532a8b20e77be3f5d8.cu | #include "Tools.hpp"
__global__ static void juliaAnimation(uchar4* ptrDevPixels, int w, int h, int N, DomaineMaths domainNew, CalibreurCudas calibreur);
__device__ static float julia(float x, float y, int N);
void launchJuliaAnimation(uchar4* ptrDevPixels, int w, int h, int N, const DomaineMaths& domainNew){
dim... |
0c82fa8e9a93ff8fa5835ca7152e57f9a37faa2f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Re... | 0c82fa8e9a93ff8fa5835ca7152e57f9a37faa2f.cu | /* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
a74c6432652b04a6e9c27da025f41e8927dba7bb.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 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/li... | a74c6432652b04a6e9c27da025f41e8927dba7bb.cu | /*
* Copyright (c) 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 law ... |
62116b66a8b79c66186fe2d8d0a4294137ac11c0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
using namespace std;
typedef struct Matrix {
int width;
int height;
float *elements;
} Mat;
#define BLOCK_SIZE 16
#define w 4096
#define h 4096
__global__ void MatMulKernel(const Matrix, const Matrix, Mat... | 62116b66a8b79c66186fe2d8d0a4294137ac11c0.cu | #include <iostream>
using namespace std;
typedef struct Matrix {
int width;
int height;
float *elements;
} Mat;
#define BLOCK_SIZE 16
#define w 4096
#define h 4096
__global__ void MatMulKernel(const Matrix, const Matrix, Matrix);
void MatMul(const Matrix A, const Matrix B, Matrix C);
int main() {
Mat h_A;
... |
bab15215c1d0a6ed389739318d8bacbdf512d54c.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistribu... | bab15215c1d0a6ed389739318d8bacbdf512d54c.cu | /*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice... |
e7cd81be6068f2a4dee38a06d08523d07cb1eba8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/stochastic_dropout_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void DropoutForward(const int n, const Dtype* in,
const un... | e7cd81be6068f2a4dee38a06d08523d07cb1eba8.cu | #include <vector>
#include "caffe/layers/stochastic_dropout_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void DropoutForward(const int n, const Dtype* in,
const unsigned int* mask, const unsigned int threshold, const float scale,
Dtype* out) {
C... |
099b97ad6ba4d6168d4422b32cb094dc2ad8d626.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#define TX 16
#define TY 16
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#define PI 3.141592654f
#define TPB 256 // reduction
__device__
float findX(int idx, int w) {
return ((idx - idx/w... | 099b97ad6ba4d6168d4422b32cb094dc2ad8d626.cu | #include "kernel.h"
#define TX 16
#define TY 16
#include <curand.h>
#include <curand_kernel.h>
#define PI 3.141592654f
#define TPB 256 // reduction
__device__
float findX(int idx, int w) {
return ((idx - idx/w * w) * SCALEX / (w / 2) - SCALEX);
}
__device__
float findY(int idx, int h) {
return (SCALEY - idx/h... |
3dcbf2f96cb6905cb6a9d99dbcf86bb038de98c0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
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 ... | 3dcbf2f96cb6905cb6a9d99dbcf86bb038de98c0.cu | /***
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
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 the Software without restriction, including without limitation
the rights to use, copy, ... |
30db9049a9a0932983a0df984a743a5872304601.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code ... | 30db9049a9a0932983a0df984a743a5872304601.cu | /* Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
a6d7bac2d5466fd0dfacf65d2a3ba45ff2a6ae96.hip | // !!! This is a file automatically generated by hipify!!!
#include <call_kernel.h>
//pass
//--blockDim=512 --gridDim=1 --warp-sync=32 --no-inline
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <stdio.h>
#define N 32//128//512
__device__ static __attribute__((always_inline)) void scan_warp (i... | a6d7bac2d5466fd0dfacf65d2a3ba45ff2a6ae96.cu | #include <call_kernel.h>
//pass
//--blockDim=512 --gridDim=1 --warp-sync=32 --no-inline
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <stdio.h>
#define N 32//128//512
__device__ static __attribute__((always_inline)) void scan_warp (int* A)
{
unsigned int tid = threadIdx.x;
unsigned int lane = tid % 32;
... |
be80ff13ffe1a1e0728c4ed225bc2966d93ea12c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2019-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
... | be80ff13ffe1a1e0728c4ed225bc2966d93ea12c.cu | /*
* Copyright (c) 2019-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... |
37956e02fca96c884fbea797d5406c84ff96e035.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <malloc.h>
#include <time.h>
#include <mpi.h>
#include <hip/hip_runtime.h>
#include <unistd.h>
using namespace std;
//-- This MPI+CUDA multi-GPU program generates n numbers in node Rank 0, process them on its GPU, then sends th... | 37956e02fca96c884fbea797d5406c84ff96e035.cu | #include <stdio.h>
#include <malloc.h>
#include <time.h>
#include <mpi.h>
#include <cuda.h>
#include <unistd.h>
using namespace std;
//-- This MPI+CUDA multi-GPU program generates n numbers in node Rank 0, process them on its GPU, then sends them to node Rank 1 to be processed. At the end, the final result return... |
a0346364396d18607833da4f526ca0a1df3bdb1f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
using namespace std;
const int GRIDSIZE = (32*1024);
const int BLOCKSIZE = 1024;
const int TOTALSIZE = GRIDSIZE * BLOCKSIZE;
const int TargetSIze = 2 * BLOCKSIZE;
__global... | a0346364396d18607833da4f526ca0a1df3bdb1f.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <iostream>
using namespace std;
const int GRIDSIZE = (32*1024);
const int BLOCKSIZE = 1024;
const int TOTALSIZE = GRIDSIZE * BLOCKSIZE;
const int TargetSIze = 2 * BLOCKSIZE;
__global__ void kernel(unsigned* pData, unsigned* pAnswer, unsigned ta... |
695b09d99d0fef45df4dc5e9aed8cc0c156e6eaa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "whattotest.cuh"
#define N 10
__global__ void add( int *a, int *b, int *c ) {
//int tid = threadIdx.x + blockIdx.x * blockDim.x;
int tid = blockIdx.x;
if (tid < N)
c[tid] = a[tid] + b[tid];
//ti... | 695b09d99d0fef45df4dc5e9aed8cc0c156e6eaa.cu | #include "whattotest.cuh"
#define N 10
__global__ void add( int *a, int *b, int *c ) {
//int tid = threadIdx.x + blockIdx.x * blockDim.x;
int tid = blockIdx.x;
if (tid < N)
c[tid] = a[tid] + b[tid];
//tid += blockDim.x * gridDim.x;
}
int addKernelWrapper(int *a, int /b, int *c) {
//int... |
c7e0e6bbc711b91f0be26341028f476baa33918a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "myers-common.h"
#define NUM_BITS 4
#define NUM_BASES 5
#define BASES_PER_THREAD 128
#define BASES_PER_ENTRY 8
#define SIZE_GPU_HW_WORD 32
#define SIZE_WARP 32
#define HIGH... | c7e0e6bbc711b91f0be26341028f476baa33918a.cu | #include <stdio.h>
#include "myers-common.h"
#define NUM_BITS 4
#define NUM_BASES 5
#define BASES_PER_THREAD 128
#define BASES_PER_ENTRY 8
#define SIZE_GPU_HW_WORD 32
#define SIZE_WARP 32
#define HIGH_MASK_32 0x80000000
#define LOW_MASK_32 0x00000001
#define MAX_VALUE ... |
7d9b5fd0163a775a0b23410700b2261f46fc6974.hip | // !!! This is a file automatically generated by hipify!!!
/* Matrix multiplication: P = M * N.
* Host code.
*/
// includes, system
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, kernels
#include "matrixmul_kernel.hip"
#include "assist.h"
#de... | 7d9b5fd0163a775a0b23410700b2261f46fc6974.cu | /* Matrix multiplication: P = M * N.
* Host code.
*/
// includes, system
#include <cuda_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, kernels
#include "matrixmul_kernel.cu"
#include "assist.h"
#define ERROR_CHECK { cudaError_t err; \
if ((err = cudaGetLastE... |
417401ffcf3ee87b97266c39118423b462c91222.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "kernel_test5_init.cu"
#include<chrono>
#include<iostream>
using ... | 417401ffcf3ee87b97266c39118423b462c91222.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "kernel_test5_init.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16}... |
d50a7ce79978f7cfe98c0c997395be395139d5f2.hip | // !!! This is a file automatically generated by hipify!!!
//Inputs:
// Number of bodies
// Max sphere size
// AVG temperature
#define MAX_THREADS_PER_BLOCK 1024
#define MAX_BLOCKS 2496
#define SQUARED(a) a*a
typedef struct Particles{
float * x;
float * y;
float * z;
float * v_x;
float * v_y;
floa... | d50a7ce79978f7cfe98c0c997395be395139d5f2.cu | //Inputs:
// Number of bodies
// Max sphere size
// AVG temperature
#define MAX_THREADS_PER_BLOCK 1024
#define MAX_BLOCKS 2496
#define SQUARED(a) a*a
typedef struct Particles{
float * x;
float * y;
float * z;
float * v_x;
float * v_y;
float * v_z;
short * intersects; //Number of times intersecte... |
b730b3bcb44990c19b1b9e53d04af4daf9ed0635.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__
void nekbone(double *w, const double *u, const double *g, const double *d, const int N, const float RN) {
const int e_size = N * N * N;
const int e_offset = e_size * blockIdx.x;
__shared__ double ur[1024];
__shar... | b730b3bcb44990c19b1b9e53d04af4daf9ed0635.cu | __global__
void nekbone(double *w, const double *u, const double *g, const double *d, const int N, const float RN) {
const int e_size = N * N * N;
const int e_offset = e_size * blockIdx.x;
__shared__ double ur[1024];
__shared__ double us[1024];
__shared__ double ut[1024];
__shared__ double ul[1024];
__sh... |
d34c71b9fc66478ee87da9b4eb49d6037605315d.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2020 Saurabh Yadav
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>
#define TOTAL_ROWS ... | d34c71b9fc66478ee87da9b4eb49d6037605315d.cu | // Copyright (c) 2020 Saurabh Yadav
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>
#define TOTAL_ROWS 1000U
#define TOTAL_COLS 2000U
__global__
void init_mat... |
37803041b50d2784f6635518fd4391fa3e40edaa.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#define N 32
void printMatrix (unsigned* matrix) {
for (unsigned i = 0; i < N * N; i++) {
printf(" %u ", matrix[i]);
if (i % N == (N-1)) {
printf("\n");
}
}
}
void createMatrix(unsigned* matrix) {
... | 37803041b50d2784f6635518fd4391fa3e40edaa.cu | #include <cuda.h>
#include <stdio.h>
#define N 32
void printMatrix (unsigned* matrix) {
for (unsigned i = 0; i < N * N; i++) {
printf(" %u ", matrix[i]);
if (i % N == (N-1)) {
printf("\n");
}
}
}
void createMatrix(unsigned* matrix) {
for (unsigned i = 0; i < N; i++) {
for (unsigned j = 0; j < N; j++) ... |
e46e6c552d3461b227d5470f9a266cc62005e525.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void sumMatrixOnGPUMix(float *MatA, float *MatB, float *MatC, int nx, int ny)
{
unsigned int ix = threadIdx.x + blockIdx.x * blockDim.x;
unsigned int iy = blockIdx.y;
unsigned int idx = iy * nx + ix;... | e46e6c552d3461b227d5470f9a266cc62005e525.cu | #include "includes.h"
__global__ void sumMatrixOnGPUMix(float *MatA, float *MatB, float *MatC, int nx, int ny)
{
unsigned int ix = threadIdx.x + blockIdx.x * blockDim.x;
unsigned int iy = blockIdx.y;
unsigned int idx = iy * nx + ix;
if (ix < nx && iy < ny)
MatC[idx] = MatA[idx] + MatB[idx];
} |
ad27c0e99ec344e038ac9a85a0eda507fa030c9b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "aarect.h"
#include "box.h"
#include "bvh.h"
#include "camera.h"
#include "constant_medium.h"
#include "cuda_utils.h"
#include "hittable_list.h"
#include "material.h"
#include "moving_sphere.h"
#include "ray.h"
#include "sp... | ad27c0e99ec344e038ac9a85a0eda507fa030c9b.cu | #include "aarect.h"
#include "box.h"
#include "bvh.h"
#include "camera.h"
#include "constant_medium.h"
#include "cuda_utils.h"
#include "hittable_list.h"
#include "material.h"
#include "moving_sphere.h"
#include "ray.h"
#include "sphere.h"
#include "triangle.h"
#include "vec3.h"
#include <curand_kernel.h>
#include <flo... |
08fb0185513636f4fd8d8253ac1936a99b4e1bed.hip | // !!! This is a file automatically generated by hipify!!!
/*
This version assigns one thread per 16 bytes of text.(one text block)
Stores the plaintext/ciphertext in registers.
Stores the encryption keys in shared memory.
Stores the S-boxes in constant memory.
The blocksize is 256.
*/
#include <iostream>
#include <fs... | 08fb0185513636f4fd8d8253ac1936a99b4e1bed.cu | /*
This version assigns one thread per 16 bytes of text.(one text block)
Stores the plaintext/ciphertext in registers.
Stores the encryption keys in shared memory.
Stores the S-boxes in constant memory.
The blocksize is 256.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <chrono>
#include <cuda... |
a7954b714e1253b02c86a0c88c89cb7a0b5e4eee.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THHUNN/generic/RReLU.hip"
#else
#include <THHUNN/common.h>
#include <ATen/CUDAGenerator.h>
void THNN_(RReLU_updateOutput)(
THCState *state,
THCTensor *input,... | a7954b714e1253b02c86a0c88c89cb7a0b5e4eee.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THCUNN/generic/RReLU.cu"
#else
#include <THCUNN/common.h>
#include <ATen/CUDAGenerator.h>
void THNN_(RReLU_updateOutput)(
THCState *state,
THCTensor *input,
THCTensor *output,
THCTensor *noise,
double lower,
... |
07c8775033d9548919d7d1ee15c541acee965953.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
//#include <cutil.h>
#include <iostream>
#include <ostream>
#include <fstream>
//#include "/home/yusuke/NVIDIA_GPU_Computing_SDK/C/common/inc/cutil.h"
using namespace std;
#define CASENAME "orig_LR3"
#define BLOCKSIZEX 192
#defin... | 07c8775033d9548919d7d1ee15c541acee965953.cu | #include <cuda.h>
//#include <cutil.h>
#include <iostream>
#include <ostream>
#include <fstream>
//#include "/home/yusuke/NVIDIA_GPU_Computing_SDK/C/common/inc/cutil.h"
using namespace std;
#define CASENAME "orig_LR3"
#define BLOCKSIZEX 192
#define BLOCKSIZEY 1
#define BLOCKSIZEZ 1
#define BLOCKSIZELRX 192
#define B... |
d3860d20154449d5affa634f3b89c5a092fe32f3.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include <cuda_bf16.h>
#include <stdio.h>
using namespace std;
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <cstdlib>
union FP32
{
unsigned int i;
float f;
};
union BF16
{
... | d3860d20154449d5affa634f3b89c5a092fe32f3.cu | #include <iostream>
#include <cuda.h>
#include <cuda_bf16.h>
#include <stdio.h>
using namespace std;
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <cstdlib>
union FP32
{
unsigned int i;
float f;
};
union BF16
{
unsigned short int i;
__nv_bfloat16 f;
};
__global__ void test... |
0818b645ea16281a127c1da61bd5944e310d7bfc.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... | 0818b645ea16281a127c1da61bd5944e310d7bfc.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 ... |
191f1f442431d9f213e67ce2a3add77aa5333e84.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright 2016 Mikko Ronkainen <firstname@mikkoronkainen.com>
// License: MIT, see the LICENSE file.
#include "Precompiled.h"
#ifdef USE_ROCM
#include <device_launch_parameters.h>
#endif
#include "Core/Common.h"
#include "Cor... | 191f1f442431d9f213e67ce2a3add77aa5333e84.cu | // Copyright © 2016 Mikko Ronkainen <firstname@mikkoronkainen.com>
// License: MIT, see the LICENSE file.
#include "Precompiled.h"
#ifdef USE_CUDA
#include <device_launch_parameters.h>
#endif
#include "Core/Common.h"
#include "Core/Film.h"
#include "Core/Ray.h"
#include "Core/Scene.h"
#include "Core/Intersection.h"
... |
c99d27a69522951a3faf10dcd6ee9ce4795bd952.hip | // !!! This is a file automatically generated by hipify!!!
/*************************************************************************
> File Name : threadfence.cpp
> Author : Liu Junhong
> Mail : junliu@nvidia.com
> Created Time: Tuesday, February 11, 2020 PM11:44:49 HKT
*************************... | c99d27a69522951a3faf10dcd6ee9ce4795bd952.cu | /*************************************************************************
> File Name : threadfence.cpp
> Author : Liu Junhong
> Mail : junliu@nvidia.com
> Created Time: Tuesday, February 11, 2020 PM11:44:49 HKT
************************************************************************/
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.