hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
9394d821048ac12862beb695822be309206df216.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@precisions normal z -> s d c
@author Stan Tomov
... | 9394d821048ac12862beb695822be309206df216.cu | /*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@precisions normal z -> s d c
@author Stan Tomov
@author Mark Gates
*/
#include "magma_internal.h"
#define PRECISION_z
#if defin... |
0ae17a9f949cf3973efc92b3c1a356af6606356c.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THH/generic/THHTensor.hip"
#else
int THCTensor_(getDevice)(THCState* state, const THCTensor* tensor) {
return THCTensor_getDevice(state, tensor);
}
#endif
| 0ae17a9f949cf3973efc92b3c1a356af6606356c.cu | #ifndef THC_GENERIC_FILE
#define THC_GENERIC_FILE "THC/generic/THCTensor.cu"
#else
int THCTensor_(getDevice)(THCState* state, const THCTensor* tensor) {
return THCTensor_getDevice(state, tensor);
}
#endif
|
de7defe1b23571f09baa33545992222b22e7a99b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define MACRO_THREADS 1024
#define NOT_EVENT 0
#define INTERVAL 500
#define USE_NVTX
// Following along from
// https://developer.nvidia.com/blog/cuda-pro-tip-generate-custom-application-profile-timelines-nvtx/
#ifdef USE_NVTX
#in... | de7defe1b23571f09baa33545992222b22e7a99b.cu | #define MACRO_THREADS 1024
#define NOT_EVENT 0
#define INTERVAL 500
#define USE_NVTX
// Following along from
// https://developer.nvidia.com/blog/cuda-pro-tip-generate-custom-application-profile-timelines-nvtx/
#ifdef USE_NVTX
#include "nvToolsExt.h"
const uint32_t colors[] = {0xff00ff00, 0xff0000ff, 0xffffff00, 0xf... |
32f1f9a2db9fac0873ae401684efa27ea115469a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*! \file VL_2D_cuda.cu
* \brief Definitions of the cuda 2D VL algorithm functions. */
#ifdef CUDA
#ifdef VL
#include<stdio.h>
#include<math.h>
#include<cuda.h>
#include"global.h"
#include"global_cuda.h"
#include"hydro_cuda.h"
#... | 32f1f9a2db9fac0873ae401684efa27ea115469a.cu | /*! \file VL_2D_cuda.cu
* \brief Definitions of the cuda 2D VL algorithm functions. */
#ifdef CUDA
#ifdef VL
#include<stdio.h>
#include<math.h>
#include<cuda.h>
#include"global.h"
#include"global_cuda.h"
#include"hydro_cuda.h"
#include"VL_2D_cuda.h"
#include"pcm_cuda.h"
#include"plmp_cuda.h"
#include"plmc_cuda.h"
#... |
5e58b52428e0291f496e7105db311410dfb87eea.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <type_traits>
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorAccessor.h>
#include <ATen/hip/HIPContext.h>
#include <ATen/hip/detai... | 5e58b52428e0291f496e7105db311410dfb87eea.cu | #include <type_traits>
#include <ATen/ATen.h>
#include <ATen/AccumulateType.h>
#include <ATen/Dispatch.h>
#include <ATen/NativeFunctions.h>
#include <ATen/TensorAccessor.h>
#include <ATen/cuda/CUDAContext.h>
#include <ATen/cuda/detail/KernelUtils.h>
#include <ATen/cuda/detail/IndexUtils.cuh>
#include <ATen/native/cud... |
f440d84d361f8bbf2e95daf22c99155d216c3eba.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 magmablas/ztrtri_upper_batched.cu, normal z... | f440d84d361f8bbf2e95daf22c99155d216c3eba.cu | /*
-- MAGMA (version 2.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date June 2018
@generated from magmablas/ztrtri_upper_batched.cu, normal z -> d, Mon Jun 25 18:24:14 2018
@author Peng Du
@author Tingxing Dong
... |
2a62cc8b2c6f3b621ea336bed163f28d62b98b1d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//nvcc --compiler-options -Wall daxpy_cuda_c_1.cu funciones.c -o daxpy_cuda_c_1.out
// ./daxpy_cuda_c_1.out <dimension de vectores>
#include<stdio.h>
__global__ void daxpy(double *a, double *b, double *alpha, int *N){
int tid = b... | 2a62cc8b2c6f3b621ea336bed163f28d62b98b1d.cu | //nvcc --compiler-options -Wall daxpy_cuda_c_1.cu funciones.c -o daxpy_cuda_c_1.out
// ./daxpy_cuda_c_1.out <dimension de vectores>
#include<stdio.h>
__global__ void daxpy(double *a, double *b, double *alpha, int *N){
int tid = blockIdx.x;
if(tid<*N)
b[tid] = b[tid] + (*alpha)*a[tid];
}
int main(int argc, ch... |
525fe1db69f15baa3d073686e7ed42044273bda6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "cuda_mparticles.cuh"
#include "cuda_bits.h"
#include "psc_bits.h"
#include "bs.hxx"
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "cuda_base.cuh"
#include <cstdio>... | 525fe1db69f15baa3d073686e7ed42044273bda6.cu |
#include "cuda_mparticles.cuh"
#include "cuda_bits.h"
#include "psc_bits.h"
#include "bs.hxx"
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/sort.h>
#include "cuda_base.cuh"
#include <cstdio>
#include <cassert>
// ----------------------------------------------------------------... |
7799e56806789741c8378d7792608b900f8efe9c.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <hip/hip_runtime.h>
__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... | 7799e56806789741c8378d7792608b900f8efe9c.cu | #include <stdio.h>
#include <cuda_runtime.h>
__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,
blockId... |
0145ea6a1fe18368c28dc1cfb383427f22dd3ed9.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Giovanni Balduzzi (gbal... | 0145ea6a1fe18368c28dc1cfb383427f22dd3ed9.cu | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Giovanni Balduzzi (gbalduzz@itp.phys.ethz.ch)
// Peter Staar (taa@zurich.i... |
4c0ffd25d3126c039f07fcbdd956c699fa560f05.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <helper_cuda.h>
#include <helper_timer.h>
#include "kernel.h"
#include "kernel1.h"
int device = 0;
... | 4c0ffd25d3126c039f07fcbdd956c699fa560f05.cu | // includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
// includes, project
#include <helper_cuda.h>
#include <helper_timer.h>
#include "kernel.h"
#include "kernel1.h"
int device = 0;
////////////////////////////////////////////////////////////////////////////////
// decl... |
7dbe322bceca34b93f4d13b82d2da9dafe7e49be.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdio>
#include "Matlab_like.cuh"
#include "Utilities.cuh"
/********/
/* MAIN */
/********/
int main()
{
const int N = 20;
float a = 3.87f;
float b = 7.11f;
float *h_arr = (float *)malloc(N * sizeof(float));
float *d_arr = linspace(a, b, N);... | 7dbe322bceca34b93f4d13b82d2da9dafe7e49be.cu | #include <cstdio>
#include "Matlab_like.cuh"
#include "Utilities.cuh"
/********/
/* MAIN */
/********/
int main()
{
const int N = 20;
float a = 3.87f;
float b = 7.11f;
float *h_arr = (float *)malloc(N * sizeof(float));
float *d_arr = linspace(a, b, N);
gpuErrchk(cudaMemcpy(h_arr, d_arr, N * sizeof(float), cu... |
94994c0885d9849fb351f22c8e8c87e3284f8289.hip | // !!! This is a file automatically generated by hipify!!!
/**
* @file tcam.cu
* @brief CUDA implementation of TCAM
*
* @author cjeong
*/
#include <hip/hip_runtime.h>
#include "tcam.h"
__global__ void tcam_kernel(unsigned *dev_memx, unsigned *dev_memy, unsigned a,
unsigned *dev_d, uns... | 94994c0885d9849fb351f22c8e8c87e3284f8289.cu | /**
* @file tcam.cu
* @brief CUDA implementation of TCAM
*
* @author cjeong
*/
#include <cuda.h>
#include "tcam.h"
__global__ void tcam_kernel(unsigned *dev_memx, unsigned *dev_memy, unsigned a,
unsigned *dev_d, unsigned *dev_be, unsigned fe,
unsigned bse,... |
5b44c817813e8edcab8fd408e6db9579e378c429.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Copyright (c) 2015, 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... | 5b44c817813e8edcab8fd408e6db9579e378c429.cu | /* Copyright (c) 2015, 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
* in individ... |
bfe7518dbdf50f96736fe9f04ceac3201550c080.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | bfe7518dbdf50f96736fe9f04ceac3201550c080.cu | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
8a7c42448747b4a8a8dd50955f3330fccd142e8d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "lusol.h"
__global__ void LEVEL_CSC_SYNC_0(int n, int *dp, int *jlev, int *tail);
#define ZERO_ONE 0x0000000000000001 //[0, 1]
/* in computers, it is stored as [low high] : [1, 0] */
__forceinline__ __device__ __host__
i... | 8a7c42448747b4a8a8dd50955f3330fccd142e8d.cu | #include "lusol.h"
__global__ void LEVEL_CSC_SYNC_0(int n, int *dp, int *jlev, int *tail);
#define ZERO_ONE 0x0000000000000001 //[0, 1]
/* in computers, it is stored as [low high] : [1, 0] */
__forceinline__ __device__ __host__
int *ull_low(unsigned long long int *x) {
return ((int*) x);
}
__forceinline__ __devic... |
d696df83ae974937fb9e0936ee5d56ee0b3d9289.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_zvel_plus_4_left;
int xdim0_update_halo_kernel2_zvel_plus_4_left_h = -1;
__constant__ int ydim0_update_halo_kernel2_zvel_plus_4_left;
int ydim0_update_halo... | d696df83ae974937fb9e0936ee5d56ee0b3d9289.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_update_halo_kernel2_zvel_plus_4_left;
int xdim0_update_halo_kernel2_zvel_plus_4_left_h = -1;
__constant__ int ydim0_update_halo_kernel2_zvel_plus_4_left;
int ydim0_update_halo_kernel2_zvel_plus_4_left_h = -1;
__constant__ int xdim1_update_halo_kernel2_zvel_plus_4... |
066d850f34bebd68f533b4eb5da268c6e7684036.hip | // !!! This is a file automatically generated by hipify!!!
/* BIMODAL v1
* David W. Pearson
* September 28, 2017
*
* This version of the code will implement some improvements to make the model better fit non-linear
* features present in the data. The algorithm is effectively that of Gil-Marin 2012/2015.
*/
#inc... | 066d850f34bebd68f533b4eb5da268c6e7684036.cu | /* BIMODAL v1
* David W. Pearson
* September 28, 2017
*
* This version of the code will implement some improvements to make the model better fit non-linear
* features present in the data. The algorithm is effectively that of Gil-Marin 2012/2015.
*/
#include <iostream>
#include <fstream>
#include <vector>
#inclu... |
19e1cfdb3106321728cec1d918567f0290872f9e.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#include <cmath>
#include <nestedtensor/csrc/cuda/transpose.h>
#include <stdio.h>
namespace nested_tensor {
namespace cuda {
template<typename T, int num_threads_sqrt>
__global__
void transpose_nchw_nhwc(... | 19e1cfdb3106321728cec1d918567f0290872f9e.cu | #include <cuda_runtime.h>
#include <cuda_fp16.h>
#include <cmath>
#include <nestedtensor/csrc/cuda/transpose.h>
#include <stdio.h>
namespace nested_tensor {
namespace cuda {
template<typename T, int num_threads_sqrt>
__global__
void transpose_nchw_nhwc(
T* input,
T* output,
const int* block_offsets,
c... |
1ec9f242ad766e3a2a2870c577fe77a32628b8eb.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
__global__ void barKernel() {
printf("bar!\n");
}
__declspec(dllexport) void bar(){
hipLaunchKernelGGL(( barKernel), dim3(1),dim3(1), 0, 0, );
std::cout << "bar done!\n";
}
| 1ec9f242ad766e3a2a2870c577fe77a32628b8eb.cu | #include <iostream>
__global__ void barKernel() {
printf("bar!\n");
}
__declspec(dllexport) void bar(){
barKernel<<<1,1>>>();
std::cout << "bar done!\n";
}
|
6e90ac2b822c1bd78e91b9879e36d259a3491535.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ---------------------------------------------------------------------... | 6e90ac2b822c1bd78e91b9879e36d259a3491535.cu | // ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2020 www.open3d.org
//
// Permissio... |
ab4140d7057f09d63adafc97716b4d974e5e3e01.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 PMC-Sierra, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance w... | ab4140d7057f09d63adafc97716b4d974e5e3e01.cu | ////////////////////////////////////////////////////////////////////////
//
// Copyright 2014 PMC-Sierra, 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/lic... |
a1628a6065fc3a434382af00839c4a0a8d5f2461.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "hip/hip_runtime.h"
#include "functions.c"
//compute a*b mod p safely
__device__ unsigned int modprodC(unsigned int a, unsigned int b, unsigned int p) {
... | a1628a6065fc3a434382af00839c4a0a8d5f2461.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "cuda.h"
#include "functions.c"
//compute a*b mod p safely
__device__ unsigned int modprodC(unsigned int a, unsigned int b, unsigned int p) {
unsigned int za = a;
unsigned int ab = 0;
while (b > 0) {
if ... |
4e46b9570399a0c00eb4a75fcfd2a1ac8cc17f4b.hip | // !!! This is a file automatically generated by hipify!!!
/*
Copyright (C) 2016 Yusuke Suzuki <yusuke.suzuki@sslab.ics.keio.ac.jp>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code ... | 4e46b9570399a0c00eb4a75fcfd2a1ac8cc17f4b.cu | /*
Copyright (C) 2016 Yusuke Suzuki <yusuke.suzuki@sslab.ics.keio.ac.jp>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of ... |
9180e408868ba0dc5d632364ba1b460fb90e100c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <bits/stdc++.h>
#include <cmath>
#include "../include/common.h"
#include "../include/functions.cuh"
void convolutionOnHost(unsigned char *dst, unsigned char *src, float *kernel,
int kernelSide, cons... | 9180e408868ba0dc5d632364ba1b460fb90e100c.cu | #include <bits/stdc++.h>
#include <cmath>
#include "../include/common.h"
#include "../include/functions.cuh"
void convolutionOnHost(unsigned char *dst, unsigned char *src, float *kernel,
int kernelSide, const int width, const int height,
const int channels) {
unsigned... |
77079463367d1039aefb5507ff780360efaa5928.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any us... | 77079463367d1039aefb5507ff780360efaa5928.cu | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property and
* proprietary rights in and to this software and related documentation.
* Any use, reproduction, disclosure, or distribution of this software
* and related documentat... |
ae4d1c9522aa64d4f810c2178713e842d8e43de7.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright Oliver Kowalke 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <chrono>
#include <cstdlib>
#include <... | ae4d1c9522aa64d4f810c2178713e842d8e43de7.cu |
// Copyright Oliver Kowalke 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <chrono>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <random>
#include <tup... |
6f713ff3389ad3287b845bc3ecb6b8e1aef66ac7.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... | 6f713ff3389ad3287b845bc3ecb6b8e1aef66ac7.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... |
b8ef33b813f7b67645ae260d18d8a9b7a526aacc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdlib.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include "rocblas.h"
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <chrono>
// Input ... | b8ef33b813f7b67645ae260d18d8a9b7a526aacc.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdlib.h>
#include <math.h>
#include <cuda_runtime.h>
#include "cublas_v2.h"
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cmath>
#include <chrono>
// Input size
int const BATCH = 1; //Must be 1 in this program
int const... |
eed559fc9d605eb7c6a5c8dc6a528f8c5357bfba.hip | // !!! This is a file automatically generated by hipify!!!
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/B... | eed559fc9d605eb7c6a5c8dc6a528f8c5357bfba.cu | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
13708bbfca40795cec3d4351ba4bf6824f1e3287.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "pointwise_hist2.cuh"
#include "split_properties_helpers.cuh"
#include <catboost/cuda/cuda_lib/kernel/arch.cuh>
#include <catboost/cuda/cuda_util/kernel/instructions.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_hel... | 13708bbfca40795cec3d4351ba4bf6824f1e3287.cu | #include "pointwise_hist2.cuh"
#include "split_properties_helpers.cuh"
#include <catboost/cuda/cuda_lib/kernel/arch.cuh>
#include <catboost/cuda/cuda_util/kernel/instructions.cuh>
#include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh>
#include <catboost/cuda/cuda_lib/kernel/arch.cuh>
#include <cstdlib>
namespa... |
2b75284c55d77275f936684cef0e6c9b3c14ad10.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "harmonicRepulsion.cuh"
/*! \file harmonicRepulsion.cu
\addtogroup forceKernels
@{
*/
#include "functions.h"
/*!
calculate the force per particle given harmonic repulsions
*/
__global__ void gpu_harmonic_repulsion_kernel... | 2b75284c55d77275f936684cef0e6c9b3c14ad10.cu | #include "harmonicRepulsion.cuh"
/*! \file harmonicRepulsion.cu
\addtogroup forceKernels
@{
*/
#include "functions.h"
/*!
calculate the force per particle given harmonic repulsions
*/
__global__ void gpu_harmonic_repulsion_kernel(dVec *d_force,unsigned int *d_neighborsPerParticle,int *d_neighbors,dVec *d_neighborVec... |
ba2064f8a6c321806fcc0b4886921bc46cd019ee.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 "gpuSD.cu"
#include<chrono>
#include<iostream>
using namespace st... | ba2064f8a6c321806fcc0b4886921bc46cd019ee.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 "gpuSD.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24},{32... |
1b4625b086ab7f952f6140641de372f9231e21d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_poisson_kernel_error;
int xdim0_poisson_kernel_error_h = -1;
int ydim0_poisson_kernel_error_h = -1;
__constant__ int xdim1_poisson_kernel_error;
int xdim1_poisson_kernel_error... | 1b4625b086ab7f952f6140641de372f9231e21d6.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_poisson_kernel_error;
int xdim0_poisson_kernel_error_h = -1;
int ydim0_poisson_kernel_error_h = -1;
__constant__ int xdim1_poisson_kernel_error;
int xdim1_poisson_kernel_error_h = -1;
int ydim1_poisson_kernel_error_h = -1;
#define OPS_ACC0(x,y) (x+xdim0_poisson_... |
339bbea2a3537525dbd5e59a05ebc3e13ba9dadd.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 339bbea2a3537525dbd5e59a05ebc3e13ba9dadd.cu | /*
* Copyright (c) 2018, 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 ... |
35a52c4b3c0a06e5d8087476846c3d109fb2d05f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following condition... | 35a52c4b3c0a06e5d8087476846c3d109fb2d05f.cu | /*
* Copyright (c) 2011, Alex Krizhevsky (akrizhevsky@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice... |
4d846c195988ce51bbd173c07db39e0731894583.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Author: Liangji
* Email: liangji20040249@gmail.com
*/
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#... | 4d846c195988ce51bbd173c07db39e0731894583.cu | /*
* Author: Liangji
* Email: liangji20040249@gmail.com
*/
#include <vector>
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/layers/gaterecurrent2d_layer.hpp"
#include "caffe/util/io.hpp"
namespace... |
e28705893504c735cfb12338a68c96cf7339bbda.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
// error checking macro
#define cudaCheckErrors(msg) \
do { \
hipError_t __err = hipGetLastError(); \
if (__err != hipSuccess) { \
fprintf(stderr, "Fatal error: %s (%s at %s:%d)\n"... | e28705893504c735cfb12338a68c96cf7339bbda.cu | #include <stdio.h>
// error checking macro
#define cudaCheckErrors(msg) \
do { \
cudaError_t __err = cudaGetLastError(); \
if (__err != cudaSuccess) { \
fprintf(stderr, "Fatal error: %s (%s at %s:%d)\n", \
msg, cudaGetErrorString(__err), \
__FILE__, __LIN... |
fb9efdf0679fa0a55785661cf2634d23c1c57089.hip | // !!! This is a file automatically generated by hipify!!!
int main()
{
const int blockSize = 256, nStreams = 4;
const unsigned int N = 1048576;
const unsigned int bytes = N * sizeof(int);
int *h_a = (int*)malloc(bytes);
int *d_a;
hipMalloc((int**)&d_a, bytes);
memset(h_a, 0, bytes);
h... | fb9efdf0679fa0a55785661cf2634d23c1c57089.cu |
int main()
{
const int blockSize = 256, nStreams = 4;
const unsigned int N = 1048576;
const unsigned int bytes = N * sizeof(int);
int *h_a = (int*)malloc(bytes);
int *d_a;
cudaMalloc((int**)&d_a, bytes);
memset(h_a, 0, bytes);
cudaMemcpy(d_a, h_a, bytes, cudaMemcpyHostToDevice);
cu... |
00fffdace126745669ff7fb20e50a11eb0713aaf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Kernel definition
__global__ void VecAdd(float* A, float* B, float* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
}
int main()
{
...
// Kernel invocation with N threads
hipLaunchKernelGGL(( VecAdd), dim3(1), d... | 00fffdace126745669ff7fb20e50a11eb0713aaf.cu | // Kernel definition
__global__ void VecAdd(float* A, float* B, float* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
}
int main()
{
...
// Kernel invocation with N threads
VecAdd<<<1, N>>>(A, B, C);
...
}
|
e545b237caff13e1e6b9968fd585a8edaba90869.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdio.h>
void CUDA_CALL(hipError_t result)
{
if (result != hipSuccess)
{
std::cout << "Error " << result << "\n";
std::cout << hipGetErrorString(result) << "\n";
exit(1);
... | e545b237caff13e1e6b9968fd585a8edaba90869.cu | #include <iostream>
#include <stdio.h>
void CUDA_CALL(cudaError_t result)
{
if (result != cudaSuccess)
{
std::cout << "Error " << result << "\n";
std::cout << cudaGetErrorString(result) << "\n";
exit(1);
}
}
texture<float, 2> texRef2;
// Simple transformation kernel
__global__ void tra... |
a34942e665e650393472d67d79ed2272b4f1c078.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:07
//
// user function
__device__
#include "res_calc.h"
// CUDA kernel function
__global__ void op_cuda_res_calc(
float *ind_arg0,
float *ind_arg1,
float *ind_arg2,
flo... | a34942e665e650393472d67d79ed2272b4f1c078.cu | //
// auto-generated by op2.m on 19-Oct-2012 16:21:07
//
// user function
__device__
#include "res_calc.h"
// CUDA kernel function
__global__ void op_cuda_res_calc(
float *ind_arg0,
float *ind_arg1,
float *ind_arg2,
float *ind_arg3,
int *ind_map,
short *arg_map,
int *ind_arg_sizes,
int *ind_a... |
b75cf6f2102dda81ba83a39c292b44607fd05e3e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
*... | b75cf6f2102dda81ba83a39c292b44607fd05e3e.cu | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
fbac7dd391a51a1352fce0bce90b7c8420d6546d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Kernels.cu
*
* Created on: Oct 19, 2013
* Author: reid
*/
#include "Kernels.h"
#include "util.h"
extern __host__ __device__ void printLongSizes();
dim3 gDefaultMatProdBlock = dim3(16,16);
__device__ clock_t global... | fbac7dd391a51a1352fce0bce90b7c8420d6546d.cu | /*
* Kernels.cu
*
* Created on: Oct 19, 2013
* Author: reid
*/
#include "Kernels.h"
#include "util.h"
extern __host__ __device__ void printLongSizes();
dim3 gDefaultMatProdBlock = dim3(16,16);
__device__ clock_t global_now;
// todo redundant to util<T> ::eps
template<> __host__ __device__ float Epsilon()... |
803b01a2dcb3b29cb263e9b6151e8eacd98d9a95.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cfloat>
#include <functional>
#include "caffe2/core/context_gpu.h"
#include "csc_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void kernel_show(const T* Xdata, const int batch_size,
... | 803b01a2dcb3b29cb263e9b6151e8eacd98d9a95.cu | #include <cfloat>
#include <functional>
#include "caffe2/core/context_gpu.h"
#include "csc_op.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void kernel_show(const T* Xdata, const int batch_size,
const int channels, const int height,
const ... |
9eab532949a26534c8c1a25cf8030add66112f27.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Name: Jin Pyo Jeon
// CPSC375
// Times:
// B T Time
// 100 16 13.84
// 100 32 7.43
// 100 40 6.27
// 100 64 3.86
// 100 128 3.1
// 100 256 2.92
// 100 1024 2.83
// 1000 32 5.99
// 1000 256 2.76
// 1000 512 2... | 9eab532949a26534c8c1a25cf8030add66112f27.cu | // Name: Jin Pyo Jeon
// CPSC375
// Times:
// B T Time
// 100 16 13.84
// 100 32 7.43
// 100 40 6.27
// 100 64 3.86
// 100 128 3.1
// 100 256 2.92
// 100 1024 2.83
// 1000 32 5.99
// 1000 256 2.76
// 1000 512 2.73
// 1000 1024 2.83
// 1024 1024 2.75
// 10000 32 5.78
// 10000 128 2.74
// 10000 ... |
a651a5c4b2f16324bbcecfb82cd23dfa94ffae45.hip | // !!! This is a file automatically generated by hipify!!!
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>
#include <taskflow/taskflow.hpp>
#include <taskflow/cuda/cudaflow.hpp>
#include <taskflow/cuda/algorithm/find.hpp>
// ----------------------------------------------------------------------------
... | a651a5c4b2f16324bbcecfb82cd23dfa94ffae45.cu | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest.h>
#include <taskflow/taskflow.hpp>
#include <taskflow/cuda/cudaflow.hpp>
#include <taskflow/cuda/algorithm/find.hpp>
// ----------------------------------------------------------------------------
// cuda_find_if
// ----------------------------------------... |
8d74cac923d37438f6581fccd1189558906e39e5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
// inform that the function should run on device instead of the host
__global__
void add_kernel(int a, int b, int *c) {
*c = a + b;
}
int main(int argc, char *argv[]) {
// get device info
int coun... | 8d74cac923d37438f6581fccd1189558906e39e5.cu |
#include <iostream>
// inform that the function should run on device instead of the host
__global__
void add_kernel(int a, int b, int *c) {
*c = a + b;
}
int main(int argc, char *argv[]) {
// get device info
int count;
cudaGetDeviceCount(&count);
cudaDeviceProp prop;
cudaGetDeviceProperties... |
19b459059971bb0fa1953947e50a2580f7d95f27.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef RELU_LAYER_CUH_
#define RELU_LAYER_CUH_
#include <assert.h>
#include "basics/layer.hpp"
#include "basics/tensor.cu"
#include "basics/session.hpp"
#define BLOCKDIM 32
namespace ReluGPUKernels {
template<class Dtype>
__... | 19b459059971bb0fa1953947e50a2580f7d95f27.cu | #ifndef RELU_LAYER_CUH_
#define RELU_LAYER_CUH_
#include <assert.h>
#include "basics/layer.hpp"
#include "basics/tensor.cu"
#include "basics/session.hpp"
#define BLOCKDIM 32
namespace ReluGPUKernels {
template<class Dtype>
__global__ void ForwardGPU3(Tensor<Dtype> * bottom, Tensor<Dtype> * top) {
int idx = b... |
3da0f9f9dfe5875e6d66355a88e7afe85cdb49f5.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "edit_dist.h"
#include <THH/THH.h>
#include <hip/hip_runti... | 3da0f9f9dfe5875e6d66355a88e7afe85cdb49f5.cu | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "edit_dist.h"
#include <THC/THC.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
... |
f824d9adf2c835baa5688716dbf94b5b4edd34a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
__global__ void matrixMul(int *a, int *b, int *c, int ROW, int COLUMNS, int temp)
{
int row = blockIdx.y * blockDim.y + threadIdx.y;
int col = blockIdx.x * blockDim.x + threadIdx.x;
int sum = 0;
if( col < COLUM... | f824d9adf2c835baa5688716dbf94b5b4edd34a6.cu | #include "includes.h"
__global__ void matrixMul(int *a, int *b, int *c, int ROW, int COLUMNS, int temp)
{
int row = blockIdx.y * blockDim.y + threadIdx.y;
int col = blockIdx.x * blockDim.x + threadIdx.x;
int sum = 0;
if( col < COLUMNS && row < ROW)
{
for(int i = 0; i < temp; i++)
{
sum += a[row * temp + i] * b[i * COLU... |
dac5f5ce9507c2cf06b22343c2bb199c05bea964.hip | // !!! This is a file automatically generated by hipify!!!
#include "cross_structs.cuh"
#include "cross_kernal_v2.cuh"
#include "cuda_utils.cuh"
#include <hip/hip_runtime_api.h>
#include <hip/hip_runtime.h>
#include<stdio.h>
#include<stdlib.h>
#include <cmath>
#include <hip/hip_complex.h>
#include <thrust/complex.h>
#i... | dac5f5ce9507c2cf06b22343c2bb199c05bea964.cu | #include "cross_structs.cuh"
#include "cross_kernal_v2.cuh"
#include "cuda_utils.cuh"
#include <cuda_runtime_api.h>
#include <cuda.h>
#include<stdio.h>
#include<stdlib.h>
#include <cmath>
#include <cuComplex.h>
#include <thrust/complex.h>
#include <cub/cub.cuh>
#include "defines.h"
__constant__ cross_section_data cros... |
7386c8df81a8689c2a17821eeaff69a78d678ff1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
__global__ void my_first_kernel(float *x)
{
int tid = threadIdx.x + blockDim.x*blockIdx.x;
x[tid] = (float)threadIdx.x;
}
int main(int argc, char **arg... | 7386c8df81a8689c2a17821eeaff69a78d678ff1.cu | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
__global__ void my_first_kernel(float *x)
{
int tid = threadIdx.x + blockDim.x*blockIdx.x;
x[tid] = (float)threadIdx.x;
}
int main(int argc, char **argv)
{
float *h_x, *d_x;
int nblocks, nthreads, nsize, n;
nblocks = 2;
nthreads = 8... |
d37c642c29b490312de1b976fee148eaf17eb37d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Implements the Landau kernel
*/
#include <petscconf.h>
#include <petsc/private/dmpleximpl.h> /*I "dmpleximpl.h" I*/
#include <petsclandau.h>
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1
#include <../src/mat/impls/aij/se... | d37c642c29b490312de1b976fee148eaf17eb37d.cu | /*
Implements the Landau kernel
*/
#include <petscconf.h>
#include <petsc/private/dmpleximpl.h> /*I "dmpleximpl.h" I*/
#include <petsclandau.h>
#define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1
#include <../src/mat/impls/aij/seq/aij.h>
#include <petscmat.h>
#include <petsccublas.h>
// hack to avoid configure prob... |
912677e53d16a5131e01e118a935857acb5e7b78.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__constant__ float tau0 = 3.5f; // relaxation time
__constant__ float visc = 1.0f; // viscosity
#define BLOCK_SIZE 64
#define DIST_SIZE 74304u
#define OPTION_SAVE_MACRO... | 912677e53d16a5131e01e118a935857acb5e7b78.cu |
__constant__ float tau0 = 3.5f; // relaxation time
__constant__ float visc = 1.0f; // viscosity
#define BLOCK_SIZE 64
#define DIST_SIZE 74304u
#define OPTION_SAVE_MACRO_FIELDS 1
#define OPTION_BULK 2
#define INVALID_NODE 0xffffffff
#define DT 1.0f
#incl... |
8f672784c777fb8092ce302a4bf7e6fcdf8c4a81.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int dims_advec_mom_kernel_x2 [5][2];
static int dims_advec_mom_kernel_x2_h [5][2] = {0};
//user function
__device__
inline void advec_mom_kernel_x2_gpu(ACC<double> &pre_vol,
ACC<dou... | 8f672784c777fb8092ce302a4bf7e6fcdf8c4a81.cu | //
// auto-generated by ops.py
//
__constant__ int dims_advec_mom_kernel_x2 [5][2];
static int dims_advec_mom_kernel_x2_h [5][2] = {0};
//user function
__device__
inline void advec_mom_kernel_x2_gpu(ACC<double> &pre_vol,
ACC<double> &post_vol,
const ACC<double> &volume,
const ACC<double> &vol_flux_y,
const AC... |
c61452361298922ff986ab46876950d08ad65429.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include "lodepng.h"
__global__
void PictureKernell(unsigned char* d_Pin, unsigned char* d_Pout, int n, int ... | c61452361298922ff986ab46876950d08ad65429.cu | #include <stdio.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include "lodepng.h"
__global__
void PictureKernell(unsigned char* d_Pin, unsigned char* d_Pout, int n, int m){
int y = blockIdx.y * blockDim.y + threadIdx.y;
int x = blockIdx.x * blockDim.x +... |
0cb444faf642952b59e38e143e686ecefd5853b0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.m on 30-May-2011 21:57:40
//
// user function
__device__ ... | 0cb444faf642952b59e38e143e686ecefd5853b0.cu | //
// auto-generated by op2.m on 30-May-2011 21:57:40
//
// user function
__device__
#include "res.h" ... |
a22f6d6255c44b5ac1eba1d27869888ff6b15cb4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "roi_align_kernel.h"
// kernel
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * b... | a22f6d6255c44b5ac1eba1d27869888ff6b15cb4.cu | #ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <math.h>
#include <float.h>
#include "roi_align_kernel.h"
// kernel 函数
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \
i += blockDim.x * gridDim.x)
__glo... |
30a64a7ddb1987607d8c48675f4c035e79433550.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#define INDEX_NUM 3
#define INDEX_SUM 0
#define INDEX_MAX 1
#define INDEX_MIN 2
#define NUM_MAX 1024
#define ITEMS_NUM (1024 * 1024)
#define BLOCK_SIZE 256
using namespace std;
//... | 30a64a7ddb1987607d8c48675f4c035e79433550.cu | #include <iostream>
#define INDEX_NUM 3
#define INDEX_SUM 0
#define INDEX_MAX 1
#define INDEX_MIN 2
#define NUM_MAX 1024
#define ITEMS_NUM (1024 * 1024)
#define BLOCK_SIZE 256
using namespace std;
// TODO-1 => ./task_no_atomic
// 1 thread does all compute, no atomic/sync
// thread.0 of ... |
1f0264fa5e88a1ab65b89fa9ee1653751514297c.hip | // !!! This is a file automatically generated by hipify!!!
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <time.h>
#include <sys/time.h>
#include "CKconverter/CKReader.h"
#include "zerork/mechanism_cuda.h"
#include <nvector/nvector_serial.h> // serial N_Vector types, fcts., and mac... | 1f0264fa5e88a1ab65b89fa9ee1653751514297c.cu | #include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <time.h>
#include <sys/time.h>
#include "CKconverter/CKReader.h"
#include "zerork/mechanism_cuda.h"
#include <nvector/nvector_serial.h> // serial N_Vector types, fcts., and macros
#include "cuda_runtime.h"
#include "cuda_profiler_api.... |
bb8adf562caff206d715a0a7fce58b863d0987af.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <ATen/native/TensorAdvancedIndexing.h>
#include <ATen/ATen.h>
#include <ATen/Dispatch.h>
#include <ATen/MemoryOverlap.h>
#include <ATen/native/ScatterGatherChecks.h>
#include <ATen/native/ReduceOpsUtils.h>
#include <ATen/... | bb8adf562caff206d715a0a7fce58b863d0987af.cu | #include <ATen/native/TensorAdvancedIndexing.h>
#include <ATen/ATen.h>
#include <ATen/Dispatch.h>
#include <ATen/MemoryOverlap.h>
#include <ATen/native/ScatterGatherChecks.h>
#include <ATen/native/ReduceOpsUtils.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/cuda/deta... |
64577501906df64956e070be3b4efb88bb698c41.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
__device__ void _sum_32_20_0(volatile float *x, int i) {
//for optimizing warps
//volatile must be used as register optimization will lead to wrong answers
float ai, xi;
ai=x[i]; xi=x[i+32]; x[i]=ai+xi;
ai=x[i]; xi=x[i+16]; x[... | 64577501906df64956e070be3b4efb88bb698c41.cu | __device__ void _sum_32_20_0(volatile float *x, int i) {
//for optimizing warps
//volatile must be used as register optimization will lead to wrong answers
float ai, xi;
ai=x[i]; xi=x[i+32]; x[i]=ai+xi;
ai=x[i]; xi=x[i+16]; x[i]=ai+xi;
ai=x[i]; xi=x[i+ 8]; x[i]=ai+xi;
ai=x[i]; xi=x[i+ 4]; x[i]=ai+xi;
ai=x[i... |
2fcd0bab15739b83f9b9c076d7c413d8dc1dccf3.hip | // !!! This is a file automatically generated by hipify!!!
//
// include files
//
#include <stdio.h>
#include <hip/hip_runtime.h>
#include "cutil_inline.h"
#include <hip/hip_runtime_api.h>
//
// kernel routine
//
__global__ void my_first_kernel (float* x, float* y, float* z)
{
int tid = threadIdx.x + blockId... | 2fcd0bab15739b83f9b9c076d7c413d8dc1dccf3.cu | //
// include files
//
#include <stdio.h>
#include <cuda_runtime.h>
#include "cutil_inline.h"
#include <cuda_runtime_api.h>
//
// kernel routine
//
__global__ void my_first_kernel (float* x, float* y, float* z)
{
int tid = threadIdx.x + blockIdx.x * blockDim.x;
printf("%d\n", tid);
z[tid] = x... |
077486844a5482674525b96070ba4ccd973c75b6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#define EMPTY 0xffffffff
__device__ bool is_equal(int *key_columns, int a, int b, int num_key_columns, int num_key_rows)
{
for (int i = 0; i < num_key_columns, ++i)
if (key_columns[i*num_key_rows + a] != key_columns[i*num_ke... | 077486844a5482674525b96070ba4ccd973c75b6.cu | #define EMPTY 0xffffffff
__device__ bool is_equal(int *key_columns, int a, int b, int num_key_columns, int num_key_rows)
{
for (int i = 0; i < num_key_columns, ++i)
if (key_columns[i*num_key_rows + a] != key_columns[i*num_key_rows + b]) return false;
return true;
}
__device__ void perform_op(int bucket, int... |
a6c37b9a110a93b65f683fb6d4da5b7c3d695a4f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "util.hip"
#include "tabs/sbox.tab"
union u32_t {
uint i;
uchar c[4];
};
#if TTABLE == 128
#define STE_128_LH(state) (sbox[(state >> 1) ] >> ((state & 0x1) << 2))
#define STE_128_HH(state) (sbox[(state >> 1) +... | a6c37b9a110a93b65f683fb6d4da5b7c3d695a4f.cu | #include "util.cu"
#include "tabs/sbox.tab"
union u32_t {
uint i;
uchar c[4];
};
#if TTABLE == 128
#define STE_128_LH(state) (sbox[(state >> 1) ] >> ((state & 0x1) << 2))
#define STE_128_HH(state) (sbox[(state >> 1) + 128] >> ((state & 0x1) << 2))
#define STE(state) ((STE_128_LH(state) & 0x0f) | (STE_128_... |
dd8d9435f2086ad587115f72fea203dfcc5e7182.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/boolean_mask_ops.h"
#include <hipcub/hipcub.hpp>
namespace caffe2 {
namespace {
__global__ void BooleanMaskCopyKernel(
const int64_t numOfOutput,
const int64... | dd8d9435f2086ad587115f72fea203dfcc5e7182.cu | #include "caffe2/core/context_gpu.h"
#include "caffe2/operators/boolean_mask_ops.h"
#include <cub/cub.cuh>
namespace caffe2 {
namespace {
__global__ void BooleanMaskCopyKernel(
const int64_t numOfOutput,
const int64_t numBytes,
const int64_t* indices,
const uint8_t* src,
uint8_t* dest) {
for (i... |
5ac078d47d6a832004f5a8a7fb2d986c4de42434.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | 5ac078d47d6a832004f5a8a7fb2d986c4de42434.cu | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
41edfef6a94e984ac6bab647f06947340928e9b1.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 "computeTemporalSmoothRmatrices.cu"
#include<chrono>
#include<ios... | 41edfef6a94e984ac6bab647f06947340928e9b1.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 "computeTemporalSmoothRmatrices.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {... |
0a43888c3236fc791bd48d3df1916cab2ef23da8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 0a43888c3236fc791bd48d3df1916cab2ef23da8.cu | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
13e477f96ec5ce7f8888e3b93f87703e3bc59233.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "hiprand/hiprand.h"
#include "rocblas.h"
extern "C" {
#include "activations.h"
#include "hip/hip_runtime.h"
}
__device__ float lhtan_activate_kernel(float x)
{
<<<<<<< HEAD
if(x < 0) return .001f*x;
if(x > 1) ret... | 13e477f96ec5ce7f8888e3b93f87703e3bc59233.cu | #include "cuda_runtime.h"
#include "curand.h"
#include "cublas_v2.h"
extern "C" {
#include "activations.h"
#include "cuda.h"
}
__device__ float lhtan_activate_kernel(float x)
{
<<<<<<< HEAD
if(x < 0) return .001f*x;
if(x > 1) return .001f*(x-1.f) + 1.f;
=======
if(x < 0) return .001*x;
if(x > 1) retu... |
c693c669734d1ea04d9288f46baf80696bcce341.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by ops.py
//
__constant__ int xdim0_initialise_chunk_kernel_zero_x;
int xdim0_initialise_chunk_kernel_zero_x_h = -1;
#undef OPS_ACC0
#define OPS_ACC0(x,y) (x+xdim0_initialise_chunk_kernel_zero_x*(y))
//user ... | c693c669734d1ea04d9288f46baf80696bcce341.cu | //
// auto-generated by ops.py
//
__constant__ int xdim0_initialise_chunk_kernel_zero_x;
int xdim0_initialise_chunk_kernel_zero_x_h = -1;
#undef OPS_ACC0
#define OPS_ACC0(x,y) (x+xdim0_initialise_chunk_kernel_zero_x*(y))
//user function
__device__
void initialise_chunk_kernel_zero_x_gpu(double *var) {
*var = 0.0... |
798956a4bc8d6c0c413474c40c2d095a89bdbaf1.hip | // !!! This is a file automatically generated by hipify!!!
/**
* Program name: Mosaic filter with average color calculation
* Compiling envrionment: VS2013 + CUDA7.0
*
* @Author: Jincao Zhang
* @Version 1.0 (22 Sep 2016)
*/
#ifndef __HIPCC__
#define __HIPCC__
#endif
#include "hip/hip_runtime.h"
#include "device_lau... | 798956a4bc8d6c0c413474c40c2d095a89bdbaf1.cu | /**
* Program name: Mosaic filter with average color calculation
* Compiling envrionment: VS2013 + CUDA7.0
*
* @Author: Jincao Zhang
* @Version 1.0 (22 Sep 2016)
*/
#ifndef __CUDACC__
#define __CUDACC__
#endif
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
#i... |
bb3bc090ae2834a6615fc8c294da5ad7b370b378.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/upsample_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
... | bb3bc090ae2834a6615fc8c294da5ad7b370b378.cu | #include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/upsample_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
__device__ int translate_idx(int ii, int d1, int d2, int d3, int scale_factor) {
int x, y, z, w;
w = ii % d3;
ii = ii/d3;
z = ii % d2;
ii = ii/d2;
y = ii % d... |
8ae41bdc47c2accebe2fcaa21729dd56420d8f22.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
// includes, project
#define PI 3.1415926536f
int MaxThreadsPerBlock;
int MaxThreadsX;
int MaxThreadsY;
// Conversion d'un vecteur rel en vecteur complexe
// Conversion d'un vecteur complexe en vecteur ... | 8ae41bdc47c2accebe2fcaa21729dd56420d8f22.cu | #include "includes.h"
// includes, project
#define PI 3.1415926536f
int MaxThreadsPerBlock;
int MaxThreadsX;
int MaxThreadsY;
// Conversion d'un vecteur réel en vecteur complexe
// Conversion d'un vecteur complexe en vecteur réel
// Multiplie point par point un vecteur complex par un vecteur réel
// Applique... |
5b03906f7e3f0e3fd3ca73e712f8ff1fdaf75c6f.hip | // !!! This is a file automatically generated by hipify!!!
#include "device/image_grayscale.h"
#include <cassert>
#include <device_launch_parameters.h>
#include <hip/hip_runtime.h>
#include "device/cuda_debug.h"
__global__ void compute_grayscale_kernel(
void* color_img_ptr, uint32_t color_img_pitch,
void* graysc... | 5b03906f7e3f0e3fd3ca73e712f8ff1fdaf75c6f.cu | #include "device/image_grayscale.h"
#include <cassert>
#include <device_launch_parameters.h>
#include <cuda_runtime.h>
#include "device/cuda_debug.h"
__global__ void compute_grayscale_kernel(
void* color_img_ptr, uint32_t color_img_pitch,
void* grayscale_img_ptr, uint32_t grayscale_image_pitch,
uint32_t image_... |
8fa7d901a9a89c8506017ac926f74f2dde453326.hip | // !!! This is a file automatically generated by hipify!!!
/*
* GridTools
*
* Copyright (c) 2014-2023, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gridtools/fn/sid_neighbor_table.hpp>
#include <array>
#incl... | 8fa7d901a9a89c8506017ac926f74f2dde453326.cu | /*
* GridTools
*
* Copyright (c) 2014-2023, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gridtools/fn/sid_neighbor_table.hpp>
#include <array>
#include <cstddef>
#include <cstdint>
#include <type_traits>
#i... |
acca5454b95fb20974c2da676afa7f19e55305ed.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/activation/softmax_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>... | acca5454b95fb20974c2da676afa7f19e55305ed.cu | #include <algorithm>
#include <cfloat>
#include <vector>
#include "thrust/device_vector.h"
#include "caffe/layers/activation/softmax_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
static __global__ void kernel_channel_max(const int num, const int channels,
const ... |
6e46697374a814630cc2e837bfd2c313cfcc0823.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
////////////////////////////////
// matrixVecMult_CUBLAS.cu //
// Andrew Krepps //
// Module 8 Assignment //
// 4/2/2018 //
////////////////////////////////
#include <chrono>
#include <stdi... | 6e46697374a814630cc2e837bfd2c313cfcc0823.cu | ////////////////////////////////
// matrixVecMult_CUBLAS.cu //
// Andrew Krepps //
// Module 8 Assignment //
// 4/2/2018 //
////////////////////////////////
#include <chrono>
#include <stdio.h>
#include <stdlib.h>
#include <cublas.h>
#define CUBLAS_KERNEL 0
#define CUSTOM_KE... |
3fd952c09011a37458b8fecb788d598d80a3bbc0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the infor... | 3fd952c09011a37458b8fecb788d598d80a3bbc0.cu | /*
* Copyright 1993-2006 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO USER:
*
* This source code is subject to NVIDIA ownership rights under U.S. and
* international Copyright laws.
*
* This software and the information contained herein is PROPRIETARY and
* CONFIDENTIAL to NVIDIA and is being provid... |
3f358cccc108d73194a9aab44d75601e3e9597ca.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... | 3f358cccc108d73194a9aab44d75601e3e9597ca.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... |
ffa9f4592c7376a97907363caa53b4a59b539459.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zmgecsrmv.cu normal z -> s, Fri Jan 30 1... | ffa9f4592c7376a97907363caa53b4a59b539459.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zmgecsrmv.cu normal z -> s, Fri Jan 30 19:00:29 2015
*/
#include "common_magma.h"
#if (GPUSHMEM < 200)
#define BLOCK_SIZE 1... |
85d8d407115f7a1aff9b445c58c6bef6f1b7695d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//# IntToFloat.cu: Convert integer input to float; transpose time and pol dims
//# Copyright (C) 2012-2013 ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is p... | 85d8d407115f7a1aff9b445c58c6bef6f1b7695d.cu | //# IntToFloat.cu: Convert integer input to float; transpose time and pol dims
//# Copyright (C) 2012-2013 ASTRON (Netherlands Institute for Radio Astronomy)
//# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands
//#
//# This file is part of the LOFAR software suite.
//# The LOFAR software suite is free software: you can ... |
201636846aea76fab15b3f701899ceba310f87f7.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "dz1z5.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <sys/types.h>
#include <fcntl.h>
#define NUM_OF_GPU_THREADS 1024
/*---< cluster_par() >---------------... | 201636846aea76fab15b3f701899ceba310f87f7.cu |
#include "cuda_runtime.h"
#include "dz1z5.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include <sys/types.h>
#include <fcntl.h>
#define NUM_OF_GPU_THREADS 1024
/*---< cluster_par() >-----------------------------------------------------------*/
int cluster_par... |
22a7a308f68d47acfb9b7ebd597121e59f842906.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//#include <helper_cuda.h>
//#include <algorithm>
#include <time.h>
#include <limits.h>
//#define RADIX 4294967296
//#define RADIX 2147483658
#define RADIX 65536
//#define numElements 1048576
#define numElements 30000
#define n... | 22a7a308f68d47acfb9b7ebd597121e59f842906.cu |
//#include <helper_cuda.h>
//#include <algorithm>
#include <time.h>
#include <limits.h>
//#define RADIX 4294967296
//#define RADIX 2147483658
#define RADIX 65536
//#define numElements 1048576
#define numElements 30000
#define numIterations 10
#define BLOCKSIZE 128
// countlength/threadsperblock
void __global__... |
bf04a79fa76d13f7411de67295ca1444f8bdf46c.hip | // !!! This is a file automatically generated by hipify!!!
#include <cstdlib>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <hip/hip_runtime_api.h>
#include "cutil.h"
#include <boost/numeric/ublas... | bf04a79fa76d13f7411de67295ca1444f8bdf46c.cu | #include <cstdlib>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <cuda.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <cuda_runtime_api.h>
#include "cutil.h"
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
#include <bo... |
1d5e5927736564ae4d1db76a3ed6d6a19115781a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include "projektcuda.h"
#include "project_comm.h"
//#include "mex.h"
/* Kernel to square elements of the array on the GPU */
/*
create in 28.11.2009
It should be runging only in one block.
separate vectors ... | 1d5e5927736564ae4d1db76a3ed6d6a19115781a.cu | #include "cuda.h"
#include <stdio.h>
#include "projektcuda.h"
#include "project_comm.h"
//#include "mex.h"
/* Kernel to square elements of the array on the GPU */
/*
create in 28.11.2009
It should be runging only in one block.
separate vectors in parts in length of VECTOR_BLOCK_SIZE
*/
/*
N size of Vector
*/... |
711adc7b71484f493125a138e95045666b5e3dc6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <accelerate_cuda.h>
static TexInt32 arrIn0_0;
extern "C" __global__ void scanl(const Int64 shIn0_0, const Int64 shOut_0, Int32* __restrict__ arrOut_0, const Int64 shBlk_0, Int32* __restrict__ arrBlk_0, Int32* __restrict__ a... | 711adc7b71484f493125a138e95045666b5e3dc6.cu | #include <accelerate_cuda.h>
static TexInt32 arrIn0_0;
extern "C" __global__ void scanl(const Int64 shIn0_0, const Int64 shOut_0, Int32* __restrict__ arrOut_0, const Int64 shBlk_0, Int32* __restrict__ arrBlk_0, Int32* __restrict__ arrSum_0)
{
extern volatile __shared__ Int32 sdata0[];
Int32 x0;
Int32 y0;
Int32 z0;
cons... |
033537bc7f7900d594637cea8ce275b4fcce7a57.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... | 033537bc7f7900d594637cea8ce275b4fcce7a57.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... |
0cb660d0de5264ebc78624f9bee63469b7c9b4f9.hip | // !!! This is a file automatically generated by hipify!!!
#include "sphere_hip.cuh"
__device__ bool Sphere::hit(const Ray& r, float t_min, float t_max,
HitRecord& rec) const {
Vec3 oc = r.origin() - center_;
float a = dot(r.direction(), r.direction());
float b = dot(oc, r.direction());
float c = d... | 0cb660d0de5264ebc78624f9bee63469b7c9b4f9.cu | #include "sphere.cuh"
__device__ bool Sphere::hit(const Ray& r, float t_min, float t_max,
HitRecord& rec) const {
Vec3 oc = r.origin() - center_;
float a = dot(r.direction(), r.direction());
float b = dot(oc, r.direction());
float c = dot(oc, oc) - radius_ * radius_;
float discriminant = b * b ... |
7469b19d455997a95847586bb68e86bd377de8bb.hip | // !!! This is a file automatically generated by hipify!!!
#ifdef RD_WG_SIZE_0_0
#define BLOCK_SIZE RD_WG_SIZE_0_0
#elif defined(RD_WG_SIZE_0)
#define BLOCK_SIZE RD_WG_SIZE_0
#elif defined(RD_WG_SIZE)
#define BLOCK_SIZE RD_WG_SIZE
#else
#define BLOCK_SIZE 16
#endif
#define LIMIT -999
#include <stdio.h>
#include <stri... | 7469b19d455997a95847586bb68e86bd377de8bb.cu | #ifdef RD_WG_SIZE_0_0
#define BLOCK_SIZE RD_WG_SIZE_0_0
#elif defined(RD_WG_SIZE_0)
#define BLOCK_SIZE RD_WG_SIZE_0
#elif defined(RD_WG_SIZE)
#define BLOCK_SIZE RD_WG_SIZE
#else
#define BLOCK_SIZE 16
#endif
#define LIMIT -999
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include <c... |
ecb5a243067add8b72fe67ec4d9ca94f9968f734.hip | // !!! This is a file automatically generated by hipify!!!
#include <mpi.h>
#include <hiprand/hiprand.h>
#include <conf.h>
#include "inc/conf.h"
#include "d/q.h"
#include "d/api.h"
#include "d/ker.h"
#include "utils/error.h"
#include "inc/def.h"
#include "utils/msg.h"
#include "utils/cc.h"
#include "utils/mc.h"
#inc... | ecb5a243067add8b72fe67ec4d9ca94f9968f734.cu | #include <mpi.h>
#include <curand.h>
#include <conf.h>
#include "inc/conf.h"
#include "d/q.h"
#include "d/api.h"
#include "d/ker.h"
#include "utils/error.h"
#include "inc/def.h"
#include "utils/msg.h"
#include "utils/cc.h"
#include "utils/mc.h"
#include "utils/kl.h"
#include "mpi/wrapper.h"
#include "inc/type.h"
#... |
905912a989984bd16bfe7b91afa81b924dfff430.hip | // !!! This is a file automatically generated by hipify!!!
#include "reduction_tools.h"
#include "colwisesum.h"
#include "colwisesum_kernel.h"
// usage: 'stand-alone' function (allocates inputdata on device)
// parameter:
// x: double pointer to the R matrix object
// nCols: number of columns in matrix
// nRows: numb... | 905912a989984bd16bfe7b91afa81b924dfff430.cu |
#include "reduction_tools.h"
#include "colwisesum.h"
#include "colwisesum_kernel.h"
// usage: 'stand-alone' function (allocates inputdata on device)
// parameter:
// x: double pointer to the R matrix object
// nCols: number of columns in matrix
// nRows: number of rows in matrix
// sums: vector for final results
__ho... |
cb7a16de7ecf4eb9da2e7fa3b97cdec3f218d255.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
__global__ void add(int *a, int *b, int *c) {
*c = *a + *b;
}
int main(void) {
// host copies of a, b, c
int a, b, c;
// device copies of a, b, c
int *d_a, *d_b, *d_c;
int size = sizeof(int);
// All... | cb7a16de7ecf4eb9da2e7fa3b97cdec3f218d255.cu | #include <iostream>
__global__ void add(int *a, int *b, int *c) {
*c = *a + *b;
}
int main(void) {
// host copies of a, b, c
int a, b, c;
// device copies of a, b, c
int *d_a, *d_b, *d_c;
int size = sizeof(int);
// Allocate memory for device copies of a, b, c
cudaMalloc((void **)&d_a, size);
cudaMalloc(... |
71aea26471df6409d64c9cd3386120324dbc2ee2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/*****************************************************************************/
// nvcc -O1 -o bpsw bpsw.cu -lrt -lm
// Assertion to check for errors
__global__ void kernel_jacobi(long* nArray, long* dArray, ... | 71aea26471df6409d64c9cd3386120324dbc2ee2.cu | #include "includes.h"
/*****************************************************************************/
// nvcc -O1 -o bpsw bpsw.cu -lrt -lm
// Assertion to check for errors
__global__ void kernel_jacobi(long* nArray, long* dArray, long len) {
int bx = blockIdx.x; // ID thread
int tx = threadIdx.x;
int result, t;
... |
abe0825779fa851266c002c9891208852e80d9a6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
__global__ void sum(float* input)
{
int tid = threadIdx.x;
float number_of_threads = blockDim.x;
int step_size = 1;
while(number_of_threads > 0){
... | abe0825779fa851266c002c9891208852e80d9a6.cu | #include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;
__global__ void sum(float* input)
{
int tid = threadIdx.x;
float number_of_threads = blockDim.x;
int step_size = 1;
while(number_of_threads > 0){
if(tid < number_of_threads)
{
int first = tid*step_size*2;
int second = first + ... |
e1e312c5f308c4abd4a4ae206c73122e6315cd6f.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, ... | e1e312c5f308c4abd4a4ae206c73122e6315cd6f.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, it will be
//ignored in this homework.
//Each channel Red, Blue, Green and Alpha is rep... |
119102f4087be60c2bb783d7f7e569fe5d10bf92.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 "multipass.cu"
#include<chrono>
#include<iostream>
using namespac... | 119102f4087be60c2bb783d7f7e569fe5d10bf92.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 "multipass.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24}... |
5fafcca37763ea55cb4ab06fe9f5e2b636ac1879.hip | // !!! This is a file automatically generated by hipify!!!
#ifndef __CUDACC_RTC__
#define __CUDACC_RTC__
#endif
#include <hip/device_functions.h>
#include <math.h>
#include <hip/hip_runtime.h>
#include "preprocess_hip.cuh"
#include "error_util.h"
using namespace std;
__global__ void resize(float* srcData, float* ds... | 5fafcca37763ea55cb4ab06fe9f5e2b636ac1879.cu | #ifndef __CUDACC_RTC__
#define __CUDACC_RTC__
#endif
#include <device_functions.h>
#include <math.h>
#include <cuda.h>
#include "preprocess.cuh"
#include "error_util.h"
using namespace std;
__global__ void resize(float* srcData, float* dstData, float* xpixelPerBlock, float* ypixelPerBlock, float interpolation_xgap,... |
9b773ff11ee63a527d2541f1fae1018371e299a0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/***************************************************************************************************
* Copyright (c) 2017 - 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* R... | 9b773ff11ee63a527d2541f1fae1018371e299a0.cu | /***************************************************************************************************
* Copyright (c) 2017 - 2022 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.