hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
1bb50e3efb233ec9977408f7d4dacff211fd89f3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2011-2016 Maxim Milakov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 1bb50e3efb233ec9977408f7d4dacff211fd89f3.cu | /*
* Copyright 2011-2016 Maxim Milakov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
b10d3430738edf3d02348900b4482c3ddb9732f5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* developed by zhujin
*/
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/coded_stream.h>
#include <cmath>
#include "caffe/common.hpp"
#include "ca... | b10d3430738edf3d02348900b4482c3ddb9732f5.cu |
/**
* developed by zhujin
*/
#include <google/protobuf/text_format.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/coded_stream.h>
#include <cmath>
#include "caffe/common.hpp"
#include "caffe/util/util_img.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/im2... |
eb41274d9837a4ce787145350b314d13373f80c0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Adapted from interp.cpp from Caffe util by Pauline Luc
// Originally developed by George Papandreou
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include ... | eb41274d9837a4ce787145350b314d13373f80c0.cu | // Adapted from interp.cpp from Caffe util by Pauline Luc
// Originally developed by George Papandreou
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAApplyUtils.cuh... |
45527dfe63dedd1f76357eca8c80bc115e9419aa.hip | // !!! This is a file automatically generated by hipify!!!
// -*- C++ -*-
// -*- coding: utf-8 -*-
//
// michael a.g. avzis <michael.aivazis@para-sim.com>
// parasim
// (c) 1998-2019 all rights reserved
//
// configuration
#include <portinfo>
// cuda
#include <hip/hip_runtime.h>
#include <hip/hip_cooperative_groups.h... | 45527dfe63dedd1f76357eca8c80bc115e9419aa.cu | // -*- C++ -*-
// -*- coding: utf-8 -*-
//
// michael a.g. aïvázis <michael.aivazis@para-sim.com>
// parasim
// (c) 1998-2019 all rights reserved
//
// configuration
#include <portinfo>
// cuda
#include <cuda_runtime.h>
#include <cooperative_groups.h>
// pyre
#include <pyre/journal.h>
// pull the declarations
#includ... |
be3c540d1fe712e8ce04d1a20c06c572bcc98c93.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 "computeCost.cu"
#include<chrono>
#include<iostream>
using namesp... | be3c540d1fe712e8ce04d1a20c06c572bcc98c93.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 "computeCost.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,2... |
28afff04a83c02ae73277927e55cab60bd034033.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// -------------------------------------------------------------
// CUDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// $Revision: 5633 $
// $Date: 2009-07-01 15:02:51 +... | 28afff04a83c02ae73277927e55cab60bd034033.cu | // -------------------------------------------------------------
// CUDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// $Revision: 5633 $
// $Date: 2009-07-01 15:02:51 +1000 (Wed, 01 Jul 2009) $
// -----------------------------------------------------------... |
dda83ea547ab4fe215c9d02ac7819037d9aa906c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | dda83ea547ab4fe215c9d02ac7819037d9aa906c.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... |
82894abc659efd934ee94499947f0775b6726bd9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <hip/hip_fp16.h>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <hipcub/hipcub.hpp>
#include "amir_cuda_util/cuda_util.h"
#include "torch_cum_maxmin.h"
namespace amirstan {
namespace plugin {
using nam... | 82894abc659efd934ee94499947f0775b6726bd9.cu | #include <cuda_fp16.h>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include <cub/cub.cuh>
#include "amir_cuda_util/cuda_util.h"
#include "torch_cum_maxmin.h"
namespace amirstan {
namespace plugin {
using namespace amirstan::cuda;
template <typename T, bool is_max>
struct BlockPrefixPairCumCallbackOp;
... |
7ec203f363665d48052af785fb82fc4cfd968ccc.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <math.h>
__global__ void somaMatrizGPU(int *d_vetA, int indice, int passo){
int id = blockDim.x * blockIdx.x + threadIdx.x;
if((id % indice) == 0)
d_vetA[id] += d_vetA[id+passo];
}
int main(){
... | 7ec203f363665d48052af785fb82fc4cfd968ccc.cu | #include <stdio.h>
#include <cuda.h>
#include <math.h>
__global__ void somaMatrizGPU(int *d_vetA, int indice, int passo){
int id = blockDim.x * blockIdx.x + threadIdx.x;
if((id % indice) == 0)
d_vetA[id] += d_vetA[id+passo];
}
int main(){
int h_Size = 16;
int j, i = 0;
int h_vetA[16]={1,2,3,4,5,6,7,8,9,1... |
1926ebdb503ddc36ebc56d00f21181c1aa3b544a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* sha1.cu CUDA Implementation of SHA1 Hashing
*
* Date: 12 June 2019
* Revision: 1
*
* Based on the public domain Reference Implementation in C, by
* Brad Conte, original code here:
*
* https://github.com/B-Con/c... | 1926ebdb503ddc36ebc56d00f21181c1aa3b544a.cu | /*
* sha1.cu CUDA Implementation of SHA1 Hashing
*
* Date: 12 June 2019
* Revision: 1
*
* Based on the public domain Reference Implementation in C, by
* Brad Conte, original code here:
*
* https://github.com/B-Con/crypto-algorithms
*
* This file is released into the Public Domain.
*/
/***********... |
47bf5ff17a5ac6d410d03fa6c121e98bed07639d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
{
__global__ void tx1mx(const int lengthX, const double *t, const double *x, double *z)
{
int i = threadIdx.x + blockIdx.x * blockDim.x;
if (i<lengthX)
{
z[i] += t[i]*x[i]*(1.0-x[i]);
}
}
... | 47bf5ff17a5ac6d410d03fa6c121e98bed07639d.cu | extern "C"
{
__global__ void tx1mx(const int lengthX, const double *t, const double *x, double *z)
{
int i = threadIdx.x + blockIdx.x * blockDim.x;
if (i<lengthX)
{
z[i] += t[i]*x[i]*(1.0-x[i]);
}
}
} |
1b1e65dc25bb9d98bb7fd18a08da7358688cbea3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "layers/operator.h"
#include <string.h>
// --------------------------------------------------------------------------
// kernel code
// minus_{gpu, cpu}
// ----------------------------------------------------------------... | 1b1e65dc25bb9d98bb7fd18a08da7358688cbea3.cu | #include "layers/operator.h"
#include <string.h>
// --------------------------------------------------------------------------
// kernel code
// minus_{gpu, cpu}
// --------------------------------------------------------------------------
// in-place negative transform bottom -> bottom
// bottom[i] = -bottom[i]
... |
f9c07f986c017142d80fab3b984429500d651f8f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// TrtSequenceOffset kernels are modified from FasterTransformer
/*
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserve... | f9c07f986c017142d80fab3b984429500d651f8f.cu | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// TrtSequenceOffset kernels are modified from FasterTransformer
/*
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... |
72c69d32f4e19ee037b455d3889d8977d031c68b.hip | // !!! This is a file automatically generated by hipify!!!
#include "./kern.cuh"
#include "megdnn/dtype.h"
#include "src/cuda/elemwise_helper.cuh"
#include "src/cuda/elemwise_helper_q4.cuh"
#include "src/cuda/kernel_common/diagnostic_prologue.cuh"
using namespace megdnn;
using namespace cuda;
using namespace elemwise_... | 72c69d32f4e19ee037b455d3889d8977d031c68b.cu | #include "./kern.cuh"
#include "megdnn/dtype.h"
#include "src/cuda/elemwise_helper.cuh"
#include "src/cuda/elemwise_helper_q4.cuh"
#include "src/cuda/kernel_common/diagnostic_prologue.cuh"
using namespace megdnn;
using namespace cuda;
using namespace elemwise_intl;
namespace {
template <typename ctype_dest, typename ... |
b520ef159010d7afa7f66d21cf90a56a367a3f8c.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... | b520ef159010d7afa7f66d21cf90a56a367a3f8c.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... |
c1f87fa5fdd7def94396dbb215f6f5bcd87a4be4.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2019 Xilinx 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
*... | c1f87fa5fdd7def94396dbb215f6f5bcd87a4be4.cu | /*
* Copyright 2019 Xilinx 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 agreed to in writin... |
0fea4207e2184c0e66b4f0e333ad0d90966951f3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void pool(unsigned char* image, unsigned char* new_image, unsigned height, unsigned width, int thread_count)
{
// process image
int offset = (blockIdx.x * blockDim.x + threadIdx.x)*4;
for (int i = o... | 0fea4207e2184c0e66b4f0e333ad0d90966951f3.cu | #include "includes.h"
__global__ void pool(unsigned char* image, unsigned char* new_image, unsigned height, unsigned width, int thread_count)
{
// process image
int offset = (blockIdx.x * blockDim.x + threadIdx.x)*4;
for (int i = offset; i < (width*height); i+=(thread_count*4) )
{
int x = i % (width * 2) * 2;
int y = ... |
895a799985d579d02cadaaa32e9636344d235a60.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include "Device.h"
#include "Slice.h"
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\*--------------------------------... | 895a799985d579d02cadaaa32e9636344d235a60.cu | #include <iostream>
#include "Device.h"
#include "Slice.h"
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\*---------------------------------------------------------------------*/
/*--------------------------------------*\
|* ... |
c6b73ed905eef6ddb22388f3eb38647c9f32ad7e.hip | // !!! This is a file automatically generated by hipify!!!
#include "./common/common.h"
#include <hip/hip_runtime.h>
#include <stdio.h>
#define N 1000*10
__global__ void Kernel_Memcpy(int* dst, int* src){
int thid = threadIdx.x;
int blid = blockIdx.x;
int i;
if(thid < 1 && blid < 1){
printf("device src:... | c6b73ed905eef6ddb22388f3eb38647c9f32ad7e.cu | #include "./common/common.h"
#include <cuda_runtime.h>
#include <stdio.h>
#define N 1000*10
__global__ void Kernel_Memcpy(int* dst, int* src){
int thid = threadIdx.x;
int blid = blockIdx.x;
int i;
if(thid < 1 && blid < 1){
printf("device src:\n");
for ( i = 0; i < N; i++) {
printf("%d ", src[i... |
b758d8fa22008343ad82d526895513f50982f7d1.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <helper_timer.h>
#include <helper_image.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
__global__ void imageKernel(const float *a, float *b, int im_width, int im_height, int pitch) {
int ix = threadIdx.x + ... | b758d8fa22008343ad82d526895513f50982f7d1.cu | #include <stdio.h>
#include <helper_timer.h>
#include <helper_image.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
__global__ void imageKernel(const float *a, float *b, int im_width, int im_height, int pitch) {
int ix = threadIdx.x + blockDim.x * blockIdx.x;
int iy = threadIdx.y + blockDim.y *... |
4bd488a8ed1606d35aebb6f3e291f195f3938e16.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "timer.hpp"
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>
#include <iostream>
__global__ void dot_product(int* x, int* y, int* dot, int N) {
int index = threadIdx.x + blockDim.x * block... | 4bd488a8ed1606d35aebb6f3e291f195f3938e16.cu | #include "timer.hpp"
#include <algorithm>
#include <iostream>
#include <stdio.h>
#include <vector>
#include <iostream>
__global__ void dot_product(int* x, int* y, int* dot, int N) {
int index = threadIdx.x + blockDim.x * blockIdx.x;
int stride = blockDim.x * gridDim.x;
__shared__ int cache[128];
int... |
4d1f9f0549bf5655464b3b56e535e119a454907c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void rotate_weights_kernel(const float *src_weight_gpu, float *weight_deform_gpu, int nweights, int n, int kernel_size, int reverse)
{
const int index = blockIdx.x*blockDim.x + threadIdx.x;
const in... | 4d1f9f0549bf5655464b3b56e535e119a454907c.cu | #include "includes.h"
__global__ void rotate_weights_kernel(const float *src_weight_gpu, float *weight_deform_gpu, int nweights, int n, int kernel_size, int reverse)
{
const int index = blockIdx.x*blockDim.x + threadIdx.x;
const int kernel_area = kernel_size * kernel_size;
const int i = index * kernel_area;
const int... |
5c8a8156c8cf0eec5588874e838efb818a4226dd.hip | // !!! This is a file automatically generated by hipify!!!
/*
* hugewiki.cu
*
* Created on: Feb 10, 2015
* Author: Wei Tan (wtan@us.ibm.com)
* Alternating Least Square for Matrix Factorization on CUDA 7.0+
* Code optimized for F = 100, and on cc 3.5, 3.7 platforms. Also tested in cc 5.2
*/
#include <cstd... | 5c8a8156c8cf0eec5588874e838efb818a4226dd.cu | /*
* hugewiki.cu
*
* Created on: Feb 10, 2015
* Author: Wei Tan (wtan@us.ibm.com)
* Alternating Least Square for Matrix Factorization on CUDA 7.0+
* Code optimized for F = 100, and on cc 3.5, 3.7 platforms. Also tested in cc 5.2
*/
#include <cstdio>
#include <cstdlib>
#include <cuda_runtime.h>
#include <... |
a0e2914e3666cbfbea3c6d0fa428d5339d5b0d7a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any... | a0e2914e3666cbfbea3c6d0fa428d5339d5b0d7a.cu | /*
* Copyright 1993-2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation and
* any modifications thereto. Any use, reproduction, disclosure, or distribution
* of this ... |
9365c5436526d886a46692a9089e557f05187a6c.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
#ifndef CAST
#define CAST(fun) fun ## f
#endif
#ifndef REAL2o3
#define REAL2o3 (REAL)0.6666666666666667
#endif
#ifndef REAL3o2
#define REAL3o2 (REAL)1.5
#... | 9365c5436526d886a46692a9089e557f05187a6c.cu | #include "includes.h"
extern "C" {
#ifndef REAL
#define REAL float
#endif
#ifndef CAST
#define CAST(fun) fun ## f
#endif
#ifndef REAL2o3
#define REAL2o3 (REAL)0.6666666666666667
#endif
#ifndef REAL3o2
#define REAL3o2 (REAL)1.5
#endif
... |
c841f46fa28d193b16ed338f6a0addeba588d510.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define BLK_CHN 64
#define WLEN 1
#define WLEN_N 2
__global__ void NormalizeL(const float *input, float *output) {
const int H = 256;
const int W = 256;
const int h = blockIdx.x * blockDim.x + threadIdx.x;
const int w = (b... | c841f46fa28d193b16ed338f6a0addeba588d510.cu | #define BLK_CHN 64
#define WLEN 1
#define WLEN_N 2
__global__ void NormalizeL(const float *input, float *output) {
const int H = 256;
const int W = 256;
const int h = blockIdx.x * blockDim.x + threadIdx.x;
const int w = (blockIdx.y * blockDim.y + threadIdx.y)*WLEN_N;
if (h >= H || w >= W) return;
const ... |
5745a91d050dd19a3cd126ec37421374825cce09.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 5745a91d050dd19a3cd126ec37421374825cce09.cu | /* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
58b57e0469037fe7ea8f92678b468d4234212158.hip | // !!! This is a file automatically generated by hipify!!!
#include<stdio.h>
#include<iostream>
using namespace std;
int main() {
int dCount;
hipGetDeviceCount(&dCount);
for(int i=0; i<dCount+3; i++)
{
hipDeviceProp_t prop;
hipError_t err = hipGetDeviceProperties(&prop, i);
if(er... | 58b57e0469037fe7ea8f92678b468d4234212158.cu | #include<stdio.h>
#include<iostream>
using namespace std;
int main() {
int dCount;
cudaGetDeviceCount(&dCount);
for(int i=0; i<dCount+3; i++)
{
cudaDeviceProp prop;
cudaError_t err = cudaGetDeviceProperties(&prop, i);
if(err != cudaSuccess)
cout<<"yes"<<endl;
pr... |
023c84d7c47a1d0e353c4d918b386cf9f6adc860.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// This file is part of SVO - Semi-direct Visual Odometry.
//
// Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch>
// (Robotics and Perception Group, University of Zurich, Switzerland).
//
// This file is subject ... | 023c84d7c47a1d0e353c4d918b386cf9f6adc860.cu | // This file is part of SVO - Semi-direct Visual Odometry.
//
// Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch>
// (Robotics and Perception Group, University of Zurich, Switzerland).
//
// This file is subject to the terms and conditions defined in the file
// 'LICENSE', which is part of this sour... |
4d29e8436eef3a7eeabe3af365aaf6cd51fd1053.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/native/Pool.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/hip/detail/TensorInfo.cuh>
#include <ATen/hip/detail/IndexUt... | 4d29e8436eef3a7eeabe3af365aaf6cd51fd1053.cu | #include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/native/Pool.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/cuda/detail/TensorInfo.cuh>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/cuda/detail/KernelUtils.h>
#include <THC/THCNumerics.cuh>
... |
62c4c6a79370198ce0fb00ae36c6bc99739786c8.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
#include <math.h>
// Includes
#include <stdio.h>
#include "../include/ContAcq-IntClk.h"
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
... | 62c4c6a79370198ce0fb00ae36c6bc99739786c8.cu | #include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
#include <math.h>
// Includes
#include <stdio.h>
#include "../include/ContAcq-IntClk.h"
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// includ... |
2fc40b2efe04b5771c1f99f1af6fb259a3e58808.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Assignment 1: ParallelSine
// CSCI 415: Networking and Parallel Computation
// Spring 2017
// Name(s):Chengyao Tang,Victoria Kyereme
//
// Sine implementation derived from slides here: http://15418.courses.cs.cmu.edu/spring2... | 2fc40b2efe04b5771c1f99f1af6fb259a3e58808.cu | //
// Assignment 1: ParallelSine
// CSCI 415: Networking and Parallel Computation
// Spring 2017
// Name(s):Chengyao Tang,Victoria Kyereme
//
// Sine implementation derived from slides here: http://15418.courses.cs.cmu.edu/spring2016/lecture/basicarch
// standard imports
#include <stdio.h>
#include <math.h>
#includ... |
4b536c9f65db165ef8ba1452db9567bfcca6996e.hip | // !!! This is a file automatically generated by hipify!!!
// Rishabh Agarwal - 18je0676
#include <bits/stdc++.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
using namespace std;
#define check(statement) do {\
hipError_t error = statement;\
if (error != hipSuccess) {\
cout... | 4b536c9f65db165ef8ba1452db9567bfcca6996e.cu | // Rishabh Agarwal - 18je0676
#include <bits/stdc++.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
using namespace std;
#define check(statement) do {\
cudaError_t error = statement;\
if (error != cudaSuccess) {\
cout << "Failed to run stmt " << __LINE__ << "\n";\
cout << "Go... |
a9073b4f3358d4ff034616dd38f4385b4e586c13.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void __word2vecNegFilt(int nrows, int ncols, int nwords, int *WA, int *WB, float *A, float *B, float lrate, float vexp) {} | a9073b4f3358d4ff034616dd38f4385b4e586c13.cu | #include "includes.h"
__global__ void __word2vecNegFilt(int nrows, int ncols, int nwords, int *WA, int *WB, float *A, float *B, float lrate, float vexp) {} |
b7603829bf9123e68e97346d0610e1eb3fd51eaf.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
__global__ void divergence_test_ker()
{
if(threadIdx.x % 2 == 0)
printf("threadIdx.x %d : This is an even thread.\n", threadIdx.x);
else
printf("threadIdx.x %d : This is an odd thread.\n",... | b7603829bf9123e68e97346d0610e1eb3fd51eaf.cu | #include <cuda_runtime.h>
#include <stdio.h>
__global__ void divergence_test_ker()
{
if(threadIdx.x % 2 == 0)
printf("threadIdx.x %d : This is an even thread.\n", threadIdx.x);
else
printf("threadIdx.x %d : This is an odd thread.\n", threadIdx.x);
}
__host__ int main()
{
cudaSetDevice(0);
... |
cd0279aa3c9f5c6659eae303fb0ec37e7d79f05e.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 "integrateOptimised.cu"
#include<chrono>
#include<iostream>
using... | cd0279aa3c9f5c6659eae303fb0ec37e7d79f05e.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 "integrateOptimised.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16... |
e89fab1e7b204034443e2006ef5dbe703d29b68c.hip | // !!! This is a file automatically generated by hipify!!!
#include "common.h"
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <math.h>
#include "kernel.hip"
__global__ void test_init(float *u, float *u_new, int N)
{
unsigned int i = threadIdx.x + blockIdx.x * blockDim.x;
unsigned int j = tjreadIdx.y + b... | e89fab1e7b204034443e2006ef5dbe703d29b68c.cu | #include "common.h"
#include <cuda_runtime.h>
#include <stdio.h>
#include <math.h>
#include "kernel.cu"
__global__ void test_init(float *u, float *u_new, int N)
{
unsigned int i = threadIdx.x + blockIdx.x * blockDim.x;
unsigned int j = tjreadIdx.y + blockIdx.y * blockDIm.y;
unsigned int idx = j * N + i;
if(... |
d0ea3d1d33548d095e871156058f95b802cc6dd3.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include <random>
#include <sys/time.h>
#include <rocblas.h>
#include <cudaProfiler.h>
#include <omp.h>
#define NUM_CORE (6)
#define EPS (1e-3)
static const char *_cudaGetErrorEnum(hipblasStatus_t error)
{
switch (err... | d0ea3d1d33548d095e871156058f95b802cc6dd3.cu |
#include <cstdio>
#include <cstdlib>
#include <random>
#include <sys/time.h>
#include <cublas_v2.h>
#include <cudaProfiler.h>
#include <omp.h>
#define NUM_CORE (6)
#define EPS (1e-3)
static const char *_cudaGetErrorEnum(cublasStatus_t error)
{
switch (error)
{
case CUBLAS_STATUS_SUCCESS:
... |
f785e5d5f7c0e254f4a4b1f7cd283756c91d1008.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lic... | f785e5d5f7c0e254f4a4b1f7cd283756c91d1008.cu | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
9453c1c248f92fa05e539b210194cfce782e1dd7.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... | 9453c1c248f92fa05e539b210194cfce782e1dd7.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... |
ea8e5b01433a9ca6b13f1de67b785bec9c8f8360.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include "stdio.h"
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/functional.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/transform_reduce.h>
#include <thrust/iterator/co... | ea8e5b01433a9ca6b13f1de67b785bec9c8f8360.cu | #include <iostream>
#include "stdio.h"
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/functional.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/transform_reduce.h>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/iterator/counting_itera... |
13ba5a67dc84019dd977587d6e82742bc9ee61fa.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright (c) 2021 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... | 13ba5a67dc84019dd977587d6e82742bc9ee61fa.cu | /* Copyright (c) 2021 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... |
ba3954727e068a0132c6bbef3eeb3df56f48f588.hip | // !!! This is a file automatically generated by hipify!!!
/* Includes, system */
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
/* DEVICE CODE */
__global__ void suma_2_enteros(int *d1, int *d2, int *sum){
*sum = *d1 + *d2;
}
/* HOST CODE*/
int main(int argc, char** argv)
{
int D... | ba3954727e068a0132c6bbef3eeb3df56f48f588.cu |
/* Includes, system */
#include <stdio.h>
#include <cuda.h>
#include <cuda_runtime.h>
/* DEVICE CODE */
__global__ void suma_2_enteros(int *d1, int *d2, int *sum){
*sum = *d1 + *d2;
}
/* HOST CODE*/
int main(int argc, char** argv)
{
int DeviceCount = 0;
int h_d1,h_d2,h_sum;
int *d_d1,*d_d2,*d_sum;
... |
9dfd10ce119a20f4a4d7e7252d6c375780a81306.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*This program calculates pi using a Simpson's Rule estimation of the
integral of arctangent from 0 to 1. When inputting the number of
iterations to perform, more iterations = more precision. The number of
iterations is given as a ... | 9dfd10ce119a20f4a4d7e7252d6c375780a81306.cu | /*This program calculates pi using a Simpson's Rule estimation of the
integral of arctangent from 0 to 1. When inputting the number of
iterations to perform, more iterations = more precision. The number of
iterations is given as a command line argument. If no argument is
provided, a default value of 20,000 is used. A... |
45de96d1694f48702b6200c715f14b15b54bfe33.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 2018 BlazingDB, Inc.
* Copyright 2018 Felipe Aramburu <felipe@blazingdb.com>
* Copyright 2018 Alexander Ocsa <alexander@blazingdb.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | 45de96d1694f48702b6200c715f14b15b54bfe33.cu | /*
* Copyright 2018 BlazingDB, Inc.
* Copyright 2018 Felipe Aramburu <felipe@blazingdb.com>
* Copyright 2018 Alexander Ocsa <alexander@blazingdb.com>
*
* 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 c... |
b198dac4182eeb6560ecebab6393daaa11347a01.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ------------
* This code is provided solely for the personal and private use of
* students taking the CSC367H1 course at the University of Toronto.
* Copying for purposes other than this use is expressly prohibited.
* All f... | b198dac4182eeb6560ecebab6393daaa11347a01.cu | /* ------------
* This code is provided solely for the personal and private use of
* students taking the CSC367H1 course at the University of Toronto.
* Copying for purposes other than this use is expressly prohibited.
* All forms of distribution of this code, whether as given or with
* any changes, are express... |
250705502e60c3efc01e8f4605b16c8ba54ba19d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "backend/common/imageOps.hpp"
#include "backend/common/vectorOps.hpp"
#include "cuda/util.hpp"
#include "../deviceBuffer.hpp"
#include "../deviceS... | 250705502e60c3efc01e8f4605b16c8ba54ba19d.cu | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "backend/common/imageOps.hpp"
#include "backend/common/vectorOps.hpp"
#include "cuda/util.hpp"
#include "../deviceBuffer.hpp"
#include "../deviceStream.hpp"
#include "backend/common/imageOps.hpp"
#define CUDABLOCKSIZE 512
namespace... |
291161e86565658589273934763a3073489c89d0.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime_api.h>
#include <time.h>
/****************************************************************************
This program gives an example of a poor way to implement a password cracker
in CUDA C. It is poor because it... | 291161e86565658589273934763a3073489c89d0.cu | #include <stdio.h>
#include <cuda_runtime_api.h>
#include <time.h>
/****************************************************************************
This program gives an example of a poor way to implement a password cracker
in CUDA C. It is poor because it acheives this with just one thread, which
is obviously not ... |
6e1bb3b6864c0d538a6a9595d3ccfa07d9b30c60.hip | // !!! This is a file automatically generated by hipify!!!
// CUDA Dependencies
#include <hip/hip_runtime.h>
// GL dependencies
#define GLM_FORCE_CUDA
#include <glm/glm.hpp>
namespace CuKee
{
} | 6e1bb3b6864c0d538a6a9595d3ccfa07d9b30c60.cu | // CUDA Dependencies
#include <cuda.h>
// GL dependencies
#define GLM_FORCE_CUDA
#include <glm/glm.hpp>
namespace CuKee
{
} |
af170e71d7ea74ff0c3c804afc0ac54630beb9db.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* 11.69:cc: entry function 'generate' used 63 registers, 0 bytes smem, 0 bytes lmem, 0 bytes cmem
* ... multiprocessor occupancy 50.0% : 1024 threads over 32 warps in 16 blocks
*
* benchmarking mandelbrot
* collecting ... | af170e71d7ea74ff0c3c804afc0ac54630beb9db.cu | /*
* 11.69:cc: entry function 'generate' used 63 registers, 0 bytes smem, 0 bytes lmem, 0 bytes cmem
* ... multiprocessor occupancy 50.0% : 1024 threads over 32 warps in 16 blocks
*
* benchmarking mandelbrot
* collecting 100 samples, 1 iterations each, in estimated 1193.660 s
* mean: 28.51441 ms, lb 28.4453... |
e5541a292ac7cb9612afda9c365e19b5380cc3e9.hip | // !!! This is a file automatically generated by hipify!!!
/*
* NAME: Tomas Vycas
*
* ASSIGNMENT GOALS ACHIEVED:
Block scan
Full scan for large vectors
Bank conflict avoidance optimization (BCAO)
*
* TIMINGS (BLOCK_SIZE = 128):
Block scan without BCAO = 1.10294 msecs
Block scan with BCAO = 0.47206 msecs
... | e5541a292ac7cb9612afda9c365e19b5380cc3e9.cu | /*
* NAME: Tomas Vycas
*
* ASSIGNMENT GOALS ACHIEVED:
∗ Block scan
∗ Full scan for large vectors
∗ Bank conflict avoidance optimization (BCAO)
*
* TIMINGS (BLOCK_SIZE = 128):
∗ Block scan without BCAO = 1.10294 msecs
∗ Block scan with BCAO = 0.47206 msecs
∗ Full scan without BCAO = 1.39594 msecs
∗ Full scan... |
f650bebc436cba5fb62d0e283e807751d3c9b872.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "debug.h"
#include "kernels_hip.cuh"
__device__ const int blockSize = 256;
__device__ const int warp = 32;
__device__ const int stackSize = 64;
__device__ const float eps2 = 0.025;
__device__ const floa... | f650bebc436cba5fb62d0e283e807751d3c9b872.cu |
#include <stdio.h>
#include "debug.h"
#include "kernels.cuh"
__device__ const int blockSize = 256;
__device__ const int warp = 32;
__device__ const int stackSize = 64;
__device__ const float eps2 = 0.025;
__device__ const float theta = 0.5;
__global__ void set_draw_array_kernel(float *ptr, float *x, float *y, int n... |
2cdc287d08be52f1ed30524f4e9f1f8332efd48d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
void CPUFunction() {
printf("Hello world from the CPU.\n");
}
__global__ void GPUFunction(int myid) {
printf("Hello world from GPU %d.\n", myid);
}
int main() {
// function to run on the cpu
CPUFunctio... | 2cdc287d08be52f1ed30524f4e9f1f8332efd48d.cu | #include <stdio.h>
void CPUFunction() {
printf("Hello world from the CPU.\n");
}
__global__ void GPUFunction(int myid) {
printf("Hello world from GPU %d.\n", myid);
}
int main() {
// function to run on the cpu
CPUFunction();
int deviceCount;
cudaGetDeviceCount(&deviceCount);
int device;
for (device... |
e2c4450802cc2b5ed713aba836f24ea8d2f2bbba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | e2c4450802cc2b5ed713aba836f24ea8d2f2bbba.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... |
a0afa0d27403dc927e432eb9215f2ac908c6f71c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define BLOCK_WIDTH 256
__global__ void histogram(char *d_array_in, int *d_array_out, int n)
{
__shared__ int shared_bin[128];
int i, index, blocks, iterations;
... | a0afa0d27403dc927e432eb9215f2ac908c6f71c.cu | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define BLOCK_WIDTH 256
__global__ void histogram(char *d_array_in, int *d_array_out, int n)
{
__shared__ int shared_bin[128];
int i, index, blocks, iterations;
blocks = (n - 1) / BLOCK_WIDTH + 1;
iterations = 127 / (blocks * BLOCK_WIDTH) +... |
3c2e99c9797a7db8904d0a6feebb42464ed50ba9.hip | // !!! This is a file automatically generated by hipify!!!
#include "cuda_core.cuh"
#define INCLUDED_FROM_DCONST_DEFINER
#include "dconsts_core.cuh"
#include "errorhandler_cuda.cuh"
#include "common/config.h"
void print_gpu_config()
{
int n_devices;
if (hipGetDeviceCount(&n_devices) != hipSuccess) CRASH("No C... | 3c2e99c9797a7db8904d0a6feebb42464ed50ba9.cu | #include "cuda_core.cuh"
#define INCLUDED_FROM_DCONST_DEFINER
#include "dconsts_core.cuh"
#include "errorhandler_cuda.cuh"
#include "common/config.h"
void print_gpu_config()
{
int n_devices;
if (cudaGetDeviceCount(&n_devices) != cudaSuccess) CRASH("No CUDA devices found!");
printf("Num CUDA devices found... |
239cae4189dc2c94c185c5038a251e385d4e4141.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <hipcub/hipcub.hpp>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/find_op.h"
namespace caffe2 {
template <typename T>
__global__ void FindKernel(
int num_needles,
int idx_size,
const T* idx,
... | 239cae4189dc2c94c185c5038a251e385d4e4141.cu | #include <cub/block/block_reduce.cuh>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/find_op.h"
namespace caffe2 {
template <typename T>
__global__ void FindKernel(
int num_needles,
int idx_size,
const T* idx,
const T* needles,
int* out,
int missing_value) {
int needle_idx =... |
4de9bc4f4f7a3865dc790a0b9ccd2de719738ad5.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <hiprand/hiprand_kernel.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>
#include "gpu_rndrd_kernel.cu"
#include<chrono>
#include<iostream>
using n... | 4de9bc4f4f7a3865dc790a0b9ccd2de719738ad5.cu | #include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <curand_kernel.h>
#include <stdlib.h>
#include <cuda.h>
#include <sys/time.h>
#include "gpu_rndrd_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
f439b30ddb542a70cff063f8a5f5b58b21d345bb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHDeviceUtils.cuh>
#include <vector>
#include <iostream>
int con... | f439b30ddb542a70cff063f8a5f5b58b21d345bb.cu | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCDeviceUtils.cuh>
#include <vector>
#include <iostream>
int const threadsPerBlock = sizeof(unsigned long long) * 8;
__device__ inline float devIoU(f... |
3467a0bcf57efa531f066c5a0a5513e923a29058.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// Created by igor on 17.05.2021.
//
#define BLOCK_X 32
#define BLOCK_Y 32
#define EPSILON 0.0000001
#define BATCH_SIZE 1024
#define raysPerPixel 100
#include "Renderer.cuh"
#include <hiprand/hiprand_kernel.h>
#include <hiprand/... | 3467a0bcf57efa531f066c5a0a5513e923a29058.cu | //
// Created by igor on 17.05.2021.
//
#define BLOCK_X 32
#define BLOCK_Y 32
#define EPSILON 0.0000001
#define BATCH_SIZE 1024
#define raysPerPixel 100
#include "Renderer.cuh"
#include <curand_kernel.h>
#include <curand.h>
#define clip(number) ( (number) = (number) < 0 ? 0 : (number) > 255 ? 255 : (number) )
__con... |
684edebb7c0d2a64d54b991f5df99c9859b1c946.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
@author Ahmad Abdelfattah
@author Azzam Haidar
... | 684edebb7c0d2a64d54b991f5df99c9859b1c946.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Ahmad Abdelfattah
@author Azzam Haidar
@generated from magmablas/zgeqrf_batched_smallsq.cu, normal z -> c, Thu Oct 8 23:... |
66bfcefd7182cd5e33db3fbde74d12bfb1e6565c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <gd.h>
#include <assert.h>
#include <time.h>
//array index to km
#define XIND2KM(x) ((x)*(dimx/nx))
#define YIND2KM(y) ((y)*(dimy/ny))
#define FRAMEDELAY 0
#define... | 66bfcefd7182cd5e33db3fbde74d12bfb1e6565c.cu | #include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <gd.h>
#include <assert.h>
#include <time.h>
//array index to km
#define XIND2KM(x) ((x)*(dimx/nx))
#define YIND2KM(y) ((y)*(dimy/ny))
#define FRAMEDELAY 0
#define PHEIGHT 1
#define PWIDTH 1
#define MAXCOLORS 256
#define PRESSURERANGE 2
#define MAXBLO... |
83b5385815ac6bc074b315e98785ee27dfe5a01e.hip | // !!! This is a file automatically generated by hipify!!!
//xfail:BOOGIE_ERROR
//--blockDim=64 --gridDim=64 --no-inline
//
#include "hip/hip_runtime.h"
__global__ void foo() {
__shared__ int a;
a = threadIdx.x;
}
| 83b5385815ac6bc074b315e98785ee27dfe5a01e.cu | //xfail:BOOGIE_ERROR
//--blockDim=64 --gridDim=64 --no-inline
//
#include "cuda.h"
__global__ void foo() {
__shared__ int a;
a = threadIdx.x;
}
|
a2d43dfe0010430492c1da0a5cea719150522ec8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* \file
* nd convolution transform on the GPU with CUDA.
*
* \todo support different boundary conditions
* \todo support other filter types (it's nice to have integer arithmentic sometimes)
* \todo respect stride vs shape ... | a2d43dfe0010430492c1da0a5cea719150522ec8.cu | /**
* \file
* nd convolution transform on the GPU with CUDA.
*
* \todo support different boundary conditions
* \todo support other filter types (it's nice to have integer arithmentic sometimes)
* \todo respect stride vs shape differences
* \todo relax warp alignment constraints for problem shape.
*/
#include "c... |
7f40d5549ba2ce2da0fb7cba99b45d0643ac5ddd.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 "cuda_radiation_kernel.cu"
#include<chrono>
#include<iostream>
us... | 7f40d5549ba2ce2da0fb7cba99b45d0643ac5ddd.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 "cuda_radiation_kernel.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16... |
da4e72de496579ff55cd4a19d450f28bfd35a1ef.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@author Tingxing Dong
@author Azzam Haidar
... | da4e72de496579ff55cd4a19d450f28bfd35a1ef.cu | /*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@author Tingxing Dong
@author Azzam Haidar
@precisions normal z -> s d c
*/
#include "magma_internal.h"
#include "magma_templat... |
e19bb57f2340538e2bb28cc71b9a708177b62c98.hip | // !!! This is a file automatically generated by hipify!!!
#include "luaT.h"
#include "TH.h"
#include "THH.h"
#include "THLogAdd.h" /* DEBUG: WTF */
#include <thrust/transform.h>
#include <thrust/reduce.h>
#include <thrust/transform_reduce.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include "uti... | e19bb57f2340538e2bb28cc71b9a708177b62c98.cu | #include "luaT.h"
#include "TH.h"
#include "THC.h"
#include "THLogAdd.h" /* DEBUG: WTF */
#include <thrust/transform.h>
#include <thrust/reduce.h>
#include <thrust/transform_reduce.h>
#include <thrust/functional.h>
#include <thrust/device_ptr.h>
#include "utils.h"
LUA_EXTERNC DLL_EXPORT int luaopen_libcunn(lua_State... |
77d94483716e31e85d56ce730451fbbe74f57f92.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*********************************************************************************
Implementing Breadth first search on CUDA using algorithm given in HiPC'07
paper "Accelerating Large Graph Algorithms on the GPU using CUDA"
Copyr... | 77d94483716e31e85d56ce730451fbbe74f57f92.cu | /*********************************************************************************
Implementing Breadth first search on CUDA using algorithm given in HiPC'07
paper "Accelerating Large Graph Algorithms on the GPU using CUDA"
Copyright (c) 2008 International Institute of Information Technology - Hyderabad.
All rights... |
83319e60dafe408b00baa8c5254c819c896da10d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include "timer.h"
#include "cuda_utils.h"
typedef float dtype;
#define N_ (8 * 1024 * 1024)
#define MAX_THREADS 256
#define MAX_BLOCKS 64
#define MIN(x,y) ((x < y) ? x : y)
/* return the ... | 83319e60dafe408b00baa8c5254c819c896da10d.cu | #include <stdlib.h>
#include <stdio.h>
#include "timer.h"
#include "cuda_utils.h"
typedef float dtype;
#define N_ (8 * 1024 * 1024)
#define MAX_THREADS 256
#define MAX_BLOCKS 64
#define MIN(x,y) ((x < y) ? x : y)
/* return the next power of 2 number that is larger than x */
unsigned int nextPow2( unsigned int x ) ... |
1c3455d6a1b718a060635eab204387aeffe309b1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "ImageBase.cuh"
namespace imagebase {
__global__ void resetImage_kernel(uint * pix,
float * depth,
uint maxInd)
{
unsigned ind = blockIdx.x*blockDim.x + threadIdx.x;
if(ind >=... | 1c3455d6a1b718a060635eab204387aeffe309b1.cu | #include "ImageBase.cuh"
namespace imagebase {
__global__ void resetImage_kernel(uint * pix,
float * depth,
uint maxInd)
{
unsigned ind = blockIdx.x*blockDim.x + threadIdx.x;
if(ind >= maxInd) return;
pix[ind] = 0;
depth[ind] = 0.f;
}
__global__ void resetImage2_kerne... |
bd4828201ac8bd6fad62498d6d715d26cd59ff6f.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <hip/hip_runtime.h>
#include <vector>
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#define BLOCK_WIDTH 512
/*
extern __shared__ stands for shared memory on device, which has two "warps" of 32 threads.
G... | bd4828201ac8bd6fad62498d6d715d26cd59ff6f.cu | #include <math.h>
#include <cuda.h>
#include <vector>
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
#define BLOCK_WIDTH 512
/*
extern __shared__ stands for shared memory on device, which has two "warps" of 32 threads.
Google CUDA shared memory and warps.
To replace extern __shared__ int _... |
8644f7a8200eb3dfdcace883e9fe9ddd57debd0d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#define MATRIX_SIZE 256
#define BLOCK_SIZE 16
using namespace std;
__global__ void matMul(float *x, float *y, float *z, int matrixSize){
float zTem... | 8644f7a8200eb3dfdcace883e9fe9ddd57debd0d.cu | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#define MATRIX_SIZE 256
#define BLOCK_SIZE 16
using namespace std;
__global__ void matMul(float *x, float *y, float *z, int matrixSize){
float zTemp = 0.0f;
__shared__ float xblkMat[BLOCK_SIZE*BLOCK_SIZE], yblkMat[BLOCK_SIZE*BLOCK_SI... |
97b5332af331330643416043766b70341f94ce85.hip | // !!! This is a file automatically generated by hipify!!!
// Fast CUDA implementation of the Hungarian algorithm.
// (maximum pay version)
//
// Satyendra Yadav and Paulo Lopes
//
// Annex to the paper: Paulo Lopes, Satyendra Yadav et al., "Fast CUDA Implementation of the Hungarian Algorithm."
//
//
// Classical vers... | 97b5332af331330643416043766b70341f94ce85.cu | // Fast CUDA implementation of the Hungarian algorithm.
// (maximum pay version)
//
// Satyendra Yadav and Paulo Lopes
//
// Annex to the paper: Paulo Lopes, Satyendra Yadav et al., "Fast CUDA Implementation of the Hungarian Algorithm."
//
//
// Classical version of the Hungarian algorithm:
// (This algorithm was modi... |
d515b366dc1d1b17a8140aeaad531c4630b8eb34.hip | // !!! This is a file automatically generated by hipify!!!
#include "Region.h"
#include <hip/hip_runtime.h>
// our kernel for edge updates
// parameters:
// g: graph
// epsilon: epsilon
// numThreadUpdates: number of updates in each thread
// lambdaGlobal: global lambda array
// runFlag: a flag that controls when we w... | d515b366dc1d1b17a8140aeaad531c4630b8eb34.cu | #include "Region.h"
#include <cuda.h>
// our kernel for edge updates
// parameters:
// g: graph
// epsilon: epsilon
// numThreadUpdates: number of updates in each thread
// lambdaGlobal: global lambda array
// runFlag: a flag that controls when we want to terminate the array
// rangeRandNums: random numbers (defined b... |
8a7bf3026fc0c90764385ee6d2d44ad8501403f3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2022 Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lice... | 8a7bf3026fc0c90764385ee6d2d44ad8501403f3.cu | /*
* Copyright 2022 Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University
*
* 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/license... |
4a0bdb05f008df464fc8f88b15f3640a9ed95a41.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#include <rocblas.h>
#include "prod_cuda.cuh"
#include "prod_kernel.cuh"
#define CUDA_CHECKED_RUN(E) \
{ ... | 4a0bdb05f008df464fc8f88b15f3640a9ed95a41.cu | #include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <iostream>
#include <cublas_v2.h>
#include "prod_cuda.cuh"
#include "prod_kernel.cuh"
#define CUDA_CHECKED_RUN(E) \
{ \
auto _status = E; ... |
dab7a838fbd44da398a32874e1189e492782700a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************** HEADERS *********************/
#include "./header/lbm_config.h"
#include "./header/lbm_phys.h"
#include <assert.h>
#include <stdlib.h>
__device__ static float get_cell_density(const float *cell) {
// vars
... | dab7a838fbd44da398a32874e1189e492782700a.cu | /******************** HEADERS *********************/
#include "./header/lbm_config.h"
#include "./header/lbm_phys.h"
#include <assert.h>
#include <stdlib.h>
__device__ static float get_cell_density(const float *cell) {
// vars
float res = 0.0;
// loop on directions
for (int k = 0; k < DIRECTIONS; k++)
r... |
26e754d040a1066107be7437b0c8a335d9f97c38.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "stdio.h"
#include <assert.h>
#include <cusparse_v2.h>
#include "interpolate.hh"
#define gpuErrchk_here(ans) { gpuAssert_here((ans), __FILE__, __LINE__); }
inline void gpuAssert_here(hipError_t code, const char *file, int ... | 26e754d040a1066107be7437b0c8a335d9f97c38.cu | #include "stdio.h"
#include <assert.h>
#include <cusparse_v2.h>
#include "interpolate.hh"
#define gpuErrchk_here(ans) { gpuAssert_here((ans), __FILE__, __LINE__); }
inline void gpuAssert_here(cudaError_t code, const char *file, int line, bool abort=true)
{
if (code != cudaSuccess)
{
fprintf(stderr,"GPUasse... |
4a02e1a84a98b9bb9e44bbf6d02ef37b3228cd8f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this soft... | 4a02e1a84a98b9bb9e44bbf6d02ef37b3228cd8f.cu | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
aba68f2b6cef0eccaa4c5e08b49ab7a6bff197e7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hpc/rll/cuda/rl_utils/entry.h"
#include "hpc/rll/cuda/rl_utils/gae_kernel.h"
namespace hpc {
namespace rll {
namespace cuda {
void GaeForward(
const std::vector<torch::Tensor>& inputs,
std::vector<torch::Tensor>&... | aba68f2b6cef0eccaa4c5e08b49ab7a6bff197e7.cu | #include "hpc/rll/cuda/rl_utils/entry.h"
#include "hpc/rll/cuda/rl_utils/gae_kernel.h"
namespace hpc {
namespace rll {
namespace cuda {
void GaeForward(
const std::vector<torch::Tensor>& inputs,
std::vector<torch::Tensor>& outputs,
float gamma,
float lambda) {
unsigned int index = 0;
const to... |
3f87c862601c79f7e1cd898863123d6895eb0ab9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
const int image_size = 4096;
const int filter_size = 3;
__global__ void conv2d(int* A, int* B, int* C, int N, int n)
{
int row = blockIdx.y * blockDim.y + threadIdx.y;
int col = blockIdx.x * blockDim.x + t... | 3f87c862601c79f7e1cd898863123d6895eb0ab9.cu | #include <iostream>
const int image_size = 4096;
const int filter_size = 3;
__global__ void conv2d(int* A, int* B, int* C, int N, int n)
{
int row = blockIdx.y * blockDim.y + threadIdx.y;
int col = blockIdx.x * blockDim.x + threadIdx.x;
const int offset = n / 2;
int row_i = threadIdx.y - offset;
int col_... |
d762dd68fca1ae956fa4a4c581869dd86f3e29f1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <torch/torch.h>
#include <cmath>
#include <vector>
// counting
// input N*3 int32 tensor output N*1 int64 tensor
__global__ void count_kernel(int N, const int *__restrict__ data,
... | d762dd68fca1ae956fa4a4c581869dd86f3e29f1.cu | #include <stdio.h>
#include <stdlib.h>
#include <torch/torch.h>
#include <cmath>
#include <vector>
// counting
// input N*3 int32 tensor output N*1 int64 tensor
__global__ void count_kernel(int N, const int *__restrict__ data,
int *__restrict__ out) {
int i = blockDim.x * blockIdx.x + t... |
7e2bb2d0eee8c244f10380540a41fbe6a4cd64ec.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 7e2bb2d0eee8c244f10380540a41fbe6a4cd64ec.cu | /*
* Copyright (c) 2018-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... |
89f929b2226f5208a499380fb2b456533f83f4b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "CImg.h"
using namespace cimg_library;
#define K 10
#define W 3
#define DIM_BLOQUE 32
#define SIGMA 0.9
char path[20] = "img... | 89f929b2226f5208a499380fb2b456533f83f4b0.cu |
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "CImg.h"
using namespace cimg_library;
#define K 10
#define W 3
#define DIM_BLOQUE 32
#define SIGMA 0.9
char path[20] = "img\\fing_xl.pgm";
__int64 ctr1 = 0, ctr2 = 0, freq = 0;
void ... |
28ea5b37bd27f571abc45e437c65090baf949e05.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "reduce.h"
__device__ float merge(float old,float opOutput,float *extraParams) {
return fmaxf(old,opOutput);
}
__device__ float update(float old,float opOutput,float *extraParams) {
return fmaxf(old,opOutp... | 28ea5b37bd27f571abc45e437c65090baf949e05.cu | #include "reduce.h"
__device__ float merge(float old,float opOutput,float *extraParams) {
return fmaxf(old,opOutput);
}
__device__ float update(float old,float opOutput,float *extraParams) {
return fmaxf(old,opOutput);
}
__device__ float op(float d1,float *extraParams) {
return d1;
}
__devi... |
e042f1b64f00244476a4145b84e7d389d05e7386.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) OpenMMLab. All rights reserved
#include <stdio.h>
#include <vector>
#include "common_cuda_helper.hpp"
#include "trt_cuda_helper.cuh"
#include "trt_plugin_helper.hpp"
static int const threadsPerBlock = sizeof(unsi... | e042f1b64f00244476a4145b84e7d389d05e7386.cu | // Copyright (c) OpenMMLab. All rights reserved
#include <stdio.h>
#include <vector>
#include "common_cuda_helper.hpp"
#include "trt_cuda_helper.cuh"
#include "trt_plugin_helper.hpp"
static int const threadsPerBlock = sizeof(unsigned long long int) * 8;
using mmcv::TensorDesc;
template <typename T>
__global__ void... |
02390da6f9a6107973536a2faaa379f9a9dac574.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include <cstdlib>
#include "cpu.h"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <ctime>
namespace StreamCompaction {
namespace CPU {
/**
* CPU scan (prefix sum).
*/
float scan(int n, int *odata, const int *idata) {
... | 02390da6f9a6107973536a2faaa379f9a9dac574.cu | #include <cstdio>
#include <cstdlib>
#include "cpu.h"
#include <cuda.h>
#include <cuda_runtime.h>
#include <ctime>
namespace StreamCompaction {
namespace CPU {
/**
* CPU scan (prefix sum).
*/
float scan(int n, int *odata, const int *idata) {
cudaEvent_t start, stop;
float ms_time = 0.0f;
cudaEventCreate(&start);... |
caaedd81f3714908d47113f21dc6df90accfec9f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include "mmul.h"
void mmul(hipblasHandle_t handle, const float* A, const float* B, float* C, int n) {
... | caaedd81f3714908d47113f21dc6df90accfec9f.cu | #include "cuda_runtime.h"
#include <cuda.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include "mmul.h"
void mmul(cublasHandle_t handle, const float* A, const float* B, float* C, int n) {
int lda = n;
int ldb = n;
int ldc = n;
const float bet = 1;
... |
bdbef625a9fdd89937af6de2670ec7ad7f1c63f5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0
// DeepSpeed Team
#include "general_kernels.h"
namespace cg = cooperative_groups;
template <typename T>
__global__ void column_sum_reduce(const T* __... | bdbef625a9fdd89937af6de2670ec7ad7f1c63f5.cu | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0
// DeepSpeed Team
#include "general_kernels.h"
namespace cg = cooperative_groups;
template <typename T>
__global__ void column_sum_reduce(const T* __restrict__ inp,
T* __restrict__ out,
... |
eebac494b47e5c518165091273b366630b0bac7e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <string>
#include <hip/hip_fp16.h>
#include "caffe/util/gpu_math_functions.cuh"
#include "caffe/util/math_functions.hpp"
namespace caffe {
#pragma clang diagnostic push
#pragma ide diagnostic ignored "CannotResolve"
temp... | eebac494b47e5c518165091273b366630b0bac7e.cu | #include <string>
#include <cuda_fp16.h>
#include "caffe/util/gpu_math_functions.cuh"
#include "caffe/util/math_functions.hpp"
namespace caffe {
#pragma clang diagnostic push
#pragma ide diagnostic ignored "CannotResolve"
template<typename Gtype, typename Wtype>
__global__ void AdaDeltaRegUpdateAllAndClear(int N,
... |
97a4237dd53696b3833dac6b89cc676f5906006f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms,... | 97a4237dd53696b3833dac6b89cc676f5906006f.cu | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
055d1c2736a4c8b5429829f088171dedd60b2128.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_xvel_plus_2_back;
int xdim0_update_halo_kernel2_xvel_plus_2_back_h = -1;
__constant__ int ydim0_update_halo_kernel2_xvel_plus_2_back;
int ydim0_update_halo... | 055d1c2736a4c8b5429829f088171dedd60b2128.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_xvel_plus_2_back;
int xdim0_update_halo_kernel2_xvel_plus_2_back_h = -1;
__constant__ int ydim0_update_halo_kernel2_xvel_plus_2_back;
int ydim0_update_halo_kernel2_xvel_plus_2_back_h = -1;
__constant__ int xdim1_update_halo_kernel2_xvel_plus_2... |
7dd859d2187ad2510ce2cd89b4e96566c5f1792d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright 2020 Stanford
*
* 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.apa... | 7dd859d2187ad2510ce2cd89b4e96566c5f1792d.cu | /* Copyright 2020 Stanford
*
* 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 agreed to in wri... |
0841ea396be9b9aae89e1f1809df740bef0aed8a.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 1.3.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
November 2010
@generated d Wed Nov 14 22:53:53 2012
@author Ichitaro Yamazaki
*/
#include "common... | 0841ea396be9b9aae89e1f1809df740bef0aed8a.cu | /*
-- MAGMA (version 1.3.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
November 2010
@generated d Wed Nov 14 22:53:53 2012
@author Ichitaro Yamazaki
*/
#include "common_magma.h"
#define PRECISION_d
#include "commonblas.h"
//
/... |
4584e3a7a84f2126a3c51f86c9c6edabcebd94e6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <cmath>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "glm/glm.hpp"
#include "utilities.h"
#include "kernel.h"
#include "gridStruct.h"
#include "inters... | 4584e3a7a84f2126a3c51f86c9c6edabcebd94e6.cu | #include <stdio.h>
#include <cuda.h>
#include <cmath>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "glm/glm.hpp"
#include "utilities.h"
#include "kernel.h"
#include "gridStruct.h"
#include "intersections.h"
#if PRESSURE == 1
#define DELTA_Q (float)(0.1*H)
#define... |
e2f264190ff03033e8c89c97cfb65e3afe80d57d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <assert.h>
#include <stdio.h>
#include "BetweennessCentrality.h"
// Number of thread blocks.
#define BLOCKS_COUNT 2
// Maximal number of threads per block.
#define MAX_THREADS_PER_BLOCK 768
__global__ void vertexParall... | e2f264190ff03033e8c89c97cfb65e3afe80d57d.cu | #include <assert.h>
#include <stdio.h>
#include "BetweennessCentrality.h"
// Number of thread blocks.
#define BLOCKS_COUNT 2
// Maximal number of threads per block.
#define MAX_THREADS_PER_BLOCK 768
__global__ void vertexParallelBC(
int *sources,
int sourcesPerBlock,
int sourceCount,
Graph *g,
... |
cebf3ded9d915e1b8e4985686491342cbca214ec.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2021 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... | cebf3ded9d915e1b8e4985686491342cbca214ec.cu | // Copyright (c) 2021 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 requir... |
419b18d1e16d81b852091413a68ff45a3335d039.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <rocm_smi/rocm_smi.h>
int init(){
if(nvmlInit() == RSMI_STATUS_SUCCESS){
return 0;
} else {
return 1;
}
}
int shutdown(){
if(nvmlShutdown() == RSMI_STATUS_SUCCESS){
return 0;
} else {
return 1;
}... | 419b18d1e16d81b852091413a68ff45a3335d039.cu | #include <stdio.h>
#include <stdlib.h>
#include <nvml.h>
int init(){
if(nvmlInit() == NVML_SUCCESS){
return 0;
} else {
return 1;
}
}
int shutdown(){
if(nvmlShutdown() == NVML_SUCCESS){
return 0;
} else {
return 1;
}
}
int handleReturnValue(nvmlReturn_t returnValue){
if(returnValue == NVML_SUCCE... |
d8061e2569c5e17a8b345b1792ea80f25cdd9cbd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <vector>
#include <cstdio>
#include <exception>
/** macro to throw a runtime error */
#define THROW(fmt, ...) \
do { ... | d8061e2569c5e17a8b345b1792ea80f25cdd9cbd.cu | #include <iostream>
#include <vector>
#include <cstdio>
#include <exception>
/** macro to throw a runtime error */
#define THROW(fmt, ...) \
do { \
std::string msg; ... |
890815334b5a697e20ea6f34abb9a265740b9349.hip | // !!! This is a file automatically generated by hipify!!!
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <srad.h>
// includes, project
#include <hip/hip_runtime.h>
// includes, kernels
#include <srad_kernel.cu>
#ifdef GEM5_FUSION
#include <stdint.h>
extern... | 890815334b5a697e20ea6f34abb9a265740b9349.cu | // includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <srad.h>
// includes, project
#include <cuda.h>
// includes, kernels
#include <srad_kernel.cu>
#ifdef GEM5_FUSION
#include <stdint.h>
extern "C" {
void m5_work_begin(uint64_t workid, uint64_t threadid);
void m5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.