hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
711e79a86f6651f728d7285bcf8a30740b6ec287.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/common.h"
#include <stdio.h>
#include <stdlib.h>
#include <cusparse_v2.h>
#include <hip/hip_runtime.h>
/*
* This is an example demonstrating usage of the cuSPARSE library to perform a
* sparse matrix-vector multiplication on randomly gene... | 711e79a86f6651f728d7285bcf8a30740b6ec287.cu | #include "../common/common.h"
#include <stdio.h>
#include <stdlib.h>
#include <cusparse_v2.h>
#include <cuda.h>
/*
* This is an example demonstrating usage of the cuSPARSE library to perform a
* sparse matrix-vector multiplication on randomly generated data.
*/
/*
* M = # of rows
* N = # of columns
*/
int M = 1... |
aa5dfd10047cec2d41b95a0bbc50efb71525410e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "../shared/timer.hpp"
#include "../shared/tigr_utilities.hpp"
#include "../shared/graph.hpp"
#include "../shared/virtual_graph.hpp"
#include "../shared/globals.hpp"
#include "../shared/argument_parsing.hpp"
#include "../sh... | aa5dfd10047cec2d41b95a0bbc50efb71525410e.cu |
#include "../shared/timer.hpp"
#include "../shared/tigr_utilities.hpp"
#include "../shared/graph.hpp"
#include "../shared/virtual_graph.hpp"
#include "../shared/globals.hpp"
#include "../shared/argument_parsing.hpp"
#include "../shared/gpu_error_check.cuh"
__global__ void kernel(unsigned int numParts,
unsigne... |
85fa1f4eeed95e0cffdfea92516d8080e44ac83c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "IPSet.cuh"
#include <fstream>
#include <string>
#include <vector>
#include <thrust/sequence.h>
#include <thrust/execution_policy.h>
#include "device_launch_parameters.h"
IPSet& IPSet::operator=(const IPSet& other)
{
if... | 85fa1f4eeed95e0cffdfea92516d8080e44ac83c.cu | #include "IPSet.cuh"
#include <fstream>
#include <string>
#include <vector>
#include <thrust/sequence.h>
#include <thrust/execution_policy.h>
#include "device_launch_parameters.h"
IPSet& IPSet::operator=(const IPSet& other)
{
if (this == &other)
return *this;
Size = other.Size;
Setup = other.Setup;
GpuAssert(... |
32dc83c8d79451aa022b25d6ca2289fd216d79ed.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/hip/HIPContext.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <c10/util/Exception.h>
#include <THH/THHG... | 32dc83c8d79451aa022b25d6ca2289fd216d79ed.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorUtils.h>
#include <ATen/Utils.h>
#include <c10/util/Exception.h>
#include <THC/THCGeneral.h>
#include <THC/THCNumerics.cuh>
#include <algorithm>
#include <cfloat>
#in... |
fa3b16f84772601f2a149455369ee83c7bb2767e.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
__global__ void misaligned_write_test(float* a, float* b, float *c, int size, int offset)
{
int gid = blockIdx.x * blockDim.x + threa... | fa3b16f84772601f2a149455369ee83c7bb2767e.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
__global__ void misaligned_write_test(float* a, float* b, float *c, int size, int offset)
{
int gid = blockIdx.x * blockDim.x + threadIdx.x;
int k = gid + offset;
if (k < size)
c[k] = a[gid]... |
8d074722b63110f259a8a5911dbadd4fd2da4d7e.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... | 8d074722b63110f259a8a5911dbadd4fd2da4d7e.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 ... |
119a226cfb6dc6d48d192fbc2ad59f71fb1a1d3d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Rippling.h"
#include <iostream>
#include <assert.h>
#include <assert.h>
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\*-------... | 119a226cfb6dc6d48d192fbc2ad59f71fb1a1d3d.cu | #include "Rippling.h"
#include <iostream>
#include <assert.h>
#include <assert.h>
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\*---------------------------------------------------------------------*/
/*--------------------... |
46196e1a30b72f9b52111ebefb64738a2d1b1dc8.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 <THH/THH.h>
#include <THH/THHDeviceUtils.cuh>
#include <vector>
#include <iostream>
int const threadsPerBlock = sizeof(unsig... | 46196e1a30b72f9b52111ebefb64738a2d1b1dc8.cu | // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <ATen/ATen.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(float const * const a, float const *... |
963417fbbf953f2370d737d987487ca1b5a30c99.hip | // !!! This is a file automatically generated by hipify!!!
/*-----------------------------------------------------------
** gaussian.cu -- The program is to solve a linear system Ax = b
** by using Gaussian Elimination. The algorithm on page 101
** ("Foundations of Parallel Programming") is used.
** The seq... | 963417fbbf953f2370d737d987487ca1b5a30c99.cu | /*-----------------------------------------------------------
** gaussian.cu -- The program is to solve a linear system Ax = b
** by using Gaussian Elimination. The algorithm on page 101
** ("Foundations of Parallel Programming") is used.
** The sequential version is gaussian.c. This parallel
** implem... |
1653149f33c164fece4201e08e0bd91dee8f6473.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... | 1653149f33c164fece4201e08e0bd91dee8f6473.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... |
c9d17facc90ad85573af1f251bef9e78c0014a3d.hip | // !!! This is a file automatically generated by hipify!!!
// random generator includes
#include <thrust/random/linear_congruential_engine.h>
#include <thrust/random/xor_combine_engine.h>
#include <thrust/random.h>
#include <hiprand/hiprand_kernel.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/for_e... | c9d17facc90ad85573af1f251bef9e78c0014a3d.cu | // random generator includes
#include <thrust/random/linear_congruential_engine.h>
#include <thrust/random/xor_combine_engine.h>
#include <thrust/random.h>
#include <curand_kernel.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/for_each.h>
#include <thrust/host_vector.h>
#include <thrust/device_vec... |
514cdca217ba7926c4fc7080aedbb4cabfb8e21b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you... | 514cdca217ba7926c4fc7080aedbb4cabfb8e21b.cu | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
5f140d5ddd356c21a0b46c06b92ee100b5ffecb9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel4_plus_2_front;
int xdim0_update_halo_kernel4_plus_2_front_h = -1;
__constant__ int ydim0_update_halo_kernel4_plus_2_front;
int ydim0_update_halo_kernel4_plu... | 5f140d5ddd356c21a0b46c06b92ee100b5ffecb9.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel4_plus_2_front;
int xdim0_update_halo_kernel4_plus_2_front_h = -1;
__constant__ int ydim0_update_halo_kernel4_plus_2_front;
int ydim0_update_halo_kernel4_plus_2_front_h = -1;
__constant__ int xdim1_update_halo_kernel4_plus_2_front;
int xdim1_upd... |
2fc9c54169667c620b12cdb6d77004ed2fb76da4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "RiemannFitOnGPU.h"
#include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"
template <typename TrackerTraits>
void HelixFitOnGPU<TrackerTraits>::launchRiemannKernels(HitsView const *hv,
... | 2fc9c54169667c620b12cdb6d77004ed2fb76da4.cu | #include "RiemannFitOnGPU.h"
#include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h"
template <typename TrackerTraits>
void HelixFitOnGPU<TrackerTraits>::launchRiemannKernels(HitsView const *hv,
uint32_t nhits,
... |
3b10cc323d8c8d81276f9f6807a50cdb6cdc5105.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>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
#include "../include/ContAcq-IntClk.h"
... | 3b10cc323d8c8d81276f9f6807a50cdb6cdc5105.cu | #include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
#include <math.h>
// Includes
#include <stdio.h>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
#include "../include/ContAcq-IntClk.h"
//#include <shrQATest.h>
//#include <shrUtils.h>
// includ... |
721db38dd49b0ec1a3049dfde18cd22bc6bd0c1b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//--blockDim=4 --gridDim=1
/*
* This kernel suffers from barrier divergence.
* Can you see why?
*/
__global__ void inloop(/* no inputs or outputs
in this illustrative
example */)... | 721db38dd49b0ec1a3049dfde18cd22bc6bd0c1b.cu | //--blockDim=4 --gridDim=1
/*
* This kernel suffers from barrier divergence.
* Can you see why?
*/
__global__ void inloop(/* no inputs or outputs
in this illustrative
example */) {
__shared__ int A[2][4];
int buf, i, j;
int tid = threadIdx.x;
int x = tid ==... |
9614725854c767e64fa4ea72e97f8ec8721e17a2.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <math.h>
#define NUM_BLOCKS 1024
__global__ void primecuda( int *dev_num, int *arr)
{
int blckid = blockIdx.x; //Handle the data at the block index
int tid = threadIdx.x;
int gid = 1+(*dev_num/1024... | 9614725854c767e64fa4ea72e97f8ec8721e17a2.cu | #include <cuda.h>
#include <stdio.h>
#include <math.h>
#define NUM_BLOCKS 1024
__global__ void primecuda( int *dev_num, int *arr)
{
int blckid = blockIdx.x; //Handle the data at the block index
int tid = threadIdx.x;
int gid = 1+(*dev_num/1024);
int bid = (blckid*gid) + tid;
int flag, i;
flag = 0;
if(bid <= ... |
70d64ed1d6c6762c1f36325f6d839b43da6d960e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuUtils_hip.cuh"
// wczeniej nazywao si normalizeVectorSum
__global__ void reciprocal(double * v, int n){
// inverse values of elements in a vector
// grid stride loop
for (int i = blockIdx.x * blockDim.x + thread... | 70d64ed1d6c6762c1f36325f6d839b43da6d960e.cu | #include "cuUtils.cuh"
// wcześniej nazywało się normalizeVectorSum
__global__ void reciprocal(double * v, int n){
// inverse values of elements in a vector
// grid stride loop
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x){
if (v[i] != 0.0){
v[i] = 1.0 / v[i];
... |
7af2aa2caf210c9c728da8d1477729d13d27cfac.hip | // !!! This is a file automatically generated by hipify!!!
/** @internal
** @file: quickshift.cpp
** @author: Brian Fulkerson
** @author: Andrea Vedaldi
** @brief: Quickshift command line
**/
#include <math.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include "hip/hip_runtime... | 7af2aa2caf210c9c728da8d1477729d13d27cfac.cu | /** @internal
** @file: quickshift.cpp
** @author: Brian Fulkerson
** @author: Andrea Vedaldi
** @brief: Quickshift command line
**/
#include <math.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include "cuda_runtime.h"
#include "quickshift_common.h"
#include "my_functions.h"
... |
4f14a84bcf0e1febe26b6741a49ea054f8df7040.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// boundary.cu
//
// CUDA kernels for applying periodic boundary conditions.
//
__global__ void
periodic_bc_x_kernel(real *f)
{
int yi = threadIdx.x + blockDim.x * blockIdx.x + NGHOST;
int zi = threadIdx.y + blockDim.y * blockIdx... | 4f14a84bcf0e1febe26b6741a49ea054f8df7040.cu | // boundary.cu
//
// CUDA kernels for applying periodic boundary conditions.
//
__global__ void
periodic_bc_x_kernel(real *f)
{
int yi = threadIdx.x + blockDim.x * blockIdx.x + NGHOST;
int zi = threadIdx.y + blockDim.y * blockIdx.y + NGHOST;
f[vfidx(0, yi, zi)] = f[vfidx(NX + NGHOST - 4, yi, zi)];
f[vfidx(1, yi, ... |
29ac929eefb419a6e83e82ff355ba608f4bd1ce6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime_api.h>
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#include "kernels_hip.cuh"
__device__ __forceinline__
int get_polarity(int id) {
... | 29ac929eefb419a6e83e82ff355ba608f4bd1ce6.cu | #include <stdio.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include <curand.h>
#include <curand_kernel.h>
#include "kernels.cuh"
__device__ __forceinline__
int get_polarity(int id) {
// If id is an even number, 1 will be returned.
// If id is an odd number, -1 will be return... |
8_share_reduce.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<iostream>
#include<addTest.h>
#define DIM 1024
__global__ void reduceUnroll4(int *src, int *dst, int num) {
unsigned int tid = threadIdx.x;
unsigned int id = blockIdx.x * blockDim.x * 4 + threadIdx.x;
if (tid >= num)... | 8_share_reduce.cu | #include<iostream>
#include<addTest.h>
#define DIM 1024
__global__ void reduceUnroll4(int *src, int *dst, int num) {
unsigned int tid = threadIdx.x;
unsigned int id = blockIdx.x * blockDim.x * 4 + threadIdx.x;
if (tid >= num) return;
int* data = src + blockIdx.x * blockDim.x * 4;
if (id + 3 * blockDim.x < nu... |
0b3d9ba93cf43c4d1e773128441f4f5d68269cdc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* spmm_csc_driver.cu
* Copyright (C) 2020
* Aravind SUKUMARAN RAJAM (asr) <aravind_sr@outlook.com>
*
* Distributed under terms of the GNU LGPL3 license.
*/
#include "mm_helper.hpp"
#include "sparse_representation.hpp"
#in... | 0b3d9ba93cf43c4d1e773128441f4f5d68269cdc.cu | /*
* spmm_csc_driver.cu
* Copyright (C) 2020
* Aravind SUKUMARAN RAJAM (asr) <aravind_sr@outlook.com>
*
* Distributed under terms of the GNU LGPL3 license.
*/
#include "mm_helper.hpp"
#include "sparse_representation.hpp"
#include <iostream>
#define BLK_SIZE 32
void check_dmat(double* a, double *b, unsigned in... |
18274d7d9a24b1b85f03e4ef803798957b97699f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__device__ int f () { return 21; }
__global__ void vDisp(const float *A, const float *B, int ds)
{
int idx = blockIdx.x * block_size + threadIdx.x; // create typical 1D thread index from built-in variables
prin... | 18274d7d9a24b1b85f03e4ef803798957b97699f.cu | #include "includes.h"
__device__ int f () { return 21; }
__global__ void vDisp(const float *A, const float *B, int ds)
{
int idx = blockIdx.x * block_size + threadIdx.x; // create typical 1D thread index from built-in variables
printf("idx = %d, ds = %d\n", idx, ds);
if (idx < ds)
printf("Device: [%d], \t%f\t%f \n", id... |
8674a8c6333d21cabd3a28b4b0bd668bdb0671c1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
__global__ void thread(float *a) {
a[threadIdx.x] = threadIdx.x;
}
int main(void) {
const int N = 1025;
float *a;
hipMallocManaged(&a, N*sizeof(float));
hipLaunchKernelGGL(( thread), dim3(4),dim3(N), 0, ... | 8674a8c6333d21cabd3a28b4b0bd668bdb0671c1.cu | #include <cstdio>
__global__ void thread(float *a) {
a[threadIdx.x] = threadIdx.x;
}
int main(void) {
const int N = 1025;
float *a;
cudaMallocManaged(&a, N*sizeof(float));
thread<<<4,N>>>(a);
cudaDeviceSynchronize();
for (int i=0; i<N; i++)
printf("%d %g\n",i,a[i]);
cudaFree(a);
}
|
98d841bf450717db1ba2b96a5f1cfb1bb2a094ba.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/TensorUtils.h>
#include <ATen/hip/Atomic.cuh>
#include <ATen/hip/HIPContext.h>
#incl... | 98d841bf450717db1ba2b96a5f1cfb1bb2a094ba.cu | #define TORCH_ASSERT_ONLY_METHOD_OPERATORS
#include <ATen/core/Tensor.h>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/TensorUtils.h>
#include <ATen/cuda/Atomic.cuh>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/core/TensorAccessor.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <... |
8aa4a20dba1e6bf1883c044ac5b21c693254ce99.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "conv_op.hpp"
namespace Shadow {
namespace Vision {
#if defined(USE_ROCM)
template <typename T>
__global__ void KernelIm2Col(const T *in_data, int offset, int count, int in_c,
int in_h, int i... | 8aa4a20dba1e6bf1883c044ac5b21c693254ce99.cu | #include "conv_op.hpp"
namespace Shadow {
namespace Vision {
#if defined(USE_CUDA)
template <typename T>
__global__ void KernelIm2Col(const T *in_data, int offset, int count, int in_c,
int in_h, int in_w, int kernel_size, int stride,
int pad, int dilation, in... |
3f2fb60f4f07b055e56ac58f20a8f9653f14767a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2017-2020 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.... | 3f2fb60f4f07b055e56ac58f20a8f9653f14767a.cu | /*
* Copyright 2017-2020 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 docum... |
0d12f35fa68a4073639e1154772a87df21b82f44.hip | // !!! This is a file automatically generated by hipify!!!
#include <sys/time.h>
#include <hip/hip_runtime.h>
#include <stdio.h>
#define HANDLE_ERROR( err ) ( HandleError( err, __FILE__, __LINE__ ) )
static void HandleError( hipError_t err, const char *file, int line )
{
if (err != hipSuccess)
{
pr... | 0d12f35fa68a4073639e1154772a87df21b82f44.cu | #include <sys/time.h>
#include <cuda.h>
#include <stdio.h>
#define HANDLE_ERROR( err ) ( HandleError( err, __FILE__, __LINE__ ) )
static void HandleError( cudaError_t err, const char *file, int line )
{
if (err != cudaSuccess)
{
printf( "Error: %s in %s at line %d\n", cudaGetErrorString( err ),
... |
a1c8780fa995364f15526d0667037d1b39502688.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#ifndef __HIPCC__
#define __HIPCC__
#endif
#include <hip/hip_runtime.h>
#include <hip/device_functions.h>
#include <hip/hip_runtime_api.h>
#include<time.h>
#include <stdio.h>
#define nano 1000... | a1c8780fa995364f15526d0667037d1b39502688.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#ifndef __CUDACC__
#define __CUDACC__
#endif
#include <cuda.h>
#include <device_functions.h>
#include <cuda_runtime_api.h>
#include<time.h>
#include <stdio.h>
#define nano 1000000L
__global__ void dijkstras(int *a, int *b, int *n)
{
int i;
int d[10],... |
24701e647dd0bdec3fd4a375e022814dd61065db.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hip/hip_runtime_api.h"
#include <inttypes.h>
#include "binomial.h"
extern "C" __global__ void finalPut_kernel(double* output, double* uPow, double* dPow,
int32_t n, double u, do... | 24701e647dd0bdec3fd4a375e022814dd61065db.cu | #include "cuda.h"
#include "cuda_runtime_api.h"
#include <inttypes.h>
#include "binomial.h"
extern "C" __global__ void finalPut_kernel(double* output, double* uPow, double* dPow,
int32_t n, double u, double d, double strike, double S0) {
for (int32_t i = blockIdx.x * blockD... |
70d5525fb10df7246ca3c3f23a54400cec96ac54.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @file cudasafe.cu
* @author lvaro Snchez Gonzlez <alvarosg@usal.es>
* @date Mon Jul 23 2012
*
* Copyright (c) 2012 lvaro Snchez Gonzlez
*
* @brief Implementacin de la cabecera cudasafe.h. Este fichero se compila con el compilador de CUDA.
*
... | 70d5525fb10df7246ca3c3f23a54400cec96ac54.cu | /**
* @file cudasafe.cu
* @author Álvaro Sánchez González <alvarosg@usal.es>
* @date Mon Jul 23 2012
*
* Copyright (c) 2012 Álvaro Sánchez González
*
* @brief Implementación de la cabecera cudasafe.h. Este fichero se compila con el compilador de CUDA.
*
*/
#include "cudasafe.h"
bool CudaSafe(cudaError_... |
0c6d0ddb215f936f0d38b513a9dbbe18b460e9b8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/TensorUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <THH/THHTensorMathReduce.cuh>
#include <THH/THHTensorSort.cuh>
#include ... | 0c6d0ddb215f936f0d38b513a9dbbe18b460e9b8.cu | #include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/TensorUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <THC/THCTensorMathReduce.cuh>
#include <THC/THCTensorSort.cuh>
#include <THC/THCThrustAllocator.cuh>
#include <c10/macros/Macros.h>
#include <ATen/Accumulate... |
bb2ce0ea441ca65d94d0cfc3ac49edffb87d0da3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "add_hip.cuh"
__global__ void add(int a, int b, int *c)//kernelgpu
{
*c = a + b;
}
int add(int a,int b)
{
int c;
int *dev_c;
hipMalloc((void**)&dev_c, sizeof(int));//gpu
hipLaunchKernelGGL(... | bb2ce0ea441ca65d94d0cfc3ac49edffb87d0da3.cu | #include "add.cuh"
__global__ void add(int a, int b, int *c)//kernel函数,在gpu上运行。
{
*c = a + b;
}
int add(int a,int b)
{
int c;
int *dev_c;
cudaMalloc((void**)&dev_c, sizeof(int));//分配gpu的内存,第一个参数指向新分配内存的地址,第二个参数是分配内存的大小。
add<<<1,1>>>(a, b, dev_c);//调用kernel函数,<<<1,1>>>指gpu启动1个线程块,每个线程块... |
a70070a52a9396195c6c9677276411e91584abdc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <chrono>
using namespace std;
void checkError(hipError_t e)
{
if (e != hipSuccess)
{
std::cerr << "CUDA error: " << int(e) << " : " << hipGetErrorString(e) << '\n';
abort();
}
}
/... | a70070a52a9396195c6c9677276411e91584abdc.cu | #include <iostream>
#include <chrono>
using namespace std;
void checkError(cudaError_t e)
{
if (e != cudaSuccess)
{
std::cerr << "CUDA error: " << int(e) << " : " << cudaGetErrorString(e) << '\n';
abort();
}
}
// code that will run on the GPU, but can call it from the CPU
__global__
void add(int... |
5a35f696d74df6842592c066c64d6cf2a463472d.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 "amir_cuda_util/cuda_util.h"
#include "grid_sample.h"
//// the code copy from
/// https://github.com/pytorch/pytorch/blob/ec683299ebabf29... | 5a35f696d74df6842592c066c64d6cf2a463472d.cu | #include <cuda_fp16.h>
#include <stdio.h>
#include <algorithm>
#include <cmath>
#include "amir_cuda_util/cuda_util.h"
#include "grid_sample.h"
//// the code copy from
/// https://github.com/pytorch/pytorch/blob/ec683299ebabf297a3504c76248d37be830e4342/aten/src/ATen/native/cuda/GridSampler.cuh
//// and
/// https://gi... |
11d868a296be3314a40e6c063698a963307ef202.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void prime( int *a, int *b, int *c ) {
int tid = (blockIdx.x*blockDim.x) + threadIdx.x; // this thread handles the data at its thread id
if (tid < vector_size){
c[tid] = a[tid] + b[tid]; ... | 11d868a296be3314a40e6c063698a963307ef202.cu | #include "includes.h"
__global__ void prime( int *a, int *b, int *c ) {
int tid = (blockIdx.x*blockDim.x) + threadIdx.x; // this thread handles the data at its thread id
if (tid < vector_size){
c[tid] = a[tid] + b[tid]; // add vectors together
}
} |
ee430137baf5fc6e9e7dac30ec7f2067f584e80f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Intro to GPU Programming/
/ Module 7 Assignment
//
//
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <assert.h>
#include <time.h>
#include <math.h>
static const uint32_t DEFAULT_NUM_BLOCK... | ee430137baf5fc6e9e7dac30ec7f2067f584e80f.cu | // Intro to GPU Programming/
/ Module 7 Assignment
//
//
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <assert.h>
#include <time.h>
#include <math.h>
static const uint32_t DEFAULT_NUM_BLOCKS = 2048;
....
static const int DEFAULT_SEED = -1;
static float MIN_VAL = -10000.0;
// ... |
fa7a206ae9131daa471b6eb6fffdd9815c226b0b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <launch_kernel.cuh>
#include <comm_quda.h>
#include <unitarization_links.h>
#include <pgauge... | fa7a206ae9131daa471b6eb6fffdd9815c226b0b.cu | #include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <launch_kernel.cuh>
#include <comm_quda.h>
#include <unitarization_links.h>
#include <pgauge_monte.h>
#include <random_quda.h>
#include <cub/cub.cuh>
#include <index_helper.cuh>
... |
1a9b54235000e9f02a5d5c085a2e36abd44d900d.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 1a9b54235000e9f02a5d5c085a2e36abd44d900d.cu | /*
* Copyright (c) 2019-2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
97c2d61929ae843b6c2d89a2d256c5e030db4591.hip | // !!! This is a file automatically generated by hipify!!!
/*
Author: Cao Thanh Tung
Filename: pba3DHost.cu
Copyright (c) 2010, School of Computing, National University of Singapore.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the ... | 97c2d61929ae843b6c2d89a2d256c5e030db4591.cu | /*
Author: Cao Thanh Tung
Filename: pba3DHost.cu
Copyright (c) 2010, School of Computing, National University of Singapore.
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 co... |
7559fdc669f321acb84ce4ee6329458f6cbd1295.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 1993-2012 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,... | 7559fdc669f321acb84ce4ee6329458f6cbd1295.cu | /**
* Copyright 1993-2012 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 relate... |
9ee559e6b89dd8ee0e7627a39664fe37a0f641b4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions a... | 9ee559e6b89dd8ee0e7627a39664fe37a0f641b4.cu | // Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// 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 code must retain the above copyright notice, ... |
79f73fafb5065e92d847c40ebddd5b170248a976.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
using namespace std;
__global__ void setValue(float *data, int idx, float value) {
if(threadIdx.x == 0) {
data[idx] = value;
}
} | 79f73fafb5065e92d847c40ebddd5b170248a976.cu | #include "includes.h"
using namespace std;
__global__ void setValue(float *data, int idx, float value) {
if(threadIdx.x == 0) {
data[idx] = value;
}
} |
06d1417a102049c481fd616187a91022454bd9c8.hip | // !!! This is a file automatically generated by hipify!!!
#include <gtest/gtest.h>
#include <thrust/sort.h>
#include "BatchManager.cuh"
#include "Compact.cuh"
#include "Copy.cuh"
#include "CudaContext.cuh"
#include "CudaContextManager.cuh"
#include "DevGraph.cuh"
#include "DevPlan.cuh"
#include "DeviceArray.cuh"
#incl... | 06d1417a102049c481fd616187a91022454bd9c8.cu | #include <gtest/gtest.h>
#include <thrust/sort.h>
#include "BatchManager.cuh"
#include "Compact.cuh"
#include "Copy.cuh"
#include "CudaContext.cuh"
#include "CudaContextManager.cuh"
#include "DevGraph.cuh"
#include "DevPlan.cuh"
#include "DeviceArray.cuh"
#include "GPUFilter.cuh"
#include "GPUUtil.cuh"
#include "Inters... |
a6d81bbfbf32462ac56f6e7107eacc37cab9a381.hip | // !!! This is a file automatically generated by hipify!!!
//===============================================================================================================================================================================================================200
// SET_DEVICE CODE
//===========================... | a6d81bbfbf32462ac56f6e7107eacc37cab9a381.cu | //===============================================================================================================================================================================================================200
// SET_DEVICE CODE
//======================================================================================... |
ee67375f386be3ad9dac863ded617cb8280e190b.hip | // !!! This is a file automatically generated by hipify!!!
#include "IntersectionTest.h"
TestResult IntersectionTest::runTest(TestData* data)
{
TestResult retResult;
retResult.intersectionResults.resize(data->triangleCount);
//std::vector<IntersectionResult> resultVector(data->triangleCount);
//if (result != null... | ee67375f386be3ad9dac863ded617cb8280e190b.cu | #include "IntersectionTest.h"
TestResult IntersectionTest::runTest(TestData* data)
{
TestResult retResult;
retResult.intersectionResults.resize(data->triangleCount);
//std::vector<IntersectionResult> resultVector(data->triangleCount);
//if (result != nullptr)
//{
// cudaFree(result);
//}
if (result == nullp... |
3b9c9e0e1a531d61ade4c10f4a1411c34ffad4cf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include<cuda_runtime.h>
#include "device_launch_parameters.h"
#include "HalconCpp.h"
#include "common_val.h"
using namespace HalconCpp;
using namespace std;
unsigned char* d_src, * d_dst;
double* d_matrix;
_... | 3b9c9e0e1a531d61ade4c10f4a1411c34ffad4cf.cu | #include <stdio.h>
#include<cuda_runtime.h>
#include "device_launch_parameters.h"
#include "HalconCpp.h"
#include "common_val.h"
using namespace HalconCpp;
using namespace std;
unsigned char* d_src, * d_dst;
double* d_matrix;
__global__ void d_affine(unsigned char* src, double* matrix, int width, int height, int... |
0aba6b58a6e21af7b2b098cf9419082ab1641eef.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "ComputeFreeVolumeGPU.cuh"
#include "IntegratorHPMCMonoGPU.cuh"
#include "IntegratorHPMCMonoI... | 0aba6b58a6e21af7b2b098cf9419082ab1641eef.cu | // Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "ComputeFreeVolumeGPU.cuh"
#include "IntegratorHPMCMonoGPU.cuh"
#include "IntegratorHPMCMonoImplicitGPU.cuh"
#include "ShapeConvexPolygon.h"
namespace... |
2a4c9990dede20c8e89f9e43f0ecd91cdf0d9b4a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License ... | 2a4c9990dede20c8e89f9e43f0ecd91cdf0d9b4a.cu | /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
5b303a1bbe128c9cc2c0be84843de4301f71cbae.hip | // !!! This is a file automatically generated by hipify!!!
#include "mtbs_cu.h"
#include <pthread.h>
#include "stream.h"
extern unsigned n_streams;
static vStrm_t *vStrms;
static unsigned idx_allocator;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
vstream_t
create_vstream(void)
{
vstrm_t vstrm;
pth... | 5b303a1bbe128c9cc2c0be84843de4301f71cbae.cu | #include "mtbs_cu.h"
#include <pthread.h>
#include "stream.h"
extern unsigned n_streams;
static vStrm_t *vStrms;
static unsigned idx_allocator;
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
vstream_t
create_vstream(void)
{
vstrm_t vstrm;
pthread_mutex_lock(&mutex);
vstrm = &vStrms[idx_allocator];
... |
83fa906f2e24d593eb4426b19bc0666c7f8b46cd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright 2017 NVIDIA Corporation
*
* The U.S. Department of Energy funded the development of this software
* under subcontract B609478 with Lawrence Livermore National Security, LLC
*
* Licensed under the Apache License, V... | 83fa906f2e24d593eb4426b19bc0666c7f8b46cd.cu | /* Copyright 2017 NVIDIA Corporation
*
* The U.S. Department of Energy funded the development of this software
* under subcontract B609478 with Lawrence Livermore National Security, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
79fff1335244e9f3a813d321a56c1dabbc487de3.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 "axpb_y_f32.cu"
#include<chrono>
#include<iostream>
using namespa... | 79fff1335244e9f3a813d321a56c1dabbc487de3.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 "axpb_y_f32.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24... |
aa4b4b6262a0e04a701493972f8ec41747e64c0f.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
@generated from magmablas/zsymmetrize_tiles.cu normal z... | aa4b4b6262a0e04a701493972f8ec41747e64c0f.cu | /*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@generated from magmablas/zsymmetrize_tiles.cu normal z -> c, Tue Feb 9 16:05:33 2016
@author Mark Gates
*/
#include "magma_internal.h"... |
eda5e1b68d61f356f0c02edd54a8f96b64b320f0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
*... | eda5e1b68d61f356f0c02edd54a8f96b64b320f0.cu | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
ff1bd15d5887f0571e5360540be647a941088d2b.hip | // !!! This is a file automatically generated by hipify!!!
// Bi Linear image interpolation using shared memeory optimization technique
//In this method image is interpolated in 3 phase although shared memeory optimiztion did not gave much speed up in this case
#include<Windows.h>
#include "hip/hip_runtime.h"
#inclu... | ff1bd15d5887f0571e5360540be647a941088d2b.cu | // Bi Linear image interpolation using shared memeory optimization technique
//In this method image is interpolated in 3 phase although shared memeory optimiztion did not gave much speed up in this case
#include<Windows.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include<cuda.h>
#include <std... |
7a4a3365c7a09bf3b3bc6ce945b83dc578991961.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
/... | 7a4a3365c7a09bf3b3bc6ce945b83dc578991961.cu | /***************************************************************************************************
* Copyright (c) 2020, Vijay Thakkar (thakkarv@gatech.edu).
**************************************************************************************************/
////////////////////////////////////////////////////////////... |
6f2cbc89f58fd7d9be85f997bfe41d6ffaeb2dae.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
#define TOLERANCE 0.00001
#define TRUE 1
#define FALSE 0
long usecs();
void initialize(double **A, int rows, int cols);
int calc_serial(double **A, int rows, int cols, int iters, double tolerance);
int calc_s... | 6f2cbc89f58fd7d9be85f997bfe41d6ffaeb2dae.cu | #include "includes.h"
#define TOLERANCE 0.00001
#define TRUE 1
#define FALSE 0
long usecs();
void initialize(double **A, int rows, int cols);
int calc_serial(double **A, int rows, int cols, int iters, double tolerance);
int calc_serial_v1(double **A, int rows, int cols, int iters, double tolerance);
int calc_omp(doub... |
e6205b3528568f8f083d3eecfd518e3714c9244f.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.
// Thrust code needs to be compiled with nvcc
#include <memory>
#include "core/providers/cuda/shared_inc/cuda_utils.h"
#include "core/p... | e6205b3528568f8f083d3eecfd518e3714c9244f.cu | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Thrust code needs to be compiled with nvcc
#include <memory>
#include "core/providers/cuda/shared_inc/cuda_utils.h"
#include "core/providers/cuda/cu_inc/common.cuh"
#include "cudnn_common.h"
namespace onnxruntime {
name... |
6653989d4869967fc34ce71b18e743266cdd1c0b.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 "gradient.cu"
#include<chrono>
#include<iostream>
using namespace... | 6653989d4869967fc34ce71b18e743266cdd1c0b.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 "gradient.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},... |
22fe40aa30a111c45668122b76786ecc5ef51f28.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weigh... | 22fe40aa30a111c45668122b76786ecc5ef51f28.cu | // Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the image such that the center
// of the weight array is aligned with the c... |
b2f8149cc61458bd9459061cb292ff4dc31fe216.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void vadd(const float *A, const float *B, float *C, int ds){
int idx = threadIdx.x+blockDim.x*blockIdx.x;
if (idx < ds)
C[idx] = A[idx] + B[idx];
} | b2f8149cc61458bd9459061cb292ff4dc31fe216.cu | #include "includes.h"
__global__ void vadd(const float *A, const float *B, float *C, int ds){
int idx = threadIdx.x+blockDim.x*blockIdx.x;
if (idx < ds)
C[idx] = A[idx] + B[idx];
} |
822601605bdb5a8d05ff70ae5a040648ce29e04d.hip | // !!! This is a file automatically generated by hipify!!!
#include <opencv2/cudafeatures2d.hpp>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "labeling_algorithms.h"
#include "register.h"
#define BLOCK_ROWS 16
#define BLOCK_COLS 16
using namespace cv;
namespace {
//
// ... | 822601605bdb5a8d05ff70ae5a040648ce29e04d.cu | #include <opencv2/cudafeatures2d.hpp>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "labeling_algorithms.h"
#include "register.h"
#define BLOCK_ROWS 16
#define BLOCK_COLS 16
using namespace cv;
namespace {
//
// This is a block-based algorithm.
// Blocks are 2x2 siz... |
3d50978dd5a44f98481a45684fca8c1bafb64260.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "checkerboard.cuh"
__global__ void CheckerboardKernel(float* output, const int width, const int height) {
const int i = blockDim.x * blockIdx.x + threadIdx.x;
const int j = blockDim.y * blockIdx.y + threadIdx.y;
const i... | 3d50978dd5a44f98481a45684fca8c1bafb64260.cu | #include "checkerboard.cuh"
__global__ void CheckerboardKernel(float* output, const int width, const int height) {
const int i = blockDim.x * blockIdx.x + threadIdx.x;
const int j = blockDim.y * blockIdx.y + threadIdx.y;
const int center_x = width / 2;
const int center_y = height / 2;
if (i >= width || j >= heigh... |
bbe3d9508faedfa091209a79408b1c7b9ffc2bf1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
*
* cuFindTriangles.cu -- The kernel that calculates the Number of triangles into
* a graph given the CSR format of its Adjacen... | bbe3d9508faedfa091209a79408b1c7b9ffc2bf1.cu | /******************************************************************************
*
* cuFindTriangles.cu -- The kernel that calculates the Number of triangles into
* a graph given the CSR format of its Adjacency Matrix
*
* Michail Iason Pavlidis <michailpg@ece.auth.gr>
* John Flionis <iflionis... |
4d0405eb7b5af54407a73ccc7c803584bf683303.hip | // !!! This is a file automatically generated by hipify!!!
/*
* purpose: just a simple check whether a matrix, A, is composed
* of eigenvectors only, in which case A^t x A = E
* hence the inverse, A^-1, is simply the transpose, A^t,
* resulting in the unit matrix, E... | 4d0405eb7b5af54407a73ccc7c803584bf683303.cu | /*
* purpose: just a simple check whether a matrix, A, is composed
* of eigenvectors only, in which case A^t x A = E
* hence the inverse, A^-1, is simply the transpose, A^t,
* resulting in the unit matrix, E, by the above matrix
* matrix multiplicatio... |
d83f5d0e1815a100b16bd03f5306d31951a0dd0c.hip | // !!! This is a file automatically generated by hipify!!!
/* Copyright 2018 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
... | d83f5d0e1815a100b16bd03f5306d31951a0dd0c.cu | /* Copyright 2018 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... |
008f67ebb4861c1cceda3a833e382f9393dd2f8a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "AbstractAPI.h"
#include "interfaces/cuda/Internals.h"
#include <cassert>
#include <device.h>
namespace device {
template <typename T> __global__ void kernel_scaleArray(T *array, const T scalar, const size_t numElements) {... | 008f67ebb4861c1cceda3a833e382f9393dd2f8a.cu | #include "AbstractAPI.h"
#include "interfaces/cuda/Internals.h"
#include <cassert>
#include <device.h>
namespace device {
template <typename T> __global__ void kernel_scaleArray(T *array, const T scalar, const size_t numElements) {
size_t index = threadIdx.x + blockIdx.x * blockDim.x;
if (index < numElements) {
... |
ee78b61fac700aa4a212098a78eea6f938b261a5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void d_putgaps(float *sne7, float *snaw, int *aw2ali, const int snno)
{
//sino index
int sni = threadIdx.x + blockIdx.y*blockDim.x;
//sino bin index
int awi = blockIdx.x;
if (sni<snno) {
sne7[aw2al... | ee78b61fac700aa4a212098a78eea6f938b261a5.cu | #include "includes.h"
__global__ void d_putgaps(float *sne7, float *snaw, int *aw2ali, const int snno)
{
//sino index
int sni = threadIdx.x + blockIdx.y*blockDim.x;
//sino bin index
int awi = blockIdx.x;
if (sni<snno) {
sne7[aw2ali[awi] * snno + sni] = snaw[awi*snno + sni];
}
} |
2d520c09392e3b140dab92d54aa6052336007a80.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2020-2022, 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... | 2d520c09392e3b140dab92d54aa6052336007a80.cu | /*
* Copyright (c) 2020-2022, 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... |
9a2715bf47a3d3d946b83c571e559e13d684b309.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include "cuda_util.h"
#include "sampling.h"
#include "grid-search.h"
int TESTING_WITH_RANDOM_FORESTS = 0;
int main() {
printf("GPU Mem: %zu\n", get_global_memory_size_for_device(0));
printf("Samples Possible: %d\n", get_sample_siz... | 9a2715bf47a3d3d946b83c571e559e13d684b309.cu | #include <stdio.h>
#include "cuda_util.h"
#include "sampling.h"
#include "grid-search.h"
int TESTING_WITH_RANDOM_FORESTS = 0;
int main() {
printf("GPU Mem: %zu\n", get_global_memory_size_for_device(0));
printf("Samples Possible: %d\n", get_sample_size_for_device(0, 20, sizeof(float)));
// Set the Random... |
644b691ebfd21dd312a15534a063bb7f71842793.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zmergecg.cu normal z -> s, Fri Jul 18... | 644b691ebfd21dd312a15534a063bb7f71842793.cu | /*
-- MAGMA (version 1.5.0-beta3) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date July 2014
@generated from zmergecg.cu normal z -> s, Fri Jul 18 17:34:28 2014
@author Hartwig Anzt
*/
#include "common_magma.h"
#include "../in... |
0f7ca080034d188a48bd71e0eaf1821a2e040000.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
typedef unsigned int uint;
uint max_threads = 1024;
uint max_blocks = 65535;
__global__
void bitonicSortStep(float *cudaArr, uint i, uint j)
{
uint tid = threadIdx.x + blockDim.x * blockIdx.x;
uint mate = tid ^ j;
if (tid < m... | 0f7ca080034d188a48bd71e0eaf1821a2e040000.cu | #include <cuda_runtime.h>
typedef unsigned int uint;
uint max_threads = 1024;
uint max_blocks = 65535;
__global__
void bitonicSortStep(float *cudaArr, uint i, uint j)
{
uint tid = threadIdx.x + blockDim.x * blockIdx.x;
uint mate = tid ^ j;
if (tid < mate)
{
if((tid & i) == 0)
{
if(cudaArr[tid] > cudaArr... |
b6eccb4a05f4a4761b907375ffd14c1ead5868f0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weigh... | b6eccb4a05f4a4761b907375ffd14c1ead5868f0.cu | // Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the image such that the center
// of the weight array is aligned with the c... |
6f3a16013b7e3e4681ffe1e13d1dfde600c0f7cc.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdlib>
#include <cstdio>
#include <string>
#include <iostream>
#include <color_spinor_field.h>
#include <clover_field.h>
// these control the Wilson-type actions
#ifdef GPU_WILSON_DIRAC
//#define DIRECT_ACCESS_LINK
//#define DIRECT_ACCESS_WILSON_S... | 6f3a16013b7e3e4681ffe1e13d1dfde600c0f7cc.cu | #include <cstdlib>
#include <cstdio>
#include <string>
#include <iostream>
#include <color_spinor_field.h>
#include <clover_field.h>
// these control the Wilson-type actions
#ifdef GPU_WILSON_DIRAC
//#define DIRECT_ACCESS_LINK
//#define DIRECT_ACCESS_WILSON_SPINOR
//#define DIRECT_ACCESS_WILSON_ACCUM
//#define DIRECT... |
15a2527ca269cb759d5f7e356a07235198519af6.hip | // !!! This is a file automatically generated by hipify!!!
#include "stdio.h"
#include "hip/hip_runtime.h"
extern "C" {
#include "fc_layer_kernels.h"
}
__global__ void fc_kernel(float *in, float *weights, float *out) {
const int tx = threadIdx.x;
float inputv = 0;
for (int i = 0; i < 12; i += 1)
for (int... | 15a2527ca269cb759d5f7e356a07235198519af6.cu | #include "stdio.h"
#include "cuda.h"
extern "C" {
#include "fc_layer_kernels.h"
}
__global__ void fc_kernel(float *in, float *weights, float *out) {
const int tx = threadIdx.x;
float inputv = 0;
for (int i = 0; i < 12; i += 1)
for (int j = 0; j < 12; j += 1)
for (int z = 0; z < 8; z += 1) {
... |
7cf6b1185ecc9dcefb7d39952650e154fc6f6cfe.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
//#include <hip/hip_cooperative_groups.h>
#include <math.h>
#include <string.h>
#include <fstream>
#include <sstream>
//#include <bits/stdc++.h>
//#include <stdlib.h>
//# <time.h>
using namespa... | 7cf6b1185ecc9dcefb7d39952650e154fc6f6cfe.cu | #include <stdio.h>
#include <iostream>
//#include <cooperative_groups.h>
#include <math.h>
#include <string.h>
#include <fstream>
#include <sstream>
//#include <bits/stdc++.h>
//#include <stdlib.h>
//# <time.h>
using namespace std;
//using namespace cooperative_groups;
/***DEFINING THE DEFINES FOR THE ARRAY INDICES***... |
d563b847b4d25f3f952ac5c665af5f8cd7b3988d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/time.h>
/**
1.5[MB]
div == 4, size = * 48000
2.0[MB]
div == 8, size = * 32000
2.4[MB]
div == 8, size = * 37000
**/
... | d563b847b4d25f3f952ac5c665af5f8cd7b3988d.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/time.h>
/**
1.5[MB]
div == 4, size = * 48000
2.0[MB]
div == 8, size = * 32000
2.4[MB]
div == 8, size = * 37000
**/
__global__ void __add(float* a,float* b,int size,int div){
... |
5ef486e1253a9e33fdc93347a382e9dae1cf9e0f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#pragma once
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include "DevicePara.h"
#include "APoint.h"
#include <hiprand/hiprand.h>
#include <hiprand/hiprand_kernel.h>
#define PI 3.14159265358979
#de... | 5ef486e1253a9e33fdc93347a382e9dae1cf9e0f.cu | #pragma once
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include "DevicePara.h"
#include "APoint.h"
#include <curand.h>
#include <curand_kernel.h>
#define PI 3.14159265358979
#define MAX_FITNESS 10000000.0
using namespace std;
//所有函数都加上定义
//生成一个随机数
__device__ float createARandomNum(c... |
73fc7c9e228af4a1f2f6f8375bb17a2777f542d4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "rocblas.h"
#define MAT_TYPE double
#define MAT_SIZE 1024
#define N MAT_SIZE
#define N2 MAT_SIZE*MAT_SIZE
#define BLOCK 256
#define THREAD 512
void stopwatch(int);... | 73fc7c9e228af4a1f2f6f8375bb17a2777f542d4.cu | #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include "cublas_v2.h"
#define MAT_TYPE double
#define MAT_SIZE 1024
#define N MAT_SIZE
#define N2 MAT_SIZE*MAT_SIZE
#define BLOCK 256
#define THREAD 512
void stopwatch(int);
__global__ void cuda_mul(MAT_TYPE*,MAT_TYPE*,MAT_TYPE*,int);
int main()
{
MAT_TYPE* ... |
0cb91d804fc507f2b9aaa25f9313303985d108d4.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright (c) 2020 Neka-Nat
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitat... | 0cb91d804fc507f2b9aaa25f9313303985d108d4.cu | /**
* Copyright (c) 2020 Neka-Nat
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
14d9ffe3e24a785fd9e071294449ce9e1204826e.hip | // !!! This is a file automatically generated by hipify!!!
//12560.0235297Gbps
#include<stdio.h>
#include<string.h>
#include <stdint.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <cstring>
#include <hip/hip_runtime.h>
#include <iomanip>
#include <time.h>
typedef uint64_t word_t;
#define BYTE... | 14d9ffe3e24a785fd9e071294449ce9e1204826e.cu | //初始版本,每个线程加密1块数据,线程网格每块最多256个线程,自己电脑运行吞吐量为0.0235297Gbps
#include<stdio.h>
#include<string.h>
#include <stdint.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <cstring>
#include <cuda.h>
#include <iomanip>
#include <time.h>
typedef uint64_t word_t;
#define BYTE unsigned char
#define BLOCK_SIZE... |
51fb4c2dd053ce4ff9cad9ed854ee4ee739d6d3d.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is availab... | 51fb4c2dd053ce4ff9cad9ed854ee4ee739d6d3d.cu | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
2a011587a1eb0b7672805a57368aca8257163268.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <float.h>
#include "cuda_auxiliary.h"
typedef struct {
double *x;
double *y;
double *z;
} points;
__global__ void gpu_norm(points array, double *norm, int N)
{
for (int ix = blockIdx.x * blockDim.x... | 2a011587a1eb0b7672805a57368aca8257163268.cu | #include <stdio.h>
#include <float.h>
#include "cuda_auxiliary.h"
typedef struct {
double *x;
double *y;
double *z;
} points;
__global__ void gpu_norm(points array, double *norm, int N)
{
for (int ix = blockIdx.x * blockDim.x + threadIdx.x; ix < N; ix += blockDim.x * gridDim.x)
norm[ix] = sqrt(array.x[ix] * ar... |
0eaa08bc819107ed0564b5f81ac042c2f4fa8694.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... | 0eaa08bc819107ed0564b5f81ac042c2f4fa8694.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... |
d09c2106ee9e2be406e613641b296d36956672a3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// by Jan Eric Kyprianidis <www.kyprianidis.com>
// Copyright (C) 2010-2012 Computer Graphics Systems Group at the
// Hasso-Plattner-Institut, Potsdam, Germany <www.hpi3d.de>
//
// This program is free software: you can redistrib... | d09c2106ee9e2be406e613641b296d36956672a3.cu | //
// by Jan Eric Kyprianidis <www.kyprianidis.com>
// Copyright (C) 2010-2012 Computer Graphics Systems Group at the
// Hasso-Plattner-Institut, Potsdam, Germany <www.hpi3d.de>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publishe... |
d637ac3c2d150e1d4022547eb027b52ad4afe2ea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "nspca_cuda.h"
#include "view.h"
namespace NSPCA {
__device__ __forceinline__ void solve_p_positive(double *ATZ, double *Pptr, const size_t N, const size_t P, const size_t p,
... | d637ac3c2d150e1d4022547eb027b52ad4afe2ea.cu | #include "nspca_cuda.h"
#include "view.h"
namespace NSPCA {
__device__ __forceinline__ void solve_p_positive(double *ATZ, double *Pptr, const size_t N, const size_t P, const size_t p,
const int i, const int j, const double n_lambda,
... |
d1a9258c5f889e7a719afdcba111a25298ee59cf.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <iostream>
#include <ostream>
#include <fstream>
#include <sys/time.h>
#include <time.h>
using namespace std;
#define CASENAME "mrt_test"
#define NUMGPU 1
#define BLOCKSIZEX 64
#define BLOCKSIZEY 1
#define BLOCKSIZEZ 1
#... | d1a9258c5f889e7a719afdcba111a25298ee59cf.cu | #include <cuda.h>
#include <iostream>
#include <ostream>
#include <fstream>
#include <sys/time.h>
#include <time.h>
using namespace std;
#define CASENAME "mrt_test"
#define NUMGPU 1
#define BLOCKSIZEX 64
#define BLOCKSIZEY 1
#define BLOCKSIZEZ 1
#define BLOCKSIZELRX 64
#define BLOCKSIZELRY 1
#define BLOCKSIZELRZ 1
#... |
992798e73a37c6e10df93e30e9468f2a5d6b09df.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdint.h>
#include <hip/hip_runtime.h>
#include <omp.h>
__device__ uint32_t rotate_left(uint32_t x, uint32_t n) {
return (x << n) | (x >> (32-n));
}
__device__ uint32_t encrypt(uint32_t m, uint32_t key) {
return (rotate_lef... | 992798e73a37c6e10df93e30e9468f2a5d6b09df.cu | #include <stdio.h>
#include <stdint.h>
#include <cuda.h>
#include <omp.h>
__device__ uint32_t rotate_left(uint32_t x, uint32_t n) {
return (x << n) | (x >> (32-n));
}
__device__ uint32_t encrypt(uint32_t m, uint32_t key) {
return (rotate_left(m, key&31) + key)^key;
}
__host__ uint32_t h_rotate_left(uint32_t x,... |
4db00aa062b2afbcd9ebbe538253ef9031b8e33a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// 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
/... | 4db00aa062b2afbcd9ebbe538253ef9031b8e33a.cu | // 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 writing, software
// distributed ... |
9be2cc4a0804e3448811a056d2a3ccbc11f62714.hip | // !!! This is a file automatically generated by hipify!!!
#include "CudaSolver.cuh"
#include "utils.h"
#include <thrust/device_vector.h>
#include <thrust/copy.h>
#include <cstdlib>
#include <cmath>
#include <hip/hip_runtime.h>
#ifndef __NVCC__
#define __constant__
#define __device__
#define __global__
#define __host... | 9be2cc4a0804e3448811a056d2a3ccbc11f62714.cu | #include "CudaSolver.cuh"
#include "utils.h"
#include <thrust/device_vector.h>
#include <thrust/copy.h>
#include <cstdlib>
#include <cmath>
#include <cuda.h>
#ifndef __NVCC__
#define __constant__
#define __device__
#define __global__
#define __host__
typedef unsigned long size_t;
enum cudaMemcpyKind {
cudaMemcpyH... |
07c0fd3b4a36bc9a6a7a104e04769bb0d494abba.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
@generated from sparse/blas/zparilut_candidates.cu, norm... | 07c0fd3b4a36bc9a6a7a104e04769bb0d494abba.cu | /*
-- MAGMA (version 2.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2019
@generated from sparse/blas/zparilut_candidates.cu, normal z -> s, Wed Jan 2 14:18:53 2019
*/
#include "magmasparse_internal.h"
#define PRECI... |
be53652377792e51d2a428a75ef9692a651f285f.hip | // !!! This is a file automatically generated by hipify!!!
#include <bits/stdc++.h>
using namespace std;
const int MAXX = 1e8;
#define CSC(call) \
do { \
hipError_t res = call; \
if (res != hipSuccess) { \
fpri... | be53652377792e51d2a428a75ef9692a651f285f.cu | #include <bits/stdc++.h>
using namespace std;
const int MAXX = 1e8;
#define CSC(call) \
do { \
cudaError_t res = call; \
if (res != cudaSuccess) { \
fprintf(stderr, "ERROR in %s:%d. Message: %s\n", \
... |
94bd75542a80fe90aa204ddd521f20fcae5c6dbb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "projektcuda.h"
#include "project_comm.h"
/* Kernel to square elements of the array on the GPU */
/*
Matrix A is mA x nB , Vector B is nB
Vector C output vector in size of mA
C=A*B
description:
each... | 94bd75542a80fe90aa204ddd521f20fcae5c6dbb.cu | #include "cuda.h"
#include <stdio.h>
#include "projektcuda.h"
#include "project_comm.h"
/* Kernel to square elements of the array on the GPU */
/*
Matrix A is mA x nB , Vector B is nB
Vector C output vector in size of mA
C=A*B
description:
each row of A occuppy one block. if gridDim is smaller than the row number... |
002d34d18bf8be9a1cbb371819506e00980943d5.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <framework/gpu_volume.h>
#include <framework/helper_cuda.h>
#include <framework/profiler.h>
#include <framework/volume.h>
texture<float, 3, hipReadModeElementType> volume_in;
surface<void, 3> volume_out;
__global__ void ... | 002d34d18bf8be9a1cbb371819506e00980943d5.cu | #include <cuda_runtime.h>
#include <framework/gpu_volume.h>
#include <framework/helper_cuda.h>
#include <framework/profiler.h>
#include <framework/volume.h>
texture<float, 3, cudaReadModeElementType> volume_in;
surface<void, 3> volume_out;
__global__ void copy_kernel(dim3 volume_size)
{
int x = blockIdx.x*blockD... |
0098b1abe78abf6626c793b24a33f5ed27fdba10.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "feintrack_d.h"
////////////////////////////////////////////////////////////////////////////////
const int MAX_THREADS_PER_BLOCK = 512;
const int BACK_BLOCK_SIZE = 16;
//////////////////////////////////////////////////////... | 0098b1abe78abf6626c793b24a33f5ed27fdba10.cu | #include "feintrack_d.h"
////////////////////////////////////////////////////////////////////////////////
const int MAX_THREADS_PER_BLOCK = 512;
const int BACK_BLOCK_SIZE = 16;
////////////////////////////////////////////////////////////////////////////////
template<class T>
__device__ T sqr_(T val)
{
return val * v... |
75ca5c6560278ae3090748be777eec9a28814c3b.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... | 75ca5c6560278ae3090748be777eec9a28814c3b.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... |
cc3bc1b477f67c3d1b1f647064bf8170817e9385.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hertz_constants.h"
#include "hertz_cudaneighlist.h"
#include "pair_interaction.h"
#include "framework.h"
#include "thrust/scan.h"
#ifdef TRACE
#warning TRACE enabled: timing will not be accurate
#include "cuPrintf.hip"
#e... | cc3bc1b477f67c3d1b1f647064bf8170817e9385.cu | #include "hertz_constants.h"
#include "hertz_cudaneighlist.h"
#include "pair_interaction.h"
#include "framework.h"
#include "thrust/scan.h"
#ifdef TRACE
#warning TRACE enabled: timing will not be accurate
#include "cuPrintf.cu"
#endif
#ifndef MAX_GRID_DIM
#error You need to #define MAX_GRID_DIM (see Makefile.config)
... |
21056a9c3034c80b74630dc708a01db325f4c6a6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include "hip/hip_runtime.h"
#include <device_launch_parameters.h>
#include <stdlib.h>
using namespace std;
//variables globales
#define num_filas_RGB 32 // num filas matriz RGB
#define num_columnas_RGB 32 ... | 21056a9c3034c80b74630dc708a01db325f4c6a6.cu |
#include <stdio.h>
#include <iostream>
#include "cuda_runtime.h"
#include <device_launch_parameters.h>
#include <stdlib.h>
using namespace std;
//variables globales
#define num_filas_RGB 32 // num filas matriz RGB
#define num_columnas_RGB 32 // num columnas matriz RGB
#define width_RGB 32 ... |
97a9636ece20fcfe065e74a3da49e2d31aa38b2e.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 "dot.cu"
#include<chrono>
#include<iostream>
using namespace std;... | 97a9636ece20fcfe065e74a3da49e2d31aa38b2e.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 "dot.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.