hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
6d13723bfe302c03921d9fc9e3bfbe6a18365285.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 "computeMinEnergyMatrix.cu"
#include<chrono>
#include<iostream>
u... | 6d13723bfe302c03921d9fc9e3bfbe6a18365285.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 "computeMinEnergyMatrix.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{1... |
bf53f16abf1d47b345cb55245a94b2049eaa255d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
int selectedDevice;
const int N = 21;
int numLabels;
uint numVars;
__device__ __constant__ int dev_numRules;
__device__ __constant__ int dev_rules[N * 3];
__device__ __constant__ int dev_numLabels;
__device__ _... | bf53f16abf1d47b345cb55245a94b2049eaa255d.cu | #include "kernel.h"
int selectedDevice;
const int N = 21;
int numLabels;
uint numVars;
__device__ __constant__ int dev_numRules;
__device__ __constant__ int dev_rules[N * 3];
__device__ __constant__ int dev_numLabels;
__device__ __constant__ uint dev_heapSize;
__device__ __constant__ uint *dev_elementPool;
// index o... |
d4dbdbf62d438d9462e07d43d281573afe4f21b0.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <fstream>
#include <hip/hip_runtime_api.h>
#include "helper.h"
#include <float.h>
////////////////////////////////////////////... | d4dbdbf62d438d9462e07d43d281573afe4f21b0.cu | #include <cuda.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <fstream>
#include <cuda_profiler_api.h>
#include "helper.h"
#include <float.h>
/////////////////////////////////////////////////////////////////////////
// Init
//////////////////////////////////... |
7f303357a05c2a03d7f6726f966cc5ddc58b8022.hip | // !!! This is a file automatically generated by hipify!!!
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/UnaryOps.h>
#include <limits>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/Math.h>
#include <ATen/native/TensorIterator.h>
#inc... | 7f303357a05c2a03d7f6726f966cc5ddc58b8022.cu | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/UnaryOps.h>
#include <limits>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/Math.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/JitLoops.cuh>
#include <ATen/native/... |
f2f9f505671f247e43c45cd1016f8617e4a26ba3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Image.h"
#include "Kernel.h"
#include "KernelFactory.h"
#include "CUDAError.h"
#include "filteringUtils.h"
#include "speedTests.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <cstd... | f2f9f505671f247e43c45cd1016f8617e4a26ba3.cu | #include "Image.h"
#include "Kernel.h"
#include "KernelFactory.h"
#include "CUDAError.h"
#include "filteringUtils.h"
#include "speedTests.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <sstream>
#include <cstdio>
#include <ctime>
#include <curand_mtgp32_kernel.h>
#include <omp.h>
#define CUDA_CH... |
6220599c0803f73a30835b73a33faf0c0866c6ae.hip | // !!! This is a file automatically generated by hipify!!!
//---------------------------------------------------------------------------
#pragma hdrstop
#include "gridrec.h"
#include <sys/time.h>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#ifdef USE_GR... | 6220599c0803f73a30835b73a33faf0c0866c6ae.cu | //---------------------------------------------------------------------------
#pragma hdrstop
#include "gridrec.h"
#include <sys/time.h>
//---------------------------------------------------------------------------
#pragma package(smart_init)
#ifdef USE_GRIDREC_GPU
texture<float2, 2, cudaReadModeElementType> tex_c... |
b72bee14e837b41845111a625658a2939aac20f5.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <math.h>
#include <cstdio>
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
/*
to be compiled via nvcc ==> nvcc main.cu -o exec
*/
// CUDA Kernel function to add the elements of two arrays on the GPU
bool CUDA_ ... | b72bee14e837b41845111a625658a2939aac20f5.cu | #include <iostream>
#include <math.h>
#include <cstdio>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
/*
to be compiled via nvcc ==> nvcc main.cu -o exec
*/
// CUDA Kernel function to add the elements of two arrays on the GPU
bool CUDA_ = false;
// __device__ indicates funtion to be executed by th... |
ad3d5c7cfca7e122c935bed0fced42ff6926cbd3.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include "common.h"
#include <string.h>
//#include <hip/hip_runtime.h>
// Structure for creature
struct Creature {
int Energy;
int Velocity;
int TimeLeft;
int Code[100];
int co... | ad3d5c7cfca7e122c935bed0fced42ff6926cbd3.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include "common.h"
#include <string.h>
//#include <cuda_runtime.h>
// Structure for creature
struct Creature {
int Energy;
int Velocity;
int TimeLeft;
int Code[100];
int codelen, codepos;
int ParentRef;
int Ref;
char Output[50];
b... |
c1be77bca2ae5c69b2590ea3323518f04769c143.hip | // !!! This is a file automatically generated by hipify!!!
////////////////////////////////////////////////////////////////////////////
//
// Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
//
// Please refer to the NVIDIA end user license agreement (EULA) associated
// with this source code for terms and... | c1be77bca2ae5c69b2590ea3323518f04769c143.cu | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
//
// Please refer to the NVIDIA end user license agreement (EULA) associated
// with this source code for terms and conditions that govern your use of
// this software. Any u... |
712cb7ea70d43bda17f4d070758fec731a4cf60c.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <thrust/complex.h>
#include "header_hip.cuh"
#include <vector>
#include <time.h>
#include <hip/hip_runtime.h>
#include <math.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
__global__ void vecAdd(uchar4 *... | 712cb7ea70d43bda17f4d070758fec731a4cf60c.cu | #include <iostream>
#include <thrust/complex.h>
#include "header.cuh"
#include <vector>
#include <time.h>
#include <cuda_runtime.h>
#include <math.h>
#include <chrono>
using namespace std;
using namespace std::chrono;
__global__ void vecAdd(uchar4 *a, uchar4 *b, uchar4 *c, int n)
{
int id = blockIdx.x*blockDim... |
65b5852d2f836f4cb0b646a40223c07a9a01107c.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <helper_cuda.h>
#include <stdio.h>
#include <numeric>
#include <vector>
#include <iostream>
#include <iomanip>
void printArrayAsCharMatrix(const float *in, const size_t &width, const size_t &height)
{
std::cout << std::... | 65b5852d2f836f4cb0b646a40223c07a9a01107c.cu | #include <cuda_runtime.h>
#include <helper_cuda.h>
#include <stdio.h>
#include <numeric>
#include <vector>
#include <iostream>
#include <iomanip>
void printArrayAsCharMatrix(const float *in, const size_t &width, const size_t &height)
{
std::cout << std::endl;
char buffer[4];
// int ret;
for (size_t j = 0; j <... |
c5bc7c3e01f66ecb30f82361dcfd50d836aa4a63.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License,... | c5bc7c3e01f66ecb30f82361dcfd50d836aa4a63.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.
*
*... |
f4e4fb800e7c5e3a7065ee79142cdd401151b32b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this... | f4e4fb800e7c5e3a7065ee79142cdd401151b32b.cu | /******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
5ac35964075ef241f12cb92b0bafdc28618a649e.hip | // !!! This is a file automatically generated by hipify!!!
/*
* 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 und... | 5ac35964075ef241f12cb92b0bafdc28618a649e.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 ... |
03e0d501e5473904bfb44da6c6455d68bfc800f3.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cu_inc/common.cuh"
#include "gist_impl.h"
#include "gist.h"
#include <hip/hip_runtime.h>
using namespace onnxruntime::cuda;
namespace... | 03e0d501e5473904bfb44da6c6455d68bfc800f3.cu | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cuda/cu_inc/common.cuh"
#include "gist_impl.h"
#include "gist.h"
#include <cuda_runtime.h>
using namespace onnxruntime::cuda;
namespace onnxruntime {
namespace cuda {
template <typename T>
__globa... |
af5cd3f8ad9da04dfe4d637d5b7d243cd27cef56.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file particle_bpf_gpu.cu
* @author Matthew Nicely (mnicely@nvidia.com)
* @date 2020-01-06
* @version 1.0
* @brief Contains CUDA functions for parallel version of
* the bootstrap particle filter
*
* @copyright Copyrigh... | af5cd3f8ad9da04dfe4d637d5b7d243cd27cef56.cu | /**
* @file particle_bpf_gpu.cu
* @author Matthew Nicely (mnicely@nvidia.com)
* @date 2020-01-06
* @version 1.0
* @brief Contains CUDA functions for parallel version of
* the bootstrap particle filter
*
* @copyright Copyright (c) 2020
*
* @license This project is released under the GNU Public License
*
* @n... |
4118c0f6613d358b874acd36805546fa94e06d3e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Mandelbrot.h"
#include "DomaineMath_GPU.h"
#include <iostream>
#include <assert.h>
#include "Device.h"
__global__ void mandelbrot(uchar4* ptrDevPixels, uint w, uint h, uint t, DomaineMath domaineMath);
/*---------------... | 4118c0f6613d358b874acd36805546fa94e06d3e.cu | #include "Mandelbrot.h"
#include "DomaineMath_GPU.h"
#include <iostream>
#include <assert.h>
#include "Device.h"
__global__ void mandelbrot(uchar4* ptrDevPixels, uint w, uint h, uint t, DomaineMath domaineMath);
/*----------------------------------------------------------------------*\
|* Declaration *|
\*-... |
8b423a8d78a93c01f7c95c01b3980b05c2229f13.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... | 8b423a8d78a93c01f7c95c01b3980b05c2229f13.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... |
c3f47e9d460902b8fec46b788056a72c512f7814.hip | // !!! This is a file automatically generated by hipify!!!
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <iterator>
#include <utility>
#include <math.h>
#include <omp.h>
#include <hip/hip_runtime.h>
#include "ttm_cpu.h"
#include "ttm_gpu.h"
#include <bits/stdc++.h>
using namespace std;
int ... | c3f47e9d460902b8fec46b788056a72c512f7814.cu | #include <fstream>
#include <stdio.h>
#include <algorithm>
#include <iterator>
#include <utility>
#include <math.h>
#include <omp.h>
#include <cuda.h>
#include "ttm_cpu.h"
#include "ttm_gpu.h"
#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]){
cudaDeviceSetCacheConfig(cudaFunc... |
35e3f1abad8b4dbc5850409d90ad2615021e454d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <helper_timer.h>
// Given a list (lst) of length n
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ...
// + lst[n-1]}
#define BLOCK_SIZE 512 //@@ You can chang... | 35e3f1abad8b4dbc5850409d90ad2615021e454d.cu | #include <stdio.h>
#include <stdlib.h>
#include <helper_timer.h>
// Given a list (lst) of length n
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ...
// + lst[n-1]}
#define BLOCK_SIZE 512 //@@ You can change this
__global__ void setInput(int *inp, int *aux, int length) {
unsigned int tid... |
1714464f4a701f8afb6897e31dd96eee3bc0b570.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | 1714464f4a701f8afb6897e31dd96eee3bc0b570.cu | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
ef6094c0c63e5a1839af2567fe0d7475ba836c59.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@generated from zlacpy_cnjg.cu normal z -> s, Sat Nov 1... | ef6094c0c63e5a1839af2567fe0d7475ba836c59.cu | /*
-- MAGMA (version 1.6.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2014
@generated from zlacpy_cnjg.cu normal z -> s, Sat Nov 15 19:53:57 2014
*/
#include "common_magma.h"
#define BLOCK_SIZE 64
/*****************... |
87500b64a3f8eaa5634e64c61801817f52eb8f14.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// CUDA Mesh Node.
// -------------------------------------------------------------------
// Copyright (C) 2010 OpenEngine.dk (See AUTHORS)
//
// This program is free software; It is covered by the GNU General
// Public License v... | 87500b64a3f8eaa5634e64c61801817f52eb8f14.cu | // CUDA Mesh Node.
// -------------------------------------------------------------------
// Copyright (C) 2010 OpenEngine.dk (See AUTHORS)
//
// This program is free software; It is covered by the GNU General
// Public License version 2 or any later version.
// See the GNU General Public License for more details (... |
243cd6524c288db478200d0fa274b97112143e40.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/HIPEvent.h>
#include <ATen/hip/impl/HIPStreamMasqueradingAsCUDA.h>
#include <ATen/native/Copy.h>
#include <ATen/native/TensorIterator... | 243cd6524c288db478200d0fa274b97112143e40.cu | #include <ATen/ATen.h>
#include <ATen/Context.h>
#include <ATen/Dispatch.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/CUDAEvent.h>
#include <c10/cuda/CUDAStream.h>
#include <ATen/native/Copy.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Loops.cuh>
#include <THC/THC.h>
namespace at ... |
241d9b7cb2f9b2fa2b4051f5a77a42214039f495.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include<iostream>
#include<fstream>
#include<ctime>
#include <hip/hip_runtime.h>
#define TILE_WIDTH 8
using namespace std;
//kernel function used by im2col(executed on GPU)
//reshape the feature map such that convolution can be executed as... | 241d9b7cb2f9b2fa2b4051f5a77a42214039f495.cu | #include <cstdio>
#include<iostream>
#include<fstream>
#include<ctime>
#include <cuda_runtime.h>
#define TILE_WIDTH 8
using namespace std;
//kernel function used by im2col(executed on GPU)
//reshape the feature map such that convolution can be executed as matrix multiplication
__global__ void im2colkernel(float* M,... |
fddbff1750e2ae5eb9eaeda26a6d9eab0a47a1b6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Note: errors in this file will appear on the wrong line, since we copy another header file
// in to provide some utility functions (the include paths in Jitify are somewhat unreliable)
template<typename Destination, typena... | fddbff1750e2ae5eb9eaeda26a6d9eab0a47a1b6.cu | // Note: errors in this file will appear on the wrong line, since we copy another header file
// in to provide some utility functions (the include paths in Jitify are somewhat unreliable)
template<typename Destination, typename LHS, typename RHS>
__global__ void addArrays(size_t elements, Destination *dst, LHS *... |
2b1f43dba8ecc09ae8aba88e3f49076cf45099f8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
//__global__ void hello_kernel()
//{
// printf("Hello cuda world \n");
//}
//int main()
//{
// printf("hello from main \n");
//
// dim3 block();
//
// hello_kernel <<< 1, 1... | 2b1f43dba8ecc09ae8aba88e3f49076cf45099f8.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
//__global__ void hello_kernel()
//{
// printf("Hello cuda world \n");
//}
//int main()
//{
// printf("hello from main \n");
//
// dim3 block();
//
// hello_kernel <<< 1, 1 >>> ();
//
// cudaDeviceSynchronize();
// cudaDeviceReset();
... |
a0745fefc70cef48a97e04498471be11480db5ba.hip | // !!! This is a file automatically generated by hipify!!!
#include <sstream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <hip/hip_runtime_api.h>
#include "CDevice.hh"
#include "LaunchCommon.hh" // mkdirp
#include "PLOG.hh"
const plog::Severity CDevice::LEVEL = PLOG::EnvLe... | a0745fefc70cef48a97e04498471be11480db5ba.cu |
#include <sstream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <cuda_runtime_api.h>
#include "CDevice.hh"
#include "LaunchCommon.hh" // mkdirp
#include "PLOG.hh"
const plog::Severity CDevice::LEVEL = PLOG::EnvLevel("CDevice", "DEBUG");
const char* CDevice::CVD = "CUDA_V... |
8b579dcf932aa07b2b9144e80556e4ca1399e623.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <cutil.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <float.h>
#include "cmeans.h"
#include "cmeans_kernel.cu"
#include "MDL.h"
#include "timers.h"
#include <ro... | 8b579dcf932aa07b2b9144e80556e4ca1399e623.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <cutil.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <float.h>
#include "cmeans.h"
#include "cmeans_kernel.cu"
#include "MDL.h"
#include "timers.h"
#include <cublas.h>
/****************************************************... |
e0c90e8109fdd153e4de0c5149cf6fd4dcc90677.hip | // !!! This is a file automatically generated by hipify!!!
extern "C" {
#include "rdma.h"
#include "fifo.h"
}
#include <fcntl.h>
#include <unistd.h>
#include <rocblas.h>
#include <hip/hip_runtime.h>
#define M 1536UL
#define N M
#define K M
#define LDB1 M
#define LDB2 LDB1*N
#define LDC1 N
#define SUB_M 512... | e0c90e8109fdd153e4de0c5149cf6fd4dcc90677.cu | extern "C" {
#include "rdma.h"
#include "fifo.h"
}
#include <fcntl.h>
#include <unistd.h>
#include <cublas_v2.h>
#include <cuda_runtime.h>
#define M 1536UL
#define N M
#define K M
#define LDB1 M
#define LDB2 LDB1*N
#define LDC1 N
#define SUB_M 512UL
#define HUGEPAGE_SZ (4UL * 1024UL * 1024UL * 1024UL)
#de... |
ac695a539e5a701c499f7cd54710b45ea6cf3fcf.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Compile using following structure
* nvcc -rdc=true -arch compute_35 matrix_determinant_minors.cu -o min
* and profile with nvprof --unified-memory-profiling off ./min
*/
#include <hip/hip_runtime.h>
#include "book.h"
#include <hip/hip_runtime.h>
// Thread... | ac695a539e5a701c499f7cd54710b45ea6cf3fcf.cu | /*
* Compile using following structure
* nvcc -rdc=true -arch compute_35 matrix_determinant_minors.cu -o min
* and profile with nvprof --unified-memory-profiling off ./min
*/
#include <cuda.h>
#include "book.h"
#include <cuda_runtime.h>
// Thread block size
#define N 3
typedef struct {
int width;
int height;
... |
6fcd72f3d6038e9d2665dd3f159067eb72002b1b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <chrono>
#include <roctracer/roctx.h>
#include <argparse/argparse.hpp>
#include "common.hpp"
#define TILE_WIDTH 32
/* NOTE: A and C are column major, B is row major
*/
__global__ void mygemm(float... | 6fcd72f3d6038e9d2665dd3f159067eb72002b1b.cu | #include <algorithm>
#include <chrono>
#include <nvToolsExt.h>
#include <argparse/argparse.hpp>
#include "common.hpp"
#define TILE_WIDTH 32
/* NOTE: A and C are column major, B is row major
*/
__global__ void mygemm(float *__restrict__ c, //<! [out] and MxN matrix
const float *a, //<... |
385e77012210a6dec229a13e330ae30515bdc907.hip | // !!! This is a file automatically generated by hipify!!!
/*
* ldcp_decoder.h
* ldpc3
*
* Created by legal on 02/04/11.
* Copyright 2011 ENSEIRB. All rights reserved.
*
*/
/*----------------------------------------------------------------------------*/
#include "CGPU_Decoder_MS_SIMD.h"
#include "../transp... | 385e77012210a6dec229a13e330ae30515bdc907.cu | /*
* ldcp_decoder.h
* ldpc3
*
* Created by legal on 02/04/11.
* Copyright 2011 ENSEIRB. All rights reserved.
*
*/
/*----------------------------------------------------------------------------*/
#include "CGPU_Decoder_MS_SIMD.h"
#include "../transpose/GPU_Transpose.h"
#include "../transpose/GPU_Transpose_u... |
74a76c7dff964be4690ab6f3c2f2bd509e4d873b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2018 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 a... | 74a76c7dff964be4690ab6f3c2f2bd509e4d873b.cu | /* Copyright (c) 2018 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 ... |
c0aba67897ff7553415ece8327d0e91a242242b2.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/Dispatch.h>
#include <ATen/ExpandUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/hip/HIPGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/hip/... | c0aba67897ff7553415ece8327d0e91a242242b2.cu | #include <ATen/Dispatch.h>
#include <ATen/ExpandUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/AccumulateType.h>
#include <ATen/cuda/CUDAGeneratorImpl.h>
#include <ATen/native/UnaryOps.h>
#include <ATen/native/cuda/DistributionTemplates.h>
#include <curand.h>
#include... |
0b164cbbf415bd3400981fd7f508071dd03e9512.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include <hip/hip_runtime_api.h>
//#include <cutil.h>
#include <hip/hip_runtime.h>
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 4096
int num_blocks;
int num_threads_per_block;
int num_iterations;
int dive... | 0b164cbbf415bd3400981fd7f508071dd03e9512.cu | #include <stdio.h>
#include <iostream>
#include <cuda_profiler_api.h>
//#include <cutil.h>
#include <cuda_runtime.h>
#define SHARED_MEM_ELEMENTS 1024
#define GLOBAL_MEM_ELEMENTS 4096
int num_blocks;
int num_threads_per_block;
int num_iterations;
int divergence;
float* h_A;
float* h_B;
float* h_C;
float* h_res;
float... |
dc515bdef316c6f6e9566fd7935185f78a65eebf.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, ... | dc515bdef316c6f6e9566fd7935185f78a65eebf.cu | /*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
64f3e4b4d8b931e4019733c7156001f7b4574cf5.hip | // !!! This is a file automatically generated by hipify!!!
/**
* This ended up not being as efficient as CPU threads.
*
* See the "Results 1" results for the benchmark data.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <hip/hip_runtime.h>
#include "../matrix.c"
#include "../matrix.h"
... | 64f3e4b4d8b931e4019733c7156001f7b4574cf5.cu | /**
* This ended up not being as efficient as CPU threads.
*
* See the "Results 1" results for the benchmark data.
*/
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <cuda_runtime.h>
#include "../matrix.c"
#include "../matrix.h"
void fail(const char *message)
{
printf(message);
exi... |
fb7c00709d34e055d334556e07a438ec66ab70c8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#pragma once
#include "layer.hpp"
__global__ void ForwardReLU(float* Z, int nRowsZ, int nColsZ, float* A)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
if (index < nRowsZ * nColsZ)
{
if (Z[index] >= 0)
A[ind... | fb7c00709d34e055d334556e07a438ec66ab70c8.cu | #pragma once
#include "layer.hpp"
__global__ void ForwardReLU(float* Z, int nRowsZ, int nColsZ, float* A)
{
int index = blockIdx.x * blockDim.x + threadIdx.x;
if (index < nRowsZ * nColsZ)
{
if (Z[index] >= 0)
A[index] = Z[index];
else
A[index] = 0;
}
}
__global__ void BackwardReLU(float* ... |
a9e0586c31cfe4dd32083670e2b4820a6e08a27b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<iostream>
#include<cstdio>
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<cuda_runtime.h>
using std::cout;
using std::endl;
__global__ void bgr_to_gray_kernel( unsigned char* input, unsigne... | a9e0586c31cfe4dd32083670e2b4820a6e08a27b.cu | #include<iostream>
#include<cstdio>
#include<opencv2/core/core.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<cuda_runtime.h>
using std::cout;
using std::endl;
__global__ void bgr_to_gray_kernel( unsigned char* input, unsigned char* output, unsigned char* outputA, unsigned char* outputB, int width, int height, i... |
41bd618a5eea089164e73cd6b85a9dea52ec9f3c.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
@generated from sparse/blas/zgeisai_32.cu, normal z -> d, Sun Nov 20 20:20:44 2016
... | 41bd618a5eea089164e73cd6b85a9dea52ec9f3c.cu | /*
-- MAGMA (version 2.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date November 2016
@generated from sparse/blas/zgeisai_32.cu, normal z -> d, Sun Nov 20 20:20:44 2016
*/
#include "magmasparse_internal.h"
#define PRECISION_d
#... |
2afb5f33406aad0a126f8d7dd121b7840a479773.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Udacity Homework 3
HDR Tone-mapping
Background HDR
==============
A High Dynamic Range (HDR) image contains a wider variation of intensity
and color than is allowed by the RGB format with 1 byte per channel that we
... | 2afb5f33406aad0a126f8d7dd121b7840a479773.cu | /* Udacity Homework 3
HDR Tone-mapping
Background HDR
==============
A High Dynamic Range (HDR) image contains a wider variation of intensity
and color than is allowed by the RGB format with 1 byte per channel that we
have used in the previous assignment.
To store this extra information we use singl... |
6a04110c9f0827106ec113c9b20ab43bfd0d250f.hip | // !!! This is a file automatically generated by hipify!!!
/*
Fractal code
Copyright 2022 Martin Burtscher
Redistribution in source or binary form, with or without modification, is not
permitted. Use in source or binary form, with or without modification, is only
permitted for academic use in CS 4380 and CS 5351 at T... | 6a04110c9f0827106ec113c9b20ab43bfd0d250f.cu | /*
Fractal code
Copyright 2022 Martin Burtscher
Redistribution in source or binary form, with or without modification, is not
permitted. Use in source or binary form, with or without modification, is only
permitted for academic use in CS 4380 and CS 5351 at Texas State University.
THIS SOFTWARE IS PROVIDED BY THE CO... |
c1639c432478e1012599f24d8021a156f03c9d18.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include "spamfilter_utils_hip.cuh"
#include "utils/spamfilter_timer.h"
// adds two device vectors with CuBLAS and stores the results in the first one
void p_add_vectors(hipblasHandle_t handle, float* a, float* b, const size_t size, const fl... | c1639c432478e1012599f24d8021a156f03c9d18.cu | #include <math.h>
#include "spamfilter_utils_cuda.cuh"
#include "utils/spamfilter_timer.h"
// adds two device vectors with CuBLAS and stores the results in the first one
void p_add_vectors(cublasHandle_t handle, float* a, float* b, const size_t size, const float scale_for_a){
cublasSaxpy(handle, size, &scale_for... |
7352e1c1ac60aa2d8e6147be3b03c3c498b479f5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <hipcub/hipcub.hpp>
//defaults tuned for K40
#ifndef block_size_x
#define block_size_x 32
#endif
#ifndef block_size_y
#define block_size_y 4
#endif
#ifndef tile_size_x
#define tile_size_x 4
#endif
#ifndef tile... | 7352e1c1ac60aa2d8e6147be3b03c3c498b479f5.cu | #include <cub/cub.cuh>
//defaults tuned for K40
#ifndef block_size_x
#define block_size_x 32
#endif
#ifndef block_size_y
#define block_size_y 4
#endif
#ifndef tile_size_x
#define tile_size_x 4
#endif
#ifndef tile_size_y
#define tile_size_y 2
#endif
#ifndef use_shared_mem
#define use_shared_mem 1
... |
a545962df19e46e73fa03df95f36c8c2c653618d.hip | // !!! This is a file automatically generated by hipify!!!
#include <call_kernel.h>
#include <hip/hip_runtime.h>
//#include "hip/hip_runtime.h"
#include <hip/hip_runtime_api.h>
#include "device_launch_parameters.h"
#include <stdio.h>
#include <assert.h>
#define N 16
__device__ int index(int col, int row, int ord){
r... | a545962df19e46e73fa03df95f36c8c2c653618d.cu | #include <call_kernel.h>
#include <cuda.h>
//#include "cuda_runtime.h"
#include <cuda_runtime_api.h>
#include "device_launch_parameters.h"
#include <stdio.h>
#include <assert.h>
#define N 16
__device__ int index(int col, int row, int ord){
return (row *ord)+col;
}
__global__ void Transpose(int *c, const int *a){
... |
8a7fb31ff3a86d591d15ecd22849f9b2cd8277cf.hip | // !!! This is a file automatically generated by hipify!!!
#include "../headers/utils.h"
#include <iostream>
namespace utils{
int MaxNumberOfThreads( cudakmc::verbosity v, int devNumber){
hipDeviceProp_t properties;
CHECK_ERROR(hipGetDeviceProperties(&properties,devNumber));
int nOfDev = properties.maxThreadsPerM... | 8a7fb31ff3a86d591d15ecd22849f9b2cd8277cf.cu | #include "../headers/utils.h"
#include <iostream>
namespace utils{
int MaxNumberOfThreads( cudakmc::verbosity v, int devNumber){
cudaDeviceProp properties;
CHECK_ERROR(cudaGetDeviceProperties(&properties,devNumber));
int nOfDev = properties.maxThreadsPerMultiProcessor * properties.multiProcessorCount;
if(v == c... |
1b440cce03d94c0dc381e3aa361aafa5e9ae4beb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define NUMROWS 8
#define NUMCOLS 8
#define idx(u, y, x) (u[y * NUMCOLS + x])
float* newArray(int rows, int cols) {
float* a = (float*)malloc(NUMROWS * NUMCOLS * sizeof(fl... | 1b440cce03d94c0dc381e3aa361aafa5e9ae4beb.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define NUMROWS 8
#define NUMCOLS 8
#define idx(u, y, x) (u[y * NUMCOLS + x])
float* newArray(int rows, int cols) {
float* a = (float*)malloc(NUMROWS * NUMCOLS * sizeof(float));
for (int i = 0; i < rows; i++) {
for (int j = 0; j < cols; j++) {
idx... |
3e9bbf7704494c1718b9ae14eabb162194a3f2a8.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "latte/util/math_functions.h"
#include "latte/common.h"
#include "latte/util/device_alternate.h"
namespace latte {
void latte_gpu_memcpy(const size_t N, const void *X, void *Y) {
if (X != Y) {
CUDA_CHECK(hipMemcpy(... | 3e9bbf7704494c1718b9ae14eabb162194a3f2a8.cu | #include <cuda_runtime.h>
#include "latte/util/math_functions.h"
#include "latte/common.h"
#include "latte/util/device_alternate.h"
namespace latte {
void latte_gpu_memcpy(const size_t N, const void *X, void *Y) {
if (X != Y) {
CUDA_CHECK(cudaMemcpy(Y, X, N, cudaMemcpyDefault));
}
}
void latte_gpu_memset(co... |
0b0351d8a3386e33c47d06f8c1d774653a3f2500.hip | // !!! This is a file automatically generated by hipify!!!
// Solve the Laplace equation on a 2D lattice with boundary conditions.
//
// compile with the following command:
//
// (for GTX970)
// nvcc -arch=compute_52 -code=sm_52,sm_52 -O3 -m64 -o laplace laplace.cu
//
// (for GTX1060)
// nvcc -arch=compute_61 -code=sm_... | 0b0351d8a3386e33c47d06f8c1d774653a3f2500.cu | // Solve the Laplace equation on a 2D lattice with boundary conditions.
//
// compile with the following command:
//
// (for GTX970)
// nvcc -arch=compute_52 -code=sm_52,sm_52 -O3 -m64 -o laplace laplace.cu
//
// (for GTX1060)
// nvcc -arch=compute_61 -code=sm_61,sm_61 -O3 -m64 -o laplace laplace.cu
// Includes
#incl... |
781b9eeafd2dc3c78c2a3d92a841d853c2feb13e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from sparse/blas/magma_zmconjugate.cu, normal z ... | 781b9eeafd2dc3c78c2a3d92a841d853c2feb13e.cu | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from sparse/blas/magma_zmconjugate.cu, normal z -> d, Mon Jun 25 18:24:25 2018
@author Hartwig Anzt
*/
#include "magmasparse_int... |
8417d696cdc1cf5435d515d3093e9c8558df4a95.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <time.h>
#include <string>
#include <vector>
#include <sstream>
#include <hip/hip_runtime.h>
#include <math.h>
#include <fstream> // Libreria para leer archivos
#include <typeinfo> // for 'typeid' to work
#include <tuple>
using na... | 8417d696cdc1cf5435d515d3093e9c8558df4a95.cu | #include <iostream>
#include <time.h>
#include <string>
#include <vector>
#include <sstream>
#include <cuda_runtime.h>
#include <math.h>
#include <fstream> // Libreria para leer archivos
#include <typeinfo> // for 'typeid' to work
#include <tuple>
using namespace std;
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
bef4e33032b2aedbf026e72dd04594c77f974914.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
void squential_spmv_csr(){
for(int row = 0;row < num_rows;row++){
float dot = 0;
int row_start = row_ptr[row];
int row_end = row_ptr[row+1];
for(int elem = row_start;elem < row_end;elem++){... | bef4e33032b2aedbf026e72dd04594c77f974914.cu | void squential_spmv_csr(){
for(int row = 0;row < num_rows;row++){
float dot = 0;
int row_start = row_ptr[row];
int row_end = row_ptr[row+1];
for(int elem = row_start;elem < row_end;elem++){
dot += data[elem] * x[col_index[elem]];
}
y[row] += dot;
... |
f4e1ac657d7204cb05f9d309ce45ad2d2fc22d96.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__device__ unsigned int count = 0;
__shared__ bool isLastBlockDone;
__global__ void sum(const float* array, unsigned int N,
float* result)
{
// Each block sums a subset of the input array
float partialSum... | f4e1ac657d7204cb05f9d309ce45ad2d2fc22d96.cu | __device__ unsigned int count = 0;
__shared__ bool isLastBlockDone;
__global__ void sum(const float* array, unsigned int N,
float* result)
{
// Each block sums a subset of the input array
float partialSum = calculatePartialSum(array, N);
if (threadIdx.x == 0) {
// Thread 0 of e... |
5b465283650d2d71c4fd5ebd429c5382ce0e9641.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Matrix multiplication Exercise : P = M . N. using Block-based shared memory
*
* This program basically follows the tutorial in class.
*
* Given the 1024*1024 matrix test case, this program got the best performance
* boost using TILE_WIDTH = 16. This... | 5b465283650d2d71c4fd5ebd429c5382ce0e9641.cu | /**
* Matrix multiplication Exercise : P = M . N. using Block-based shared memory
*
* This program basically follows the tutorial in class.
*
* Given the 1024*1024 matrix test case, this program got the best performance
* boost using TILE_WIDTH = 16. This was also suggested in the slide set.
*
* This exercise w... |
1fde679808e9ffd7e0abb25987b0f75d42948852.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//git hello 0
//biyao test
#include<stdio.h>
//#include<stdlib.h>
//#include<cuda.h>
#include<cuda_runtime.h>//
__global__ void helloFromGPU(void)
{
printf("Hello World from GPU!\n");
}
int main()
{
printf("Hello world from ... | 1fde679808e9ffd7e0abb25987b0f75d42948852.cu | //git hello 0
//biyao test
#include<stdio.h>
//#include<stdlib.h>
//#include<cuda.h>
#include<cuda_runtime.h>//提供了时间计算的功能函数
__global__ void helloFromGPU(void)
{
printf("Hello World from GPU!\n");
}
int main()
{
printf("Hello world from CPU!\n");
helloFromGPU <<<2,10>>>();
cudaDeviceReset();
return 0;
} |
63ca8db72e3216466ae765ecc04188f0c9a494d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <algorithm>
#include <cfloat>
#include <vector>
#include "thrust/device_vector.h"
#include "caffe/layers/softmax_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__... | 63ca8db72e3216466ae765ecc04188f0c9a494d6.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "thrust/device_vector.h"
#include "caffe/layers/softmax_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void kernel_channel_max(const int num, const int channels,
const int spatial_dim, c... |
b09618f45f949392f25be38543ab2284acc4389d.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright (c) 2015 by Contributors
* \file convolution.cu
* \brief
* \author Bing Xu
*/
#include "./convolution-inl.h"
#include <vector>
#if MXNET_USE_CUDNN == 1
#include "./cudnn_convolution-inl.h"
#endif // MXNET_USE_CUDNN
namespace mxnet {
names... | b09618f45f949392f25be38543ab2284acc4389d.cu | /*!
* Copyright (c) 2015 by Contributors
* \file convolution.cu
* \brief
* \author Bing Xu
*/
#include "./convolution-inl.h"
#include <vector>
#if MXNET_USE_CUDNN == 1
#include "./cudnn_convolution-inl.h"
#endif // MXNET_USE_CUDNN
namespace mxnet {
namespace op {
template<>
Operator* CreateOp<gpu>(ConvolutionPar... |
f5cf3cd73831794c6633b34c05600de4c964175c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
//#define DEBUGPRINT 0
__global__ void compute_grid_h_kernel( double *gridh, double *xm1, double *ym1, double *zm1, int nelt, int lx1, int ly1, int lz1, int if3d, int nnel,int lxy, int lxyz ){
int id = bloc... | f5cf3cd73831794c6633b34c05600de4c964175c.cu | #include <stdio.h>
//#define DEBUGPRINT 0
__global__ void compute_grid_h_kernel( double *gridh, double *xm1, double *ym1, double *zm1, int nelt, int lx1, int ly1, int lz1, int if3d, int nnel,int lxy, int lxyz ){
int id = blockIdx.x*blockDim.x+threadIdx.x;
if(id<nnel){
int ix= id % lx1;
int iy= (id/lx1)%ly1... |
f44b76b498b25f14651e784c0d5120539c341b65.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
int main() {
int nDevices;
hipGetDeviceCount(&nDevices);
for (int i = 0; i < nDevices; i++) {
hipDeviceProp_t prop;
hipGetDeviceProperties(&prop, i);
printf("Device Number: %d\n", i);
printf(" Device name: %s\n", pro... | f44b76b498b25f14651e784c0d5120539c341b65.cu | #include <stdio.h>
int main() {
int nDevices;
cudaGetDeviceCount(&nDevices);
for (int i = 0; i < nDevices; i++) {
cudaDeviceProp prop;
cudaGetDeviceProperties(&prop, i);
printf("Device Number: %d\n", i);
printf(" Device name: %s\n", prop.name);
printf(" Memory Clock Rate (KHz): %d\n",
... |
4293e6971af95181c6c953e2107e4c06dd7b57f6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//===----- data_sharing.cu - NVPTX OpenMP debug utilities -------- CUDA -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source... | 4293e6971af95181c6c953e2107e4c06dd7b57f6.cu | //===----- data_sharing.cu - NVPTX OpenMP debug utilities -------- CUDA -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.txt for details.
//
//===----------------------------------------... |
846e8571d7b107998ff7cd034222db2d34f45317.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. 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 o... | 846e8571d7b107998ff7cd034222db2d34f45317.cu | // Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. 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
//
/... |
f7afad4587631f872710052693fde94f119beaeb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef _FLOAT_
typedef float basetype;
#define labelelem "floats"
#elif _DOUBLE_
typedef double basetype;
#define labelelem "doubles"
#else
typedef int basetype;// Tipo para elementos: I... | f7afad4587631f872710052693fde94f119beaeb.cu | #include <stdio.h>
#include <stdlib.h>
#ifdef _FLOAT_
typedef float basetype;
#define labelelem "floats"
#elif _DOUBLE_
typedef double basetype;
#define labelelem "doubles"
#else
typedef int basetype;// Tipo para elementos: Int PREDETERMINADO
#define labelelem "ints"
#endif
/* Cosas para calcular el tiem... |
9e11423fe00c374ac73c3d471ebe3c49475e4ad9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file ex_particle_OPENMP_seq.c
* @author Michael Trotter & Matt Goodrum
* @brief Particle filter implementation in C/OpenMP
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.... | 9e11423fe00c374ac73c3d471ebe3c49475e4ad9.cu | /**
* @file ex_particle_OPENMP_seq.c
* @author Michael Trotter & Matt Goodrum
* @brief Particle filter implementation in C/OpenMP
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <unistd.h>
#include <fcntl.h>
#include <float.h>
#include <sys/time.h>
#defi... |
0552ff58c4b2f76bf50b36436fa3b92d0d44f0b7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Simulate elongation of Xenopus aggregates, see Green (2014) Dev Dyn.
#include <hiprand/hiprand_kernel.h>
#include <math.h>
#include <stdio.h>
#include <thread>
#include "../include/cudebug.cuh"
#include "../include/dtypes.cuh"
#... | 0552ff58c4b2f76bf50b36436fa3b92d0d44f0b7.cu | // Simulate elongation of Xenopus aggregates, see Green (2014) Dev Dyn.
#include <curand_kernel.h>
#include <math.h>
#include <stdio.h>
#include <thread>
#include "../include/cudebug.cuh"
#include "../include/dtypes.cuh"
#include "../include/inits.cuh"
#include "../include/links.cuh"
#include "../include/polarity.cuh"... |
309b160593d25a1d7ee60bbb04b473809323f4c3.hip | // !!! This is a file automatically generated by hipify!!!
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// I... | 309b160593d25a1d7ee60bbb04b473809323f4c3.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... |
deefd56f32aea98a280edea57cae1d9da44a613f.hip | // !!! This is a file automatically generated by hipify!!!
/**
CUDA
(suzuki.iichiro@kyodonews.jp)
$ nvcc -O3 CUDA**_N-Queen.cu && ./a.out (-c|-r|-g|-s)
-c:cpu
-r cpu
-g GPU
-s SGPU()
... | deefd56f32aea98a280edea57cae1d9da44a613f.cu | /**
CUDAで学ぶアルゴリズムとデータ構造
ステップバイステップでN−クイーン問題を最適化
一般社団法人 共同通信社 情報技術局 鈴木 維一郎(suzuki.iichiro@kyodonews.jp)
コンパイルと実行
$ nvcc -O3 CUDA**_N-Queen.cu && ./a.out (-c|-r|-g|-s)
-c:cpu
-r cpu再帰
-g GPU
-s SGPU(サマーズ版と思われる)
1.ブルートフォース
... |
a2767a32c15597222a07f84d35b4e05e1319f687.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/batch_triangular/Xpoti_batch.cu
* KBLAS is a high performance CUDA library for subset of BLAS
* an... | a2767a32c15597222a07f84d35b4e05e1319f687.cu | /**
* @copyright (c) 2012- King Abdullah University of Science and
* Technology (KAUST). All rights reserved.
**/
/**
* @file src/batch_triangular/Xpoti_batch.cu
* KBLAS is a high performance CUDA library for subset of BLAS
* and LAPACK routines optimized for NVIDIA GPUs.
* KBLAS is pr... |
77f0730a8d5d16a97446ea368c93c75b6f2ddbd8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<cuda_runtime.h>
#include <device_launch_parameters.h>
#include<stdio.h>
#include<iostream>
__global__ void checkIndex(void) {
printf("threadIdx:(%d,%d,%d) blockIdx:(%d,%d,%d) blockDim:(%d,%d,%d) gridDim:(%d,%d,%d)\n",
... | 77f0730a8d5d16a97446ea368c93c75b6f2ddbd8.cu | #include<cuda_runtime.h>
#include <device_launch_parameters.h>
#include<stdio.h>
#include<iostream>
__global__ void checkIndex(void) {
printf("threadIdx:(%d,%d,%d) blockIdx:(%d,%d,%d) blockDim:(%d,%d,%d) gridDim:(%d,%d,%d)\n",
threadIdx.x, threadIdx.y, threadIdx.z, blockIdx.x, blockIdx.y, blockIdx.z,
blockDim.x,... |
895951c773a2cfb049ebc9d78c53e7cbbb37b7c0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* @file cuda_filter.cu
* @yzheng
* @CUDA mosaic filter
* @version 0.1
* @date 2019-05-07
*
* @copyright Copyright (c) 2019, yzheng
*
*/
#include <stdlib.h>
#include "filter.h"
#include "cuda_filter.h"
#define WARP_SIZ... | 895951c773a2cfb049ebc9d78c53e7cbbb37b7c0.cu | /**
* @file cuda_filter.cu
* @yzheng
* @CUDA mosaic filter
* @version 0.1
* @date 2019-05-07
*
* @copyright Copyright (c) 2019, yzheng
*
*/
#include <stdlib.h>
#include "filter.h"
#include "cuda_filter.h"
#define WARP_SIZE 32
#define MPR 32 // mosaic cells per row in one block
#define MPR_SQUARE (MPR * MPR)... |
0799ea37e09757d2c5dc236e1ad7feb6aaa2536d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kNN-brute-force-bitonic.cuh"
#include "kNN-brute-force-reduce.cuh"
#include "knn_gpgpu.h"
#include "reduction-mod.cuh"
#include <stdio.h>
#include <math.h>
#include "helper_cuda.h"
#define SHARED_SIZE_LIMIT 512U
#defi... | 0799ea37e09757d2c5dc236e1ad7feb6aaa2536d.cu |
#include "kNN-brute-force-bitonic.cuh"
#include "kNN-brute-force-reduce.cuh"
#include "knn_gpgpu.h"
#include "reduction-mod.cuh"
#include <stdio.h>
#include <math.h>
#include "helper_cuda.h"
#define SHARED_SIZE_LIMIT 512U
#define checkCudaErrors(val) check ( (val), #val, __FILE__, __LINE__ )
__constant_... |
024a8f06612cd58b3e6fcb9a1d2009348abf683c.hip | // !!! This is a file automatically generated by hipify!!!
#include "Convergence_GPU_julia.hpp"
#include "kernel_GPU_julia.cuh"
#include "hip/hip_runtime.h"
inline bool CUDA_MALLOC( void ** devPtr, size_t size ) {
hipError_t cudaStatus;
cudaStatus = hipMalloc( devPtr, size );
if ( cudaStatus != hipSuccess ) {
pr... | 024a8f06612cd58b3e6fcb9a1d2009348abf683c.cu | #include "Convergence_GPU_julia.hpp"
#include "kernel_GPU_julia.cuh"
#include "cuda_runtime.h"
inline bool CUDA_MALLOC( void ** devPtr, size_t size ) {
cudaError_t cudaStatus;
cudaStatus = cudaMalloc( devPtr, size );
if ( cudaStatus != cudaSuccess ) {
printf( "error: unable to allocate buffer\n");
return false... |
c8290aa91688b2fa09c2acee7b900b4afc496440.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stddef.h>
#include <stdint.h>
#include "model_gpu_utils.h"
#include "ten_tusscher_2004_epi_S3_1.h"
extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) {
print_to_stdout_and_file("Using ten Tu... | c8290aa91688b2fa09c2acee7b900b4afc496440.cu | #include <stddef.h>
#include <stdint.h>
#include "model_gpu_utils.h"
#include "ten_tusscher_2004_epi_S3_1.h"
extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) {
print_to_stdout_and_file("Using ten Tusscher 2004 epi GPU model\n");
// execution configuration
const int GRID = (nu... |
48e8717a1739a33c137b530af5f3f2284e1649db.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernels.h"
namespace SCRIMP {
#define BLOCKSZ_SP 512
#define BLOCKSZ_DP 256
#define BLOCKSPERSM_SELF 2
#define BLOCKSPERSM_AB 2
#define TILE_HEIGHT 200
#define TILE_HEIGHT_DP 200
//Atomically updates the MP/idxs using a... | 48e8717a1739a33c137b530af5f3f2284e1649db.cu | #include "kernels.h"
namespace SCRIMP {
#define BLOCKSZ_SP 512
#define BLOCKSZ_DP 256
#define BLOCKSPERSM_SELF 2
#define BLOCKSPERSM_AB 2
#define TILE_HEIGHT 200
#define TILE_HEIGHT_DP 200
//Atomically updates the MP/idxs using a single 64-bit integer. We lose a small amount of precision in the output, if we do not ... |
90b5471ca23819cf029f448bc315275c09a24d30.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "core/common_cu.h"
#include "initializers/step.h"
#include "nodes/variable.h"
__global__
void StepFillKernel(const int n, float *out, const float min, const float step)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
if ... | 90b5471ca23819cf029f448bc315275c09a24d30.cu | #include "core/common_cu.h"
#include "initializers/step.h"
#include "nodes/variable.h"
__global__
void StepFillKernel(const int n, float *out, const float min, const float step)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) out[i] = min + i * step;
}
Step::Step(deepflow::InitParam *param) : Initializer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.