hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
626266dd36f3cb855c4e896ed9cb27a1f763ab24.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <time.h> #include "hip/hip_fp16.h" #define L1_SIZE 65536 #define FP_TYPE float #define FP_DEV_TYPE float /* Kernel for vector addition */ __globa...
626266dd36f3cb855c4e896ed9cb27a1f763ab24.cu
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #include <time.h> #include "cuda_fp16.h" #define L1_SIZE 65536 #define FP_TYPE float #define FP_DEV_TYPE float /* Kernel for vector addition */ __global__ void Vec_add(FP_DEV_TYPE x[], FP_DEV_TYPE y[], FP_DEV_TYPE z[], int n, FP_DEV_TYPE loo...
4303acc9b2776fe326121de12285f1793f6d6753.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void kernel_mul(char* newB, char* first, char* second, int size_first, int size_second, int * size_newB) { int i = threadIdx.x; int j = threadIdx.y; int tid = j * gridDim.x * blockDim.x + i ; if(...
4303acc9b2776fe326121de12285f1793f6d6753.cu
#include "includes.h" __global__ void kernel_mul(char* newB, char* first, char* second, int size_first, int size_second, int * size_newB) { int i = threadIdx.x; int j = threadIdx.y; int tid = j * gridDim.x * blockDim.x + i ; if(j!=0 && i!=0){ newB[tid] = first[i] * second[j]; } if(j==0 && i==0){ if(first[j] != sec...
9f51ddc722a3be6b38e5cfa58f42e02ae68e34f4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<math.h> #include<stdio.h> #include "CUDA.h" #include "Random.h" #include "mycomplex.h" #include "model.h" using namespace std; /* ----------------------------------------*/ /**************************/ double *yzero; __de...
9f51ddc722a3be6b38e5cfa58f42e02ae68e34f4.cu
#include<math.h> #include<stdio.h> #include "CUDA.h" #include "Random.h" #include "mycomplex.h" #include "model.h" using namespace std; /* ----------------------------------------*/ /**************************/ double *yzero; __device__ double const tau=1.; __device__ double const one_over_tau=1./tau; double const in...
eeaca9ff123fb50e5299718bf17f908c1a0f23a7.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 "shMatMul_Kernel.cu" #include<chrono> #include<iostream> using na...
eeaca9ff123fb50e5299718bf17f908c1a0f23a7.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 "shMatMul_Kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
c37b3240a7fc9698530ce64f9f2f48bdb90c3dad.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <hip/hip_runtime.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/device_vector.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/partition.h> #include <thrust/execution_policy.h> #inc...
c37b3240a7fc9698530ce64f9f2f48bdb90c3dad.cu
#include <cstdio> #include <cuda.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/device_vector.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/partition.h> #include <thrust/execution_policy.h> #include "sceneStructs.h" #include "scene.h" #include "glm/glm.hpp" #inclu...
305b69850ee68dfaa5a652ba3473fa227ee6f792.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/focal_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void LogOpGPU(const int nthrea...
305b69850ee68dfaa5a652ba3473fa227ee6f792.cu
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/focal_loss_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void LogOpGPU(const int nthreads, const Dtype* in, Dtype* out, const Dtype eps) { CUDA_KERNEL_LOOP(index, ...
e9774c195f3fdac10baf999af1d4b303c16ed27b.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, ...
e9774c195f3fdac10baf999af1d4b303c16ed27b.cu
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
a0b5a0cf93ad5d9929c080b7bfcbe8ebea9600f3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this soft...
a0b5a0cf93ad5d9929c080b7bfcbe8ebea9600f3.cu
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
83e6a3a3a4878b4f4e80af7f2e70a07cd8aad856.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2020, 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 met: * * Redistributions of source code must ...
83e6a3a3a4878b4f4e80af7f2e70a07cd8aad856.cu
/* Copyright (c) 2020, 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 met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
ed605410d3fb38acad4c615aa4f855bd2058800b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <iostream> #include <string> //===> FINITE DIFFERENCES PARAMETERS <===// #define DT 0.05f //->Time in milliseconds #define DX ( 12.0f / MODEL...
ed605410d3fb38acad4c615aa4f855bd2058800b.cu
#include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <iostream> #include <string> //===> FINITE DIFFERENCES PARAMETERS <===// #define DT 0.05f //->Time in milliseconds #define DX ( 12.0f / MODELSIZE_X ) //->Displacement in x #define DY ( 12.0f / MODELSIZE_Y ) //->Displacement in y ...
6f17adde5485d766e034936cd01a3b8720ca7fb5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hiprand/hiprand.h" #include "rocblas.h" #include <iostream> #ifdef __cplusplus extern "C" { #endif #include <float.h> #include <stdio.h> #include "highway_lstm_kernel.h" #define BLOCK 256 // Define some error checking ...
6f17adde5485d766e034936cd01a3b8720ca7fb5.cu
#include "cuda_runtime.h" #include "curand.h" #include "cublas_v2.h" #include <iostream> #ifdef __cplusplus extern "C" { #endif #include <float.h> #include <stdio.h> #include "highway_lstm_kernel.h" #define BLOCK 256 // Define some error checking macros. #define cudaErrCheck(stat) { cudaErrCheck_((stat), __FILE__, ...
c984e91dfd0251e42e2b9d39b93c9668e3b3bdf3.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/...
c984e91dfd0251e42e2b9d39b93c9668e3b3bdf3.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...
91694208f1ff3ad23da5f81de20b1796e5755e14.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 -> c d s @author Hartwig Anz...
91694208f1ff3ad23da5f81de20b1796e5755e14.cu
/* -- MAGMA (version 2.5.4) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date October 2020 @precisions normal z -> c d s @author Hartwig Anzt */ #include "magmasparse_internal.h" #define BLOCK_SIZE 512 #define PRECISION_z /...
07f47142e9843752e35975ad50522ee898004a37.hip
// !!! This is a file automatically generated by hipify!!! /********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Andreas Muetzel (amuetzel@uni-koblenz.de). All rights reserved. * * THE BSD LICENSE * * Redistribution and use in ...
07f47142e9843752e35975ad50522ee898004a37.cu
/********************************************************************** * Software License Agreement (BSD License) * * Copyright 2011 Andreas Muetzel (amuetzel@uni-koblenz.de). All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, a...
1ff58d1f008d7764953b534b0c4be97c72dc2ee8.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2015-present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without r...
1ff58d1f008d7764953b534b0c4be97c72dc2ee8.cu
/* Copyright (c) 2015-present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use,...
5180fc81101ca9834d1decd289cb57ad8ec3450b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this soft...
5180fc81101ca9834d1decd289cb57ad8ec3450b.cu
/* * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
54f9303236580571efcba751695b6340bc21975a.hip
// !!! This is a file automatically generated by hipify!!! /*------------------------------------------------------------------------- * * CUDA function for backrpojection using FDK weigts for CBCT * * * CODE by Ander Biguri * Optimized and modified by RB * ---------------------------------------------...
54f9303236580571efcba751695b6340bc21975a.cu
/*------------------------------------------------------------------------- * * CUDA function for backrpojection using FDK weigts for CBCT * * * CODE by Ander Biguri * Optimized and modified by RB * --------------------------------------------------------------------------- * -------------------------...
29bfb72a8d3dba866d2ccf64c4e542b14095f6da.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include <hip/hip_runtime_api.h> //#include <cutil.h> #include <hip/hip_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 19660800 int num_blocks; int num_...
29bfb72a8d3dba866d2ccf64c4e542b14095f6da.cu
#include <stdio.h> #include <iostream> #include <cuda_profiler_api.h> //#include <cutil.h> #include <cuda_runtime.h> #include <string> #define GPUJOULE_DIR "" #define SHARED_MEM_ELEMENTS 1024 #define GLOBAL_MEM_ELEMENTS 19660800 int num_blocks; int num_threads_per_block; int num_iterations; int divergence; float* h...
fea2710ffd5caab47482ccc4fcac7c8fd6300fb0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Example Matlab cuda kernel interface. */ __device__ void pointSource(double rVar, double r1, double r2, double wPerf, double cblood, double kCond, double mueff, double u0, double ua, double Power, double *temperature ) { ...
fea2710ffd5caab47482ccc4fcac7c8fd6300fb0.cu
/* * Example Matlab cuda kernel interface. */ __device__ void pointSource(double rVar, double r1, double r2, double wPerf, double cblood, double kCond, double mueff, double u0, double ua, double Power, double *temperature ) { double pi = 3.141592653589793; //*temperature =ua-(exp(-mueff*rVar)*powf(mueff,2)*Pow...
c33bf5cf7f6acb4eae28531f69d1920e65ea2a9f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef __CUDACC_RTC__ #include "../Include/objects_list.h" #include "../Include/cuda_defines.cuh" #else #define CREATE_OBJECT_TYPE_DESCRIPTION(__TYPE__,__STRUCT__) \ class __TYPE__ { ...
c33bf5cf7f6acb4eae28531f69d1920e65ea2a9f.cu
#ifndef __CUDACC_RTC__ #include "../Include/objects_list.h" #include "../Include/cuda_defines.cuh" #else #define CREATE_OBJECT_TYPE_DESCRIPTION(__TYPE__,__STRUCT__) \ class __TYPE__ { \ protecte...
f912d8985a476811e8f7dc25c39fd9733c554047.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2012 The Trustees of Indiana University. All rights reserved. CGL MapReduce Framework on GPUs and CPUs Code Name: Panda File: PandaUtils.cu First Version: 2012-07-01 V0.1 Current Version: 2012-09-01 V0.3...
f912d8985a476811e8f7dc25c39fd9733c554047.cu
/* Copyright 2012 The Trustees of Indiana University. All rights reserved. CGL MapReduce Framework on GPUs and CPUs Code Name: Panda File: PandaUtils.cu First Version: 2012-07-01 V0.1 Current Version: 2012-09-01 V0.3 Last Updates: 2012-09-02 Developer: Hui Li (lihui@indiana.edu) This is the sourc...
6c8de81ad530980c383885fa12c209377548124f.hip
// !!! This is a file automatically generated by hipify!!! #include "cudaFun.h" #include <cuda/cuda_runtime.h> #include <malloc.h> void allocateArray(float* h_arr, float* &d_arr, long totalsize){ size_t sizecpy = totalsize * sizeof(float); hipMalloc((void **) &d_arr, sizecpy); hipMemcpy(d_arr, h_arr, sizec...
6c8de81ad530980c383885fa12c209377548124f.cu
#include "cudaFun.h" #include <cuda/cuda_runtime.h> #include <malloc.h> void allocateArray(float* h_arr, float* &d_arr, long totalsize){ size_t sizecpy = totalsize * sizeof(float); cudaMalloc((void **) &d_arr, sizecpy); cudaMemcpy(d_arr, h_arr, sizecpy, cudaMemcpyHostToDevice); } void deallocateArray(floa...
ba892df23d978072705874168ffe163523c1c9f1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void kSparseDot(int m, int n, int k, float *data, int* indptr, int* indices, float *dense_data, float* target, float beta, float alpha) { const unsigned int row = blockIdx.x * blockDim.x + threadIdx....
ba892df23d978072705874168ffe163523c1c9f1.cu
#include "includes.h" __global__ void kSparseDot(int m, int n, int k, float *data, int* indptr, int* indices, float *dense_data, float* target, float beta, float alpha) { const unsigned int row = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int col = blockIdx.y * blockDim.y + threadIdx.y; if (row < m && col <...
cb2df92fd96782c84003aa44388662e0d9bc223e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdint.h> #include <hip/hip_runtime.h> extern "C" __global__ void bench(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t n){ int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; if(i<n&&j<n){ ...
cb2df92fd96782c84003aa44388662e0d9bc223e.cu
#include <stdint.h> #include <cuda.h> extern "C" __global__ void bench(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t n){ int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; if(i<n&&j<n){ int idx = i*n+j; c[idx] = a[idx] + b[idx]; } }
2fa253187481c3befbfc762845e6ca40d043256d.hip
// !!! This is a file automatically generated by hipify!!! #include "opencv2/highgui/highgui.hpp" #include "opencv/cv.h" int FastSobel(unsigned char *in, int width, int height, int widthStep, unsigned char *edg, unsigned char *ang) { int i,j; unsigned char *inPtr = NULL; unsigned char *inPtr1 = NULL; un...
2fa253187481c3befbfc762845e6ca40d043256d.cu
#include "opencv2/highgui/highgui.hpp" #include "opencv/cv.h" int FastSobel(unsigned char *in, int width, int height, int widthStep, unsigned char *edg, unsigned char *ang) { int i,j; unsigned char *inPtr = NULL; unsigned char *inPtr1 = NULL; unsigned char *inPtr2 = NULL; unsigned char *inPtr3 = NULL;...
ab746305835c1802668bab0f0d5b4df99bbd3875.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "FixLJCut.h" #include "BoundsGPU.h" #include "GridGPU.h" #include "list_macro.h" #include "PairEvaluateIso.h" #include "State.h" #include "cutils_func.h" const std::string LJCutType = "LJCut"; FixLJCut::FixLJCut(boost::s...
ab746305835c1802668bab0f0d5b4df99bbd3875.cu
#include "FixLJCut.h" #include "BoundsGPU.h" #include "GridGPU.h" #include "list_macro.h" #include "PairEvaluateIso.h" #include "State.h" #include "cutils_func.h" const std::string LJCutType = "LJCut"; FixLJCut::FixLJCut(boost::shared_ptr<State> state_, std::string handle_) : FixPair(state_, handle_, "all", LJCutT...
253b9b48ef22b544afd51fd2a97e6ba2f3be131b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cmath> #include <stdio.h> #include <cassert> #include <iostream> #include "mish.h" namespace nvinfer1 { // create the plugin at runtime from a byte stream MishPlugin::MishPlugin(const void* data, size_t length) ...
253b9b48ef22b544afd51fd2a97e6ba2f3be131b.cu
#include <cmath> #include <stdio.h> #include <cassert> #include <iostream> #include "mish.h" namespace nvinfer1 { // create the plugin at runtime from a byte stream MishPlugin::MishPlugin(const void* data, size_t length) { assert(length == sizeof(input_size_)); input_size_ = *reinterpret_ca...
87c45ee9e337f4bda5b90d0da7b126db3287e007.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019-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.o...
87c45ee9e337f4bda5b90d0da7b126db3287e007.cu
/* * Copyright (c) 2019-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...
b2f42cfbbf6ac66c2c10e4b2e27f8d2131a16321.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef _MUMMERGPU_KERNEL_H_ #define _MUMMERGPU_KERNEL_H_ #include <stdio.h> #include <common.cu> #ifdef n__DEVICE_EMULATION__ #define XPRINTF(...) printf(__VA_ARGS__) #define VERBOSE 0 #else #define XPRINTF(...) do{}while(0) ...
b2f42cfbbf6ac66c2c10e4b2e27f8d2131a16321.cu
#ifndef _MUMMERGPU_KERNEL_H_ #define _MUMMERGPU_KERNEL_H_ #include <stdio.h> #include <common.cu> #ifdef n__DEVICE_EMULATION__ #define XPRINTF(...) printf(__VA_ARGS__) #define VERBOSE 0 #else #define XPRINTF(...) do{}while(0) #define VERBOSE 0 #endif #define WARP_SIZE 16 #if REORDER_TREE #define fNI...
5d816ef487dfaaa4050183008006d3293cdf1497.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...
5d816ef487dfaaa4050183008006d3293cdf1497.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 "../...
75b0b47fb17fd4cc9dd8a71a32d8c81723cca46e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /***************************************************************************//** * \file generateVelB.cu * \author Anush Krishnan (anush@bu.edu) * \brief Implementation of the kernels to generate body-velocities. */ #include "...
75b0b47fb17fd4cc9dd8a71a32d8c81723cca46e.cu
/***************************************************************************//** * \file generateVelB.cu * \author Anush Krishnan (anush@bu.edu) * \brief Implementation of the kernels to generate body-velocities. */ #include "generateVelB.h" /** * \namespace kernels * \brief Contains all custom-written CUDA k...
ec36612ec67f5a99603d548105a1527ee0bc0151.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 "multiplyBy2_self.cu" #include<chrono> #include<iostream> using n...
ec36612ec67f5a99603d548105a1527ee0bc0151.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 "multiplyBy2_self.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},...
a7ad54fa976ab63a4aba3596169bba6fecb1d32e.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 "pointGenKernel.cu" #include<chrono> #include<iostream> using nam...
a7ad54fa976ab63a4aba3596169bba6fecb1d32e.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 "pointGenKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{2...
ee27e8e4360230535951422d4d59067de905d403.hip
// !!! This is a file automatically generated by hipify!!! #include "bloomfilter.h" #include <stdlib.h> #include <iostream> #include <semaphore.h> #include <vector> #include <bitset> #include <cstring> #include <ctime> #include <omp.h> #include <inttypes.h> #include <iomanip> #include <iomanip> #include <hip/hip_runtim...
ee27e8e4360230535951422d4d59067de905d403.cu
#include "bloomfilter.h" #include <stdlib.h> #include <iostream> #include <semaphore.h> #include <vector> #include <bitset> #include <cstring> #include <ctime> #include <omp.h> #include <inttypes.h> #include <iomanip> #include <iomanip> #include <cuda.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #...
b7721266313881a4d873c0213586fdf13a045964.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/loss_layers.hpp" #include "caffe/util/io.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __globa...
b7721266313881a4d873c0213586fdf13a045964.cu
#include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/loss_layers.hpp" #include "caffe/util/io.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void Compute_distance_data_gpu(int nthreads, const int K, const Dtype* bottom, ...
bd18d3f83b9295d3c49d554b6c7e1e4a121dc803.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright 2013. The Regents of the University of California. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2012-03-24 Martin Uecker <uecker@eecs.berkeley.edu> ...
bd18d3f83b9295d3c49d554b6c7e1e4a121dc803.cu
/* Copyright 2013. The Regents of the University of California. * All rights reserved. Use of this source code is governed by * a BSD-style license which can be found in the LICENSE file. * * Authors: * 2012-03-24 Martin Uecker <uecker@eecs.berkeley.edu> * * * This file defines basic operations on vectors of ...
05823d707604b265c01069390cb27d53f47862b8.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 "inc.h" float * GenVectors(int numVectors, int numDims){ srand(10); float * buf=(float*...
05823d707604b265c01069390cb27d53f47862b8.cu
// includes, system #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> // includes, project #include "inc.h" float * GenVectors(int numVectors, int numDims){ srand(10); float * buf=(float*)malloc(sizeof(float)*numVectors*numDims); for(int i=0;i<numVectors*numDims;i++)...
5801d173e995df67d8bf14453427b20ddfe1b662.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Authors: * Oren Freifeld, freifeld@csail.mit.edu * Yixin Li, Email: liyixin@mit.edu */ __global__ void clear_fields(int * count, double * log_count, int * mu_i_h, int * mu_s_h, double * mu_i, double * mu_s, unsigned long long...
5801d173e995df67d8bf14453427b20ddfe1b662.cu
/* * Authors: * Oren Freifeld, freifeld@csail.mit.edu * Yixin Li, Email: liyixin@mit.edu */ __global__ void clear_fields(int * count, double * log_count, int * mu_i_h, int * mu_s_h, double * mu_i, double * mu_s, unsigned long long int * sigma_s_h, const int dim_i, const int nsuperpixel){ int k = threadIdx.x + blo...
35325e4f3a3a883c96aecd19ba9e108d92dadc54.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void atomic_red(const float *gdata, float *out){ size_t idx = threadIdx.x+blockDim.x*blockIdx.x; if (idx < N) atomicAdd(out, gdata[idx]); }
35325e4f3a3a883c96aecd19ba9e108d92dadc54.cu
#include "includes.h" __global__ void atomic_red(const float *gdata, float *out){ size_t idx = threadIdx.x+blockDim.x*blockIdx.x; if (idx < N) atomicAdd(out, gdata[idx]); }
da0d4cc403f5349dd1d1915baea4e3fe7be19fa5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "fill.cuh" #if defined(CUDA) namespace Cuda { namespace Kernel { template <typename T> __global__ void FillBufferImpl(T* buffer, T value, int64_t size) { int64_t i = blockIdx.x * blockDim.x ...
da0d4cc403f5349dd1d1915baea4e3fe7be19fa5.cu
#include "fill.cuh" #if defined(CUDA) namespace Cuda { namespace Kernel { template <typename T> __global__ void FillBufferImpl(T* buffer, T value, int64_t size) { int64_t i = blockIdx.x * blockDim.x + threadIdx.x; while (i < size) { buffer[i] = value; ...
3f0a66ccea1c6085224b2d4afdf3e12015471e3d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <Chain.h> #include <Config.h> #include <constants.h> #include <functions.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> __global__ void updateProbs(Chain *a, int heterosis){ int g = IDX; ...
3f0a66ccea1c6085224b2d4afdf3e12015471e3d.cu
#include <Chain.h> #include <Config.h> #include <constants.h> #include <functions.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> __global__ void updateProbs(Chain *a, int heterosis){ int g = IDX; if(a->m > a->burnin){ if(g < a->G){ a->dex[g] += ((a->alp[g] * a->alp[g]) > 1...
29e3f9514c7fc1f6bf02e8f78eb79924f293d86c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "my_cuda.h" // Fill the particle bins arrays -- partBin and partInd __global__ void bin_fill(int *partInd, int *partBin, int nparts, part_struct *parts, dom_struct *binDom, BC bc) { int pp = threadIdx.x + blockIdx.x*b...
29e3f9514c7fc1f6bf02e8f78eb79924f293d86c.cu
#include "my_cuda.h" // Fill the particle bins arrays -- partBin and partInd __global__ void bin_fill(int *partInd, int *partBin, int nparts, part_struct *parts, dom_struct *binDom, BC bc) { int pp = threadIdx.x + blockIdx.x*blockDim.x; int c; int ibin, jbin, kbin; // Find the correct bin index for each p...
3b54deb26e13b8cef21e4bce8f45918f8709edf3.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <time.h> #include <sys/time.h> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #include <hip/hip_runtime.h> #include <math.h> #define N 100 #define PAR_SIM_COUNT 5 #define T 1 #define T_MIN 0.1 #define ALPHA 0.9 #def...
3b54deb26e13b8cef21e4bce8f45918f8709edf3.cu
#include <stdio.h> #include <time.h> #include <sys/time.h> #include <curand.h> #include <curand_kernel.h> #include <cuda.h> #include <math.h> #define N 100 #define PAR_SIM_COUNT 5 #define T 1 #define T_MIN 0.1 #define ALPHA 0.9 #define ITERATION 1000000 __global__ void expandRandom(float *a, int min, int max){ int in...
215d626ff5f13b17498153072e0a2d09af4ed045.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2014 @generated from zherk_fermi_batched.cu normal z -> c, S...
215d626ff5f13b17498153072e0a2d09af4ed045.cu
/* -- MAGMA (version 1.6.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date November 2014 @generated from zherk_fermi_batched.cu normal z -> c, Sat Nov 15 19:53:59 2014 @author Jakub Kurzak @author Stan Tomov @a...
9917f4afd6035855b56984f6750f2c027d909d49.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 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 * *...
9917f4afd6035855b56984f6750f2c027d909d49.cu
/* * Copyright (c) 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 law ...
df4638641f250693d6cdb1f064ed647df6ba3798.hip
// !!! This is a file automatically generated by hipify!!! #include<iostream> #include<stdlib.h> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <assert.h> int number_count = 640; // Allocation yapilacak int miktari const int allocation_size = number_count * sizeof(int); // numbe...
df4638641f250693d6cdb1f064ed647df6ba3798.cu
#include<iostream> #include<stdlib.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <assert.h> int number_count = 640; // Allocation yapilacak int miktari const int allocation_size = number_count * sizeof(int); // number_count * 4 B void* cpu_p; void* gpu_p; void cpuAlloc() ...
cb959fc3b0cc00ff6865b89c440169829429fb94.hip
// !!! This is a file automatically generated by hipify!!! //===--------------------------- tensor_utils.cu --------------------------===// // //===----------------------------------------------------------------------===// // // This file consists of the custom implementation of utility functions // useful for appro...
cb959fc3b0cc00ff6865b89c440169829429fb94.cu
//===--------------------------- tensor_utils.cu --------------------------===// // //===----------------------------------------------------------------------===// // // This file consists of the custom implementation of utility functions // useful for approximated and non-approximated versions of tensor operations....
a226bbf15ca6d6362bf0e194f70db1c42aa34838.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define THREADS_PER_BLOCK 1024 #define THRESHOLD 67108864 __global__ void encrypt(int n, char *m, char *k, char *c){ int j, i = blockIdx.x*blockDim.x + threadIdx.x; if ...
a226bbf15ca6d6362bf0e194f70db1c42aa34838.cu
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #define THREADS_PER_BLOCK 1024 #define THRESHOLD 67108864 __global__ void encrypt(int n, char *m, char *k, char *c){ int j, i = blockIdx.x*blockDim.x + threadIdx.x; if (i < n){ for(j = 1; j <= 100; j++){ c[i] = m[i] ^ k[i]; } } } int main(){ /* ...
31e183a84a1ab84f76146007640366eb789070f4.hip
// !!! This is a file automatically generated by hipify!!! /*************************************************************************************************** * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are...
31e183a84a1ab84f76146007640366eb789070f4.cu
/*************************************************************************************************** * Copyright (c) 2017-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 me...
c8dd03f06dadfb96375198ea62049c76c9ab375d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <Windows.h> #include <assert.h> #define N_EQUATIONS (1<<25) #define CUDA_CALL(x) { const hipError_t a = (x...
c8dd03f06dadfb96375198ea62049c76c9ab375d.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <Windows.h> #include <assert.h> #define N_EQUATIONS (1<<25) #define CUDA_CALL(x) { const cudaError_t a = (x); if(a != cudaSuccess) { printf("\nCuda Error: %s (err_num=%...
b52063c97a707ed4c2618bd3352aa2113b5c6d70.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <objects/point/points.cuh> #include <objects/point/kernels.cu> #include <core/ImguiConfig.hpp> void Points::init() { isPing = true; //Generating buffers glGenBuffers (BUFFER_COUNT, BUFFER); std::cout<...
b52063c97a707ed4c2618bd3352aa2113b5c6d70.cu
#include <objects/point/points.cuh> #include <objects/point/kernels.cu> #include <core/ImguiConfig.hpp> void Points::init() { isPing = true; //Generating buffers glGenBuffers (BUFFER_COUNT, BUFFER); std::cout<<glGetError()<<std::endl; //init buffers uint *tempUint = new uint[MAX_NUM_POINT...
90199fb78ce26702ec7b71a1bdc95602e99d2baa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_generate_chunk_kernel; int xdim0_generate_chunk_kernel_h = -1; __constant__ int xdim1_generate_chunk_kernel; int xdim1_generate_chunk_kernel_h = -1; __constant__ int xdim2_gen...
90199fb78ce26702ec7b71a1bdc95602e99d2baa.cu
// // auto-generated by ops.py // __constant__ int xdim0_generate_chunk_kernel; int xdim0_generate_chunk_kernel_h = -1; __constant__ int xdim1_generate_chunk_kernel; int xdim1_generate_chunk_kernel_h = -1; __constant__ int xdim2_generate_chunk_kernel; int xdim2_generate_chunk_kernel_h = -1; __constant__ int xdim3_gener...
7f77f2ef2092f0f40a21b8187d4e6598befb1037.hip
// !!! This is a file automatically generated by hipify!!! #include "stereo.hpp" #include "stereosgm.hpp" #include "../costs/stable.hpp" #include "../costs/dual.hpp" #include <opencv2/cudawarping.hpp> #include <opencv2/cudafilters.hpp> #include <opencv2/highgui.hpp> typedef MultiCostsWeighted<StableMatchingCost,3> Mat...
7f77f2ef2092f0f40a21b8187d4e6598befb1037.cu
#include "stereo.hpp" #include "stereosgm.hpp" #include "../costs/stable.hpp" #include "../costs/dual.hpp" #include <opencv2/cudawarping.hpp> #include <opencv2/cudafilters.hpp> #include <opencv2/highgui.hpp> typedef MultiCostsWeighted<StableMatchingCost,3> MatchingCost; static void variance_mask(cv::InputArray in, cv...
9238c3272ea0b5fd3dd37113d82d71ff7f942434.hip
// !!! This is a file automatically generated by hipify!!! //#include <stdlib.h> //#include <string.h> //#include <stdio.h> #include "jim.h" #include "jimautoconf.h" #include "jim-subcmd.h" static __device__ int history_cmd_getline(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { #if __HIPCC__ char *line = nullp...
9238c3272ea0b5fd3dd37113d82d71ff7f942434.cu
//#include <stdlib.h> //#include <string.h> //#include <stdio.h> #include "jim.h" #include "jimautoconf.h" #include "jim-subcmd.h" static __device__ int history_cmd_getline(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { #if __CUDACC__ char *line = nullptr; //Jim_HistoryGetline(Jim_String(argv[0])); #else char...
e34465063dc4d638ffbacd10a903753b2f4dab0c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * @Name: matrix_transfer_2d.cu * @Description: 3D Matrix (NxMxZ) Floating-Point Transfer. * * @Author: Giacomo Marciani <gmarciani@acm.org> * @Institution: University of Rome Tor Vergata * * @Usage: matrix_transfer_2d matr...
e34465063dc4d638ffbacd10a903753b2f4dab0c.cu
/* * @Name: matrix_transfer_2d.cu * @Description: 3D Matrix (NxMxZ) Floating-Point Transfer. * * @Author: Giacomo Marciani <gmarciani@acm.org> * @Institution: University of Rome Tor Vergata * * @Usage: matrix_transfer_2d matrixRows matrixCols matrixZ blockSize * * Default values: * matrixRows: 4096 * matri...
047be0236268f2267671c3a47c02f188b0cdb1c5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2018-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
047be0236268f2267671c3a47c02f188b0cdb1c5.cu
/* * Copyright (c) 2018-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
ddb5a537af1e68a5e84e06a268d4e0db0181a5fc.hip
// !!! This is a file automatically generated by hipify!!! /************************************************************************************\ * * * Copyright 2014 Advanced Micro Devices, Inc. * *...
ddb5a537af1e68a5e84e06a268d4e0db0181a5fc.cu
/************************************************************************************\ * * * Copyright © 2014 Advanced Micro Devices, Inc. * * Copyright (c) 2015 Mark D. Hill and David A. Wood ...
d80ca3f228df6c25d827ecbf30a0dad75581875b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> void genRandomString(char *str,int length) { for(int i=0;i<length-1;++i) { str[i] = 'a' + rand()%26; } str[length-1] = '\0'; } void genRa...
d80ca3f228df6c25d827ecbf30a0dad75581875b.cu
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <sys/time.h> void genRandomString(char *str,int length) { for(int i=0;i<length-1;++i) { str[i] = 'a' + rand()%26; } str[length-1] = '\0'; } void genRandomSubString(char *str,int length,int sub_len) { for(int i=0;i<length-1;++i) { ...
925f6765e3c373abb52bf88da8e3e3e72aa0af32.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <math.h> #include <chrono> #include <hip/hip_runtime.h> void reference ( int numNeurons, int neurons_per_item, float dt, float*__restrict__ encode_result, float*__restrict__ voltage...
925f6765e3c373abb52bf88da8e3e3e72aa0af32.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <math.h> #include <chrono> #include <cuda.h> void reference ( int numNeurons, int neurons_per_item, float dt, float*__restrict__ encode_result, float*__restrict__ voltage_array, float*__restrict__ reftime_array, float tau_rc, float ...
005a28e23ba8aeac5cee788de323afeb25535894.hip
// !!! This is a file automatically generated by hipify!!! /* % Function: receiver By: Mohammed Osama & Khaled Ahmed */ #include "sc_fdma_demodulator.cuh" #include "generate_dmrs_pusch_hip.cuh" #include "generate_ul_rs.cuh" #include "generate_psuedo_random_seq.cuh" #include "transform_predecoder.cuh" #include "dec...
005a28e23ba8aeac5cee788de323afeb25535894.cu
/* % Function: receiver By: Mohammed Osama & Khaled Ahmed */ #include "sc_fdma_demodulator.cuh" #include "generate_dmrs_pusch.cuh" #include "generate_ul_rs.cuh" #include "generate_psuedo_random_seq.cuh" #include "transform_predecoder.cuh" #include "decompose_subframe.cuh" #include "demapper.cuh" #include "descramb...
3739b5077b744f287ab98755de289be99545e327.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // --------------------------------------------------------- // Author: Andy Zeng, Princeton University, 2016 // --------------------------------------------------------- #include <iostream> #include <fstream> #include <iomanip> #i...
3739b5077b744f287ab98755de289be99545e327.cu
// --------------------------------------------------------- // Author: Andy Zeng, Princeton University, 2016 // --------------------------------------------------------- #include <iostream> #include <fstream> #include <iomanip> #include <sstream> #include <string> #include "utils.hpp" // CUDA kernel function to inte...
6b284d8e7ccf1bc42ca8c19db7a8507c25ce3568.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" typedef long long ll_t; typedef unsigned long long ull_t; typedef struct __builtin_align__(32) { float s0, s1, s2, s3, s4, s5, s6, s7; } _float8; typedef union { _float8 f8; float val[8]; } float8; __device__ __forceinline_...
6b284d8e7ccf1bc42ca8c19db7a8507c25ce3568.cu
typedef long long ll_t; typedef unsigned long long ull_t; typedef struct __builtin_align__(32) { float s0, s1, s2, s3, s4, s5, s6, s7; } _float8; typedef union { _float8 f8; float val[8]; } float8; __device__ __forceinline__ float atomicMax(float *address, float val) { int ret = __float_as_int(*address); w...
a3981d44b88bc122b6b4b5ebb36091ac5111aaac.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hip/device_functions.h" #include "rocblas.h" #include "device_launch_parameters.h" #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <math.h> #include <queue> using namespace std; struct...
a3981d44b88bc122b6b4b5ebb36091ac5111aaac.cu
#include "cuda_runtime.h" #include "device_functions.h" #include "cublas_v2.h" #include "device_launch_parameters.h" #include <iostream> #include <fstream> #include <cstdlib> #include <ctime> #include <math.h> #include <queue> using namespace std; struct Point { float x; float y; int cluster; int noise...
3b4ae64d2b202cce00ffdf020620971cdd59c5d2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Created by root on 23/03/2020. // #include "../Matrix.cuh" #include <iostream> __global__ void matrixDivisionScalar(double *a, double b, double *c, int cr, int cc){ int x = blockIdx.x * blockDim.x + threadIdx.x; // col ...
3b4ae64d2b202cce00ffdf020620971cdd59c5d2.cu
// // Created by root on 23/03/2020. // #include "../Matrix.cuh" #include <iostream> __global__ void matrixDivisionScalar(double *a, double b, double *c, int cr, int cc){ int x = blockIdx.x * blockDim.x + threadIdx.x; // col int y = blockIdx.y * blockDim.y + threadIdx.y; // row if(x < cc && y < cr){ ...
78630d77c2dc92b3a62ea57b521b614a155ce924.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <assert.h> __global__ colorWork(int* row_ptr, int* col_ind, int* neighbor_colors, int* color_array, int index, int i) { int tid = for(int j=row_ptr[i]; j < row_ptr[i+1]; j++){ // neighborhood functi...
78630d77c2dc92b3a62ea57b521b614a155ce924.cu
#include <stdio.h> #include <assert.h> __global__ colorWork(int* row_ptr, int* col_ind, int* neighbor_colors, int* color_array, int index, int i) { int tid = for(int j=row_ptr[i]; j < row_ptr[i+1]; j++){ // neighborhood function to check neighbors of visited verte if(color_array[col_ind[j]] != -1){ bool foun...
f9306160e5843117cd11b416df47c0f6d746003b.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, ...
f9306160e5843117cd11b416df47c0f6d746003b.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...
efec8d5efa9db25a6f7c11d3400af085307afbdf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "../include/transform.cuh" #include <malloc.h> #include <assert.h> #include <stdio.h> #include "../include/operation.h" #include "../include/cuRPCF.h" #include <omp.h> #include "../include/transpose.cuh" #include <iostream>...
efec8d5efa9db25a6f7c11d3400af085307afbdf.cu
#include "../include/transform.cuh" #include <malloc.h> #include <assert.h> #include <stdio.h> #include "../include/operation.h" #include "../include/cuRPCF.h" #include <omp.h> #include "../include/transpose.cuh" #include <iostream> cufftHandle planXYr2c, planXYc2r, planZ_pad, planZ_no_pad; cufftHandle planXYr2c_X3, p...
58b75e7f0f6b9201e62eb79b619c58cab09a23af.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <omp.h> #include "cnn.h" #include "layer.h" #include "dataset.h" #include "batch.h" #include "debug_extra.h" #include "error_handling.h" #include ...
58b75e7f0f6b9201e62eb79b619c58cab09a23af.cu
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <omp.h> #include "cnn.h" #include "layer.h" #include "dataset.h" #include "batch.h" #include "debug_extra.h" #include "error_handling.h" #include "cudaKernels.h" #include "timer.h" double LEARNING_RATE = 0.003; void writeMetrics(flo...
fd45ba009ef7efa8073662ff46f2005483165ba6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include "caffe/common.hpp" #incl...
fd45ba009ef7efa8073662ff46f2005483165ba6.cu
#include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include "caffe/common.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { #define TILE_DIM 16 template...
Sigmoid.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if USE_ROCM #include "cuda/Common.h" #include "activation/Sigmoid.h" namespace nn { namespace activation { __device__ float sigmoid(float x) { return 1.0f / (1.0f + exp(-x)); } __global__ void SigmoidForwardImpl(const int N...
Sigmoid.cu
#if USE_CUDA #include "cuda/Common.h" #include "activation/Sigmoid.h" namespace nn { namespace activation { __device__ float sigmoid(float x) { return 1.0f / (1.0f + exp(-x)); } __global__ void SigmoidForwardImpl(const int N, const float* X, float* Y) { const int i = blockIdx.x * blockDim.x + threadIdx.x; ...
537925d30f7e63c7b9e718f065f4128e01394195.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ------------------------------------------------------------- // cuDPP -- CUDA Data Parallel Primitives library // ------------------------------------------------------------- // $Revision: 3049 $ // $Date: 2007-02-26 10:42:36...
537925d30f7e63c7b9e718f065f4128e01394195.cu
// ------------------------------------------------------------- // cuDPP -- CUDA Data Parallel Primitives library // ------------------------------------------------------------- // $Revision: 3049 $ // $Date: 2007-02-26 10:42:36 -0800 (Mon, 26 Feb 2007) $ // ---------------------------------------------------------...
fbc3f8650566c65f6d136711f66fce7f41ae40ec.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License a...
fbc3f8650566c65f6d136711f66fce7f41ae40ec.cu
// Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // /...
5c0e578bb3035bb2e661bc5635363ab9fb05c7c2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cfloat> #include <hipcub/hipcub.hpp> #include "caffe2/core/context_gpu.h" #include "caffe2/operators/softmax_op.h" #include "caffe2/operators/softmax_with_loss_op.h" #include "caffe2/operators/spatial_softmax_with_loss_op...
5c0e578bb3035bb2e661bc5635363ab9fb05c7c2.cu
#include <cfloat> #include <cub/block/block_reduce.cuh> #include "caffe2/core/context_gpu.h" #include "caffe2/operators/softmax_op.h" #include "caffe2/operators/softmax_with_loss_op.h" #include "caffe2/operators/spatial_softmax_with_loss_op.h" namespace caffe2 { namespace { __global__ void LabelCrossEntropyKernel( ...
0b981d5dc22c5d82161d759fbee8126c157174c8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<cuda.h> #include<iostream> #include <unistd.h> using namespace std; const int numElems =2; __global__ void dataKernel( double* data, int nsteps){ //this adds a value to a variable stored in global memory int thid = thre...
0b981d5dc22c5d82161d759fbee8126c157174c8.cu
#include<cuda.h> #include<iostream> #include <unistd.h> using namespace std; const int numElems =2; __global__ void dataKernel( double* data, int nsteps){ //this adds a value to a variable stored in global memory int thid = threadIdx.x; //data[thid] = 0; int i = 0; bool wait = 1; clock_t start = clock64(); cl...
63f880b5d19763ae2610eab640384c392483d333.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdlib.h> #include <wb.h> #include <stdint.h> #include <ctype.h> #include <stdio.h> #include <unistd.h> #include "hamc_cpu_code.c" #include "hamc_common.h" #include "decrypt.cu" #include "encrypt.cu" #include "keygen.cu"...
63f880b5d19763ae2610eab640384c392483d333.cu
#include <cuda_runtime.h> #include <stdlib.h> #include <wb.h> #include <stdint.h> #include <ctype.h> #include <stdio.h> #include <unistd.h> #include "hamc_cpu_code.c" #include "hamc_common.h" #include "decrypt.cu" #include "encrypt.cu" #include "keygen.cu" #include "hamc_e2e.cu" #define CUDA_CHECK(ans) \ { gpuAss...
56d4eff8e153b76503d27e96c1d2f925c9f23189.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Host Side Code for Cross-correlation in GPU #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> //#include "Cross_Data_type.h" #include "corr2Mex_V3.h" #include "normXcorr_GPUKernel_V3...
56d4eff8e153b76503d27e96c1d2f925c9f23189.cu
// Host Side Code for Cross-correlation in GPU #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> //#include "Cross_Data_type.h" #include "corr2Mex_V3.h" #include "normXcorr_GPUKernel_V3.cu" using namespace std; Matrix AllocateDeviceMatrix(const Matrix M); Matrix Allocat...
4123c88938c5ceeab90be2f44b19f1e86df52dd4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { hipError_t err = hipGetLastError(); if (hipSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) {...
4123c88938c5ceeab90be2f44b19f1e86df52dd4.cu
#include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { cudaError_t err = cudaGetLastError(); if (cudaSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) { fprintf(stderr, " (%s:%d)", file, line); } fprintf(stderr, ": %s: %s...
ce56ca5e2627559c5030083bb1eb7950cff93bf2.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" __device__ unsigned int modprodC(unsigned int a, unsigned int b, unsigned int p) { unsigned int za = a; unsi...
ce56ca5e2627559c5030083bb1eb7950cff93bf2.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <time.h> #include "cuda.h" #include "functions.c" __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 (b%2 == 1) ab = (ab + za) ...
5a5b23dc5aca8896fe5c4d4095f6c01f8e8f83b5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * a simple test */ __shared__ float data1[32][32]; __shared__ float data2[32][32]; __shared__ float data3[32][32]; __device__ void mult(__shared__ float d1[32][32], __shared__ float d2[32][32], ...
5a5b23dc5aca8896fe5c4d4095f6c01f8e8f83b5.cu
/* * a simple test */ __shared__ float data1[32][32]; __shared__ float data2[32][32]; __shared__ float data3[32][32]; __device__ void mult(__shared__ float d1[32][32], __shared__ float d2[32][32], __shared__ float d3[32][32], int idx) { int i; for ...
48c8d9ef076e178d741929019f5bd63679a274d6.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include "hip/hip_runtime.h" #define N 2 //64 __device__ float multiplyByTwo(float *v, unsigned int tid) { return v[tid] * 2.0f; } __device__ float divideByTwo(float *v, unsigned int tid) { return v[tid] * 0.5f; } typedef float(...
48c8d9ef076e178d741929019f5bd63679a274d6.cu
#include <stdio.h> #include "cuda.h" #define N 2 //64 __device__ float multiplyByTwo(float *v, unsigned int tid) { return v[tid] * 2.0f; } __device__ float divideByTwo(float *v, unsigned int tid) { return v[tid] * 0.5f; } typedef float(*funcType)(float*, unsigned int); __global__ void foor(float *v, unsi...
86d8ef622016bf39dfe586b6f8cb8a6f112c8ecf.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <cstdint> #include <cstdlib> #include "MyFunctions.h" #include "CharacterList.h" #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <iostream> using namespace std; static const u...
86d8ef622016bf39dfe586b6f8cb8a6f112c8ecf.cu
#include <cstdio> #include <cstdint> #include <cstdlib> #include "MyFunctions.h" #include "CharacterList.h" #include <cuda.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <iostream> using namespace std; static const unsigned W = 1920; static const unsigned H = 1080; static const int char_w...
f6cca8edc16f811480bd58b8f38bf5a270edd3cc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_plus_2_b; int xdim0_update_halo_kernel4_plus_2_b_h = -1; __constant__ int ydim0_update_halo_kernel4_plus_2_b; int ydim0_update_halo_kernel4_plus_2_b_h = -1...
f6cca8edc16f811480bd58b8f38bf5a270edd3cc.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel4_plus_2_b; int xdim0_update_halo_kernel4_plus_2_b_h = -1; __constant__ int ydim0_update_halo_kernel4_plus_2_b; int ydim0_update_halo_kernel4_plus_2_b_h = -1; __constant__ int xdim1_update_halo_kernel4_plus_2_b; int xdim1_update_halo_kernel4_plu...
1cd4177b5b5666fc722aa027a65b0882b6eba0ea.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Program to implement a SAT solver using the DPLL algorithm with unit * propagation Sukrut Rao CS15BTECH11036 */ #include <algorithm> #include <cmath> #include <cstdint> #include <iostream> #include <string> #include <f...
1cd4177b5b5666fc722aa027a65b0882b6eba0ea.cu
/* * Program to implement a SAT solver using the DPLL algorithm with unit * propagation Sukrut Rao CS15BTECH11036 */ #include <algorithm> #include <cmath> #include <cstdint> #include <iostream> #include <string> #include <fstream> #include <vector> using namespace std; /* * enum for different types of retu...
f3cae2c0a525fcf7a1123414f25f81220831820b.hip
// !!! This is a file automatically generated by hipify!!! /*! * Copyright 2015-2019 XGBoost contributors */ #include <vector> #include <algorithm> #include <utility> #include <dmlc/omp.h> #include <dmlc/timer.h> #include "xgboost/logging.h" #include "xgboost/objective.h" #include "xgboost/json.h" #include "xgboost...
f3cae2c0a525fcf7a1123414f25f81220831820b.cu
/*! * Copyright 2015-2019 XGBoost contributors */ #include <vector> #include <algorithm> #include <utility> #include <dmlc/omp.h> #include <dmlc/timer.h> #include "xgboost/logging.h" #include "xgboost/objective.h" #include "xgboost/json.h" #include "xgboost/parameter.h" #include "../common/math.h" #include "../com...
d0c0183b2bd7e08cb899ecb8d52fbae3ea69e2af.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <chrono> #include <iostream> //Kernel definition template<typename T> __global__ void oftKernel (T* out, T* in, const unsigned int sd_size, const unsigned int block_size, const unsigned int I, const unsigned in...
d0c0183b2bd7e08cb899ecb8d52fbae3ea69e2af.cu
#include <chrono> #include <iostream> //Kernel definition template<typename T> __global__ void oftKernel (T* out, T* in, const unsigned int sd_size, const unsigned int block_size, const unsigned int I, const unsigned int L) { const unsigned int sd_id = static_cast<int> (threadIdx.x / L); //automatically r...
d926d50c3201f349dd738c72faa13e390a131c5d.hip
// !!! This is a file automatically generated by hipify!!! #include "gpu_incremental_map_track.h" #include "gpu_track_kernels.h" #include "gpu_defines.h" #include "hip/hip_runtime.h" #include <stdlib.h> #include <memory.h> #include <malloc.h> namespace SySal { namespace GPU { PrismMapTracker::Tracker::Tracker() ...
d926d50c3201f349dd738c72faa13e390a131c5d.cu
#include "gpu_incremental_map_track.h" #include "gpu_track_kernels.h" #include "gpu_defines.h" #include "cuda_runtime.h" #include <stdlib.h> #include <memory.h> #include <malloc.h> namespace SySal { namespace GPU { PrismMapTracker::Tracker::Tracker() : CTOR_INIT(pTracks), CTOR_INIT(pHostTracks), CTOR_I...
cad5ad37afc824b57c0ede3aa1371542b01e5e93.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <time.h> #define LEN 256 #define TILESZ 16 // Uncomment this line if you want to display // // the result of the computation. // // #define DISPLAY 1 static d...
cad5ad37afc824b57c0ede3aa1371542b01e5e93.cu
#include <stdio.h> #include <time.h> #define LEN 256 #define TILESZ 16 // Uncomment this line if you want to display // // the result of the computation. // // #define DISPLAY 1 static double CLOCK(); __global__ void matInit(float*); __global__ void stencil(float*, float*)...
8889032cc743f9e0af81324a0dd05758db0e4598.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include<stdlib.h> #include<cuda.h> int main( void ) { hipDeviceProp_t prop; int count; hipGetDeviceCount( &count); printf("found %d devices\n", count); for (int i=0; i< count; i++) { hipGetDeviceProperties( &pr...
8889032cc743f9e0af81324a0dd05758db0e4598.cu
#include <stdio.h> #include<stdlib.h> #include<cuda.h> int main( void ) { cudaDeviceProp prop; int count; cudaGetDeviceCount( &count); printf("found %d devices\n", count); for (int i=0; i< count; i++) { cudaGetDeviceProperties( &prop, i); printf( " --- General Information for devi...
2c9039f2186e406745dfebef7a01a198d47ea8cc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include "caffe/layers/conv_dw_layer.hpp" #include "caffe/util/gpu_util.cuh" namespace caffe { template <typename Dtype> __global__ void ConvolutionDepthwiseWeightForward(const int nthreads, const Dtype* cons...
2c9039f2186e406745dfebef7a01a198d47ea8cc.cu
#include <vector> #include "caffe/layers/conv_dw_layer.hpp" #include "caffe/util/gpu_util.cuh" namespace caffe { template <typename Dtype> __global__ void ConvolutionDepthwiseWeightForward(const int nthreads, const Dtype* const bottom_data, const Dtype* const weight_data, const int num, const int channels, co...
fd842ff8f29748464cecfa6c82ea7e9723840574.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #define N 30 //typedef long long int ll; __global__ void align(char *key , char *s , int *scores , int n , int num) { int GP = -1 , MR = 1; int index = threadIdx.x + blockIdx.x * blockDim...
fd842ff8f29748464cecfa6c82ea7e9723840574.cu
#include <stdio.h> #include <stdlib.h> #define N 30 //typedef long long int ll; __global__ void align(char *key , char *s , int *scores , int n , int num) { int GP = -1 , MR = 1; int index = threadIdx.x + blockIdx.x * blockDim.x; if(index < num) { int i , j , k , tmp; int nm[N + 1][N + 1]; char r1[2*N+...
0b04e71399f9010078e227cb4203ef3879dff608.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <limits> #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" #include "caffe/syncedmem.hpp" using std::max; namespace caffe { template <typename Dtype> v...
0b04e71399f9010078e227cb4203ef3879dff608.cu
#include <algorithm> #include <limits> #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/vision_layers.hpp" #include "caffe/syncedmem.hpp" using std::max; namespace caffe { template <typename Dtype> void DropoutLayer<Dtype>::SetUp(const vector<Blob<Dtype>* >& bottom, vector<Blob<Dtype>* ...
ab31f1690ead0f0bf0e6e44c1fc25bb8dee946a8.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http:...
ab31f1690ead0f0bf0e6e44c1fc25bb8dee946a8.cu
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
4d0946dafc6c8aebede9c44041cda57eebf1b0f9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/AccumulateType.h> #include <ATen/hip/Exceptions.h> #include <ATen/hip/HIPContext.h> #include <ATen/detail/FunctionTra...
4d0946dafc6c8aebede9c44041cda57eebf1b0f9.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/AccumulateType.h> #include <ATen/cuda/Exceptions.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/detail/FunctionTraits.h> #include <cmath> #include <limits> #ifndef AT_PER_OPERATOR_HEADERS #include <...
5129e9278ae37c25f82ac407ff0bf24bc71cd0d8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * This sample implements a separable convolution * of a 2D image with an arbitrary filter. */ #include <time.h> #include <stdio.h> #include <stdlib.h> //unsigned int radius; #define radius 16 #define FILTER_LENGTH (2 * radius...
5129e9278ae37c25f82ac407ff0bf24bc71cd0d8.cu
/* * This sample implements a separable convolution * of a 2D image with an arbitrary filter. */ #include <time.h> #include <stdio.h> #include <stdlib.h> //unsigned int radius; #define radius 16 #define FILTER_LENGTH (2 * radius + 1) #define ABS(val) ((val)<0.0 ? (-(val)) : (val)) #define accuracy 6 #define ti...
daaef4f47141a6e6c31c5f43cbd9a557f0bbb655.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...
daaef4f47141a6e6c31c5f43cbd9a557f0bbb655.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...
54ce57d3372c4497d3299262a0a51c9bf66e996c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @generated from zmergecg.cu normal z -> c, Fri Sep 11 ...
54ce57d3372c4497d3299262a0a51c9bf66e996c.cu
/* -- MAGMA (version 1.7.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2015 @generated from zmergecg.cu normal z -> c, Fri Sep 11 18:29:43 2015 @author Hartwig Anzt */ #include "common_magmasparse.h" #define B...
61434c843874ad8b09403ac062f999bf176e76c9.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <hiprand/hiprand_kernel.h> #include "fcns.h" #include <stdio.h> #include <stdlib.h> // Definition of Matrix Filter Function CPU float MatFilter(const Matrix filter,const Matrix oldmat, Matrix n...
61434c843874ad8b09403ac062f999bf176e76c9.cu
#include <cuda.h> #include <cuda_runtime.h> #include <curand_kernel.h> #include "fcns.h" #include <stdio.h> #include <stdlib.h> // Definition of Matrix Filter Function CPU float MatFilter(const Matrix filter,const Matrix oldmat, Matrix newmat) { // Load to device memory Matrix d_filter; d_filter.width = f...
5ddec009e8a4da21d4268dad2e4234f31c9e35c9.hip
// !!! This is a file automatically generated by hipify!!! /*! * Copyright 2015-2019 by Contributors * \file elementwise_metric.cc * \brief evaluation metrics for elementwise binary or regression. * \author Kailong Chen, Tianqi Chen * * The expressions like wsum == 0 ? esum : esum / wsum is used to handle empty ...
5ddec009e8a4da21d4268dad2e4234f31c9e35c9.cu
/*! * Copyright 2015-2019 by Contributors * \file elementwise_metric.cc * \brief evaluation metrics for elementwise binary or regression. * \author Kailong Chen, Tianqi Chen * * The expressions like wsum == 0 ? esum : esum / wsum is used to handle empty dataset. */ #include <rabit/rabit.h> #include <xgboost/met...
93e0ce5e6e52a0edbb5938105dcadcb9b5a281a8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/unpooling_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void MaxUnpoolForward(const int ...
93e0ce5e6e52a0edbb5938105dcadcb9b5a281a8.cu
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layers/unpooling_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { template <typename Dtype> __global__ void MaxUnpoolForward(const int nthreads, const Dtype* bottom_data, const int num, const int channels, const int hei...
91fcda51665dfd8a6359e024e1dbea6adf380016.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 "vec_testkernel.hip" #include<chrono> #include<iostream> using na...
91fcda51665dfd8a6359e024e1dbea6adf380016.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 "vec_testkernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{2...