hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
671fb9d9ac0d6940c97ffbfd0cacfece74c2e38d.hip | // !!! This is a file automatically generated by hipify!!!
/*
* TGSimulator.cpp
*
* Created on: 22/mag/2018
* Author: Sabrina
*/
#include "TGSimulator.h"
#include <thrust/system/hip/execution_policy.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
TGSimulator::TGSimulator(){
// TODO Auto-gener... | 671fb9d9ac0d6940c97ffbfd0cacfece74c2e38d.cu | /*
* TGSimulator.cpp
*
* Created on: 22/mag/2018
* Author: Sabrina
*/
#include "TGSimulator.h"
#include <thrust/system/cuda/execution_policy.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
TGSimulator::TGSimulator(){
// TODO Auto-generated constructor stub
}
TGSimulator::TGSimulator(unsign... |
2154065b14e0abd0be6c7e2fcab88278d4d71f70.hip | // !!! This is a file automatically generated by hipify!!!
//MPChQ,
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include "book.h"
#include "gridcheck.h"
using namespace std;
# define Section 12 // numb... | 2154065b14e0abd0be6c7e2fcab88278d4d71f70.cu | //在MPC模型中将h改为Q,增加修改浇注温度
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <fstream>
#include "book.h"
#include "gridcheck.h"
using namespace std;
# define Section 12 // number of cooling sections
# define CoolSection 8
#... |
e9e22b7bd3d9118a50eead43e98f29cf3fd99a75.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <device_launch_parameters.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <string.h>
#define DATAFILE "./data.bin"
#define OUTFILE "./snapshot.bin"
//Volume Control Bl... | e9e22b7bd3d9118a50eead43e98f29cf3fd99a75.cu | #include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <device_launch_parameters.h>
#include <cuda_runtime.h>
#include <cuda.h>
#include <string.h>
#define DATAFILE "./data.bin"
#define OUTFILE "./snapshot.bin"
//Volume Control Block, which constains volume details
//Including #of blocks, #of free bloc... |
7ff7bb26cded3012e88ed9693ebc3d19d91daf88.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
... | 7ff7bb26cded3012e88ed9693ebc3d19d91daf88.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... |
e598e58f89521f9b81c9d143a15cd1f2e1ba6d36.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
#define num_thread 256
#define num_block 256
__global__ void blending(float *a,float *b,float *c,float *d,int width,int height,int w,float A,float error_lm,float error_mm,int class_num)
{
const int tid=threadId... | e598e58f89521f9b81c9d143a15cd1f2e1ba6d36.cu | #include "includes.h"
#define num_thread 256
#define num_block 256
__global__ void blending(float *a,float *b,float *c,float *d,int width,int height,int w,float A,float error_lm,float error_mm,int class_num)
{
const int tid=threadIdx.x;
const int bid=blockIdx.x;
const int Idx=num_thread*bid+tid;
float r_LM,r_MM, r_cent... |
4825c5aee9e029b22e60777cf2f3d61b383e55b2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Azzam Haidar
@author Ahmad Abdelfattah
... | 4825c5aee9e029b22e60777cf2f3d61b383e55b2.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Azzam Haidar
@author Ahmad Abdelfattah
@generated from magmablas/zgetrf_batched_smallsq_shfl.cu, normal z -> s, Thu Oct ... |
91eb5601f7290f1826248ea5119b921d37e73475.hip | // !!! This is a file automatically generated by hipify!!!
#include "ExpThrustFunctor.hh"
__device__ fptype device_Exp (fptype* evt, fptype* p, unsigned int* indices) {
fptype x = evt[indices[2 + indices[0]]];
fptype alpha = p[indices[1]];
fptype ret = EXP(alpha*x);
return ret;
}
__device__ fptype device_... | 91eb5601f7290f1826248ea5119b921d37e73475.cu | #include "ExpThrustFunctor.hh"
__device__ fptype device_Exp (fptype* evt, fptype* p, unsigned int* indices) {
fptype x = evt[indices[2 + indices[0]]];
fptype alpha = p[indices[1]];
fptype ret = EXP(alpha*x);
return ret;
}
__device__ fptype device_ExpOffset (fptype* evt, fptype* p, unsigned int* indices) {... |
548b0cc3155d57eb19ec774bfcaff7f488c0e590.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this sou... | 548b0cc3155d57eb19ec774bfcaff7f488c0e590.cu | /*
* Copyright 1993-2008 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws. Users and possessors of this source code
* are hereby granted a nonexclusive, royalty-free license to use this code
* ... |
d00a3acce83a431d29957a945905b792632bbf79.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... | d00a3acce83a431d29957a945905b792632bbf79.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... |
761998b4dd84687531fb14bdb0c48b184c5c54e2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <mshadow/tensor.h>
#include "./reorg-inl.h"
#include "../mxnet_op.h"
#define CUDA_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; \
i < (n); \
i += blockDim.x * gridDim.x)
namespace msh... | 761998b4dd84687531fb14bdb0c48b184c5c54e2.cu | #include <mshadow/tensor.h>
#include "./reorg-inl.h"
#include "../mxnet_op.h"
#define CUDA_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; \
i < (n); \
i += blockDim.x * gridDim.x)
namespace mshadow {
namespace cuda {
template<typename DType>
__global__ void ReorgForwardKernel(
... |
5542fe5f4b5401887a487114cb3063eec2862fe8.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <cmath>
#include <ATen/native/quantized/hip/fake_quantize_core.h>
/* FakeQuantize Op for PerTensorAffine quantization scheme */
namespace at {
namespace nat... | 5542fe5f4b5401887a487114cb3063eec2862fe8.cu | #include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <cmath>
#include <ATen/native/quantized/cuda/fake_quantize_core.h>
/* FakeQuantize Op for PerTensorAffine quantization scheme */
namespace at {
namespace native {
/* Fake-quantizes the 'inputs' tensor.
Args:
se... |
516f70bc9840e9cca0a1826efc3d9f973f90ee98.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "utils.h"
#include "common.h"
// Kernel for fast unfold+copy
// (borrowed from Caffe: https://github.com/BVLC/caffe/blob/master/src/caffe/layers/conv_layer.cu)
__global__ void im2col_kernel(const int n, const float* data_i... | 516f70bc9840e9cca0a1826efc3d9f973f90ee98.cu | #include "utils.h"
#include "common.h"
// Kernel for fast unfold+copy
// (borrowed from Caffe: https://github.com/BVLC/caffe/blob/master/src/caffe/layers/conv_layer.cu)
__global__ void im2col_kernel(const int n, const float* data_im,
const int height, const int width, const int ksize_h, const int ksize_w, const in... |
8e753019e2c58b07d9ce4917549fb0175c4c308e.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... | 8e753019e2c58b07d9ce4917549fb0175c4c308e.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... |
b5da4933e7aa607b54510ec3d5db639918c571b2.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef COMMON_CU__
#define COMMON_CU__ 1
//typedef unsigned long uint32_t;
// Children are labeled as ACGT$
//#include <stdint.h>
#include<hip/hip_vector_types.h>
const int basecount = 5;
// Note: max pixel size is 16 bytes
const unsigned char DNA_A = 'A';
... | b5da4933e7aa607b54510ec3d5db639918c571b2.cu | #ifndef COMMON_CU__
#define COMMON_CU__ 1
//typedef unsigned long uint32_t;
// Children are labeled as ACGT$
//#include <stdint.h>
#include<vector_types.h>
const int basecount = 5;
// Note: max pixel size is 16 bytes
const unsigned char DNA_A = 'A';
const unsigned char DNA_C = 'B';
const unsigned char DNA_G = 'C';
c... |
5ae6214d352eb1ae91ea4a3c6240d02bacb115e9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2008 BOROUJERDI Maxime. Tous droits reserves.
*/
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include "makebmp.h"
#include <new>
#include "../../mem_alloc/mem_alloc.h"
#include <cutil.... | 5ae6214d352eb1ae91ea4a3c6240d02bacb115e9.cu | /*
* Copyright 2008 BOROUJERDI Maxime. Tous droits reserves.
*/
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include "makebmp.h"
#include <new>
#include "../../mem_alloc/mem_alloc.h"
#include <cutil.h>
#include <helper_timer.h>
#include <rayTracing_kernel.cu>
#define PI 3.141592654f
#d... |
4cda9ab8b710bfa94cfe6d56998f12540e5d6699.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <time.h>
#include <sys/time.h>
#include <sys/errno.h>
#include <omp.h>
void MMScan(fl... | 4cda9ab8b710bfa94cfe6d56998f12540e5d6699.cu | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <time.h>
#include <sys/time.h>
#include <sys/errno.h>
#include <omp.h>
void MMScan(float ***X, float ***Y, long start, long end, long size) {
long n, i, j, k;
for (i... |
0f3c32bf826483c385d766a85650fb8df87f9414.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 19-Oct-2012 16:21:04
//
// user function
__device__
#include "updateUR.h"
// CUDA kernel function
__global__ void op_cuda_updateUR(
double *arg0,
double *arg1,
double *arg2,
double *arg3... | 0f3c32bf826483c385d766a85650fb8df87f9414.cu | //
// auto-generated by op2.m on 19-Oct-2012 16:21:04
//
// user function
__device__
#include "updateUR.h"
// CUDA kernel function
__global__ void op_cuda_updateUR(
double *arg0,
double *arg1,
double *arg2,
double *arg3,
const double *arg4,
int offset_s,
int set_size ) {
// process set elemen... |
476a429b7b1652251f34306dedd57f6834ad16cc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__device__ int satisfies(int i, int j, int *A, int *B)
{
return (A[i] <= B[j]);
}
__global__ void MergePath(int *A, int *B, int* C, int *x, int *y, int n)
{
int num_of_threads = blockDim.x;
int idx = threadIdx.... | 476a429b7b1652251f34306dedd57f6834ad16cc.cu | #include "includes.h"
__device__ int satisfies(int i, int j, int *A, int *B)
{
return (A[i] <= B[j]);
}
__global__ void MergePath(int *A, int *B, int* C, int *x, int *y, int n)
{
int num_of_threads = blockDim.x;
int idx = threadIdx.x;
bool flag = false;
if (idx == 0)
{
x[idx] = 0;
y[idx] = 0;
flag = true;
}
int A_start... |
8dda1e9d1694c07e0f75253b84edcb73a0ed7620.hip | // !!! This is a file automatically generated by hipify!!!
#include "copy.h"
#include <hip/hip_runtime.h>
#include "error.h"
namespace cutw
{
namespace detail
{
void copy_to_device_impl(const void* const host, void* const device,
const std::size_t size, Stream* const s)
{
if (s)
{
... | 8dda1e9d1694c07e0f75253b84edcb73a0ed7620.cu | #include "copy.h"
#include <cuda.h>
#include "error.h"
namespace cutw
{
namespace detail
{
void copy_to_device_impl(const void* const host, void* const device,
const std::size_t size, Stream* const s)
{
if (s)
{
CUTW_CUASSERT(cudaMemcpyAsync(device, host, size, cudaMemcpyHo... |
1d2df63a15df92dcd49044b607664c6d31896108.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright 1993-2014 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, ... | 1d2df63a15df92dcd49044b607664c6d31896108.cu | /*
* Copyright 1993-2014 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... |
bc07c849e1e378a929bb2f35adeb0ff0cfec6d28.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <cstdlib>
#include <assert.h>
#include <vector>
#include "utils.h"
const unsigned warp_size = 32;
__global__
void simpleTranspose(int* array_in, int* array_out, int n_rows, int n_cols) {
const int tid ... | bc07c849e1e378a929bb2f35adeb0ff0cfec6d28.cu | #include <cstdio>
#include <cstdlib>
#include <assert.h>
#include <vector>
#include "utils.h"
const unsigned warp_size = 32;
__global__
void simpleTranspose(int* array_in, int* array_out, int n_rows, int n_cols) {
const int tid = threadIdx.x + blockDim.x * blockIdx.x;
int col = tid % n_cols;
int row = tid / n_... |
28991f5bccb737e3b2d4c3df583911ddd1b9a4bf.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 sparse-iter/blas/ziterilu_kernels.cu no... | 28991f5bccb737e3b2d4c3df583911ddd1b9a4bf.cu | /*
-- MAGMA (version 2.0.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date February 2016
@generated from sparse-iter/blas/ziterilu_kernels.cu normal z -> d, Tue Feb 9 16:05:44 2016
*/
#include "magmasparse_internal.h"
#define PRE... |
d2f423cfb565a38ea53c900e0037f33c00689a74.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
// Includes
#include <stdio.h>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// incl... | d2f423cfb565a38ea53c900e0037f33c00689a74.cu | #include <stdio.h>
#include <stdlib.h>
#include <cutil.h>
// Includes
#include <stdio.h>
// includes, project
#include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples
//#include <shrQATest.h>
//#include <shrUtils.h>
// includes CUDA
#include <cuda_runtime.h>
//NI DAQ
#include "../... |
6eb13059557b04201baf7ac5d8679439f4602564.hip | // !!! This is a file automatically generated by hipify!!!
#include "cuda_common.h"
#include <stdio.h>
namespace allovolume {
void* gpuAllocate(size_t size) {
void* result = 0;
hipError_t err = hipMalloc(&result, size);
if(!result) {
fprintf(stderr, "cudaAllocate: hipMalloc() o... | 6eb13059557b04201baf7ac5d8679439f4602564.cu | #include "cuda_common.h"
#include <stdio.h>
namespace allovolume {
void* gpuAllocate(size_t size) {
void* result = 0;
cudaError_t err = cudaMalloc(&result, size);
if(!result) {
fprintf(stderr, "cudaAllocate: cudaMalloc() of %lu (%.2f MB): %s\n",
size, size / 104... |
b87339a66edbcc11472cc364027bf203fa8f3d49.hip | // !!! This is a file automatically generated by hipify!!!
////////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2021, NVIDIA Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modificatio... | b87339a66edbcc11472cc364027bf203fa8f3d49.cu | ////////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2021, NVIDIA Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are... |
c128ed338c61dcc4e9b0c344dc4f606c9d63fdbf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// This file is part of bp-layers.
//
// Copyright (C) 2020 Patrick Knbelreiter <knoebelreiter at icg dot tugraz dot at>
// Christian Sormann <christian dot sormann at icg dot tugraz dot at>
// Institute for Computer Graphics and Vi... | c128ed338c61dcc4e9b0c344dc4f606c9d63fdbf.cu | // This file is part of bp-layers.
//
// Copyright (C) 2020 Patrick Knöbelreiter <knoebelreiter at icg dot tugraz dot at>
// Christian Sormann <christian dot sormann at icg dot tugraz dot at>
// Institute for Computer Graphics and Vision, Graz University of Technology
// https://www.tugraz.at/institute/icg/teams/team-p... |
ddd3c7219fbc304ddd2cca7fe86a46ac004ea50f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/impl/HIPGuardImplMasqueradingAsCUDA.h>
#include <math.h>
#include <cstdio>
#include... | ddd3c7219fbc304ddd2cca7fe86a46ac004ea50f.cu | // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <c10/cuda/CUDAGuard.h>
#include <math.h>
#include <cstdio>
#include <sstream>
#include <tuple>
#include "rasterize_points/bitmask.cuh"
#include "rasterize_points/rasterization_uti... |
9d96b83f511b527a0214d5e15ede3ac133a47805.hip | // !!! This is a file automatically generated by hipify!!!
/*
Print all basic device informations you could need.
*/
#include <cstdio>
#include <hip/hip_runtime_api.h>
// To prevent calls from errors
#define CUDA_SAFE_CALL_NO_SYNC(x) \
do { ... | 9d96b83f511b527a0214d5e15ede3ac133a47805.cu | /*
Print all basic device informations you could need.
*/
#include <cstdio>
#include <cuda_runtime_api.h>
// To prevent calls from errors
#define CUDA_SAFE_CALL_NO_SYNC(x) \
do { \
cudaError_t err = x; ... |
3c163aeedd8f1d5bef8983d2af536e2a8a05c8c9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// RUN: %run_test hipify "%s" "%t" %cuda_args
/*
* 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 c... | 3c163aeedd8f1d5bef8983d2af536e2a8a05c8c9.cu | // RUN: %run_test hipify "%s" "%t" %cuda_args
/*
* 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, o... |
43a710e72f5b12f32845d56f32e318c9e280ba96.hip | // !!! This is a file automatically generated by hipify!!!
/*
* CudaAnnealing.cu
*
* Created on: Feb 6, 2019
* Author: alexander
*/
#include "Matrix.h"
#include "Spinset.h"
#include "CudaAnnealing.h"
#include <hip/hip_runtime.h>
#include <sstream>
#include <math.h>
void checkError(hipError_t err, string ar... | 43a710e72f5b12f32845d56f32e318c9e280ba96.cu | /*
* CudaAnnealing.cu
*
* Created on: Feb 6, 2019
* Author: alexander
*/
#include "Matrix.h"
#include "Spinset.h"
#include "CudaAnnealing.h"
#include <cuda_runtime.h>
#include <sstream>
#include <math.h>
void checkError(cudaError_t err, string arg = "") {
if (err != cudaSuccess) {
cout << "Error: " << c... |
fa70566cf1356fcabb1f2ad2740b3769f96e9bf4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Simple CUDA example by Ingemar Ragnemalm 2009. Simplest possible?
2 // Assigns every element in an array with its index.
3
4 // nvcc simple.cu -L /usr/local/cuda/lib -lcudart -o simple
5
6 #include <stdio.h>
7
8 const i... | fa70566cf1356fcabb1f2ad2740b3769f96e9bf4.cu | // Simple CUDA example by Ingemar Ragnemalm 2009. Simplest possible?
2 // Assigns every element in an array with its index.
3
4 // nvcc simple.cu -L /usr/local/cuda/lib -lcudart -o simple
5
6 #include <stdio.h>
7
8 const int N = 16;
9 const int blocksize = 16;
10
11 __global__
12 void simple(float *c)
13 {
1... |
9c986807e37d8b46618878058e7fa7aa01600c37.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2016 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
*
* ... | 9c986807e37d8b46618878058e7fa7aa01600c37.cu | /*
* Copyright 2016 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 ... |
6dcdef7d04ed656ec86f8dc16a1aa7a8af40b81e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* plasticity.cu
*
*
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <cutil.h>
// includes, kernels
#include "plasticity_kernel.cu"
#include "a... | 6dcdef7d04ed656ec86f8dc16a1aa7a8af40b81e.cu | /* plasticity.cu
*
*
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <cutil.h>
// includes, kernels
#include "plasticity_kernel.cu"
#include "assist.h"
#define ERROR_CHECK { cudaError_t err; \
if ((err = cudaGetLastError()) != c... |
ca8c5d54455ec20e3c2ab6be94d30041c2d72e98.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/common.h"
#include <stdlib.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
/*
* This example demonstrates P2P ping-ponging of data from one GPU to another,
* within the same node. By enabling peer-to-peer transfers, you ensure that
* ... | ca8c5d54455ec20e3c2ab6be94d30041c2d72e98.cu | #include "../common/common.h"
#include <stdlib.h>
#include <stdio.h>
#include <cuda_runtime.h>
/*
* This example demonstrates P2P ping-ponging of data from one GPU to another,
* within the same node. By enabling peer-to-peer transfers, you ensure that
* copies between GPUs go directly over the PCIe bus. If P2P is n... |
b52f63991689b6ee0a99e50aa01befaa13d2b157.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cstdio>
#include <ctime>
#include <vector>
#include <algorithm>
#include <stdlib.h>
// utilities
#include <helper_cuda.h>
#include <time.h>
///////////per request timing. L1 enabled. L2 has misses even when data size is l... | b52f63991689b6ee0a99e50aa01befaa13d2b157.cu | #include <cstdio>
#include <ctime>
#include <vector>
#include <algorithm>
#include <stdlib.h>
// utilities
#include <helper_cuda.h>
#include <time.h>
///////////per request timing. L1 enabled. L2 has misses even when data size is less than 1024 * 384 (1.5m). So the eviction policy seems not to be LRU.
//typedef unsig... |
4323d46b28f9fb2676f0e783e3d09fe3180bd9c2.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <stdlib.h>
#define N 10
__global__ void add(int *a, int *b, int *c) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < N) {
c[tid] = a[tid] + b[tid];
}
}
int main(void) {
... | 4323d46b28f9fb2676f0e783e3d09fe3180bd9c2.cu | #include <stdio.h>
#include <cuda.h>
#include <stdlib.h>
#define N 10
__global__ void add(int *a, int *b, int *c) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
if (tid < N) {
c[tid] = a[tid] + b[tid];
}
}
int main(void) {
int a[N], b[N], c[N];
int *dev_a, *dev_b, *dev_c;
cudaMall... |
7ad50e8265dc638633db87d77b1e0a94d9a7c919.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#include <hip/hip_runtime.h>
#define N 100
#define DIM 2
char le_entrada();
char inicializa_parametros();
double * aloca_ma... | 7ad50e8265dc638633db87d77b1e0a94d9a7c919.cu | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cuda.h>
#include <curand_kernel.h>
#include <cuda_runtime.h>
#define N 100
#define DIM 2
char le_entrada();
char inicializa_parametros();
double * aloca_matriz(int, int);
void cal_cond_robin();
char parametro_independentes();
char copia_... |
0b82d45e8fcd220fcbadfce3727c6210dea3361f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "Event.cuh"
//CUDA Kernel for Minidoublet creation
__global__ void createMiniDoubletsInGPU(SDL::MiniDoublet* mdCands, int n, SDL::MDAlgo algo)
{
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDi... | 0b82d45e8fcd220fcbadfce3727c6210dea3361f.cu | #include "Event.cuh"
//CUDA Kernel for Minidoublet creation
__global__ void createMiniDoubletsInGPU(SDL::MiniDoublet* mdCands, int n, SDL::MDAlgo algo)
{
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int stride = blockDim.x * gridDim.x;
for(int i = tid; i<n; i+= stride)
{
mdCands[i].runMiniD... |
39ce22b852a851284a7840fe3b812a1537166728.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "louvain_cuda.cuh"
#include "louvain_cuda_cpp_interface.hpp"
#include "GpuGraph.cuh"
#include <cstring>
#include <sstream>
#include <sys/time.h>
#include <time.h>
#include <hip/hip_cooperative_groups.h>
// #define PRINT... | 39ce22b852a851284a7840fe3b812a1537166728.cu | #include "louvain_cuda.cuh"
#include "louvain_cuda_cpp_interface.hpp"
#include "GpuGraph.cuh"
#include <cstring>
#include <sstream>
#include <sys/time.h>
#include <time.h>
#include <cooperative_groups.h>
// #define PRINT_HYBRID
// #define PRINT_TIMEDS
// #define USE_HYBRID_CPU_GPU
#define L_THREADBLOCK_SIZE 512
#d... |
687a80563d1dc8fb7581816e02b045d0c307464c.hip | // !!! This is a file automatically generated by hipify!!!
#include "pch.h"
#include "UniformGridSortBuilder.h"
#include "Algebra.h"
#include "UniformGrid.h"
#include "Primitive.h"
#include "BBox.h"
#include <thrust/device_allocator.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrus... | 687a80563d1dc8fb7581816e02b045d0c307464c.cu | #include "pch.h"
#include "UniformGridSortBuilder.h"
#include "Algebra.h"
#include "UniformGrid.h"
#include "Primitive.h"
#include "BBox.h"
#include <thrust/device_allocator.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/copy.h>
#include <thrust/fill.h>
#include <thrust/reduce.... |
29163c08310317f06d0373355c1d1b561cdd50ca.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void cuda_neural_net(float *Weights_D, int num_per_sweeper, int num_per_layer, int num_per_input, int num_per_output, int num_weights, int num_layers, float response, float *inputs_d, float *outputs_... | 29163c08310317f06d0373355c1d1b561cdd50ca.cu | #include "includes.h"
__global__ void cuda_neural_net(float *Weights_D, int num_per_sweeper, int num_per_layer, int num_per_input, int num_per_output, int num_weights, int num_layers, float response, float *inputs_d, float *outputs_d)
{
extern __shared__ float buffer[];
int start_of_weights = blockIdx.x * num_weights... |
eea0ef524980965b2b07d979135b8e525826764f.hip | // !!! This is a file automatically generated by hipify!!!
/*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/fill.h>
#include <thrust/device_ptr.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "xgboost/data.h"
#include "xgboost/host_device_vector.h"
#include "xgboost/tree_model.h"
... | eea0ef524980965b2b07d979135b8e525826764f.cu | /*!
* Copyright 2017 XGBoost contributors
*/
#include <thrust/fill.h>
#include <thrust/device_ptr.h>
#include <algorithm>
#include <cstdint>
#include <mutex>
#include "xgboost/data.h"
#include "xgboost/host_device_vector.h"
#include "xgboost/tree_model.h"
#include "device_helpers.cuh"
namespace xgboost {
// the ... |
a9170f20ef66a1619c551e83f037bd472c0f5911.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
#include <stdio.h>
#include <helper_math.h>
#define TPB 512
__global__
void centroidKernel(const uchar4 *d_img, int *d_centroidCol,
int *d_centroidRow, int *d_pixelCount,
int width, int height){
__shared__ ... | a9170f20ef66a1619c551e83f037bd472c0f5911.cu | #include "kernel.h"
#include <stdio.h>
#include <helper_math.h>
#define TPB 512
__global__
void centroidKernel(const uchar4 *d_img, int *d_centroidCol,
int *d_centroidRow, int *d_pixelCount,
int width, int height){
__shared__ uint4 s_img[TPB];
const int idx = threadIdx.x + blockDim.x * blockIdx.x;
const int s_... |
088c33b1643cb8e440a1590dc769503bb3b11354.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__ void teste (int *dev_a)
{
__shared__ int a[10];
a[threadIdx.x] = threadIdx.x;
__syncthreads();
printf("[%d] %d\n", threadIdx.x, a[(threadIdx.x+1)%10] );
}
int main(int argc, char const *argv[]... | 088c33b1643cb8e440a1590dc769503bb3b11354.cu |
#include <stdio.h>
__global__ void teste (int *dev_a)
{
__shared__ int a[10];
a[threadIdx.x] = threadIdx.x;
__syncthreads();
printf("[%d] %d\n", threadIdx.x, a[(threadIdx.x+1)%10] );
}
int main(int argc, char const *argv[])
{
int *dev_a;
// int *host_a;
cudaMalloc((void**) &dev_a, 10 * sizeof(int));
teste... |
7accb1bc0097769e9e6cd558897da009aea4c9e6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <math.h>
#include "../headers/graph.h"
#define THREADS_PER_BLOCK_X 32
#define THREADS_PER_BLOCK_Y 32
#define MAX_THREADS_PER_BLOCK 1024
using na... | 7accb1bc0097769e9e6cd558897da009aea4c9e6.cu | #include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <math.h>
#include "../headers/graph.h"
#define THREADS_PER_BLOCK_X 32
#define THREADS_PER_BLOCK_Y 32
#define MAX_THREADS_PER_BLOCK 1024
using namespace std;
__global__
void AloopFW_inner(int ** d_x, int x_row_st, int x_col_st,
... |
87373a4d4d8ec137ecc9b952d80f07c6c4f2165d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
// This will output the proper CUDA error strings in the event that a CUDA host call returns an error
#define checkCudaErrors(err) __checkCudaErrors (err, __FILE__, __LINE__)
inline void __checkCudaErrors(hipEr... | 87373a4d4d8ec137ecc9b952d80f07c6c4f2165d.cu | #include <stdlib.h>
#include <stdio.h>
// This will output the proper CUDA error strings in the event that a CUDA host call returns an error
#define checkCudaErrors(err) __checkCudaErrors (err, __FILE__, __LINE__)
inline void __checkCudaErrors(cudaError err, const char *file, const int line)
{
if (cudaS... |
8586016f3406a7e2682d6cb9feed2c26ff0799f2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//===---- reduction.cu - NVPTX OpenMP reduction implementation ---- CUDA
//-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// ... | 8586016f3406a7e2682d6cb9feed2c26ff0799f2.cu | //===---- reduction.cu - NVPTX OpenMP reduction implementation ---- CUDA
//-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------------------... |
10856fb18c6319f77c1b8555ad9f3fd4b366a095.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "v1.h"
#include "utils.cuh"
int main(int argc, char* argv[])
{
printf(CYN "VERSION 2\n" RESET);
if (argc < 5) {
printf("Bad arguments\n"... | 10856fb18c6319f77c1b8555ad9f3fd4b366a095.cu | #include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "v1.h"
#include "utils.cuh"
int main(int argc, char* argv[])
{
printf(CYN "VERSION 2\n" RESET);
if (argc < 5) {
printf("Bad arguments\n");
printf("USAGE ./bin/v1 <noised_image.txt> <patch... |
99bbfdd423add427a42caeec0bf601e221531254.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <omp.h>
#include <stdlib.h>
#include <math.h>
#include <array>
#include <vector>
#include <sstream>
#include <chrono>
#include <hiprand/hiprand_kernel.h>
#include <limits>
#include <memory>
#include <cstddef>
... | 99bbfdd423add427a42caeec0bf601e221531254.cu | #include <cuda.h>
#include <omp.h>
#include <stdlib.h>
#include <math.h>
#include <array>
#include <vector>
#include <sstream>
#include <chrono>
#include <curand_kernel.h>
#include <limits>
#include <memory>
#include <cstddef>
#include <type_traits>
#include "../include/timer.cuh"
#include "../includ... |
1cad9d641df9b435071b9328ac5a310e6890d207.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... | 1cad9d641df9b435071b9328ac5a310e6890d207.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... |
4a23ddb5df4bfbb7b2ce8cf5b2fe54b7f96c1d94.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int dims_update_halo_kernel1_l2 [8][2];
static int dims_update_halo_kernel1_l2_h [8][2] = {0};
//user function
__device__
inline void update_halo_kernel1_l2_gpu(ACC<double> &density0,... | 4a23ddb5df4bfbb7b2ce8cf5b2fe54b7f96c1d94.cu | //
// auto-generated by ops.py
//
__constant__ int dims_update_halo_kernel1_l2 [8][2];
static int dims_update_halo_kernel1_l2_h [8][2] = {0};
//user function
__device__
inline void update_halo_kernel1_l2_gpu(ACC<double> &density0,
ACC<double> &density1,
ACC<double> &energy0,
ACC<double> &energy1,
ACC<double> ... |
7309f5103ec6ec6092c9743544ca9f3d014d900e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/ATen.h>
#include <ATen/InitialTensorOptions.h>
#include <ATen/NativeFunctions.h>
#include <ATen/hip/HIPApplyUtils.cuh>
#include <ATen/hip/HIPContext.h>
#include <ATen/native/TensorFactories.h>
#include <ATen/native/hi... | 7309f5103ec6ec6092c9743544ca9f3d014d900e.cu | #include <ATen/ATen.h>
#include <ATen/InitialTensorOptions.h>
#include <ATen/NativeFunctions.h>
#include <ATen/cuda/CUDAApplyUtils.cuh>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/native/TensorFactories.h>
#include <ATen/native/cuda/Resize.cuh>
#include <c10/util/Exception.h>
#include <THC/THCGeneral.h>
#include... |
ccbc62e219661b2daae9ec09cff3dd4ee1231b55.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* R... | ccbc62e219661b2daae9ec09cff3dd4ee1231b55.cu | /***************************************************************************************************
* Copyright (c) 2017 - 2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
553bdc21d634d77ff1d63ed10771cde8e1ac344e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// -------------------------------------------------------------
// cuDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// $Revision: 5633 $
// $Date: 2009-07-01 15:02... | 553bdc21d634d77ff1d63ed10771cde8e1ac344e.cu | // -------------------------------------------------------------
// cuDPP -- CUDA Data Parallel Primitives library
// -------------------------------------------------------------
// $Revision: 5633 $
// $Date: 2009-07-01 15:02:51 +1000 (Wed, 01 Jul 2009) $
// ------------------------------------------------------... |
d88755195efa8138aea0e81de66413858a875be4.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 "apply_step_function.cu"
#include<chrono>
#include<iostream>
usin... | d88755195efa8138aea0e81de66413858a875be4.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 "apply_step_function.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,1... |
045007776db80d75ba3106e801b8d9c1798b745f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* 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 soft... | 045007776db80d75ba3106e801b8d9c1798b745f.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... |
b0267f81a43af9525db0c3f7258db0eb1549b04d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@precisions normal z -> s d c
*/
#include "magma_intern... | b0267f81a43af9525db0c3f7258db0eb1549b04d.cu | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@precisions normal z -> s d c
*/
#include "magma_internal.h"
/******************************************************************************/... |
b0742c0d6f2211990a2a854e5f40f8b2277900f1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "headers/myHeaders.h"
#include "headers/myUtilityFunctions.h"
using namespace std;
__global__ void update_array_gpu_tiled(int mode, int i, cellType *d_array)
{
int myBlockId = (blockIdx.x) + 1;
int r,c;
//gener... | b0742c0d6f2211990a2a854e5f40f8b2277900f1.cu |
#include "headers/myHeaders.h"
#include "headers/myUtilityFunctions.h"
using namespace std;
__global__ void update_array_gpu_tiled(int mode, int i, cellType *d_array)
{
int myBlockId = (blockIdx.x) + 1;
int r,c;
//generate hanging points (r,c)
if (mode == 1)
{
r = 1 + (i-1) * TILE_ROWS - ( (myBl... |
e2f59d94f59d3bab84ae199f7e76f2626a991fe2.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,... | e2f59d94f59d3bab84ae199f7e76f2626a991fe2.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.
*
*... |
d6a74f9af3bf3c0bd9d9e824b92f5b4b6aa1a5b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <THH/THH.h>
#include <THH/THHTensorMath.h>
#include <THH/THHGeneral.h>
#include <THH/THHBlas.h>
#include <THH/THHTensorCopy.h>
#include <THH/THHTensorRandom.h>
#include <TH/THHalf.h>
#include <THH/THHApply.cuh>
#include <TH... | d6a74f9af3bf3c0bd9d9e824b92f5b4b6aa1a5b0.cu | #include <THC/THC.h>
#include <THC/THCTensorMath.h>
#include <THC/THCGeneral.h>
#include <THC/THCBlas.h>
#include <THC/THCTensorCopy.h>
#include <THC/THCTensorRandom.h>
#include <TH/THHalf.h>
#include <THC/THCApply.cuh>
#include <THC/THCReduce.cuh>
#include <THC/THCDeviceUtils.cuh>
#include <THC/THCNumerics.cuh>
#inclu... |
cc6c41db0fcae718f69e3e4064c16ff27a99d5c6.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <hip/hip_runtime_api.h>
#include <errno.h>
#include <unistd.h>
/******************************************************************************
* This program takes an initial ... | cc6c41db0fcae718f69e3e4064c16ff27a99d5c6.cu | #include <stdio.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <cuda_runtime_api.h>
#include <errno.h>
#include <unistd.h>
/******************************************************************************
* This program takes an initial estimate of m and c and finds the associated
* rms error. It... |
66ef463a1e2291130a0e375b786d3a31f3f93c2b.hip | // !!! This is a file automatically generated by hipify!!!
// "mpi + full reduction on gpu + timing"
#ifdef GPU
#include <hip/hip_runtime.h>
#endif
#include <mpi.h>
#include <iostream>
#include <vector>
#include "mpierr.h"
#include <cmath>
#include <algorithm>
#include <sstream>
#include <string>
#include <set>
#incl... | 66ef463a1e2291130a0e375b786d3a31f3f93c2b.cu | // "mpi + full reduction on gpu + timing"
#ifdef GPU
#include <cuda.h>
#endif
#include <mpi.h>
#include <iostream>
#include <vector>
#include "mpierr.h"
#include <cmath>
#include <algorithm>
#include <sstream>
#include <string>
#include <set>
#include <numeric>
#include <ctime>
// switches:
// #GPU : enable GPU comp... |
948629edcf84198f9562f7e033f1bcd73fb537e4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "THHTensorRandom.h"
#include "THHDeviceUtils.cuh"
#include "THHGeneral.h"
#include "THHTensorCopy.h"
#include "THHTensorMath.h"
#include "THHReduceApplyUtils.cuh"
#include "THHTensorRandom.cuh"
#include <thrust/functional.... | 948629edcf84198f9562f7e033f1bcd73fb537e4.cu | #include "THCTensorRandom.h"
#include "THCDeviceUtils.cuh"
#include "THCGeneral.h"
#include "THCTensorCopy.h"
#include "THCTensorMath.h"
#include "THCReduceApplyUtils.cuh"
#include "THCTensorRandom.cuh"
#include <thrust/functional.h>
#include <curand.h>
#include <curand_kernel.h>
#include <curand_mtgp32_host.h>
#inclu... |
980d8716bdf6a94c3343eb44939e6088bd10a10f.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************
*
* (C) Copyright 2007 The Board of Trustees of the
* University of Illinois
* All Rights Reserved
*
*******************... | 980d8716bdf6a94c3343eb44939e6088bd10a10f.cu | /***************************************************************************
*
* (C) Copyright 2007 The Board of Trustees of the
* University of Illinois
* All Rights Reserved
*
***************************************************************************/
... |
caf6d2cd532e07cb318cad1e8516f1b6ae481867.hip | // !!! This is a file automatically generated by hipify!!!
/*CWM HPC Part B Assignment: Monte Carlo Method for calculating pi value on GPU
2021/5/58 Jianhao Yuan */
// reference: https://blog.csdn.net/ichocolatekapa/article/details/18960223
//import libs
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime... | caf6d2cd532e07cb318cad1e8516f1b6ae481867.cu | /*CWM HPC Part B Assignment: Monte Carlo Method for calculating pi value on GPU
2021/5/58 Jianhao Yuan */
// reference: https://blog.csdn.net/ichocolatekapa/article/details/18960223
//import libs
#include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
//curand for random points generate
#include <curand.h>
#include <... |
4e8992a82a0e59d70665ce60c2a2f083c07ab16f.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#define N 100 // total number of items in vectors
#define nthreads 4 // total number of threads in a block
__global__ void... | 4e8992a82a0e59d70665ce60c2a2f083c07ab16f.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cuda.h>
#include <curand_kernel.h>
#define N 100 // total number of items in vectors
#define nthreads 4 // total number of threads in a block
__global__ void estimatepi(int n, int *sum)
{
__shared__ int counter[nthreads];
int threadI... |
e82ddd7a4355e3aca0a8d72cf2bb341f3a323439.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "jacobian_kernel.h"
#define BLOCK 32
__global__
void laplacePDE(float *d_in, float *d_temp, int numRows, int numCols, float *d_error){
/*
Your kernel here: Make sure to check for boundary conditions
*/
int x = ... | e82ddd7a4355e3aca0a8d72cf2bb341f3a323439.cu | #include "jacobian_kernel.h"
#define BLOCK 32
__global__
void laplacePDE(float *d_in, float *d_temp, int numRows, int numCols, float *d_error){
/*
Your kernel here: Make sure to check for boundary conditions
*/
int x = threadIdx.x + blockIdx.x * blockDim.x;
int y = threadIdx.y + blockIdx.y * blockDim.y;
... |
cf3a1ae085924ef98331e4cbbe2f385f1c6425ea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | cf3a1ae085924ef98331e4cbbe2f385f1c6425ea.cu | /*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
296175f232005248f0fe40bb717c1c8158311884.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void kernelUpdateNablaB(float *nabla_b,float *delta_nabla_b) {
nabla_b[threadIdx.x]+=delta_nabla_b[threadIdx.x];
} | 296175f232005248f0fe40bb717c1c8158311884.cu | #include "includes.h"
__global__ void kernelUpdateNablaB(float *nabla_b,float *delta_nabla_b) {
nabla_b[threadIdx.x]+=delta_nabla_b[threadIdx.x];
} |
c386c207541b505173c77aaafa59ae27cbc4ce64.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void kAdagrad(float *history, float *grad, float delta, int len) {
const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
const unsigned int numThreads = blockDim.x * gridDim.x;
for (unsigne... | c386c207541b505173c77aaafa59ae27cbc4ce64.cu | #include "includes.h"
__global__ void kAdagrad(float *history, float *grad, float delta, int len) {
const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;
const unsigned int numThreads = blockDim.x * gridDim.x;
for (unsigned int i = idx; i < len; i += numThreads) {
float curr_norm = history[i] - delta;
history... |
9b6044fc5a712be33c6b5e4b0a7da422b5495d27.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include "def_hip.cuh"
#include <hip/hip_runtime.h>
__device__ long edep_index(long x, long y, long z) {
return x*(ny+2)*(nz+2) + y*(nz+2) + z;
}
__device__ double square(double x){
return x*x;
}
// Piecewise linear interpolation
... | 9b6044fc5a712be33c6b5e4b0a7da422b5495d27.cu | #include <iostream>
#include "def.cuh"
#include <cuda_runtime.h>
__device__ long edep_index(long x, long y, long z) {
return x*(ny+2)*(nz+2) + y*(nz+2) + z;
}
__device__ double square(double x){
return x*x;
}
// Piecewise linear interpolation
// Use binary search to find the segment
// Ref: https://software.... |
e324c4d18338fd7f6a1a275cbca2ae013012c9e9.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "libaxb.h"
#include "libaxb/backend.h"
#include "libaxb/general.h"
#include "libaxb/backend/op.h"
#include <hip/hip_runtime.h>
/////////////////////
__global__
static void kernel_vec_set_fr... | e324c4d18338fd7f6a1a275cbca2ae013012c9e9.cu |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "libaxb.h"
#include "libaxb/backend.h"
#include "libaxb/general.h"
#include "libaxb/backend/op.h"
#include <cuda_runtime.h>
/////////////////////
__global__
static void kernel_vec_set_from_device(int n, double *x, const double *alpha)
{
for (int ... |
1215b2dadf3c624e7a9529b46be4b5bd9df2609d.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include "../include/RunKernel.h"
__global__ void simple_vbo_kernel(float3 *pos, unsigned int width, unsigned int height, float time)
{
unsigned int x = blockIdx.x*blockDim.x + threadIdx.x;
unsigned int y = blockIdx.y*blockDim.y... | 1215b2dadf3c624e7a9529b46be4b5bd9df2609d.cu | #include <cuda_runtime.h>
#include "../include/RunKernel.h"
__global__ void simple_vbo_kernel(float3 *pos, unsigned int width, unsigned int height, float time)
{
unsigned int x = blockIdx.x*blockDim.x + threadIdx.x;
unsigned int y = blockIdx.y*blockDim.y + threadIdx.y;
// calculate uv coordinates
float u = x / (... |
98eda9b282bb0518fdc46f72292ec9abcbf9ed8f.hip | // !!! This is a file automatically generated by hipify!!!
/*
* naive_cuckoo.cu
*
* Created on: 03-05-2015
* Author: Karol Dzitkowski
*/
#include "cuckoo_hash.hpp"
#include "macros.h"
#include "constants.h"
#include "hash_function.cuh"
#include "naive_cuckoo_hash.cuh"
#include <random>
#include <thrust/dev... | 98eda9b282bb0518fdc46f72292ec9abcbf9ed8f.cu | /*
* naive_cuckoo.cu
*
* Created on: 03-05-2015
* Author: Karol Dzitkowski
*/
#include "cuckoo_hash.hpp"
#include "macros.h"
#include "constants.h"
#include "hash_function.cuh"
#include "naive_cuckoo_hash.cuh"
#include <random>
#include <thrust/device_ptr.h>
#include <thrust/copy.h>
#include <thrust/gather... |
a5e648d9ad2f3df5b4f15f49788570f04c1b05e8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
__global__
void saxpy(int n, float a, float *x, float *y){
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) y[i] = a*x[i] + y[i];
}
int main(void){
int N = 1<<20;
float *x, *y, *d_x, *d_y;
x = (fl... | a5e648d9ad2f3df5b4f15f49788570f04c1b05e8.cu | #include <stdio.h>
__global__
void saxpy(int n, float a, float *x, float *y){
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) y[i] = a*x[i] + y[i];
}
int main(void){
int N = 1<<20;
float *x, *y, *d_x, *d_y;
x = (float*)malloc(N*sizeof(float));
y = (float*)malloc(N*sizeof(float));
cudaMalloc(&d_x, ... |
b1e56b5541736bc0fb774e6a230915de8f5732fd.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
int main(int argc, char **argv){
hipDeviceProp_t dP;
float min_cc = 3.0;
int deviceCount, rc;
rc = hipGetDeviceCount(&deviceCount);
if(rc != hipSuccess) {
hipError_t error = hipGetLastError();
printf... | b1e56b5541736bc0fb774e6a230915de8f5732fd.cu | #include <stdio.h>
int main(int argc, char **argv){
cudaDeviceProp dP;
float min_cc = 3.0;
int deviceCount, rc;
rc = cudaGetDeviceCount(&deviceCount);
if(rc != cudaSuccess) {
cudaError_t error = cudaGetLastError();
printf("CUDA error: %s", cudaGetErrorString(error));
r... |
7c88e8e62bc0c204de25596d6c3c566853abac20.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... | 7c88e8e62bc0c204de25596d6c3c566853abac20.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, ... |
9d5d11c20d9d5ee321f756c457e246f22d22120f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 2014 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
*
* ... | 9d5d11c20d9d5ee321f756c457e246f22d22120f.cu | /*
* Copyright 2014 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 ... |
d26afea697572b114d0801f1d56ccd05f91ef1d2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ static void convertVToRGBKernel(const uint16_t *pV210, uint8_t *tt1, int nSrcWidth, int nDstWidth, int nDstHeight, int *lookupTable) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int tidd = bloc... | d26afea697572b114d0801f1d56ccd05f91ef1d2.cu | #include "includes.h"
__global__ static void convertVToRGBKernel(const uint16_t *pV210, uint8_t *tt1, int nSrcWidth, int nDstWidth, int nDstHeight, int *lookupTable) {
int tid = blockIdx.x * blockDim.x + threadIdx.x;
int tidd = blockIdx.y * blockDim.y + threadIdx.y;
uint32_t v0, y0, u0, y2, u1, y1, u2, y3, v1, y5, v2, ... |
8bbf26e6cbdab12bb578f891431eeddd3e1a0821.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,... | 8bbf26e6cbdab12bb578f891431eeddd3e1a0821.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 relate... |
6513a1e1840bf400f5d1f67e68ab07727aa3d626.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "sum.hh"
#include "../runtime/node.hh"
namespace gpu
{
namespace
{
constexpr std::size_t BLOCK_SIZE = 512;
__global__
void mse(const dbl_t* a, const dbl_t* b, dbl_t* out,
... | 6513a1e1840bf400f5d1f67e68ab07727aa3d626.cu | #include "sum.hh"
#include "../runtime/node.hh"
namespace gpu
{
namespace
{
constexpr std::size_t BLOCK_SIZE = 512;
__global__
void mse(const dbl_t* a, const dbl_t* b, dbl_t* out,
std::size_t len)
{
__shared__ float partial[2 * BLOCK_SIZE];
... |
a30bb0bd2450f27492a9744636d0fec013d3ef79.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "gpu_util.h"
#include "centroid.h"
/** First we want to calculate a histogram of columns for now
* After that, use the centroid algorithm (center of mass)
* Weighted sum / sum
*/
__global__ void GPU_hist_colsum(float... | a30bb0bd2450f27492a9744636d0fec013d3ef79.cu | #include "gpu_util.h"
#include "centroid.h"
/** First we want to calculate a histogram of columns for now
* After that, use the centroid algorithm (center of mass)
* Weighted sum / sum
*/
__global__ void GPU_hist_colsum(float *image,
int n_rows, int n_cols, int offset, int shmemsize, int weighted) {
int i ... |
ebeb1f96d8e3d2a476b574cc7c80b3fc1bab629e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void GreaterThan(float * xf, bool * xb, size_t idxf, size_t idxb, size_t N)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < N; i += blockDim.x * gridDim.x)
{
xb[idxb*N+i] = xf[(idxf-1)*N+i]... | ebeb1f96d8e3d2a476b574cc7c80b3fc1bab629e.cu | #include "includes.h"
__global__ void GreaterThan(float * xf, bool * xb, size_t idxf, size_t idxb, size_t N)
{
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < N; i += blockDim.x * gridDim.x)
{
xb[idxb*N+i] = xf[(idxf-1)*N+i] > xf[(idxf-2)*N+i];
}
return;
} |
072074cf7d693354ccf58b49dccfd66f3366141e.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <thread>
#include <vector>
#include <deque>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <hip/hip_runtime.h>
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <THH/THH.h>
#include <THH/THHAtomics... | 072074cf7d693354ccf58b49dccfd66f3366141e.cu | #include <math.h>
#include <thread>
#include <vector>
#include <deque>
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <cuda_runtime.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <THC/THC.h>
#include <THC/THCAtomics.cuh>
#include <THC/THCDeviceUtils.cuh>
#define CUDA_NUM_TH... |
0b724b90f946761d92243953c700904084a4bd54.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* This is a automatically generated test. Do not modify */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__
void compute(float comp, float var_1,float var_2,float var_3,float var_4,float var_5,float var_6,floa... | 0b724b90f946761d92243953c700904084a4bd54.cu |
/* This is a automatically generated test. Do not modify */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__
void compute(float comp, float var_1,float var_2,float var_3,float var_4,float var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11) {
if (comp < (-1.3332E2f * (v... |
ffa9f46b40e647873d1f11ef9d031c29d70bd8a7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
#include <IL/il.h>
using namespace std;
__global__ void sobel(unsigned char *data,unsigned char *out,size_t rows,size_t cols){
auto idx = blockIdx.x... | ffa9f46b40e647873d1f11ef9d031c29d70bd8a7.cu | #include <iostream>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
#include <IL/il.h>
using namespace std;
__global__ void sobel(unsigned char *data,unsigned char *out,size_t rows,size_t cols){
auto idx = blockIdx.x * blockDim.x + threadIdx.x;
auto idy = blockIdx.y * blockDim.y + threadIdx.y;
int h,... |
966278e82d168d38f33101809dd37c88dd019218.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 "mm.hip"
#include<chrono>
#include<iostream>
using namespace std;... | 966278e82d168d38f33101809dd37c88dd019218.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 "mm.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32,32... |
ea6ead9926494555d005d72cfef29394cc97f0bc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cstdio"
#include "gpu_interface.h"
#include "mem_controller.h"
#include "vector"
#include "iostream"
#include "global.h"
#include "iostream"
using namespace std;
__global__ void kernel_calc( unsigned int** src_list_1,
... | ea6ead9926494555d005d72cfef29394cc97f0bc.cu | #include "cuda.h"
#include "cstdio"
#include "gpu_interface.h"
#include "mem_controller.h"
#include "vector"
#include "iostream"
#include "global.h"
#include "iostream"
using namespace std;
__global__ void kernel_calc( unsigned int** src_list_1,
unsigned int** src_list_2,
u... |
85fb331d4a4c5ec755d5b57954342a188e5bba4b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 85fb331d4a4c5ec755d5b57954342a188e5bba4b.cu | /**
* Copyright (c) 2016-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
72fb6a7efa64f181131b31ceb313eef34ba7069d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* _reg_spline_gpu.cu
*
*
* Created by Marc Modat on 24/03/2009.
* Copyright (c) 2009-2018, University College London
* Copyright (c) 2018, NiftyReg Developers.
* All rights reserved.
* See the LICENSE.txt file in ... | 72fb6a7efa64f181131b31ceb313eef34ba7069d.cu | /*
* _reg_spline_gpu.cu
*
*
* Created by Marc Modat on 24/03/2009.
* Copyright (c) 2009-2018, University College London
* Copyright (c) 2018, NiftyReg Developers.
* All rights reserved.
* See the LICENSE.txt file in the nifty_reg root folder
*
*/
#ifndef _reg_spline_GPU_CU
#define _reg_spline_GPU_CU
... |
2c1a8d9e350341e38445e056d8c12d99b849a4b9.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<iostream>
using namespace std;
/* a sum reduction on the array of floats 'in'.
* The reduction result is written to the
* address 'result'. The number of elements to
... | 2c1a8d9e350341e38445e056d8c12d99b849a4b9.cu | #include<stdio.h>
#include<iostream>
using namespace std;
/* a sum reduction on the array of floats 'in'.
* The reduction result is written to the
* address 'result'. The number of elements to
* be reduced is given by 'size'
*
* The example contains data r... |
ecce4f2c534adeb37f9f5e606bfec310f37448d9.hip | // !!! This is a file automatically generated by hipify!!!
#include <iostream>
#include <hip/hip_runtime.h>
#include <chrono>
#include "sha1.h"
#define BLOCK 4096
#define THREAD 256
#define ITER 1024
void checkCudaError(hipError_t msg, int x)
{
if (msg != hipSuccess) {
fprintf(stderr, "line: %d %s\n", x, hipGet... | ecce4f2c534adeb37f9f5e606bfec310f37448d9.cu | #include <iostream>
#include <cuda.h>
#include <chrono>
#include "sha1.h"
#define BLOCK 4096
#define THREAD 256
#define ITER 1024
void checkCudaError(cudaError_t msg, int x)
{
if (msg != cudaSuccess) {
fprintf(stderr, "line: %d %s\n", x, cudaGetErrorString(msg));
exit(1);
}
return;
}
int main()
{
std::... |
eb0a51fae68f1023629c1947e7898a31729848ff.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>
template <typename scalar_t>
__global__ void packed_to_padded_tensor_kernel(
const scalar_t* __restrict__ inputs,
const long* ... | eb0a51fae68f1023629c1947e7898a31729848ff.cu | // Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
#include <ATen/ATen.h>
template <typename scalar_t>
__global__ void packed_to_padded_tensor_kernel(
const scalar_t* __restrict__ inputs,
const long* __restrict__ first_idxs,
scalar_t* __restrict__ inputs_padded,
const size_t batc... |
c53df6553fccdd60d2cb2dac3cd8f462ff8e58cc.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#define N 100000
__global__ void kernel_add(int a, int b, int *c){
*c = a + b;
}
int main(int argc, char **argv){
int* host_a = (int*) malloc(sizeof(int));
int* host_b = (int*) malloc(sizeof(int));
... | c53df6553fccdd60d2cb2dac3cd8f462ff8e58cc.cu | #include <cuda.h>
#include <stdio.h>
#define N 100000
__global__ void kernel_add(int a, int b, int *c){
*c = a + b;
}
int main(int argc, char **argv){
int* host_a = (int*) malloc(sizeof(int));
int* host_b = (int*) malloc(sizeof(int));
int* host_c = (int*) malloc(sizeof(int));
int* device_c;
... |
e19a753e8bb31c6815b8cd687c5c6db7c2d3aab0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*****Implemented first layer of convolution using global memory*******/
/**Implemented First Maxpool Layer**/
/**Measuring time**/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include "string.h"
// #include<time.h>
#i... | e19a753e8bb31c6815b8cd687c5c6db7c2d3aab0.cu | /*****Implemented first layer of convolution using global memory*******/
/**Implemented First Maxpool Layer**/
/**Measuring time**/
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include "string.h"
// #include<time.h>
#include<float.h>
__constant__ int FIL[32*5*5];
__global__ void conv1(unsigned int *pich... |
fba12f83d0a66098ed0e791f001f37947250d760.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken fro... | fba12f83d0a66098ed0e791f001f37947250d760.cu | #include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken from http://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functio... |
1f2c5deffc7d272abf6e0dfdf81351b3c8010928.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#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>
#define BLOCK_X 16
#define BLOCK_Y 16
#define PI 3.1415... | 1f2c5deffc7d272abf6e0dfdf81351b3c8010928.cu | #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>
#define BLOCK_X 16
#define BLOCK_Y 16
#define PI 3.1415926535897932
const int threads_per_block = 512;
/**
@var M value for Linear Congruenti... |
0c962fcaddccf1952067640a1489182daf73b2bc.hip | // !!! This is a file automatically generated by hipify!!!
#include "cuda_helper.cuh"
#include "../image_exception.h"
namespace Cuda
{
bool isCudaSupported()
{
int deviceCount = 0;
if( !cudaSafeCheck( hipGetDeviceCount( &deviceCount ) ) )
return false;
return (deviceCount >... | 0c962fcaddccf1952067640a1489182daf73b2bc.cu | #include "cuda_helper.cuh"
#include "../image_exception.h"
namespace Cuda
{
bool isCudaSupported()
{
int deviceCount = 0;
if( !cudaSafeCheck( cudaGetDeviceCount( &deviceCount ) ) )
return false;
return (deviceCount > 0);
}
void validateKernel()
{
cudaEr... |
a496bf15fdb6a0fda0223b2d82ab33b47cfab313.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void addOneRowPerThread(double* a, double* b, double* c, int n)
{
// Get the row for current thread
int row = (blockIdx.y * blockDim.y + threadIdx.y);
// Make sure we do not go out of bounds
if (row... | a496bf15fdb6a0fda0223b2d82ab33b47cfab313.cu | #include "includes.h"
__global__ void addOneRowPerThread(double* a, double* b, double* c, int n)
{
// Get the row for current thread
int row = (blockIdx.y * blockDim.y + threadIdx.y);
// Make sure we do not go out of bounds
if (row < n)
{
int idx = row * n;
for (int i = 0; i < n; i++)
{
c[idx + i] = a[idx + i] + b[idx... |
c40e5798d7e80bf083c79086cd7419e6dd931590.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*! \file ppmc_cuda.cu
* \brief Functions definitions for the ppm kernels, using characteristic
tracing. Written following Stone et al. 2008. */
#include <math.h>
#include "../global/global.h"
#include "../global/global_cuda.h"... | c40e5798d7e80bf083c79086cd7419e6dd931590.cu | /*! \file ppmc_cuda.cu
* \brief Functions definitions for the ppm kernels, using characteristic
tracing. Written following Stone et al. 2008. */
#include <math.h>
#include "../global/global.h"
#include "../global/global_cuda.h"
#include "../reconstruction/ppmc_cuda.h"
#include "../reconstruction/reconstruction.h"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.