hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
0cb30e44b8f105ea002f0d0ff20caf95ce120154.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
__global__
void filter(int ... | 0cb30e44b8f105ea002f0d0ff20caf95ce120154.cu | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdint.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
__global__
void filter(int height, int width, double *ker, double *d_img, double *d_img_res)
{
int gidx = threa... |
bbb12b52f5361b985f33ed96a3b0d89441f250a5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | bbb12b52f5361b985f33ed96a3b0d89441f250a5.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
455479af7ae7aea05330fd0d8dbe99c1cc49fa61.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... | 455479af7ae7aea05330fd0d8dbe99c1cc49fa61.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... |
88e3bf03153dd5c74b6d70815cfb86ccc7384c5c.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licen... | 88e3bf03153dd5c74b6d70815cfb86ccc7384c5c.cu | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... |
3304a9b297dac352c1f9b2216bf500ce76c9ac8f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void VectorAdd(int *a, int *b, int *c, int n)
{
int i = blockIdx.x*blockDim.x+threadIdx.x;
//for (i = 0; i < n; ++i)
if (i < n)
c[i] = a[i] + b[i];
} | 3304a9b297dac352c1f9b2216bf500ce76c9ac8f.cu | #include "includes.h"
__global__ void VectorAdd(int *a, int *b, int *c, int n)
{
int i = blockIdx.x*blockDim.x+threadIdx.x;
//for (i = 0; i < n; ++i)
if (i < n)
c[i] = a[i] + b[i];
} |
d1e56f70a8d33fc38471179a0cf3835935ae3a13.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2019-2021 by XGBoost Contributors
*
* \file data.cu
* \brief Handles setting metainfo from array interface.
*/
#include "xgboost/data.h"
#include "xgboost/logging.h"
#include "xgboost/json.h"
#include "array_interface.h"
#include "../common... | d1e56f70a8d33fc38471179a0cf3835935ae3a13.cu | /*!
* Copyright 2019-2021 by XGBoost Contributors
*
* \file data.cu
* \brief Handles setting metainfo from array interface.
*/
#include "xgboost/data.h"
#include "xgboost/logging.h"
#include "xgboost/json.h"
#include "array_interface.h"
#include "../common/device_helpers.cuh"
#include "device_adapter.cuh"
#include... |
4c99b9e2e685561e9f91083ce0e93d7bd1b12ed1.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... | 4c99b9e2e685561e9f91083ce0e93d7bd1b12ed1.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... |
6d307f3f51063dec002026c235f899592f9da9a4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "math/matrix_type.h"
#include "math/vector_type.h"
#include "tracking/m_estimator.h"
#include "utils/safe_call.h"
#include "tracking/reduce_sum.h"
#include <thrust/device_vector.h>
namespace fusion
{
// TODO : Robust RGB ... | 6d307f3f51063dec002026c235f899592f9da9a4.cu | #include "math/matrix_type.h"
#include "math/vector_type.h"
#include "tracking/m_estimator.h"
#include "utils/safe_call.h"
#include "tracking/reduce_sum.h"
#include <thrust/device_vector.h>
namespace fusion
{
// TODO : Robust RGB Estimation
// STATUS: On halt
// struct RGBSelection
// {
// __device__ inline bool ... |
6ca02fd1cccbad57b251822a541da27333f0cd74.hip | // !!! This is a file automatically generated by hipify!!!
#include "PdfBenchmarker.h"
#include "PdfBenchmarker_gpu.h"
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#include "RngTest.h"
namespace vecrng {
void PdfBenchmarker::RunCuda()
{
int nDevice;
bool cudaEnabled = false;
hipGetDeviceC... | 6ca02fd1cccbad57b251822a541da27333f0cd74.cu | #include "PdfBenchmarker.h"
#include "PdfBenchmarker_gpu.h"
#include <cuda.h>
#include <curand_kernel.h>
#include "RngTest.h"
namespace vecrng {
void PdfBenchmarker::RunCuda()
{
int nDevice;
bool cudaEnabled = false;
cudaGetDeviceCount(&nDevice);
if(nDevice > 0) {
cudaDeviceReset();
cudaEnabled = t... |
61ba0835ca64d3c1c8a0910e311f5fbbb6a75244.hip | // !!! This is a file automatically generated by hipify!!!
//pass
//--blockDim=[64,1] --gridDim=[64,1]
#include <hip/hip_runtime.h>
#define BIN_COUNT 64
////////////////////////////////////////////////////////////////////////////////
// GPU-specific definitions
///////////////////////////////////////////////////////... | 61ba0835ca64d3c1c8a0910e311f5fbbb6a75244.cu | //pass
//--blockDim=[64,1] --gridDim=[64,1]
#include <cuda.h>
#define BIN_COUNT 64
////////////////////////////////////////////////////////////////////////////////
// GPU-specific definitions
////////////////////////////////////////////////////////////////////////////////
//Fast mul on G8x / G9x / G100
#define IMUL(... |
73280dd250693622cc40c4bde4021afe676f04d1.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2023, 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... | 73280dd250693622cc40c4bde4021afe676f04d1.cu | /*
* Copyright (c) 2019-2023, 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... |
893c340f3221df9ba9a30ad1aea5534c5c6d6ad1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file alg4.cu
* @brief CUDA device code for GPU-Efficient Recursive Filtering Algorithm 4
* @author Rodolfo Lima
* @date September, 2011
*/
//== INCLUDES ==============================================================... | 893c340f3221df9ba9a30ad1aea5534c5c6d6ad1.cu | /**
* @file alg4.cu
* @brief CUDA device code for GPU-Efficient Recursive Filtering Algorithm 4
* @author Rodolfo Lima
* @date September, 2011
*/
//== INCLUDES =================================================================
#include <cmath>
#include <cstdio>
#include <cfloat>
#include <cassert>
#include <i... |
fcf9ac8a9ec93ae92fa06c44fee8adebbef06834.hip | // !!! This is a file automatically generated by hipify!!!
//THIS IS THE MATRIX MATRIX MULTIPLICATION IN MULTIPLE GPUS
#include <stdio.h>
#include <hip/hip_runtime.h>
#include "mpi.h"
//--------------------------------------------------------------------------------------------------------------------------------------... | fcf9ac8a9ec93ae92fa06c44fee8adebbef06834.cu | //THIS IS THE MATRIX MATRIX MULTIPLICATION IN MULTIPLE GPUS
#include <stdio.h>
#include <cuda.h>
#include "mpi.h"
//------------------------------------------------------------------------------------------------------------------------------------------
#define BLOCKSIZE 16
//----------------------------------------... |
ef69d6c47dfb166f6214e4669c66c0bb297eb0bc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/utils/math/elementwise.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/utils/math_utils.h"
namespace caffe2 {
namespace math {
namespace {
template <typename T>
__global__ void SinCosCUDAKernel(const in... | ef69d6c47dfb166f6214e4669c66c0bb297eb0bc.cu | #include "caffe2/utils/math/elementwise.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/utils/math_utils.h"
namespace caffe2 {
namespace math {
namespace {
template <typename T>
__global__ void SinCosCUDAKernel(const int N, const T* X, T* S, T* C) {
const int i = blockIdx.x * CAFFE_CUDA_NUM_THREADS + thr... |
74be6fd77ccaefde15ec5df3552e49ffb39c8d52.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this sou... | 74be6fd77ccaefde15ec5df3552e49ffb39c8d52.cu | /*
* Copyright 1993-2007 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
a5b807478e637b97b7e47fe4cf68a0414ee627f2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright 2023 CMU, Facebook, LANL, MIT, NVIDIA, and Stanford (alphabetical)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | a5b807478e637b97b7e47fe4cf68a0414ee627f2.cu | /* Copyright 2023 CMU, Facebook, LANL, MIT, NVIDIA, and Stanford (alphabetical)
*
* 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
*
* ... |
b4716f7ea063ad21f6c24b919558c31b83754086.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "harris_detector_gpu.h" #include <iostream>
#include <limits> #include <algorithm> #include <cstdio>
global
void convolve_kernel(T *image, double *result, int rows,int cols, double *kernal, int kernal_dim)
{
... | b4716f7ea063ad21f6c24b919558c31b83754086.cu |
#include "harris_detector_gpu.h" #include <iostream>
#include <limits> #include <algorithm> #include <cstdio>
global
void convolve_kernel(T *image, double *result, int rows,int cols, double *kernal, int kernal_dim)
{
int ty = blockIdx.y * blockDim.y + threadIdx.y; int tx = blockIdx.x * blockDim.x + threa... |
74b76912084a6f3d78774723971e6b8e577f435b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, ... | 74b76912084a6f3d78774723971e6b8e577f435b.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, it will be
//ignored in this homework.
//Each channel Red, Blue, Green and Alpha is rep... |
38a91cf589cff3b4eb68645c4f9d938d52252d5c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "optixParams.h" // our launch params
extern "C" {
__constant__ LaunchParams optixLaunchParams;
}
// a single ray type
enum { PHONG=0, SHADOW, RAY_TYPE_COUNT };
struct colorPRD{
float3 color;
unsigned int se... | 38a91cf589cff3b4eb68645c4f9d938d52252d5c.cu | #include "optixParams.h" // our launch params
extern "C" {
__constant__ LaunchParams optixLaunchParams;
}
// a single ray type
enum { PHONG=0, SHADOW, RAY_TYPE_COUNT };
struct colorPRD{
float3 color;
unsigned int seed;
} ;
struct shadowPRD{
float shadowAtt;
unsigned int seed;
} ;
// ------... |
259019bf43e7d7ff2e13056ed5f518b3d30eb1ac.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// MP 1
#include <wb.h>
__global__ void vecAdd(float *in1, float *in2, float *out, int len) {
//@@ Insert code to implement vector addition here
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < len) {
out[i] = in1[i... | 259019bf43e7d7ff2e13056ed5f518b3d30eb1ac.cu | // MP 1
#include <wb.h>
__global__ void vecAdd(float *in1, float *in2, float *out, int len) {
//@@ Insert code to implement vector addition here
int i = blockIdx.x * blockDim.x + threadIdx.x;
if (i < len) {
out[i] = in1[i] + in2[i];
}
}
int main(int argc, char **argv) {
wbArg_t args;
int inputLength;
... |
0cdd633c31cdb5a2beee56c9032b2f3f2efef0ab.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "common.h"
#include "timer.h"
#define BLOCK_DIM 64
__global__ void nw_gpu3_kernel (unsigned char * reference_d, unsigned char* query_d, int* matrix_d, unsigned int N, unsigned int round) {
__shared__ unsigned int q_of... | 0cdd633c31cdb5a2beee56c9032b2f3f2efef0ab.cu |
#include "common.h"
#include "timer.h"
#define BLOCK_DIM 64
__global__ void nw_gpu3_kernel (unsigned char * reference_d, unsigned char* query_d, int* matrix_d, unsigned int N, unsigned int round) {
__shared__ unsigned int q_offset;
__shared__ unsigned int r_offset;
__shared__ unsigned int loop_limit;
__shared_... |
448412773da16c22948dbacc6e77c692a678f763.hip | // !!! This is a file automatically generated by hipify!!!
// User: g205@157.88.139.133
// ExecutionRequest[P:'extinguishing256.cu',P:1,T:1,args:'',q:'cudalb']
// May 16 2019 18:04:36
#include "cputils.h" // Added by tablon
/*
* Simplified simulation of fire extinguishing
*
* Computacion Paralela, Grado en Informa... | 448412773da16c22948dbacc6e77c692a678f763.cu | // User: g205@157.88.139.133
// ExecutionRequest[P:'extinguishing256.cu',P:1,T:1,args:'',q:'cudalb']
// May 16 2019 18:04:36
#include "cputils.h" // Added by tablon
/*
* Simplified simulation of fire extinguishing
*
* Computacion Paralela, Grado en Informatica (Universidad de Valladolid)
* 2018/2019
*
* v1.4
*... |
ce6a3894a3312506e7d3dca1e834fc97a9844e12.hip | // !!! This is a file automatically generated by hipify!!!
#include "cp.h"
#include <hip/hip_runtime.h>
#include <iostream>
#include <stdlib.h>
#include <sys/time.h>
#define CHECK(x) check(x, #x)
using namespace std;
inline void check(hipError_t err, const char* context) {
if (err != hipSuccess) {
std::c... | ce6a3894a3312506e7d3dca1e834fc97a9844e12.cu | #include "cp.h"
#include <cuda_runtime.h>
#include <iostream>
#include <stdlib.h>
#include <sys/time.h>
#define CHECK(x) check(x, #x)
using namespace std;
inline void check(cudaError_t err, const char* context) {
if (err != cudaSuccess) {
std::cerr << "CUDA error: " << context << ": "
<< cuda... |
bbc2e92450d0761cc4670ecb5a268775e7205d70.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "function.h"
#include "sgyhead.h"
#include "common.h"
#include "kernel_hip.cuh"
// shotprofileId[5][nshot]
// 1 : sx ... | bbc2e92450d0761cc4670ecb5a268775e7205d70.cu | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "function.h"
#include "sgyhead.h"
#include "common.h"
#include "kernel.cuh"
// shotprofileId[5][nshot]
// 1 行: sx shotprofileId[0][ishot]
// 2 行: ntrace shotprofileId[1][ishot]
// 3 行: itraceAll ... |
28918d2c71b72e0588a3d472f7a95177b70d8d5c.hip | // !!! This is a file automatically generated by hipify!!!
// cuda
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
//#include <hip/device_functions.h>
#include <conio.h>
//local
#include "sort.h"
//#define SEQ_ONLY
// local
#include "CudaErrorCheck.cu"
__constant__ int SORT_BASE;
__constant__ int... | 28918d2c71b72e0588a3d472f7a95177b70d8d5c.cu |
// cuda
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
//#include <device_functions.h>
#include <conio.h>
//local
#include "sort.h"
//#define SEQ_ONLY
// local
#include "CudaErrorCheck.cu"
__constant__ int SORT_BASE;
__constant__ int SORT_BASE_EXP;
int HOST_SORT_BASE = -1;
int HOST_SORT_BASE_EXP = ... |
33b2345ce08b65c7342835c486187d5890788aa8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "compute/pow/pow_internal.h"
#define BLK_SIZE 1024
namespace magmadnn {
namespace internal {
template <typename T>
__global__ void kernel_pow_grad_device(T *x, int power, T *grad, T *out, bool grad_is_scalar, unsigned i... | 33b2345ce08b65c7342835c486187d5890788aa8.cu |
#include "compute/pow/pow_internal.h"
#define BLK_SIZE 1024
namespace magmadnn {
namespace internal {
template <typename T>
__global__ void kernel_pow_grad_device(T *x, int power, T *grad, T *out, bool grad_is_scalar, unsigned int size) {
unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
unsigned in... |
acea4f091fefcf4c9f375b2b68722c89878845b3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void kEltwiseLogregCost(float* predmap, float* indmap, float*indlogpred, float* correctprobs, int numCases, int numTasks, int per_thread_case) {
const int task_id = blockIdx.x;
const int start_tx = t... | acea4f091fefcf4c9f375b2b68722c89878845b3.cu | #include "includes.h"
__global__ void kEltwiseLogregCost(float* predmap, float* indmap, float*indlogpred, float* correctprobs, int numCases, int numTasks, int per_thread_case) {
const int task_id = blockIdx.x;
const int start_tx = threadIdx.x * per_thread_case;
const int end_tx = min(start_tx + per_thread_case, numCase... |
fe1ea7f12e91d2779f6cda0f60a914499dd2b55d.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... | fe1ea7f12e91d2779f6cda0f60a914499dd2b55d.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... |
3ec53e05d68428ff8939ebc3dd41a1d33dc8a60a.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 3ec53e05d68428ff8939ebc3dd41a1d33dc8a60a.cu | /*
* Copyright (c) 2020-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
e48183ea171eae8af55abf11cd1306a82e056bea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2020 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 ... | e48183ea171eae8af55abf11cd1306a82e056bea.cu | /* Copyright (c) 2020 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... |
fe1aa35c776a6c0424a9e8fc38362fa355e9dc55.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <unistd.h>
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <stdint.h>
#define NO_STUB_MAIN
#include "ptx_stub.cu"
__device__ __attribute__((noinline)) void store(uint64_t tid, int* wher... | fe1aa35c776a6c0424a9e8fc38362fa355e9dc55.cu | #include <iostream>
#include <unistd.h>
#include <cuda_runtime.h>
#include <helper_cuda.h>
#include <helper_functions.h>
#include <stdint.h>
#define NO_STUB_MAIN
#include "ptx_stub.cu"
__device__ __attribute__((noinline)) void store(uint64_t tid, int* where, int what)
{
*where = what;
STORE_OP_FUNCTION_NAME(t... |
ced55efcbbdad57942800c490ca11e5b30ed5f05.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <mpi.h>
#include <omp.h>
#include "./collectives.h"
const double *src_buf = NULL;
__host__
void cudaMPI_Scatter(const double *sendbuf, int sendcount,
double *recvbuf, int recvcount,
int root, MPI_Comm com... | ced55efcbbdad57942800c490ca11e5b30ed5f05.cu | #include <cuda.h>
#include <mpi.h>
#include <omp.h>
#include "./collectives.h"
const double *src_buf = NULL;
__host__
void cudaMPI_Scatter(const double *sendbuf, int sendcount,
double *recvbuf, int recvcount,
int root, MPI_Comm comm)
{
int tid = omp_get_thread_num();
int rank = device_id_to_r... |
0acb72ee484855d9989bc2deb9152eec190d12bc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Montecarlo.h"
#include <iostream>
#include "Device.h"
/*----------------------------------------------------------------------*\
|* Declaration *|
\*--------------------------------------------------------------... | 0acb72ee484855d9989bc2deb9152eec190d12bc.cu | #include "Montecarlo.h"
#include <iostream>
#include "Device.h"
/*----------------------------------------------------------------------*\
|* Declaration *|
\*---------------------------------------------------------------------*/
/*--------------------------------------*\
|* Imported *|
\*------------... |
7922bf59651ba57882b2ac1194c3cae1dc06fd0b.hip | // !!! This is a file automatically generated by hipify!!!
#include "Scalers.cuh"
#include <cmath>
#include <utility>
#include <iostream>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "Stopwatch.cuh"
#define HANDLE_ERROR(err) (HandleError(err, __FILE__, __LINE__))
static void HandleEr... | 7922bf59651ba57882b2ac1194c3cae1dc06fd0b.cu | #include "Scalers.cuh"
#include <cmath>
#include <utility>
#include <iostream>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "Stopwatch.cuh"
#define HANDLE_ERROR(err) (HandleError(err, __FILE__, __LINE__))
static void HandleError(cudaError_t err, const char *file, int line)
{
if (err... |
e81bf3f0412d19c4d7e8fda1c1ffb8ec4344cbed.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void kernel_unpack_yuy2_y16_cuda(const uint8_t * src, uint8_t *dst, int superPixCount)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
int stride = blockDim.x * gridDim.x;
if (i >= superPixCount)
r... | e81bf3f0412d19c4d7e8fda1c1ffb8ec4344cbed.cu | #include "includes.h"
__global__ void kernel_unpack_yuy2_y16_cuda(const uint8_t * src, uint8_t *dst, int superPixCount)
{
int i = blockDim.x * blockIdx.x + threadIdx.x;
int stride = blockDim.x * gridDim.x;
if (i >= superPixCount)
return;
for (; i < superPixCount; i += stride) {
int idx = i * 4;
dst[idx] = 0;
dst[id... |
8af96b27ffb66c50dce58e2a7953d1290e6d7077.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "helper.h"
#include "cuda_settings.h"
__global__ void collide(int X, int Y, int Z, float *cells_d, float *fuerza_d, int current) {
float w[19] = {(2./36.),(2./36.),(2./36.),(2./36.),(2./36.),(2./36.),
(1./36.),(1./36... | 8af96b27ffb66c50dce58e2a7953d1290e6d7077.cu | #include "helper.h"
#include "cuda_settings.h"
__global__ void collide(int X, int Y, int Z, float *cells_d, float *fuerza_d, int current) {
float w[19] = {(2./36.),(2./36.),(2./36.),(2./36.),(2./36.),(2./36.),
(1./36.),(1./36.),(1./36.),(1./36.),(1./36.),(1./36.),
(1./36.),(1./36.),(1./36.),(1./36.),(1./36.),... |
2c4bccf680b76f7bd5f761a0b4b369aa07cb28cd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define _DEVICE_VARS_TEST_
#include "GpuTestController.cuh"
#define WARP_SIZE 32
#define MODE_MASK 0x1
#define OP_MASK 0xE
#define DST_MASK 0x70
#define SRC_MASK 0x1F80
#define MODE_SHIFT 0
#define OP_SHIFT 1
#define DST_SHIFT 4... | 2c4bccf680b76f7bd5f761a0b4b369aa07cb28cd.cu | #define _DEVICE_VARS_TEST_
#include "GpuTestController.cuh"
#define WARP_SIZE 32
#define MODE_MASK 0x1
#define OP_MASK 0xE
#define DST_MASK 0x70
#define SRC_MASK 0x1F80
#define MODE_SHIFT 0
#define OP_SHIFT 1
#define DST_SHIFT 4
#define SRC_SHIFT 7
#define REG_COUNT 8
#define OP_SUM 0
#define OP_DIFF 1
#define OP... |
97b538f16f9f1233366555f7628c0e1ed52cb416.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <windows.h>
#include <d2d1.h>
#include <d2d1helper.h>
#pragma comment(lib, "d2d1")
//*****double buffering*****
#define SCREEN_WIDTH 1920
#define SCREEN_HEIGHT 1000
D2D1_RECT_U displa... | 97b538f16f9f1233366555f7628c0e1ed52cb416.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <windows.h>
#include <d2d1.h>
#include <d2d1helper.h>
#pragma comment(lib, "d2d1")
//*****double buffering*****
#define SCREEN_WIDTH 1920
#define SCREEN_HEIGHT 1000
D2D1_RECT_U display_area;
ID2D1Bitmap *image_container = NULL;
unsigned int *dev... |
0485374c8a00147126679803f9229f97f74a5830.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* \file dnn/src/cuda/convolution/chanwise/bwd_filter.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by appl... | 0485374c8a00147126679803f9229f97f74a5830.cu | /**
* \file dnn/src/cuda/convolution/chanwise/bwd_filter.cu
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distrib... |
9dd73284430661c803caf8ac2f41a23745a53f01.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include "../src/spreadinterp.h"
#include "../finufft/utils.h"
using namespace std;
int main(int argc, char* argv[])
{
int nf1, nf2, nf3;
FLT sigma = 2.0;
... | 9dd73284430661c803caf8ac2f41a23745a53f01.cu | #include <iostream>
#include <iomanip>
#include <math.h>
#include <helper_cuda.h>
#include <complex>
#include "../src/spreadinterp.h"
#include "../finufft/utils.h"
using namespace std;
int main(int argc, char* argv[])
{
int nf1, nf2, nf3;
FLT sigma = 2.0;
int N1, N2, N3, M;
if (argc<5) {
fprintf(stderr,"Usage: ... |
d1d6ae657973198250538923a9145185bde55868.hip | // !!! This is a file automatically generated by hipify!!!
/*
* sum_squares_7.cu
*
* @author chenyang li
*/
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <hip/device_functions.h>
#include <time.h>
#define DATA_SIZE 1024 * 1024
#define THREAD_NUM... | d1d6ae657973198250538923a9145185bde55868.cu | /*
* sum_squares_7.cu 利用树状加法,实现加法并行化
*
* @author chenyang li
*/
#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <device_functions.h>
#include <time.h>
#define DATA_SIZE 1024 * 1024
#define THREAD_NUM 256
#define BLOCK_NUM 32
int data[DATA_SIZE];
int ... |
cef40595c36a23ea12c79eba5def06f550208900.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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
... | cef40595c36a23ea12c79eba5def06f550208900.cu | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... |
293f23e113282729b4118a5c8662d0f350b19f90.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
dsymv.cu is nearly identical to dsymv.cu, just ch... | 293f23e113282729b4118a5c8662d0f350b19f90.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
dsymv.cu is nearly identical to dsymv.cu, just change names and drop MAGMA_D_CONJ.
dsymv_kernel_U (upper) in dsymv_upper.c... |
2e2140cca7c422dfd6ec3cb7dbb57cb1c59a3c79.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* This is a automatically generated test. Do not modify */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__
void compute(float comp, int var_1,int var_2,float var_3,float var_4,float* var_5,float* var_6,float ... | 2e2140cca7c422dfd6ec3cb7dbb57cb1c59a3c79.cu |
/* This is a automatically generated test. Do not modify */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__
void compute(float comp, int var_1,int var_2,float var_3,float var_4,float* var_5,float* var_6,float var_7,float var_8,float var_9,float var_10) {
if (comp <= (var_3 - var_4)) {
for (int ... |
1798e00fa39d3204297a73bf4bca5edcf33d0429.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
template <typename T, typename C, typename U>
__global__ void
awkward_RegularArray_getitem_jagged_expand(T* multistarts,
... | 1798e00fa39d3204297a73bf4bca5edcf33d0429.cu | // BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
template <typename T, typename C, typename U>
__global__ void
awkward_RegularArray_getitem_jagged_expand(T* multistarts,
C* multistops,
const U*... |
fea11c59c44fe40c5c8a6464d12be666b53544ea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//******************************************************************************
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance wi... | fea11c59c44fe40c5c8a6464d12be666b53544ea.cu | //******************************************************************************
// Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.o... |
ec5037dcf479161928afcb137107343d04fe29db.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <time.h>
#include <cstring>
#include "hip/hip_runtime.h"
#include "hip/hip_runtime.h"
#define gpuErrchk(ans) { gpu_assert((ans), __FILE__, __LINE__); }
inline void gpu_assert(hipError_t code, const char *file, int line, bool abort... | ec5037dcf479161928afcb137107343d04fe29db.cu | #include <stdio.h>
#include <time.h>
#include <cstring>
#include "cuda.h"
#include "cuda_runtime.h"
#define gpuErrchk(ans) { gpu_assert((ans), __FILE__, __LINE__); }
inline void gpu_assert(cudaError_t code, const char *file, int line, bool abort = true)
{
if(code != cudaSuccess)
{
fprintf(stderr, "GP... |
d45d1ad3b8712bd6a23d9f71039cdf8f71a643c0.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include "hip/hip_runtime.h"
#define max(x,y) ((x) > (y)? (x) : (y))
#define min(x,y) ((x) < (y)? (x) : (y))
#define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1)
void check_error (const char* message) {
hipError_t error = hip... | d45d1ad3b8712bd6a23d9f71039cdf8f71a643c0.cu | #include <stdio.h>
#include "cuda.h"
#define max(x,y) ((x) > (y)? (x) : (y))
#define min(x,y) ((x) < (y)? (x) : (y))
#define ceil(a,b) ((a) % (b) == 0 ? (a) / (b) : ((a) / (b)) + 1)
void check_error (const char* message) {
cudaError_t error = cudaGetLastError ();
if (error != cudaSuccess) {
printf ("CUDA err... |
224336a27fd93f6b0f82592c5cd3b9e89597fe59.hip | // !!! This is a file automatically generated by hipify!!!
#include <cassert>
#include <cfloat>
#include <list>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <hip/hip_runtime.h>
#include "MD.h"
using namespace std;
template <class T, class posVecType>
inline T distance(const posVecType* positio... | 224336a27fd93f6b0f82592c5cd3b9e89597fe59.cu | #include <cassert>
#include <cfloat>
#include <list>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <cuda.h>
#include "MD.h"
using namespace std;
template <class T, class posVecType>
inline T distance(const posVecType* position, const int i, const int j);
template <class T>
inline void insertIn... |
194948f1e96d57993cb826ad022a624931069f26.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define THREADS 64
// from http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inl... | 194948f1e96d57993cb826ad022a624931069f26.cu | #include <stdio.h>
#define THREADS 64
// from http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api
#define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cudaError_t code, char *file, int line, bool abort=true)
{
if (code... |
865bf91fd202846ebdeadca2d69136f769d8aa18.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include "common.h"
void checkResult(float *hostRef, float *gpuRef, const int N) {
double epsilon = 1.0E-8;
bool match = true;
for (int i = 0; i < N; ++i) {
if (abs(hostRef[i] - gpuRef[i]) > epsilon) {
... | 865bf91fd202846ebdeadca2d69136f769d8aa18.cu | #include <cuda_runtime.h>
#include <stdio.h>
#include "common.h"
void checkResult(float *hostRef, float *gpuRef, const int N) {
double epsilon = 1.0E-8;
bool match = true;
for (int i = 0; i < N; ++i) {
if (abs(hostRef[i] - gpuRef[i]) > epsilon) {
match = false;
printf("Arrays do not match!\n");
... |
2f5365b5347cc10ff439292a1facba2b8c701cc4.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... | 2f5365b5347cc10ff439292a1facba2b8c701cc4.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... |
467eb1f7dc7879124072397f656138246549bfbf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2019, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are pe... | 467eb1f7dc7879124072397f656138246549bfbf.cu | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2019, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source co... |
cd9e3f52751ad17660c167709e648cc4f81f8000.hip | // !!! This is a file automatically generated by hipify!!!
#include "mycuda.h"
#include "mycuda_public.h"
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
constexpr int WARP_SIZE = 32;
/* perform first level of reduction */
template <unsigned int blockSize>
__global__ void ReduceAddKernel(const int*... | cd9e3f52751ad17660c167709e648cc4f81f8000.cu | #include "mycuda.h"
#include "mycuda_public.h"
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
constexpr int WARP_SIZE = 32;
/* perform first level of reduction */
template <unsigned int blockSize>
__global__ void ReduceAddKernel(const int* __restrict__ g_idata, int* __restrict__ g_odata, unsigned int... |
0a06b992ad1fd9542154677bf1bd2cef98d550b5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <time.h>
__global__ void calculate_unique_3d_idx(int * input, int size)
{
int tid = (threadIdx.z * blockDim.y * blockDim.... | 0a06b992ad1fd9542154677bf1bd2cef98d550b5.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <time.h>
__global__ void calculate_unique_3d_idx(int * input, int size)
{
int tid = (threadIdx.z * blockDim.y * blockDim.x) + (threadIdx.y * blockDim.x) + threadIdx.x;
int block_i... |
09d8a874c5fda3989a2129d67bbb0add9f51a803.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#define N 32
#define BLOCK_SIZE 32
__global__ void add_kernel(int *X, int *Y, int *Z){
int i = threadIdx.x;
int j = threadIdx.y;
int index = i*N+j;
Z[index] = X[index] + Y[index];
}
int main()
... | 09d8a874c5fda3989a2129d67bbb0add9f51a803.cu | #include <stdio.h>
#define N 32
#define BLOCK_SIZE 32
__global__ void add_kernel(int *X, int *Y, int *Z){
int i = threadIdx.x;
int j = threadIdx.y;
int index = i*N+j;
Z[index] = X[index] + Y[index];
}
int main()
{
int n;
cudaEvent_t start, stop;
cudaEventCreate(&start);
cudaEventCrea... |
9a67b4ccb3342384384fbfb08915cbf409d8bf41.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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
... | 9a67b4ccb3342384384fbfb08915cbf409d8bf41.cu | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... |
5eebc15dc487ae2f891453cb3520e667251aae41.hip | // !!! This is a file automatically generated by hipify!!!
/*
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/lice... | 5eebc15dc487ae2f891453cb3520e667251aae41.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... |
b413c08f88f6fba4c98020ef8e13f583fe9a40b6.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... | b413c08f88f6fba4c98020ef8e13f583fe9a40b6.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 ... |
86a7503b439afe905f513c329dfb9593935084b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
template <typename scalar_t>
static __global__ void fused_bias_act_kernel(scalar_t* out, const scalar_t* p_x, const scalar_t* p_b, const scalar_t* p_ref,
int act, int grad, scalar_t alpha, scalar_t scale, int loop_x, int size... | 86a7503b439afe905f513c329dfb9593935084b0.cu |
template <typename scalar_t>
static __global__ void fused_bias_act_kernel(scalar_t* out, const scalar_t* p_x, const scalar_t* p_b, const scalar_t* p_ref,
int act, int grad, scalar_t alpha, scalar_t scale, int loop_x, int size_x, int step_b, int size_b, int use_bias, int use_ref) {
int xi = blockIdx.x * l... |
270f396eb9893e94263a9dd5961dcee6d935c24f.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <algorithm>
#include <chrono>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "bbcu/bbcu.h"
#include "bbcu/bbcu_util.h"
//////////////////////////////
// forward
//////////////////////////////
__gl... | 270f396eb9893e94263a9dd5961dcee6d935c24f.cu | #include <iostream>
#include <algorithm>
#include <chrono>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "bbcu/bbcu.h"
#include "bbcu/bbcu_util.h"
//////////////////////////////
// forward
//////////////////////////////
__global__ void kernal_fp32_MaxPooling_Forward(
float const *x_... |
ea14b6d5fb2bdf23542dbfad203122df29121e3a.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "common.h"
#include "naive.h"
namespace StreamCompaction {
namespace Naive {
using StreamCompaction::Common::PerformanceTimer;
PerformanceTimer& timer()
{
... | ea14b6d5fb2bdf23542dbfad203122df29121e3a.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include "common.h"
#include "naive.h"
namespace StreamCompaction {
namespace Naive {
using StreamCompaction::Common::PerformanceTimer;
PerformanceTimer& timer()
{
static PerformanceTimer timer;
return timer;
}
... |
3a4a8806d578a957ced7fd7ded140c9283c57b65.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <iostream>
#include <cmath>
#include <memory>
#include <thrust/reduce.h>
#include <thrust/execution_policy.h>
#include "process_split.h"
#include "border_conditions.h"
#include "send_recv_mpi.h"
Timers... | 3a4a8806d578a957ced7fd7ded140c9283c57b65.cu | #include <cstdio>
#include <iostream>
#include <cmath>
#include <memory>
#include <thrust/reduce.h>
#include <thrust/execution_policy.h>
#include "process_split.h"
#include "border_conditions.h"
#include "send_recv_mpi.h"
TimersArray timers;
int rank = -1;
int N, K;
int dx, dy, dz;
double hx, hy, hz, tau;
const ... |
63d99b53bdcba7fc1cb0c7086e147992ea30d3c5.hip | // !!! This is a file automatically generated by hipify!!!
// SPH.cpp : "main"
//
#include <iostream>
#include <fstream>
#include "glm/glm.hpp"
#include "CUDA_compute.h"
#include "include/input.h"
#include <ctime>
void outputAsCSV(ParticleManager &pm, int index) {
auto str = std::to_string(index / 10);
if (i... | 63d99b53bdcba7fc1cb0c7086e147992ea30d3c5.cu | // SPH.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include <fstream>
#include "glm/glm.hpp"
#include "CUDA_compute.h"
#include "include/input.h"
#include <ctime>
void outputAsCSV(ParticleManager &pm, int index) {
auto str = std::to_string(index / 10);
if (index % 10 == 0) {
std::ofstr... |
0999e59edc7e06cda85e9ece7d8b4de30cfc49fe.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Skylar Sang & Matthew Rhie
ECSE 4740
Spring 2020
Guidance for CUDA, hiprand, and error checking by Nvidia Developer Roger Allen
Project adapted from the book Ray Tracing in One Weekend by Peter Shirley
*/
#include <iostream>
#... | 0999e59edc7e06cda85e9ece7d8b4de30cfc49fe.cu | /*
Skylar Sang & Matthew Rhie
ECSE 4740
Spring 2020
Guidance for CUDA, curand, and error checking by Nvidia Developer Roger Allen
Project adapted from the book Ray Tracing in One Weekend by Peter Shirley
*/
#include <iostream>
#include <time.h>
#include <float.h>
#include <curand_kernel.h>
#include "vec3.h"
#include... |
74dcd34b6aff761e5039789804e310579938e509.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file ex_particle_OPENMP_seq.c
* @author Michael Trotter & Matt Goodrum
* @brief Particle filter implementation in C/OpenMP
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.... | 74dcd34b6aff761e5039789804e310579938e509.cu | /**
* @file ex_particle_OPENMP_seq.c
* @author Michael Trotter & Matt Goodrum
* @brief Particle filter implementation in C/OpenMP
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <float.h>
#include <sys/time.h>
#defi... |
979fc0ae91200737e1f04579955bdfa45d4ce6f8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <vector>
#include <chrono>
using namespace std::chrono;
using std::cout;
using std::generate;
using std::vector;
__globa... | 979fc0ae91200737e1f04579955bdfa45d4ce6f8.cu | #include <algorithm>
#include <cassert>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <vector>
#include <chrono>
using namespace std::chrono;
using std::cout;
using std::generate;
using std::vector;
__global__ void matrixMul(const int *a, const int *b, int *c, int N) {
// Compute each thread... |
96bb2df05aaf66fdd1c22b4990f6432a8730f564.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 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/lice... | 96bb2df05aaf66fdd1c22b4990f6432a8730f564.cu | /*
* Copyright 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 o... |
f7b36210f13dd3967c379f5aeb1b78ea9f19603e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* thunderstruck/tracker: SVMImpl.cu
*/
#include "SVMImpl.h"
#include "cudaApi.cuh"
namespace thunderstruck {
//#################### CUDA FUNCTIONS ####################
__device__ double cf_gaussian_kernel(double *x1, doubl... | f7b36210f13dd3967c379f5aeb1b78ea9f19603e.cu | /**
* thunderstruck/tracker: SVMImpl.cu
*/
#include "SVMImpl.h"
#include "cudaApi.cuh"
namespace thunderstruck {
//#################### CUDA FUNCTIONS ####################
__device__ double cf_gaussian_kernel(double *x1, double *x2, size_t featureCount, double sigma = 0.2)
{
double squaredNorm = 0.0;
for(size... |
f641b1e4a9257b756484175addca4e50e220d10d.hip | // !!! This is a file automatically generated by hipify!!!
//
//#include "hip/hip_runtime.h"
//#include "device_launch_parameters.h"
//
//#include <stdio.h>
//
//hipError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size);
//
//__global__ void addKernel(int *c, const int *a, const int *b)
//{
// in... | f641b1e4a9257b756484175addca4e50e220d10d.cu | //
//#include "cuda_runtime.h"
//#include "device_launch_parameters.h"
//
//#include <stdio.h>
//
//cudaError_t addWithCuda(int *c, const int *a, const int *b, unsigned int size);
//
//__global__ void addKernel(int *c, const int *a, const int *b)
//{
// int i = threadIdx.x;
// c[i] = a[i] + b[i];
//}
//
//int ma... |
d7b15c4f3d5b46d4092ada5068cfd9c1c8cbcaa6.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************************************
*
* probe a comuter for basic info about processing cores and GPU
*
* compile with:
*
* nvcc probe2.cu -L/usr/local/cuda/lib64 -I/usr/local/cuda-10.2/targets/x86_64-linux/inc... | d7b15c4f3d5b46d4092ada5068cfd9c1c8cbcaa6.cu | /*******************************************************************************
*
* probe a comuter for basic info about processing cores and GPU
*
* compile with:
*
* nvcc probe2.cu -L/usr/local/cuda/lib64 -I/usr/local/cuda-10.2/targets/x86_64-linux/include -lcuda -lcudart
*
* (in .tcshrc, please have:)
* s... |
a6ef425bc8f5d9a13a607c9610eb86926c7a0eff.hip | // !!! This is a file automatically generated by hipify!!!
// cd /home/hork/cuda-workspace/CudaSHA256/Debug/files
// time ~/Dropbox/FIIT/APS/Projekt/CpuSHA256/a.out -f ../file-list
// time ../CudaSHA256 -f ../file-list
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <hip/hip_ru... | a6ef425bc8f5d9a13a607c9610eb86926c7a0eff.cu | // cd /home/hork/cuda-workspace/CudaSHA256/Debug/files
// time ~/Dropbox/FIIT/APS/Projekt/CpuSHA256/a.out -f ../file-list
// time ../CudaSHA256 -f ../file-list
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <cuda.h>
#include "sha256.cuh"
#include <dirent.h>
#include <ctype.h>
... |
25a8f790f5600c872833b8997706c46358687869.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
/... | 25a8f790f5600c872833b8997706c46358687869.cu | /***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
////////////////////////////////////////////////////////////... |
e1c9d7f5587f8feee1f483ef949b681f37d90c14.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<cuda.h>
#define row1 2 /* Number of rows of first matrix */
#define col1 3 /* Number of columns of first matrix */
#define row2 3 /* Number of rows of second matrix */
#define col2 2 /* Number of columns o... | e1c9d7f5587f8feee1f483ef949b681f37d90c14.cu | #include<stdio.h>
#include<cuda.h>
#define row1 2 /* Number of rows of first matrix */
#define col1 3 /* Number of columns of first matrix */
#define row2 3 /* Number of rows of second matrix */
#define col2 2 /* Number of columns of second matrix */
__global__ void matadd(int *l,int *m, int *n)
{
int x=threadIdx.... |
c43a79a7a13be4ed7a3a554bb5b4a8fa5b82652d.hip | // !!! This is a file automatically generated by hipify!!!
#include "stdafx.h"
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#ifndef __HIPCC__
#define __HIPCC__
#endif
#include <hip/device_functions.h>
#include <hip/hip_runtime_api.h>
#include "index_.h"
#include "object.cuh"
#include "message_p... | c43a79a7a13be4ed7a3a554bb5b4a8fa5b82652d.cu | #include "stdafx.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#ifndef __CUDACC__
#define __CUDACC__
#endif
#include <device_functions.h>
#include <cuda_runtime_api.h>
#include "index_.h"
#include "object.cuh"
#include "message_processor.cuh"
#include "now.h"
#include "cuda_stream_controller.h"
... |
87d31e00ddd66d9fb491769d5011f041964db160.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
# include "option.h"
# include "performance.h"
# include <pnl/pnl_mathtools.h>
#include "performance.cuh"
/*!
* \file performance.cpp
* \brief option performance
*/
Performance :: Performance() : Option() {
Coeff_ = pnl_vect... | 87d31e00ddd66d9fb491769d5011f041964db160.cu | # include "option.h"
# include "performance.h"
# include <pnl/pnl_mathtools.h>
#include "performance.cuh"
/*!
* \file performance.cpp
* \brief option performance
*/
Performance :: Performance() : Option() {
Coeff_ = pnl_vect_new();
}
Performance :: Performance(Parser & pars) : Option(pars){
Coeff_ = pnl_vect... |
9da7d1a1665f9889c7fb39ba98f0568830cba3b6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Exhibits a bank conflict.
// Gklee and Gkleep both detect this.
//#include <cstdio>
#define N 32
__global__ void bc(char* __restrict__ in, char* __restrict__ out)
{
__shared__ int smem[512];
int tid = threadIdx.x;
sm... | 9da7d1a1665f9889c7fb39ba98f0568830cba3b6.cu | // Exhibits a bank conflict.
// Gklee and Gkleep both detect this.
//#include <cstdio>
#define N 32
__global__ void bc(char* __restrict__ in, char* __restrict__ out)
{
__shared__ int smem[512];
int tid = threadIdx.x;
smem[tid*2]=in[tid];
__syncthreads();
smem[tid*4]=in[tid];
__syncthreads();
smem[t... |
e56228f1f5ba1663faad14b1bba3288b5f958872.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
__device__ void partition_by_bit(unsigned int *values, unsigned int bit);
__global__ void radix_sort(unsigned int *values)
{
int bit;
for( bit = 0; bit < 32; ++bit... | e56228f1f5ba1663faad14b1bba3288b5f958872.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
__device__ void partition_by_bit(unsigned int *values, unsigned int bit);
__global__ void radix_sort(unsigned int *values)
{
int bit;
for( bit = 0; bit < 32; ++bit )
{
partition_by_bit(values, bit);
__syncthreads();
}
}
__devi... |
ae2e80167c7ee1d3ba1127ac7f09f6e9b2d3874b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* University of Pittsburgh
* Department of Computer Science
* CS1645: Introduction to HPC Systems
* Instructor: Xiaolong Cui
* This is a skeleton for implementing prefix sum using GPU, inspired
* by nvidia course of simila... | ae2e80167c7ee1d3ba1127ac7f09f6e9b2d3874b.cu | /**
* University of Pittsburgh
* Department of Computer Science
* CS1645: Introduction to HPC Systems
* Instructor: Xiaolong Cui
* This is a skeleton for implementing prefix sum using GPU, inspired
* by nvidia course of similar name.
*/
#include <stdio.h>
#include <math.h>
#include <string.h>
#define N 512
/*... |
3a5a680df8adacdd1e0ec14d955893d32edb20f3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Created by ss on 16-11-15.
//
#include <sys/time.h>
#include "deviceHessianOnFly.h"
#include "../constant.h"
__global__ void RBFKernel(const float_point *aSelfDot, float_point bSelfDot, float_point *dotProduct, int numOfSamp... | 3a5a680df8adacdd1e0ec14d955893d32edb20f3.cu | //
// Created by ss on 16-11-15.
//
#include <sys/time.h>
#include "deviceHessianOnFly.h"
#include "../constant.h"
__global__ void RBFKernel(const float_point *aSelfDot, float_point bSelfDot, float_point *dotProduct, int numOfSamples,
float gamma) {
const int idx = blockDim.x * blockIdx.... |
6b233e78f49356b180cba4329a5296f4dcae4e21.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 6b233e78f49356b180cba4329a5296f4dcae4e21.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
4d21fe2dcacfb96154fe0bd7e1aa02dca40e66c0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Green, and Blue is in it.
//The 'A' stands for Alpha and is used for transparency;... | 4d21fe2dcacfb96154fe0bd7e1aa02dca40e66c0.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Green, and Blue is in it.
//The 'A' stands for Alpha and is used for transparency; it will be
//ignored in this homework.
//Each channel Red, Blue, Green, and Alpha is r... |
a23f9d2f410185fec720ec6751a975f2caa4012d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Self-Organizing Maps on a cluster
* Copyright (C) 2013 Peter Wittek
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... | a23f9d2f410185fec720ec6751a975f2caa4012d.cu | /**
* Self-Organizing Maps on a cluster
* Copyright (C) 2013 Peter Wittek
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any lat... |
4db2cdeace3b3a22ff2233f937bd506ea1aabb8e.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2021, Oak Ridge National Laboratory.
* MGARD-GPU: MultiGrid Adaptive Reduction of Data Accelerated by GPUs
* Author: Jieyang Chen (chenj3@ornl.gov)
* Date: April 2, 2021
*/
#include <chrono>
#include <iomanip>
#include <iostream>
#include <... | 4db2cdeace3b3a22ff2233f937bd506ea1aabb8e.cu | /*
* Copyright 2021, Oak Ridge National Laboratory.
* MGARD-GPU: MultiGrid Adaptive Reduction of Data Accelerated by GPUs
* Author: Jieyang Chen (chenj3@ornl.gov)
* Date: April 2, 2021
*/
#include <chrono>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <thrust/device_vector.h>
#include <thrust... |
bf80ca1dba70e69d5ca964fb70de7c5b931dd205.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Kernels.cuh"
#include "stdio.h"
__global__ void determineNextState(int *board, int *newBoard, int rows, int columns, size_t pitchOld, size_t pitchNew)
{
//getting coordintates of the thread
int x = (blockIdx.x * b... | bf80ca1dba70e69d5ca964fb70de7c5b931dd205.cu | #include "Kernels.cuh"
#include "stdio.h"
__global__ void determineNextState(int *board, int *newBoard, int rows, int columns, size_t pitchOld, size_t pitchNew)
{
//getting coordintates of the thread
int x = (blockIdx.x * blockDim.x) + threadIdx.x;
int y = (blockIdx.y * blockDim.y) + threadIdx.y;
//adj... |
94dc74562298e22899bc0f6c532f468f7c08db43.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "grayscale.h"
#include <stdio.h>
__global__ void _im2gray(const uint8_t* __restrict__ data, int size, float* __restrict__ output) {
const size_t ind = blockIdx.x*blockDim.x + threadIdx.x;
if(ind<size)output[ind]= data[in... | 94dc74562298e22899bc0f6c532f468f7c08db43.cu | #include "grayscale.h"
#include <stdio.h>
__global__ void _im2gray(const uint8_t* __restrict__ data, int size, float* __restrict__ output) {
const size_t ind = blockIdx.x*blockDim.x + threadIdx.x;
if(ind<size)output[ind]= data[ind]/255.0;
}
void im2gray(uint8_t* data, int size, float* output,dim3 gridSize, dim3 bloc... |
8072f6d2f6b563815113207fbb4d4eb6db605328.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdint.h>
#include <hip/hip_runtime.h>
typedef unsigned char BYTE; // 8-bit byte
typedef unsigned int WORD; // 32-bit word, change to "long" for 16-bit machines
typedef struct {
BYTE data[64];
WORD datalen;
unsigned long ... | 8072f6d2f6b563815113207fbb4d4eb6db605328.cu | #include <stdint.h>
#include <cuda.h>
typedef unsigned char BYTE; // 8-bit byte
typedef unsigned int WORD; // 32-bit word, change to "long" for 16-bit machines
typedef struct {
BYTE data[64];
WORD datalen;
unsigned long long bitlen;
WORD state[5];
WORD k[4];
} SHA1_CTX;
#define ROTLEFT(... |
78bf06c129b9c1c5bf6ec3f91f46f0df8e37f431.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright (c) 2011, T. Kroes <t.kroes@tudelft.nl>
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 ... | 78bf06c129b9c1c5bf6ec3f91f46f0df8e37f431.cu | /*
Copyright (c) 2011, T. Kroes <t.kroes@tudelft.nl>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions ... |
sample1_kernel_time.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__global__ void Sample1Kernel(float *d_A, float *d_B, float *d_C) {
// Step 1. CUDAID
int thread_id = blockDim.x * blockIdx.x + threadIdx.x;
// Step 2. CUDAID
d_C[thread_id] = d_A[thread_id] + d_B[thread_id];
}
__host__ vo... | sample1_kernel_time.cu | __global__ void Sample1Kernel(float *d_A, float *d_B, float *d_C) {
// Step 1. 自身のCUDAスレッドIDを計算する
int thread_id = blockDim.x * blockIdx.x + threadIdx.x;
// Step 2. CUDAスレッドIDを用いてグローバルメモリからデータを読み込み,計算する
d_C[thread_id] = d_A[thread_id] + d_B[thread_id];
}
__host__ void Sample1Host(float *h_A, float *h_B, float ... |
3c7446264c9669d1c60c9c3a46abfd4d9af5cbf5.hip | // !!! This is a file automatically generated by hipify!!!
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (M... | 3c7446264c9669d1c60c9c3a46abfd4d9af5cbf5.cu | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
c146882c9cade2f7d36292cf3926c1a84a7944dc.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 "setStatisticAtLast.cu"
#include<chrono>
#include<iostream>
using... | c146882c9cade2f7d36292cf3926c1a84a7944dc.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 "setStatisticAtLast.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16... |
940dbdfe5000a375b681a0ca2eee7b29edf5a414.hip | // !!! This is a file automatically generated by hipify!!!
#include <gtest/gtest.h>
#include <hipcub/hipcub.hpp>
#include <detail/masked_mult.cuh>
#include <masked_spgemm.h>
#include <spgemm.h>
#include <random>
using index_type = unsigned int;
using b_mat = std::vector<std::vector<bool>>;
std::pair<std::vector<inde... | 940dbdfe5000a375b681a0ca2eee7b29edf5a414.cu | #include <gtest/gtest.h>
#include <cub/cub.cuh>
#include <detail/masked_mult.cuh>
#include <masked_spgemm.h>
#include <spgemm.h>
#include <random>
using index_type = unsigned int;
using b_mat = std::vector<std::vector<bool>>;
std::pair<std::vector<index_type>, std::vector<index_type>> dense_to_csr(const b_mat& matri... |
ce5d5507ce95597e64577544c6e30d03f0412556.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../GaussBlurTex/gpu_blur_tex.h"
#include "../BgSub/gu_sub.h"
#include "../API/api.h"
gpu_error_t gpu_highpass( gpu_context_t *ctx, )
{
}
| ce5d5507ce95597e64577544c6e30d03f0412556.cu | #include "cuda.h"
#include "../GaussBlurTex/gpu_blur_tex.h"
#include "../BgSub/gu_sub.h"
#include "../API/api.h"
gpu_error_t gpu_highpass( gpu_context_t *ctx, )
{
}
|
c2c9fcad08e7fa867fb952a992269d7466383eea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/layers/zk_conv.hpp"
#include "device_launch_parameters.h"
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> ... | c2c9fcad08e7fa867fb952a992269d7466383eea.cu | #include <vector>
#include "caffe/layers/zk_conv.hpp"
#include "device_launch_parameters.h"
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit
#include <thrust/device_vector.h>
#include <thrust/functional.h> // thrust::plus
#include <thrust/reduce.h>
namespace caffe {
template <typename Dtype>... |
62e0e5d73baeb52ea8fa425b8429e2705808936f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@precisions normal z -> s d c
@author Stan Tomov... | 62e0e5d73baeb52ea8fa425b8429e2705808936f.cu | /*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@precisions normal z -> s d c
@author Stan Tomov
@author Mark Gates
*/
#include "magma_internal.h"
#define NB 16
/************... |
010d6f07c4e56636a9f1360f63d36cb56c9e9aad.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright 2020 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | 010d6f07c4e56636a9f1360f63d36cb56c9e9aad.cu | /******************************************************************************
* Copyright 2020 The Apollo 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
... |
cd506e23003c41d093be3ca0ca74bed53793d6a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "thrust/reduce.h"
#include "thrust/device_ptr.h"
#include "header.h"
#include "util.h"
#define BLOCK_DIM 512
__device__ double d_courno;
__constant__ double GAMMA ... | cd506e23003c41d093be3ca0ca74bed53793d6a6.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "thrust/reduce.h"
#include "thrust/device_ptr.h"
#include "header.h"
#include "util.h"
#define BLOCK_DIM 512
__device__ double d_courno;
__constant__ double GAMMA = 1.4E0;
__constant__ double CV = 8.3333333333E6;
#undef SQR
#define SQR(x) ... |
974ca2a2aa3d1ec6f5c2cef0d7c4cf26e8e22556.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the infor... | 974ca2a2aa3d1ec6f5c2cef0d7c4cf26e8e22556.cu | /*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the information contained herein is PROPRIETARY and
* CONFIDENTIAL to NVIDIA and is being provid... |
98d043bcc0134258978a91be88acaa4942cd7a86.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
__global__ void kernel() {
int idx = threadIdx.x + blockIdx.x * blockDim.x;
printf("Hello from thread.\n");
}
int main(){
int host_a, host_b, host_c;
int *dev_a, *dev_b, *dev_c;
... | 98d043bcc0134258978a91be88acaa4942cd7a86.cu | #include <stdio.h>
#include <stdlib.h>
__global__ void kernel() {
int idx = threadIdx.x + blockIdx.x * blockDim.x;
printf("Hello from thread.\n");
}
int main(){
int host_a, host_b, host_c;
int *dev_a, *dev_b, *dev_c;
int size = sizeof (int);
cudaMalloc((void**) &dev_a, size);
cudaMalloc((void**) ... |
11f92a6163b98649d80ec8f1ab4fe1004b18d03e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* This code is courtesy of, and copyright 2015,
* Tomas Oppelstrup, Livermore National Lab. Please
* do not redistribute without his approval.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#inclu... | 11f92a6163b98649d80ec8f1ab4fe1004b18d03e.cu | /*
* This code is courtesy of, and copyright 2015,
* Tomas Oppelstrup, Livermore National Lab. Please
* do not redistribute without his approval.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <unistd.h>
#include "real.h"
#define NBLOCKS 180
#define NT... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.