hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
1f76776811ee97d15faa331c164794dfc41849ac.hip
// !!! This is a file automatically generated by hipify!!! #include "../../common/common.h" #include <hip/hip_runtime.h> #include <stdio.h> /* * simpleDivergence demonstrates divergent code on the GPU and its impact on * performance and CUDA metrics. */ __global__ void mathKernel1(float *c) { int tid = blockId...
1f76776811ee97d15faa331c164794dfc41849ac.cu
#include "../../common/common.h" #include <cuda_runtime.h> #include <stdio.h> /* * simpleDivergence demonstrates divergent code on the GPU and its impact on * performance and CUDA metrics. */ __global__ void mathKernel1(float *c) { int tid = blockIdx.x * blockDim.x + threadIdx.x; float ia, ib; ia = ib ...
0f7a7cb1b5c0d3440f97ed922126a5f2aba2aa6c.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...
0f7a7cb1b5c0d3440f97ed922126a5f2aba2aa6c.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...
9036aaa3e13589f244a92ca7b41f47e728f2a86f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Software License Agreement (BSD License) * * Copyright (c) 2011, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provide...
9036aaa3e13589f244a92ca7b41f47e728f2a86f.cu
/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Willow Garage, Inc. * 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 mu...
83adac0b87efe4ed3774a717b50cebc0cbd684c2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 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 * *...
83adac0b87efe4ed3774a717b50cebc0cbd684c2.cu
/* * Copyright (c) 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 law ...
e5f09aba2b1bc69c5f7bddc1f527aa664c330e4e.hip
// !!! This is a file automatically generated by hipify!!! #include "training/graph_group_multinode.h" #include "kernels/tensor_operators.h" #include "graph_group_multinode.h" namespace marian { /** * Set given scheduler to register training observers on the shard optimizers. */ void MultiNodeGraphGroup::setSchedu...
e5f09aba2b1bc69c5f7bddc1f527aa664c330e4e.cu
#include "training/graph_group_multinode.h" #include "kernels/tensor_operators.h" #include "graph_group_multinode.h" namespace marian { /** * Set given scheduler to register training observers on the shard optimizers. */ void MultiNodeGraphGroup::setScheduler(Ptr<Scheduler> scheduler) { scheduler_ = scheduler; ...
7e8f50cf651fa609fca6f4ec5742b507358c8c2b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gputests.h" /*********************************************************************************** * Test 8 [Modulo 20, random pattern] * * A random pattern is generated. This pattern is used to set every 20th memory loc...
7e8f50cf651fa609fca6f4ec5742b507358c8c2b.cu
#include "gputests.h" /*********************************************************************************** * Test 8 [Modulo 20, random pattern] * * A random pattern is generated. This pattern is used to set every 20th memory location * in memory. The rest of the memory location is set to the complimemnt of the pat...
da3ce6309b65e27e09c6511b09a68c619ee1451a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <assert.h> // Convenience function for checking CUDA runtime API results // can be wrapped around any runtime API call. No-op in release builds. inline hipError_t checkCuda(hipError_t result) { #if defi...
da3ce6309b65e27e09c6511b09a68c619ee1451a.cu
#include <stdio.h> #include <assert.h> // Convenience function for checking CUDA runtime API results // can be wrapped around any runtime API call. No-op in release builds. inline cudaError_t checkCuda(cudaError_t result) { #if defined(DEBUG) || defined(_DEBUG) if (result != cudaSuccess) { fprintf(stderr, "CUDA...
10a4b5a25fba7dfce33bf85ea3dfcc0422961f59.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <opencv2/core/cuda.hpp> #include <opencv2/core/cuda_stream_accessor.hpp> // http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api #define gpuErrchk(ans) { gp...
10a4b5a25fba7dfce33bf85ea3dfcc0422961f59.cu
#include <cuda_runtime.h> #include <opencv2/core/cuda.hpp> #include <opencv2/core/cuda_stream_accessor.hpp> // http://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __func__, __LINE__, false); } inline ...
f9779bbcdde2bf7eb3fdf2f319964b5074b2b65a.hip
// !!! This is a file automatically generated by hipify!!! #include <algorithm> #include <vector> #include "hip/hip_runtime.h" #include "caffe/layer.hpp" #include "caffe/custom_layers.hpp" namespace caffe { // compute each Vi template <typename Dtype> __global__ void ComputeSource(const int total, const i...
f9779bbcdde2bf7eb3fdf2f319964b5074b2b65a.cu
#include <algorithm> #include <vector> #include "cuda.h" #include "caffe/layer.hpp" #include "caffe/custom_layers.hpp" namespace caffe { // compute each Vi template <typename Dtype> __global__ void ComputeSource(const int total, const int num, const int height, const int width, const Dtype* ta...
c7abbe8a84eb232027d96adc62857ae387fdd83a.hip
// !!! This is a file automatically generated by hipify!!! #include <cmath> #include <cstdio> #include <hip/hip_runtime.h> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/copy.h> #include <thrust/count.h> #include <thrust/device_vector.h> #include <hip/hip_r...
c7abbe8a84eb232027d96adc62857ae387fdd83a.cu
#include <cmath> #include <cstdio> #include <cuda.h> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/copy.h> #include <thrust/count.h> #include <thrust/device_vector.h> #include <cuda_runtime.h> #include <util/checkCUDAError.h> #include <glm/gtx/transform.hp...
cee57508f39a2a34998143905f3938fad9f25415.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include "get_hausdorff_dis_gpu.h" #include "cuda_utils.h" #define gt_num 42 #define voxel_dim 31 #define dict_grid_num (voxel_dim*voxel_dim*voxel_dim) #define prior_point_n...
cee57508f39a2a34998143905f3938fad9f25415.cu
#include <math.h> #include <stdio.h> #include <stdlib.h> #include "get_hausdorff_dis_gpu.h" #include "cuda_utils.h" #define gt_num 42 #define voxel_dim 31 #define dict_grid_num (voxel_dim*voxel_dim*voxel_dim) #define prior_point_num 9 __global__ void get_hausdorff_dis_kernel_fast(const float *__restrict__ neighbor_p...
a9ddc9c93c0417980b63a2587b510f3601e73861.hip
// !!! This is a file automatically generated by hipify!!! // Copyright 2019 Jij Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/L...
a9ddc9c93c0417980b63a2587b510f3601e73861.cu
// Copyright 2019 Jij Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agre...
d9a31db376e7d2ef6d01bd2092db12fc0ef4a842.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <chrono> #include <vector> #include<hiprand/hiprand_kernel.h> using namespace std; #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_t code, const char *fi...
d9a31db376e7d2ef6d01bd2092db12fc0ef4a842.cu
#include <iostream> #include <chrono> #include <vector> #include<curand_kernel.h> using namespace std; #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true){ if (code != cudaSuccess) { fprintf(stderr,"GPUassert: %...
e866cb19ebbe73d35861534907ef7ceba0a53e91.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <iomanip> #include <stdio.h> #include <stdlib.h> #include <thrust/extrema.h> #include <thrust/device_vector.h> #include <chrono> using namespace std::chrono; #define CSC(call) ...
e866cb19ebbe73d35861534907ef7ceba0a53e91.cu
#include <iostream> #include <iomanip> #include <stdio.h> #include <stdlib.h> #include <thrust/extrema.h> #include <thrust/device_vector.h> #include <chrono> using namespace std::chrono; #define CSC(call) \ do { ...
e385d9602bc1d4242450911b59a62e34953cc40a.hip
// !!! This is a file automatically generated by hipify!!! #include "cal.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <cuda_gl_interop.h> #include <cudnn.h> #define Dt 0.000005f float *act[8] = { NULL }; float *para[6] = { NULL }; float *grad[4] = { NULL }; unsigned char *data = NULL...
e385d9602bc1d4242450911b59a62e34953cc40a.cu
#include "cal.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cuda_gl_interop.h> #include <cudnn.h> #define Dt 0.000005f float *act[8] = { NULL }; float *para[6] = { NULL }; float *grad[4] = { NULL }; unsigned char *data = NULL; float *buffer = NULL; float *bufferd = NULL; int n; cudaGrap...
86b3cceed486ff1e2e4e0b2472c9b28542004f81.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> __global__ void process_kernel1(float *input1, float *input2, float *output, int datasize){ int blockNum = blockIdx.z * (gridDim.x * gridDim.y) + blo...
86b3cceed486ff1e2e4e0b2472c9b28542004f81.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime.h> __global__ void process_kernel1(float *input1, float *input2, float *output, int datasize){ int blockNum = blockIdx.z * (gridDim.x * gridDim.y) + blockIdx.y * gridDim.x + blockIdx.x; int threadNum = threadIdx.z * (bloc...
128c7b514eef389878cb04fc776f46f78f4405b3.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 1993-2013 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,...
128c7b514eef389878cb04fc776f46f78f4405b3.cu
/** * Copyright 1993-2013 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
d37d7181604eb333bd2e9f762bc87d00aa2405f9.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2014 Google Inc. 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...
d37d7181604eb333bd2e9f762bc87d00aa2405f9.cu
/* * Copyright 2014 Google Inc. 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 applicab...
sort_by_key.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <unittest/unittest.h> #include <thrust/sort.h> #include <thrust/execution_policy.h> #include <thrust/functional.h> template<typename Iterator1, typename Iterator2, typename Compare, typename Iterator3> __global__ void sor...
sort_by_key.cu
#include <unittest/unittest.h> #include <thrust/sort.h> #include <thrust/execution_policy.h> #include <thrust/functional.h> template<typename Iterator1, typename Iterator2, typename Compare, typename Iterator3> __global__ void sort_by_key_kernel(Iterator1 keys_first, Iterator1 keys_last, Iterator2 values_first, Compa...
029e1d0167c020a33dccdc6631ed7ae65a109547.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #include <device_launch_parameters.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgp...
029e1d0167c020a33dccdc6631ed7ae65a109547.cu
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> #include <device_launch_parameters.h> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <chrono> #include <omp.h> using namespace std;...
73fa02332f2cbd1bf2488fcd6eb0cf9116bd78f2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include"glcm.h" /* Calculating GLCM */ int *Calculate_GLCM_rl(const int *image, int *size, int *stride, int *angles, int *Range, int MASK_VALUE, int bin_width, int Ng, int NA, int batch_size) { //START_TIMER(time) int nbytes_i...
73fa02332f2cbd1bf2488fcd6eb0cf9116bd78f2.cu
#include"glcm.h" /* Calculating GLCM */ int *Calculate_GLCM_rl(const int *image, int *size, int *stride, int *angles, int *Range, int MASK_VALUE, int bin_width, int Ng, int NA, int batch_size) { //START_TIMER(time) int nbytes_image = sizeof(int) * size[0] * size[1] * batch_size; //int nbytes_mask = sizeof(int...
baea5c12fe87499afcb793bf9db0e10f6dbe5493.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/operators/asin_op.h" #include <algorithm> #include <functional> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { __global__ void AsinGradientCUDAKernel( const int N, const float* dY, ...
baea5c12fe87499afcb793bf9db0e10f6dbe5493.cu
#include "caffe2/operators/asin_op.h" #include <algorithm> #include <functional> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { __global__ void AsinGradientCUDAKernel( const int N, const float* dY, const float* X, float* dX) { CUDA_1D_KERNEL_LOOP(i, N) { #if __CUDA_ARCH__ >= ...
f55f8ad3b8d8f23e2fd055ec1d5ad8ce39aeba0f.hip
// !!! This is a file automatically generated by hipify!!! #include <math.h> #include <unistd.h> #include <stdio.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> extern "C" { #include "utils.c" } #define WARP_SIZE 16 #define DEBUG false /* ---------------- [[CUDA KERNELS]] ---------------- */ __glo...
f55f8ad3b8d8f23e2fd055ec1d5ad8ce39aeba0f.cu
#include <math.h> #include <unistd.h> #include <stdio.h> #include <cuda.h> #include <cuda_runtime_api.h> extern "C" { #include "utils.c" } #define WARP_SIZE 16 #define DEBUG false /* ---------------- [[CUDA KERNELS]] ---------------- */ __global__ void updateWeightsCUDA(float *weights, float *changes, float *delta...
95d2ad5c9dd96d61ac2afefe44c39d1984185c39.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licens...
95d2ad5c9dd96d61ac2afefe44c39d1984185c39.cu
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
57ffc9aeadfd1f9dad832b56f245b522c7b5e45a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /************************************************************************************************************************************************** | HBFT algorithm without Dynamic Programming in CUDA | Author : Dinali ...
57ffc9aeadfd1f9dad832b56f245b522c7b5e45a.cu
/************************************************************************************************************************************************** | HBFT algorithm without Dynamic Programming in CUDA | Author : Dinali Rosemin Dabarera | University of Peradeniya (EFac 2016) All Rights Reserved |*****...
d607dffd119353f06f6cfc9fc70ad5687641d265.hip
// !!! This is a file automatically generated by hipify!!! /* * ReconstructionTest_gpu.cu * * Created on: Jul 11, 2014 * Author: tombr */ #include "ReconstructionTest.h" #include <tbblas/deeplearn/conv_dbn.hpp> #include <tbblas/rearrange.hpp> #include <tbblas/dot.hpp> #include <tbblas/math.hpp> #include <...
d607dffd119353f06f6cfc9fc70ad5687641d265.cu
/* * ReconstructionTest_gpu.cu * * Created on: Jul 11, 2014 * Author: tombr */ #include "ReconstructionTest.h" #include <tbblas/deeplearn/conv_dbn.hpp> #include <tbblas/rearrange.hpp> #include <tbblas/dot.hpp> #include <tbblas/math.hpp> #include <tbblas/util.hpp> #include <tbblas/new_context.hpp> #include...
cc951c41268c161f847789637ef7a7903faac298.hip
// !!! This is a file automatically generated by hipify!!! #include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/util/im2col.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #inclu...
cc951c41268c161f847789637ef7a7903faac298.cu
#include <vector> #include "caffe/filler.hpp" #include "caffe/layer.hpp" #include "caffe/util/im2col.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <stdlib.h> #inclu...
33f9dc3cfd90f0f0569bfd2d14a2edc74fde6d8c.hip
// !!! This is a file automatically generated by hipify!!! /* ****************************************************************************** * * * 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/licen...
33f9dc3cfd90f0f0569bfd2d14a2edc74fde6d8c.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...
f5cf2e7899ca237eabc9346198e0a5b194df49bb.hip
// !!! This is a file automatically generated by hipify!!! // // include files // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <time.h> #include <hip/hip_runtime.h> #define N 512 // // kernel routine // __global__ void add_threads(int *a, int *b, int *c) { c[threadIdx.x]...
f5cf2e7899ca237eabc9346198e0a5b194df49bb.cu
// // include files // #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <time.h> #include <cuda_runtime.h> #define N 512 // // kernel routine // __global__ void add_threads(int *a, int *b, int *c) { c[threadIdx.x] = a[threadIdx.x] + b[threadIdx.x]; } // // main code // //i...
61cdd34f1a4d667c949b4d0d58b70175368a4246.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <stdio.h> #define LENGTH 10 #define TIME 5 #define STEP_X 0.05 #define STEP_T 0.001 #if...
61cdd34f1a4d667c949b4d0d58b70175368a4246.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <chrono> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <stdio.h> #define LENGTH 10 #define TIME 5 #define STEP_X 0.05 #define STEP_T 0.001 #ifdef WIN32 #define GNUPLOT_NAME "pgnuplot -persist" #else #defi...
ec1a106473b0cfa042c956fd86262a8c35042df2.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_complex.h> #include <inttypes.h> #include <stdio.h> #include "dada_cuda.h" #include "mopsr_cuda.h" #define BEAMS_PER_LOOP 8 #define WARP_SIZE 32 #define NWARPS_PER_BLOCK 32 #define NSUM 32 //#define _GDEBUG...
ec1a106473b0cfa042c956fd86262a8c35042df2.cu
#include <cuda_runtime.h> #include <cuComplex.h> #include <inttypes.h> #include <stdio.h> #include "dada_cuda.h" #include "mopsr_cuda.h" #define BEAMS_PER_LOOP 8 #define WARP_SIZE 32 #define NWARPS_PER_BLOCK 32 #define NSUM 32 //#define _GDEBUG 1 #ifdef __CUDA_ARCH__ #if (__CUDA_ARCH__ >= 300) ...
6f43d307e95425d5d99dcc5fd6de89fd609f65e3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <hip/device_functions.h> #include "ma.h" // Parameters for CUDA kernel executions #define BLOCKX 16 #define BLOCKY 16 #define BLOCKSIZE 64 #define TILE_DIM 32 #define BLOCK_ROWS 8 /****** Global Variables *******/ sho...
6f43d307e95425d5d99dcc5fd6de89fd609f65e3.cu
#include <device_functions.h> #include "ma.h" // Parameters for CUDA kernel executions #define BLOCKX 16 #define BLOCKY 16 #define BLOCKSIZE 64 #define TILE_DIM 32 #define BLOCK_ROWS 8 /****** Global Variables *******/ short2 **maTextures; // Two textures used to compute 2D Voronoi Diagram int *dindex,*drei...
180b4e95b18181cf408dcaf7613f17ff160f1be3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "caffe/layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> __global__ void MaxPoolFo...
180b4e95b18181cf408dcaf7613f17ff160f1be3.cu
#include <algorithm> #include <cfloat> #include <vector> #include "caffe/layer.hpp" #include "caffe/util/math_functions.hpp" #include "caffe/vision_layers.hpp" namespace caffe { template <typename Dtype> __global__ void MaxPoolForward(const int nthreads, const Dtype* bottom_data, const int num, const int channel...
fa216ec00c24182fe1821ab780c6f7627755021a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // 2D Ising model simulation via Metropolis-Hastings algorithm // parallel setup ~ single checkboard: preventing race conditions // include header(s) #include <random> #include <cmath> #include <numeric> #include <string> #include ...
fa216ec00c24182fe1821ab780c6f7627755021a.cu
// 2D Ising model simulation via Metropolis-Hastings algorithm // parallel setup ~ single checkboard: preventing race conditions // include header(s) #include <random> #include <cmath> #include <numeric> #include <string> #include <iostream> #include <fstream> #include <vector> #include <algorithm> #include <stdio.h> ...
53c8048fb637f418f3a78d4c75ab10a0396c46bc.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...
53c8048fb637f418f3a78d4c75ab10a0396c46bc.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...
d2ef8500a48a20d30fc6ed5c0467cc4eb0d56c9c.hip
// !!! This is a file automatically generated by hipify!!! #define LIMIT -999 #define BLOCK_SIZE 16 #define MAX_SEQ_LEN 2100 #define MAX_SEQ_NUM 1024 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "needle.h" #include "needle_cpu.h...
d2ef8500a48a20d30fc6ed5c0467cc4eb0d56c9c.cu
#define LIMIT -999 #define BLOCK_SIZE 16 #define MAX_SEQ_LEN 2100 #define MAX_SEQ_NUM 1024 #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <cuda.h> #include <sys/time.h> #include "needle.h" #include "needle_cpu.h" // includes, kernels #include "needle_cpu.c" #include "needle_kerne...
069186f1db275879c8ea16e0ecb0630b62f7154b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cmath> #include "naive_gpu_multiply.cuh" void DoNaiveGpuMatrixMult() { const size_t kMatWidth = MAT_WIDTH; const size_t kMatHeight = MAT_HEIGHT; hipError_t cuErr = NaiveGpuMult( MatrixUtil::GetMatrix1(), kMa...
069186f1db275879c8ea16e0ecb0630b62f7154b.cu
#include <cmath> #include "naive_gpu_multiply.cuh" void DoNaiveGpuMatrixMult() { const size_t kMatWidth = MAT_WIDTH; const size_t kMatHeight = MAT_HEIGHT; cudaError_t cuErr = NaiveGpuMult( MatrixUtil::GetMatrix1(), kMatWidth, kMatHeight, MatrixUtil::GetMatrix2(), kMa...
1bfcbc06c0fb7695ba7ee296c5d80fc52a02a2d4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "psc_cuda.h" #define BLOCKSIZE_X 1 #define BLOCKSIZE_Y 4 #define BLOCKSIZE_Z 4 #define PFX(x) cuda_bnd_##x #include "constants.c" #define SW (2) // FIXME // OPT lots of optimization opportunity in the single-proc/patch...
1bfcbc06c0fb7695ba7ee296c5d80fc52a02a2d4.cu
#include "psc_cuda.h" #define BLOCKSIZE_X 1 #define BLOCKSIZE_Y 4 #define BLOCKSIZE_Z 4 #define PFX(x) cuda_bnd_##x #include "constants.c" #define SW (2) // FIXME // OPT lots of optimization opportunity in the single-proc/patch ones, // but they may not be that important for real production __global__ static void...
4d304bdd375fd08808f4b64f9c77ae57cf13eded.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 "_medianfilter.cu" #include<chrono> #include<iostream> using name...
4d304bdd375fd08808f4b64f9c77ae57cf13eded.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 "_medianfilter.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24...
23fafe0314d15f678b1ffeb5e16dcc0a2f236db8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //============================================================================ #include<cstdlib> #include<time.h> #include<cuda.h> #include<iostream> #include<math.h> //Included just to use the Power function #define BLOCK_SIZE 32 ...
23fafe0314d15f678b1ffeb5e16dcc0a2f236db8.cu
//============================================================================ #include<cstdlib> #include<time.h> #include<cuda.h> #include<iostream> #include<math.h> //Included just to use the Power function #define BLOCK_SIZE 32 #define TILE_SIZE 32 #define MAX_MASK_WIDTH 10 __constant__ float M[MAX_MASK_WIDTH]; us...
22f53ccaac432af0bf4fbff03672f0833ac68428.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Kernels.h" __global__ void kernel_propagate_sig(nm_float * d_neurones, NetMath::Sigmoid * d_sigmoids, Network::Dimension::Parameter * param, int *value, int *pitch, int *sig_pitch) { int neu_src = threadIdx.x / value[p...
22f53ccaac432af0bf4fbff03672f0833ac68428.cu
#include "Kernels.h" __global__ void kernel_propagate_sig(nm_float * d_neurones, NetMath::Sigmoid * d_sigmoids, Network::Dimension::Parameter * param, int *value, int *pitch, int *sig_pitch) { int neu_src = threadIdx.x / value[param->cur_layer] + pitch[param->cur_layer], sig = sig_pitch[param->cur_layer] + thread...
0933b9cc4761babd3a14be57d4a4ed0337b4690b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include"common_structs.h" #include<stdio.h> #include"imageOperations.h" #define BLOCK_WIDTH 10 #define BLOCK_HEIGHT 60 // This will output the proper CUDA error strings in the event that a CUDA host call returns an error #define ...
0933b9cc4761babd3a14be57d4a4ed0337b4690b.cu
#include"common_structs.h" #include<stdio.h> #include"imageOperations.h" #define BLOCK_WIDTH 10 #define BLOCK_HEIGHT 60 // This will output the proper CUDA error strings in the event that a CUDA host call returns an error #define cudaCheckErrors(err) __checkCudaErrors (err, __FILE__, __LINE__) inline void ...
sssp_standard.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "sssp_standard.h" SSSP_Standard::SSSP_Standard(std::shared_ptr<Graph> graph) : SSSP(std::move(graph)) { } std::shared_ptr<Paths> SSSP_Standard::compute(int source_node) { size_t numNodes = graph->edges.size(); siz...
sssp_standard.cu
#include "sssp_standard.h" SSSP_Standard::SSSP_Standard(std::shared_ptr<Graph> graph) : SSSP(std::move(graph)) { } std::shared_ptr<Paths> SSSP_Standard::compute(int source_node) { size_t numNodes = graph->edges.size(); size_t numEdges = graph->destinations.size(); // Sizes size_t sizeNodes = numNodes...
bd47104ed43228ce07691e68d73bfd2d6b16a1d0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> // Enabled to print a bunch of junk during solving #define DEBUG_PRINT_SOLVER_INFO 0 #include "WarpingSolverParameters.h" #include "WarpingSolverState.h" #include "WarpingSolverUtil.h" #include "WarpingSolverEq...
bd47104ed43228ce07691e68d73bfd2d6b16a1d0.cu
#include <iostream> // Enabled to print a bunch of junk during solving #define DEBUG_PRINT_SOLVER_INFO 0 #include "WarpingSolverParameters.h" #include "WarpingSolverState.h" #include "WarpingSolverUtil.h" #include "WarpingSolverEquations.h" #include <assert.h> #include <stdio.h> #include <stdint.h> #include "../../...
5956706533b1d94a84062a57d363574252e3640d.hip
// !!! This is a file automatically generated by hipify!!! /*----------------------------------------------------------- ** gaussian.cu -- The program is to solve a linear system Ax = b ** by using Gaussian Elimination. The algorithm on page 101 ** ("Foundations of Parallel Programming") is used. ** The seq...
5956706533b1d94a84062a57d363574252e3640d.cu
/*----------------------------------------------------------- ** gaussian.cu -- The program is to solve a linear system Ax = b ** by using Gaussian Elimination. The algorithm on page 101 ** ("Foundations of Parallel Programming") is used. ** The sequential version is gaussian.c. This parallel ** implem...
ebce284c867f9a9846e8bb192f09de20f89bab80.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 "gpu_array_dot_product_r8__.cu" #include<chrono> #include<iostrea...
ebce284c867f9a9846e8bb192f09de20f89bab80.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 "gpu_array_dot_product_r8__.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8...
42c52cd3234d752363d7eba1fa5b4de6ee10c4a8.hip
// !!! This is a file automatically generated by hipify!!! // System includes #include <stdio.h> #include <assert.h> #include <malloc.h> #include <math.h> #include <stdlib.h> // CUDA runtime #include <hip/hip_runtime.h> // Helper functions and utilities to work with CUDA #include "helper_functions.h" #include "helper...
42c52cd3234d752363d7eba1fa5b4de6ee10c4a8.cu
// System includes #include <stdio.h> #include <assert.h> #include <malloc.h> #include <math.h> #include <stdlib.h> // CUDA runtime #include <cuda_runtime.h> // Helper functions and utilities to work with CUDA #include "helper_functions.h" #include "helper_cuda.h" // setting the number of trials in the monte carlo ...
822e6a4e3fe27f452ef5375bf3dc4d920591918d.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <assert.h> //#include <math.h> #include "hip/hip_runtime.h" #include <hip/hip_runtime.h> #include <cusolverDn.h> #include <rocblas.h> #include <hipfft.h> #include "Utilities.cuh" #define DEBUG #define PI_R 3.141592653589...
822e6a4e3fe27f452ef5375bf3dc4d920591918d.cu
#include <stdio.h> #include <assert.h> //#include <math.h> #include "cuda_runtime.h" #include <cuda.h> #include <cusolverDn.h> #include <cublas_v2.h> #include <cufft.h> #include "Utilities.cuh" #define DEBUG #define PI_R 3.14159265358979323846f /*******************/ /* iDivUp FUNCTION */ /****************...
MatKernel.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hiprand/hiprand_kernel.h> #include <stdio.h> #include <MatKernel.hpp> #include <thrust/device_ptr.h> #include <thrust/sort.h> #include <thrust/reverse.h> #include <thrust/reduce.h> #include <thrust/merge.h> #include <thru...
MatKernel.cu
#include <cuda_runtime.h> #include <curand_kernel.h> #include <stdio.h> #include <MatKernel.hpp> #include <thrust/device_ptr.h> #include <thrust/sort.h> #include <thrust/reverse.h> #include <thrust/reduce.h> #include <thrust/merge.h> #include <thrust/fill.h> #if __CUDA_ARCH__ > 200 #define MAXXGRID 2147483647 #else #...
8f084c75545201726743ba39942ccef8c8c6beca.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernel_hip.cuh" __host__ __device__ double getValue(int N, int M, int row, int col, double* List) { int index = row * M + col; return List[index]; } __host__ __device__ double getRowIndex(int N, int M, int index) { re...
8f084c75545201726743ba39942ccef8c8c6beca.cu
#include "kernel.cuh" __host__ __device__ double getValue(int N, int M, int row, int col, double* List) { int index = row * M + col; return List[index]; } __host__ __device__ double getRowIndex(int N, int M, int index) { return (int)(index / M); } __host__ __device__ int getColIndex(int N, int M, int index) { re...
c0a8dd0e7d72a17c937348327c2219b3397217db.hip
// !!! This is a file automatically generated by hipify!!! /* Implements the various scatter operations on cusp vectors */ #include <petscconf.h> PETSC_CUDA_EXTERN_C_BEGIN #include <petsc-private/vecimpl.h> /*I "petscvec.h" I*/ #include <../src/vec/vec/impls/dvecimpl.h> PETSC_CUDA_EXTERN_C_END #include <.....
c0a8dd0e7d72a17c937348327c2219b3397217db.cu
/* Implements the various scatter operations on cusp vectors */ #include <petscconf.h> PETSC_CUDA_EXTERN_C_BEGIN #include <petsc-private/vecimpl.h> /*I "petscvec.h" I*/ #include <../src/vec/vec/impls/dvecimpl.h> PETSC_CUDA_EXTERN_C_END #include <../src/vec/vec/impls/seq/seqcusp/cuspvecimpl.h> #include <cu...
b433a8598359474b008e58896cf8f9d9f87ba914.hip
// !!! This is a file automatically generated by hipify!!! /****************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ******...
b433a8598359474b008e58896cf8f9d9f87ba914.cu
/****************************************************************************** *cr *cr (C) Copyright 2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr *****************************************************************...
f72fe0f23ca4084d249f1d9ba9e67850f3a0f89a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> using namespace std; #include <thrust/reduce.h> #include <thrust/sequence.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #incl...
f72fe0f23ca4084d249f1d9ba9e67850f3a0f89a.cu
#include <iostream> using namespace std; #include <thrust/reduce.h> #include <thrust/sequence.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <mat...
61475f18cde26059035fef26d5fcbbc5bc081818.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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.apa...
61475f18cde26059035fef26d5fcbbc5bc081818.cu
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 applica...
8a901d80eac9890fe6b6a16da48ad3c2f4231ba9.hip
// !!! This is a file automatically generated by hipify!!! //////////////////////////////////////////////////////////////////////////// // // Copyright 1993-2015 NVIDIA Corporation. All rights reserved. // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and...
8a901d80eac9890fe6b6a16da48ad3c2f4231ba9.cu
//////////////////////////////////////////////////////////////////////////// // // Copyright 1993-2015 NVIDIA Corporation. All rights reserved. // // Please refer to the NVIDIA end user license agreement (EULA) associated // with this source code for terms and conditions that govern your use of // this software. Any u...
87b849eadc5be6c8589d61e52d9c22caf0b29c3a.hip
// !!! This is a file automatically generated by hipify!!! #include "random_number_generation_tests.cuh" SCENARIO("[DEVICE] Uniform random number generation", "[d-urng]") { GIVEN("An appropriate seed") { hiprandState_t *state; checkCudaErrors(hipMalloc(reinterpret_cast<void **>(&state), ...
87b849eadc5be6c8589d61e52d9c22caf0b29c3a.cu
#include "random_number_generation_tests.cuh" SCENARIO("[DEVICE] Uniform random number generation", "[d-urng]") { GIVEN("An appropriate seed") { curandState *state; checkCudaErrors(cudaMalloc(reinterpret_cast<void **>(&state), sizeof(curandState))); initia...
098e62fcdfcb4630f27b1149d85b50a6659af993.hip
// !!! This is a file automatically generated by hipify!!! //This code is a modification of L2 cache benchmark from //"Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarking": https://arxiv.org/pdf/1804.06826.pdf //This benchmark measures the maximum read bandwidth of L2 cache for 64 bit //Compile this fi...
098e62fcdfcb4630f27b1149d85b50a6659af993.cu
//This code is a modification of L2 cache benchmark from //"Dissecting the NVIDIA Volta GPU Architecture via Microbenchmarking": https://arxiv.org/pdf/1804.06826.pdf //This benchmark measures the maximum read bandwidth of L2 cache for 64 bit //Compile this file using the following command to disable L1 cache: // n...
8e8da4f4d33f5d12b39ee09c8a4cbf8554a20d4d.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2022 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:...
8e8da4f4d33f5d12b39ee09c8a4cbf8554a20d4d.cu
// Copyright (c) 2022 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...
1684bfc54de2245d7ec33e6fc040f7ce26e54e83.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 "shortcut_kernel.cu" #include<chrono> #include<iostream> using na...
1684bfc54de2245d7ec33e6fc040f7ce26e54e83.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 "shortcut_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{...
60e1422e13a8882162657a4dcb89b9771fd61e1e.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <limits.h> #include "binary_search.h" #include <chrono> #include <iostream> #define BLOCKDIM 512 #define SEARCH_CHUNK 16 #define BLOCK_CHUNK (BLOCKDIM*SEARCH_CHUNK) __global__ void search_kernel(const long int *arr, ...
60e1422e13a8882162657a4dcb89b9771fd61e1e.cu
#include <cuda.h> #include <limits.h> #include "binary_search.h" #include <chrono> #include <iostream> #define BLOCKDIM 512 #define SEARCH_CHUNK 16 #define BLOCK_CHUNK (BLOCKDIM*SEARCH_CHUNK) __global__ void search_kernel(const long int *arr, const long int len, const long int *querys, const long int num_querys...
6b63f345d5f72fbbbcb89d673abbc69690bd05da.hip
// !!! This is a file automatically generated by hipify!!! /*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the fol...
6b63f345d5f72fbbbcb89d673abbc69690bd05da.cu
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
71769b6333800f508f2e722243af85ac91067642.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // nvcc iso2PCF.cu -o par.out && ./par.out data_5K.dat rand0_5K.dat 5000 30 180 #include <iostream> #include <fstream> #include <string.h> #include <time.h> #include <math.h> using namespace std; //Point with weight value. Structu...
71769b6333800f508f2e722243af85ac91067642.cu
// nvcc iso2PCF.cu -o par.out && ./par.out data_5K.dat rand0_5K.dat 5000 30 180 #include <iostream> #include <fstream> #include <string.h> #include <time.h> #include <math.h> using namespace std; //Point with weight value. Structure struct PointW3D{ float x; float y; float z; float w; }; struct Node...
b30f98ce14d4b3c88134b8c8c467431574c1a5c3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <opencv2\core.hpp> #include <opencv2\highgui.hpp> #include <ctime> #include <opencv\cv.h> #include <opencv\highgui.h> #include <time.h> #include <iostream> ...
b30f98ce14d4b3c88134b8c8c467431574c1a5c3.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <opencv2\core.hpp> #include <opencv2\highgui.hpp> #include <ctime> #include <opencv\cv.h> #include <opencv\highgui.h> #include <time.h> #include <iostream> #define K 16 // K is the size of block KxK #define W 1 ...
cbc5cdc95004a31887b7a1d99ac7676650b3bff4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef USE_ROCM #include "dragon/core/context_cuda.h" #include "dragon/utils/op_kernels.h" namespace dragon { namespace kernel { namespace { template <typename T> __global__ void _HardSigmoid( const int nthreads, const ...
cbc5cdc95004a31887b7a1d99ac7676650b3bff4.cu
#ifdef USE_CUDA #include "dragon/core/context_cuda.h" #include "dragon/utils/op_kernels.h" namespace dragon { namespace kernel { namespace { template <typename T> __global__ void _HardSigmoid( const int nthreads, const T alpha, const T beta, const T* x, T* y) { CUDA_1D_KERNEL_LOOP(i, nthreads...
835a04869a78f38331c162504477db7e714e1a7e.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 "GoniometricFunctionKernel.cu" #include<chrono> #include<iostream...
835a04869a78f38331c162504477db7e714e1a7e.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 "GoniometricFunctionKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8}...
bf65a8c1a3161be1906f7491d4773755f13ce2e8.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 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/li...
bf65a8c1a3161be1906f7491d4773755f13ce2e8.cu
/* * Copyright (c) 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 law ...
5b51be65a9def983859ed8666e560ea32aa2fa36.hip
// !!! This is a file automatically generated by hipify!!! // 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. //...
5b51be65a9def983859ed8666e560ea32aa2fa36.cu
// 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 represented by o...
42301a0c464d882329ff0f46415502820d1ff458.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 "reduction_neighbored_pairs_improved_1.cu" #include<chrono> #incl...
42301a0c464d882329ff0f46415502820d1ff458.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 "reduction_neighbored_pairs_improved_1.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20]...
2fd4bd560e98c24c56e20663ae7230f56c49ca86.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include <iostream> #include <fstream> int main(int argc,char **argv) { std::ofstream myfile; myfile.open ("seq_mapping.csv"); // set these variables unsigned int times = 10; unsigned int IN...
2fd4bd560e98c24c56e20663ae7230f56c49ca86.cu
#include <stdio.h> #include <cuda_runtime.h> #include <iostream> #include <fstream> int main(int argc,char **argv) { std::ofstream myfile; myfile.open ("seq_mapping.csv"); // set these variables unsigned int times = 10; unsigned int IN_SIZE; unsigned int IN_BYTES; unsigned int OUT_SIZE; ...
4ae8288882cbf39110013bc61f91a79ab11b5ecd.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2018-2019, Michael P. Howard // This file is part of the azplugins project, released under the Modified BSD License. // Maintainer: mphoward #include "PairPotentials.cuh" namespace azplugins { namespace gpu { //! Kernel driver for spline pa...
4ae8288882cbf39110013bc61f91a79ab11b5ecd.cu
// Copyright (c) 2018-2019, Michael P. Howard // This file is part of the azplugins project, released under the Modified BSD License. // Maintainer: mphoward #include "PairPotentials.cuh" namespace azplugins { namespace gpu { //! Kernel driver for spline pair potential template cudaError_t compute_pair_potential<az...
94c898d320c8b6ef938cabd94a43ab7c3308d134.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "decoding.h" #include <thrust/extrema.h> #include <thrust/device_ptr.h> #include <iostream> namespace fastertransformer { template <typename T> __global__ void embedding_lookup_kernel(const T* embedding_table, const int*...
94c898d320c8b6ef938cabd94a43ab7c3308d134.cu
#include "decoding.h" #include <thrust/extrema.h> #include <thrust/device_ptr.h> #include <iostream> namespace fastertransformer { template <typename T> __global__ void embedding_lookup_kernel(const T* embedding_table, const int* word_ids, const int hidden_units, T* from_tensor) { int write_pos = threadIdx.x +...
7f57c9f93d95824c380a76e4f956f570b9f75267.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #define TILE_WIDTH 2 __global__ void MatrixMulKernel(float* Md, float* Nd, float* Pd, int Width); __global__ void sMatrixMulKernel(float* Md, float* Nd, float* Pd, int Width)...
7f57c9f93d95824c380a76e4f956f570b9f75267.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #define TILE_WIDTH 2 __global__ void MatrixMulKernel(float* Md, float* Nd, float* Pd, int Width); __global__ void sMatrixMulKernel(float* Md, float* Nd, float* Pd, int Width); int main(void){ int width = 5; //Allocate and initialize the matrices M, N, P //I...
c726e034ee74652f7cc89f002ef3aef1319aa144.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gpu_runtime.h" __global__ void concat_kernel(const int nthreads, const float* in_data, const bool forward, const int num_concats, const int concat_size, const int top_concat_axis, const int bottom_concat_axis, ...
c726e034ee74652f7cc89f002ef3aef1319aa144.cu
#include "gpu_runtime.h" __global__ void concat_kernel(const int nthreads, const float* in_data, const bool forward, const int num_concats, const int concat_size, const int top_concat_axis, const int bottom_concat_axis, const int offset_concat_axis, float* out_data) { CUDA_KERNEL_LOOP(index, nthreads)...
e6d4598b8e5c41c9154d70830f20e6598f5d7118.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" // ERROR CHECKING MACROS ////////////////////////////////////////////////////// __global__ void pathAdjacencyKernel(int noTransitions, int noSegments, float* XY1, float* XY2, float* X4_X3, float* Y4_Y3, float...
e6d4598b8e5c41c9154d70830f20e6598f5d7118.cu
#include "includes.h" // ERROR CHECKING MACROS ////////////////////////////////////////////////////// __global__ void pathAdjacencyKernel(int noTransitions, int noSegments, float* XY1, float* XY2, float* X4_X3, float* Y4_Y3, float* X2_X1, float* Y2_Y1, int* adjacency) { int blockId = blockIdx.y * gridDim.x + blockId...
7ac5e26b3b4bb45683e349b1c0ad2f409ca579a2.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <cutil.h> #include <math.h> // Includes #include <stdio.h> #include "../include/ContAcq-IntClk.h" //#include "REPEATL.h" #include "../include/REPEATR.h" // includes, project #include "../include/sdkHelper.h" // h...
7ac5e26b3b4bb45683e349b1c0ad2f409ca579a2.cu
#include <stdio.h> #include <stdlib.h> #include <cutil.h> #include <math.h> // Includes #include <stdio.h> #include "../include/ContAcq-IntClk.h" //#include "REPEATL.h" #include "../include/REPEATR.h" // includes, project #include "../include/sdkHelper.h" // helper for shared functions common to CUDA SDK samples //#in...
559d066a3b4f7db80eab3e8d7649696a5fc32a57.hip
// !!! This is a file automatically generated by hipify!!! template<typename _Op, typename _Scalar, int _Axis, int MiniBatch = 16> void ReduceDevice( const Matrix<_Scalar, Dynamic, Dynamic, Dynamic, ColumnMajor>& in, Matrix<_Scalar, Dynamic, Dynamic, Dynamic, ColumnMajor>& out, const _Op& op, const _Scalar& initial)...
559d066a3b4f7db80eab3e8d7649696a5fc32a57.cu
template<typename _Op, typename _Scalar, int _Axis, int MiniBatch = 16> void ReduceDevice( const Matrix<_Scalar, Dynamic, Dynamic, Dynamic, ColumnMajor>& in, Matrix<_Scalar, Dynamic, Dynamic, Dynamic, ColumnMajor>& out, const _Op& op, const _Scalar& initial) { const Index N = NumEntries(in.rows(), in.cols(), in.bat...
690d159c242ca77180c3993cb33e55182ab4340a.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...
690d159c242ca77180c3993cb33e55182ab4340a.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...
3bb3a7dde2093eb4aac34e5bebfe90d0bd615a6d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2016-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include "RuleBookIterator.h" ...
3bb3a7dde2093eb4aac34e5bebfe90d0bd615a6d.cu
// Copyright 2016-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. #include "RuleBookIterator.h" // NTX must be >=2 so r is filled properly template <typename T, Int NTX, Int NTY> __gl...
a15b5cdb988b28e9cf1b158660a0b8130225aed0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "depthSR_kernel.cuh" __global__ void memcpy_float(int width, float* dst, float* src) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * blockDim.y; dst[y * width + x] = src[y * ...
a15b5cdb988b28e9cf1b158660a0b8130225aed0.cu
#include "depthSR_kernel.cuh" __global__ void memcpy_float(int width, float* dst, float* src) { int x = threadIdx.x + blockIdx.x * blockDim.x; int y = threadIdx.y + blockIdx.y * blockDim.y; dst[y * width + x] = src[y * width + x]; } __global__ void extractCorrelation_kernel(ContextDepthSR *context, uint8_...
c382e1b42577441a93b7bc2636b4bf81f8fcd001.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "saber/funcs/impl/cuda/cuda_utils.h" namespace anakin { namespace saber { template<typename Dtype> __global__ void trans_map2in(Dtype* output, const Dtype* input, const int* map, int count, i...
c382e1b42577441a93b7bc2636b4bf81f8fcd001.cu
#include "saber/funcs/impl/cuda/cuda_utils.h" namespace anakin { namespace saber { template<typename Dtype> __global__ void trans_map2in(Dtype* output, const Dtype* input, const int* map, int count, int lastdim) { CUDA_KERNEL_LE(tid, count) { int seq = tid / lastdim; ...
a27731edc95a49449945238b7341a75b63204cfa.hip
// !!! This is a file automatically generated by hipify!!! #include "DalitzPlotPdf.hh" #include <complex> using std::complex; const int resonanceOffset_DP = 4; // Offset of the first resonance into the parameter index array // Offset is number of parameters, constant index, number of resonances (not calculable // f...
a27731edc95a49449945238b7341a75b63204cfa.cu
#include "DalitzPlotPdf.hh" #include <complex> using std::complex; const int resonanceOffset_DP = 4; // Offset of the first resonance into the parameter index array // Offset is number of parameters, constant index, number of resonances (not calculable // from nP because we don't know what the efficiency might need...
9e2af108d7684eefd468a9f9aa27fb20a59a60d3.hip
// !!! This is a file automatically generated by hipify!!! #include "../common/common.h" #include <hip/hip_runtime.h> #include <stdio.h> /* * An example of using constant memory to optimize performance of a stencil * computation by storing coefficients of the computation in a constant memory * array (coef). */ #d...
9e2af108d7684eefd468a9f9aa27fb20a59a60d3.cu
#include "../common/common.h" #include <cuda_runtime.h> #include <stdio.h> /* * An example of using constant memory to optimize performance of a stencil * computation by storing coefficients of the computation in a constant memory * array (coef). */ #define RADIUS 4 #define BDIM 32 // constant memory __constant_...
kSoftMaxGradCLS.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void kSoftMaxGradCLS(float* mat, int* labels, float* indices, float* target, unsigned int width, unsigned int height) { const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x; const unsigned ...
kSoftMaxGradCLS.cu
#include "includes.h" __global__ void kSoftMaxGradCLS(float* mat, int* labels, float* indices, float* target, unsigned int width, unsigned int height) { const unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int numThreads = blockDim.x * gridDim.x; for (unsigned int i = idx; i < width*height; i ...
e65cb7cedf5846f578868b0f40a4f6e78bb3cd15.hip
// !!! This is a file automatically generated by hipify!!! #include <kernels/gpu/add_bias.h> #include <core/tensor_builder.h> #include <global/operator_factory.h> #include "global/fp16_operator_factory.h" #include <backend/name.h> #include <utils/assert.h> #include <core/device.h> #include "device_launch_parameters.h"...
e65cb7cedf5846f578868b0f40a4f6e78bb3cd15.cu
#include <kernels/gpu/add_bias.h> #include <core/tensor_builder.h> #include <global/operator_factory.h> #include "global/fp16_operator_factory.h" #include <backend/name.h> #include <utils/assert.h> #include <core/device.h> #include "device_launch_parameters.h" #include <cuda_runtime.h> #include <cuda_fp16.h> #include...
0e03c0113a4884724d3c400b5ce7aa008b9b7747.hip
// !!! This is a file automatically generated by hipify!!! #ifndef __CUDACC_RTC__ #define __CUDACC_RTC__ #endif #include <hip/device_functions.h> #include <iostream> #include <math.h> #include <hip/hip_runtime.h> #include "postprocess.cuh" #include "error_util.h" using namespace std; __global__ void remove_backgro...
0e03c0113a4884724d3c400b5ce7aa008b9b7747.cu
#ifndef __CUDACC_RTC__ #define __CUDACC_RTC__ #endif #include <device_functions.h> #include <iostream> #include <math.h> #include <cuda.h> #include "postprocess.cuh" #include "error_util.h" using namespace std; __global__ void remove_background(float *confData_tmp, int num_anchors, int num_classes, int image_width...
31147806e3510f2c0e9dde70f7d349cac74fc65a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernel_hip.cuh" #include "Calculator.h" #include "Threads.h" using namespace Calculator; __global__ void initializeCellsKernel ( float4 *d_boids, int *d_boidId, int *d_cellId, int gridWidth...
31147806e3510f2c0e9dde70f7d349cac74fc65a.cu
#include "kernel.cuh" #include "Calculator.h" #include "Threads.h" using namespace Calculator; __global__ void initializeCellsKernel ( float4 *d_boids, int *d_boidId, int *d_cellId, int gridWidth, int cellSize) { int boidIdx = blockDim.x*blockIdx.x + threadIdx.x; if (boidIdx...
055b17fad1dbc7a8cc651b0458ae9f76731c1f9d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cutil_math.h> __constant__ unsigned char c_perm_3d[256]; __shared__ unsigned char s_perm_3d[256]; // shared memory copy of permuation array //unsigned char* d_perm_parts=NULL; // global memory copy of permutation array //...
055b17fad1dbc7a8cc651b0458ae9f76731c1f9d.cu
#include <cutil_math.h> __constant__ unsigned char c_perm_3d[256]; __shared__ unsigned char s_perm_3d[256]; // shared memory copy of permuation array //unsigned char* d_perm_parts=NULL; // global memory copy of permutation array // host version of permutation array const static unsigned char h_perm[] = { 151, 160, 137...
727e43fb74a9c55ffea4e46c862b00654f2769bd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 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...
727e43fb74a9c55ffea4e46c862b00654f2769bd.cu
/* Copyright 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 or agreed...
dd7dfea7a7c320e9252e874ccda522cea01df4d5.hip
// !!! This is a file automatically generated by hipify!!! #include "test_cuda_utils.h" #include <hip/hip_runtime.h> #include "gpu/kernel/primitives.h" namespace gccl { namespace { extern "C" __global__ void Copy128bGlobal(CopyArgs args) { int tid = threadIdx.x; int n_threads = blockDim.x; args.tid = tid; a...
dd7dfea7a7c320e9252e874ccda522cea01df4d5.cu
#include "test_cuda_utils.h" #include <cuda_runtime.h> #include "gpu/kernel/primitives.h" namespace gccl { namespace { extern "C" __global__ void Copy128bGlobal(CopyArgs args) { int tid = threadIdx.x; int n_threads = blockDim.x; args.tid = tid; args.n_threads = n_threads; Copy128b(&args); } } // namespa...
51634413e003c05fb35d1db1f3b32c932665ea1a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "stdio.h" //#define array = "hello" int array[5] = {1,2,3,4,5}; //#define arrayCount = 5 int arrayCount = 5; __global__ void MyKernel(int *array, int arrayCount) { int idx = threadIdx.x + blockIdx.x * blockDim.x; if...
51634413e003c05fb35d1db1f3b32c932665ea1a.cu
#include "stdio.h" //#define array = "hello" int array[5] = {1,2,3,4,5}; //#define arrayCount = 5 int arrayCount = 5; __global__ void MyKernel(int *array, int arrayCount) { int idx = threadIdx.x + blockIdx.x * blockDim.x; if (idx < arrayCount) { array[idx] *= array[idx]; } } //extern "C" void laun...
822eb32c2eda59745bfdf5913be04b048703ded5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe2/core/common_cudnn.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/conv_pool_op_base.h" #include <hipcub/hipcub.hpp> namespace caffe2 { namespace { // Explicit fast paths for avg and max global...
822eb32c2eda59745bfdf5913be04b048703ded5.cu
#include "caffe2/core/common_cudnn.h" #include "caffe2/core/context_gpu.h" #include "caffe2/operators/conv_pool_op_base.h" #include <cub/cub.cuh> namespace caffe2 { namespace { // Explicit fast paths for avg and max global pooling due to CuDNN global // pooling performance bug which makes pooling extremely slow. te...
5bc289c288558aaac3f640d80a38ba8f57b2cfe8.hip
// !!! This is a file automatically generated by hipify!!! // Compile: nvcc -g -G -arch=sm_52 -std=c++11 assignment5-p5.cu -o assignment5-p5 #include <cmath> #include <cstdlib> #include <hip/hip_runtime.h> #include <iostream> #include <sys/time.h> const uint64_t N = (64); #define THRESHOLD (0.000001) //TileD should b...
5bc289c288558aaac3f640d80a38ba8f57b2cfe8.cu
// Compile: nvcc -g -G -arch=sm_52 -std=c++11 assignment5-p5.cu -o assignment5-p5 #include <cmath> #include <cstdlib> #include <cuda.h> #include <iostream> #include <sys/time.h> const uint64_t N = (64); #define THRESHOLD (0.000001) //TileD should be less than or equal to 10 due to thread_per_blolck limit #define Tile...
5b0a023c6da12a3b2b35cc877e712a3f17bd8995.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __device__ unsigned int Rand(unsigned int randx) { randx = randx*1103515245+12345; return randx&2147483647; } __global__ void setRandom(float *gpu_array, int N, int maxval ) { int id = (blockIdx.x + blockIdx.y*...
5b0a023c6da12a3b2b35cc877e712a3f17bd8995.cu
#include "includes.h" __device__ unsigned int Rand(unsigned int randx) { randx = randx*1103515245+12345; return randx&2147483647; } __global__ void setRandom(float *gpu_array, int N, int maxval ) { int id = (blockIdx.x + blockIdx.y*gridDim.x) * blockDim.x + threadIdx.x; if( id < N ){ gpu_array[id] = 1.0f / maxval * Ran...
d0a1fe76dbaac360ed78b0369658e9c0a66ae44e.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (C) 2014, Geometric Design and Manufacturing Lab in THE CHINESE UNIVERSITY OF HONG KONG * All rights reserved. * * http://ldnibasedsolidmodeling.sourceforge.net/ * * * Redistribution and use in source and binary forms, with or...
d0a1fe76dbaac360ed78b0369658e9c0a66ae44e.cu
/* * Copyright (C) 2014, Geometric Design and Manufacturing Lab in THE CHINESE UNIVERSITY OF HONG KONG * All rights reserved. * * http://ldnibasedsolidmodeling.sourceforge.net/ * * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the...
b95c4810f3c0f6bbdeeb0cb1e25a18bf3b55ec66.hip
// !!! This is a file automatically generated by hipify!!! /* ****************************************************************************** * * * 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/licen...
b95c4810f3c0f6bbdeeb0cb1e25a18bf3b55ec66.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...
276a108c4d025f5cf17874aa0e87bf3fe33594d4.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 "InvolveVector.cu" #include<chrono> #include<iostream> using name...
276a108c4d025f5cf17874aa0e87bf3fe33594d4.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 "InvolveVector.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24...
4e81180b4b9fa89b5f25ac88902ee4fbc2e76097.hip
// !!! This is a file automatically generated by hipify!!! // Given a list (lst) of length n // Output its sum = lst[0] + lst[1] + ... + lst[n-1]; #include<stdio.h> #include "hip/hip_runtime.h" #include<string.h> #include<stdlib.h> #define BLOCK_SIZE 1024 //@@ You can change this char *inputFile,*outputFile; void _er...
4e81180b4b9fa89b5f25ac88902ee4fbc2e76097.cu
// Given a list (lst) of length n // Output its sum = lst[0] + lst[1] + ... + lst[n-1]; #include<stdio.h> #include "cuda.h" #include<string.h> #include<stdlib.h> #define BLOCK_SIZE 1024 //@@ You can change this char *inputFile,*outputFile; void _errorCheck(cudaError_t e){ if(e != cudaSuccess){ printf("Failed to ru...
0da2c0c3d294e705179f22332bdbe5e527cf46ef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "timer.h" #include <iostream> using namespace std; /* Utility function, use to do error checking. Use this function like this: checkCuda...
0da2c0c3d294e705179f22332bdbe5e527cf46ef.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "timer.h" #include <iostream> using namespace std; /* Utility function, use to do error checking. Use this function like this: checkCudaCall(cudaMalloc((void **) &deviceRGB, imgS * sizeof(color_t))); And to check the res...
e23a5293534c302801362a1bc7d10aca26197a42.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // CUDA programming example // A program that computes Y = A*X + Y where X and Y are vectors // of real numbers and A is a scalar real number. // Inspired by the Dan Ernst, Brandon Holt CUDA Programming Model talk #include "book.h"...
e23a5293534c302801362a1bc7d10aca26197a42.cu
// CUDA programming example // A program that computes Y = A*X + Y where X and Y are vectors // of real numbers and A is a scalar real number. // Inspired by the Dan Ernst, Brandon Holt CUDA Programming Model talk #include "book.h" #include <set> __global__ void waring_cuda(int size, int cap, int *n, int *f, int *v) ...
9b2740fdb6f180034370f4cdf20193cd7a2b402a.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> int main(void){ hipDeviceProp_t prop; int count; hipGetDeviceCount(&count); printf("\nNumber of Devices: %d\n", count); for(int i=0; i<count; i++){ hipGetDeviceProperties(&prop, i); printf("\n ---Device %d Information---\n...
9b2740fdb6f180034370f4cdf20193cd7a2b402a.cu
#include <stdio.h> int main(void){ cudaDeviceProp prop; int count; cudaGetDeviceCount(&count); printf("\nNumber of Devices: %d\n", count); for(int i=0; i<count; i++){ cudaGetDeviceProperties(&prop, i); printf("\n ---Device %d Information---\n", i); printf("Name: %s\n", prop.name); /...