hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
70de18d38202ddb9d069dc73617adc34eef26526.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <math.h> __global__ void reverse(int * a, int* b){ } void print_array(int* array, int size){ int i = 0; for(i; i < size; i++){ printf("%lf ",array[i]); } } #define N 512 int main(void...
70de18d38202ddb9d069dc73617adc34eef26526.cu
#include <stdio.h> #include <math.h> __global__ void reverse(int * a, int* b){ } void print_array(int* array, int size){ int i = 0; for(i; i < size; i++){ printf("%lf ",array[i]); } } #define N 512 int main(void){ int size = 5*sizeof(int); int d_in[5] = {100, 110, 200, 220, 300}; int * dev_in, d...
fd54c71d7d12d7f6ffc18ed752f94c70035de5e4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ template <typename U, typename V> constexp...
fd54c71d7d12d7f6ffc18ed752f94c70035de5e4.cu
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ template <typename U, typename V> constexpr __host__ __device__ auto divUp(U a, V b) -> decltype(a + b) { return (a + b - 1) / b...
97b54acffd2a66642a4521bed5693a313ff5cdcc.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> #include <cfloat> #include <algorithm> #include <chrono> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <random> #include <sstream> #include <string> #inc...
97b54acffd2a66642a4521bed5693a313ff5cdcc.cu
#include <cstdio> #include <cstdlib> #include <cmath> #include <ctime> #include <cfloat> #include <algorithm> #include <chrono> #include <iomanip> #include <iostream> #include <map> #include <memory> #include <random> #include <sstream> #include <string> #include <vector> #include <cuda_runtime.h> #include <device_l...
d41c7e26c0feb65f857c65d76c4a4bc7b3576505.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2020 NVIDIA Corporation. * Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
d41c7e26c0feb65f857c65d76c4a4bc7b3576505.cu
/* * Copyright (c) 2020 NVIDIA Corporation. * Copyright (c) 2018-2020 Chris Choy (chrischoy@ai.stanford.edu). * * 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, incl...
29123146e0aff42b716ed002ac8bdb5376caa07c.hip
// !!! This is a file automatically generated by hipify!!! #include <THHUNN/THHUNN.h> #include <THHUNN/common.h> #include <TH/THHalf.h> #include <THH/THHNumerics.cuh> #include <THH/THHThrustAllocator.cuh> #include <THH/THHApply.cuh> #include <thrust/fill.h> #include <thrust/functional.h> #include <thrust/device_ptr.h>...
29123146e0aff42b716ed002ac8bdb5376caa07c.cu
#include <THCUNN/THCUNN.h> #include <THCUNN/common.h> #include <TH/THHalf.h> #include <THC/THCNumerics.cuh> #include <THC/THCThrustAllocator.cuh> #include <THC/THCApply.cuh> #include <thrust/fill.h> #include <thrust/functional.h> #include <thrust/device_ptr.h> #include <thrust/reduce.h> #include <thrust/inner_product....
33072ee2939fd294ddc230cbe1ed05e4b159b5f7.hip
// !!! This is a file automatically generated by hipify!!! #include "training/graph_group_async.h" #include "kernels/tensor_operators.h" namespace marian { void AsyncGraphGroup::setScheduler(Ptr<Scheduler> scheduler) { scheduler_ = scheduler; // optimizer has to be registered last to see changes of learning rate...
33072ee2939fd294ddc230cbe1ed05e4b159b5f7.cu
#include "training/graph_group_async.h" #include "kernels/tensor_operators.h" namespace marian { void AsyncGraphGroup::setScheduler(Ptr<Scheduler> scheduler) { scheduler_ = scheduler; // optimizer has to be registered last to see changes of learning rate scheduler_->registerTrainingObserver(scheduler_); for...
99d34a054654afbdfad50401b7dcb700b5cc3cc2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @precisions normal z -> s d c @author Theo Mar...
99d34a054654afbdfad50401b7dcb700b5cc3cc2.cu
/* -- MAGMA (version 1.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date September 2014 @precisions normal z -> s d c @author Theo Mary */ #include "common_magma.h" #define NB 64 // each thread block does one NB x n blo...
8647d95aa9a852a4811c4abf35cb06d767ffeda1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cudaCompress/PackInc.h> #include <cassert> #include <cudaCompress/tools/Operator.h> #include <cudaCompress/cudaUtil.h> #include <cudaCompress/util.h> #include <cudaCompress/InstanceImpl.h> #include <cudaCompress/redu...
8647d95aa9a852a4811c4abf35cb06d767ffeda1.cu
#include <cudaCompress/PackInc.h> #include <cassert> #include <cudaCompress/tools/Operator.h> #include <cudaCompress/cudaUtil.h> #include <cudaCompress/util.h> #include <cudaCompress/InstanceImpl.h> #include <cudaCompress/reduce/reduce_app.cui> #include <cudaCompress/scan/scan_app.cui> namespace cudaCompress { ...
94bcfab1194c054e17decfc15abfd71a9dea23c9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define BLOCK_SIZE 32 #define DATALEN_PER_BLOCK (BLOCK_SIZE * 2) #include <stdio.h> __global__ void reductionKernel(float *a, float *r) { int blocksz = blockDim.x; int tid = threadIdx.x; int bid = blockIdx.x; int i...
94bcfab1194c054e17decfc15abfd71a9dea23c9.cu
#define BLOCK_SIZE 32 #define DATALEN_PER_BLOCK (BLOCK_SIZE * 2) #include <stdio.h> __global__ void reductionKernel(float *a, float *r) { int blocksz = blockDim.x; int tid = threadIdx.x; int bid = blockIdx.x; int i1 = DATALEN_PER_BLOCK * bid + tid; int i2 = i1 + blocksz; __shared__ float shar...
a79b43fbc854a2196dc0c458789c4a1929cf3968.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * (C) Copyright 2020, 2021 IBM. All Rights Reserved. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tr...
a79b43fbc854a2196dc0c458789c4a1929cf3968.cu
/** * (C) Copyright 2020, 2021 IBM. All Rights Reserved. * * This code is licensed under the Apache License, Version 2.0. You may * obtain a copy of this license in the LICENSE.txt file in the root directory * of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. * * Any modifications or derivati...
678130344e8f5e19b88792a5f3eca7b925cba4c3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! * Copyright 2019 XGBoost contributors */ #include <thrust/copy.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #include <thrust/iterator/counting_iterator.h> #include <algorithm> #include <bitset> #i...
678130344e8f5e19b88792a5f3eca7b925cba4c3.cu
/*! * Copyright 2019 XGBoost contributors */ #include <thrust/copy.h> #include <thrust/device_vector.h> #include <thrust/execution_policy.h> #include <thrust/iterator/counting_iterator.h> #include <algorithm> #include <bitset> #include <string> #include <sstream> #include <set> #include "xgboost/logging.h" #include...
71186b686907c68924e8268c4e96881f39f87d42.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2019 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 ...
71186b686907c68924e8268c4e96881f39f87d42.cu
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
87dcafdc0506a222ffba4999338a9639aa4b3413.hip
// !!! This is a file automatically generated by hipify!!! #include <stdexcept> #include <cmath> #include "find_block_size.cuh" #include "../common/user_specified_structures.h" #include "../common/cuda_error_check.cuh" // This function does NOT guarantee the best block size. But it tries to come up with the best. // ...
87dcafdc0506a222ffba4999338a9639aa4b3413.cu
#include <stdexcept> #include <cmath> #include "find_block_size.cuh" #include "../common/user_specified_structures.h" #include "../common/cuda_error_check.cuh" // This function does NOT guarantee the best block size. But it tries to come up with the best. // Be aware block sizes rather than what this function chooses...
cba0fea02ff9d7f9e9552697511761eb0cca3db1.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <GL/glut.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define WIDTH 800 #define HEIGHT 600 int tmax = 100; int *gpu_t; int cpu_t[WIDTH*HEIGHT]; double center_x; double center_y; double center_dy; double center_dx;...
cba0fea02ff9d7f9e9552697511761eb0cca3db1.cu
#include <stdio.h> #include <GL/glut.h> #include <cuda.h> #include <cuda_runtime.h> #define WIDTH 800 #define HEIGHT 600 int tmax = 100; int *gpu_t; int cpu_t[WIDTH*HEIGHT]; double center_x; double center_y; double center_dy; double center_dx; // int mandel(float, float, int); void translate(int, int, double*, dou...
eb908069c28d9cff9d39cbb2945fb48b3e4e9ded.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cfloat> #include "cudarray/common.hpp" #include "cudarray/nnet/pool_b01.hpp" namespace cudarray { // The implementations below are inspired by those found in the Caffe framework template <typename T> __global__ void max...
eb908069c28d9cff9d39cbb2945fb48b3e4e9ded.cu
#include <cfloat> #include "cudarray/common.hpp" #include "cudarray/nnet/pool_b01.hpp" namespace cudarray { // The implementations below are inspired by those found in the Caffe framework template <typename T> __global__ void max_pool_b01(int n_threads, const T* imgs, int img_h, int img_w, int poolout_h, int poo...
ea49c6d2ac6b5814251ef1c4647d0803b175d374.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> __global__ void matrix_multiply(const int* d_a, const int* d_b, int* d_c, const int n) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int temp = 0...
ea49c6d2ac6b5814251ef1c4647d0803b175d374.cu
#include <iostream> __global__ void matrix_multiply(const int* d_a, const int* d_b, int* d_c, const int n) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; int temp = 0; if ((row < n) && (col < n)) { for (int k = 0; k < n; k++) { te...
71c4fbd05d66455c7c89ce0e2990fa37d8ee7a4b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019, NVIDIA CORPORATION. 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 dea...
71c4fbd05d66455c7c89ce0e2990fa37d8ee7a4b.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. 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...
9cfea13b6a3f6eea0f1745592dca36e37d10518a.hip
// !!! This is a file automatically generated by hipify!!! /* ============================================================================ Name : LidarObstacleVisualizer.cpp Author : Niklas Bergh Version : Copyright : Description : Program identifies and displays obstacles based on Lidar data =...
9cfea13b6a3f6eea0f1745592dca36e37d10518a.cu
/* ============================================================================ Name : LidarObstacleVisualizer.cpp Author : Niklas Bergh Version : Copyright : Description : Program identifies and displays obstacles based on Lidar data ============================================================...
52751b02369970687a967f2f53ee34148bbad30c.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...
52751b02369970687a967f2f53ee34148bbad30c.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...
27e99d3d95f421aba5e8008205b3f7037a0b066b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __host__ __device__ float get_diff(float* dest, float* bigtex, int bsize, int cx, node_t p, node_t q) { //int alln = bigwidth/(bsize*bsize); float sum=0; int count=0; int x0=p.x, y0=p.y; int x1=q.x, y1=q.y; b...
27e99d3d95f421aba5e8008205b3f7037a0b066b.cu
__host__ __device__ float get_diff(float* dest, float* bigtex, int bsize, int cx, node_t p, node_t q) { //int alln = bigwidth/(bsize*bsize); float sum=0; int count=0; int x0=p.x, y0=p.y; int x1=q.x, y1=q.y; bool steep = ( abs(y1 - y0) > abs(x1 - x0) ); if (steep) { swap(x0, y0); ...
d6d282acdfd78b1300cedc65b26534ca329829a9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif #ifndef CAST #define CAST(fun) fun ## f #endif #ifndef REAL2o3 #define REAL2o3 (REAL)0.6666666666666667 #endif #ifndef REAL3o2 #define REAL3o2 (REAL)1.5 #...
d6d282acdfd78b1300cedc65b26534ca329829a9.cu
#include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif #ifndef CAST #define CAST(fun) fun ## f #endif #ifndef REAL2o3 #define REAL2o3 (REAL)0.6666666666666667 #endif #ifndef REAL3o2 #define REAL3o2 (REAL)1.5 #endif ...
f01e61cdb754207121697d13b5e71173004e1480.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the infor...
f01e61cdb754207121697d13b5e71173004e1480.cu
/* * Copyright 1993-2006 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. * * This software and the information contained herein is PROPRIETARY and * CONFIDENTIAL to NVIDIA and is being provid...
e34092c60e6a37439ced48e83e81ff717315aca8.hip
// !!! This is a file automatically generated by hipify!!! /* * CUDA blur * Kevin Yuh, 2014 * Revised by Nailen Matschke, 2016 * Revised by Loko Kung, 2018 */ #include "blur.cuh" #include <cstdio> #include <hip/hip_runtime.h> #include "cuda_header.cuh" /* * NOTE: You can use this macro to easily check cuda ...
e34092c60e6a37439ced48e83e81ff717315aca8.cu
/* * CUDA blur * Kevin Yuh, 2014 * Revised by Nailen Matschke, 2016 * Revised by Loko Kung, 2018 */ #include "blur.cuh" #include <cstdio> #include <cuda_runtime.h> #include "cuda_header.cuh" /* * NOTE: You can use this macro to easily check cuda error codes * and get more information. * * Modified fro...
67152fe4a8509da915a1790f8e2f5bdbea838462.hip
// !!! This is a file automatically generated by hipify!!! /** * * Date 03/07/2009 * ==== * * Authors Vincent Garcia * ======= Eric Debreuve * Michel Barlaud * * Description Given a reference point set and a query point set, the program returns * =========== firt...
67152fe4a8509da915a1790f8e2f5bdbea838462.cu
/** * * Date 03/07/2009 * ==== * * Authors Vincent Garcia * ======= Eric Debreuve * Michel Barlaud * * Description Given a reference point set and a query point set, the program returns * =========== firts the distance between each query point and its k nearest n...
3a2badbd9dc682c91347d394741bad0c9e43c45e.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 <iostream> #include "../../hamc/hamc_cpu_code.c" #include "../../hamc/MultiplyMatrixTesting.cu" #define T...
3a2badbd9dc682c91347d394741bad0c9e43c45e.cu
#include <cuda_runtime.h> #include <stdlib.h> //#include <wb.h> #include <stdint.h> #include <ctype.h> #include <stdio.h> #include <unistd.h> #include <iostream> #include "../../hamc/hamc_cpu_code.c" #include "../../hamc/MultiplyMatrixTesting.cu" #define TILE_WIDTH 16 #define CUDA_CHECK(ans) ...
b3c09879b72a9d15b8aeab3a5d367ecf2f8fbdac.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
b3c09879b72a9d15b8aeab3a5d367ecf2f8fbdac.cu
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
67163f734b8f1ecc00d73f68022dc54556981c10.hip
// !!! This is a file automatically generated by hipify!!! // File: force.cu // C/Fortran interface to GPU port of force.F. // includes standard headers #include <stdio.h> #include <stdlib.h> #include <string.h> // includes cuda headers #include <hip/hip_runtime.h> // includes project headers #include "cuda_globals.h"...
67163f734b8f1ecc00d73f68022dc54556981c10.cu
// File: force.cu // C/Fortran interface to GPU port of force.F. // includes standard headers #include <stdio.h> #include <stdlib.h> #include <string.h> // includes cuda headers #include <cuda_runtime.h> // includes project headers #include "cuda_globals.h" #include "Operator.h" #include "cuda_helpers.h" /***********...
43fabef118eb2f1e98520415bdc7169193e3739f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <math.h> #define n 1000 #define MAX_GRIDSIZE 1 __device__ float __expf(float x); __global__ void expMass(float *A,float *x, int arraySize) { int index = (blockIdx.y...
43fabef118eb2f1e98520415bdc7169193e3739f.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <math.h> #define n 1000 #define MAX_GRIDSIZE 1 __device__ float __expf(float x); __global__ void expMass(float *A,float *x, int arraySize) { int index = (blockIdx.y*MAX_GRIDSIZE + blockIdx.x)*blockDim.x + threadIdx.x; if (ind...
1b7980db3f0dcb903a2d207dfbaeb9010f97eb92.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <duda/kernels/eye.hpp> namespace duda { namespace detail { template <typename T> __global__ void eye_kernel(T* const data, const int dim) { const int i = blockDim.x * blockIdx.x + threadIdx.x; const int j = block...
1b7980db3f0dcb903a2d207dfbaeb9010f97eb92.cu
#include <duda/kernels/eye.hpp> namespace duda { namespace detail { template <typename T> __global__ void eye_kernel(T* const data, const int dim) { const int i = blockDim.x * blockIdx.x + threadIdx.x; const int j = blockDim.y * blockIdx.y + threadIdx.y; if (i < dim && j < dim) { const int i...
1997d064a0199ab5873671fcb547028868c4993c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * c-ray_task_sgpu.cu * * Created on: Mar 24, 2017 * Author: chao */ #include "c-ray_task_mgpu.h" #include "c-ray_kernel_v2.h" #include "../../../common/helper_err.h" __device__ global_vars g_vars_d; __device__ vec3_...
1997d064a0199ab5873671fcb547028868c4993c.cu
/* * c-ray_task_sgpu.cu * * Created on: Mar 24, 2017 * Author: chao */ #include "c-ray_task_mgpu.h" #include "c-ray_kernel_v2.h" #include "../../../common/helper_err.h" __device__ global_vars g_vars_d; __device__ vec3_t lights_d[MAX_LIGHTS]; __device__ vec2_t urand_d[NRAN]; __device__ int irand_d[NRAN];...
885f694e2ce46ca37185ac51540a0d163f2fd00e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" { // __global__ void histogram(unsigned char *dataIn, int *hist) { int threadIndex = threadIdx.x + threadIdx.y * blockDim.x; int blockIndex = blockIdx.x + blockIdx.y * gridDim.x; int i...
885f694e2ce46ca37185ac51540a0d163f2fd00e.cu
extern "C" { //灰度直方图统计 __global__ void histogram(unsigned char *dataIn, int *hist) { int threadIndex = threadIdx.x + threadIdx.y * blockDim.x; int blockIndex = blockIdx.x + blockIdx.y * gridDim.x; int index = threadIndex + blockIndex * blockDim.x * blockDim.y; atomicAdd(&his...
645f0cbf33a96bea010d195dc26bd0be8092e725.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 "KerInOutInterpolateTime.cu" #include<chrono> #include<iostream> ...
645f0cbf33a96bea010d195dc26bd0be8092e725.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 "KerInOutInterpolateTime.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{...
437f81b721ef8dee253920f05fea24a1e5d8e938.hip
// !!! This is a file automatically generated by hipify!!! /* kernel.cu */ #include <iostream> #include <cstdlib> #include <cassert> #include <algorithm> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> template <int BlockSize> __global__ void MultiplyMatrix( float* matC, float* matA, float* m...
437f81b721ef8dee253920f05fea24a1e5d8e938.cu
/* kernel.cu */ #include <iostream> #include <cstdlib> #include <cassert> #include <algorithm> #include <cuda_runtime.h> #include <device_launch_parameters.h> template <int BlockSize> __global__ void MultiplyMatrix( float* matC, float* matA, float* matB, int colA, int colB, int colC) { /* 各ブロックでは, 行列Cの各...
86c21893dfc69bc802231f33e63b2bd76eadd329.hip
// !!! This is a file automatically generated by hipify!!! /** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file src/blas_l2/sgemm_mgpu.cu * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK r...
86c21893dfc69bc802231f33e63b2bd76eadd329.cu
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file src/blas_l2/sgemm_mgpu.cu * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided by ...
05591e73cc67713d651043e7ea72653a7f61e7fc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright 2021-2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
05591e73cc67713d651043e7ea72653a7f61e7fc.cu
/** * Copyright 2021-2022 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
b3724be6fbf4ae80cf0c3fb98e10251fd0a3b86e.hip
// !!! This is a file automatically generated by hipify!!! // Copyright 2016 Mikko Ronkainen <firstname@mikkoronkainen.com> // License: MIT, see the LICENSE file. #include "Precompiled.h" #ifdef USE_ROCM #include <hip/hip_runtime.h> #include "Utils/CudaUtils.h" #endif #include "Core/Common.h" #include "Utils/CudaAl...
b3724be6fbf4ae80cf0c3fb98e10251fd0a3b86e.cu
// Copyright © 2016 Mikko Ronkainen <firstname@mikkoronkainen.com> // License: MIT, see the LICENSE file. #include "Precompiled.h" #ifdef USE_CUDA #include <cuda_runtime.h> #include "Utils/CudaUtils.h" #endif #include "Core/Common.h" #include "Utils/CudaAlloc.h" #include "Utils/ColorGradient.h" #include "Core/Scene....
fc62264bbcbe21eff81e7cb279eb0c6f928562dd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void SetMatrixVauleMinMaxY( float* matrix, int cols, int size, int id_min, int id_max, float value) { int id = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x; int id_row = id /...
fc62264bbcbe21eff81e7cb279eb0c6f928562dd.cu
#include "includes.h" __global__ void SetMatrixVauleMinMaxY( float* matrix, int cols, int size, int id_min, int id_max, float value) { int id = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x; int id_row = id / cols; if (id_row >= id_min && id_row <= id_max && id < size) matrix[id] = value; }
739165515a696f3704edc8232999f8f2619ed1aa.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 "sobelEdgeDetectionWithRegisters.cu" #include<chrono> #include<io...
739165515a696f3704edc8232999f8f2619ed1aa.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 "sobelEdgeDetectionWithRegisters.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = ...
bcd87235775156ad86593edb30cfba074c1b12bb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
bcd87235775156ad86593edb30cfba074c1b12bb.cu
/* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
4404151defecef6992aa32bd2508d80ac2badb02.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdlib.h> #include <sys/stat.h> #include <dirent.h> #include <string.h> #include <stdio.h> #include <time.h> #include <string> //#include <pthread.h> //#include "thpool.h" struct sol...
4404151defecef6992aa32bd2508d80ac2badb02.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdlib.h> #include <sys/stat.h> #include <dirent.h> #include <string.h> #include <stdio.h> #include <time.h> #include <string> //#include <pthread.h> //#include "thpool.h" struct solver { // The variables in the struct are described in the allo...
b0b74b74ab0de2bf3089eef13d03a9a92c289052.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <time.h> int main() { float* d_a; // my array initialized initializeArray1D(d_a, ARR_LG, 420); #if ENABLE_GPU // GPU Timing variables hipEvent_t start_g_data, stop_g_data; hipEvent_t start_g_kernel, sto...
b0b74b74ab0de2bf3089eef13d03a9a92c289052.cu
#include <time.h> int main() { float* d_a; // my array initialized initializeArray1D(d_a, ARR_LG, 420); #if ENABLE_GPU // GPU Timing variables cudaEvent_t start_g_data, stop_g_data; cudaEvent_t start_g_kernel, stop_g_kernel; float elapsed_g_data, elapsed_g_kernel; // <set stuff up not...
313b461aee4568f34c75f9cbef149fd928a9f57c.hip
// !!! This is a file automatically generated by hipify!!! #include <GL/glut.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <math.h> #include <hip/hip_runtime.h> // // Constantes para OpenGL // #define KEY_ESC 27 #define ANCHO 1920 #define ALTO 1080 #define false 0 #define true...
313b461aee4568f34c75f9cbef149fd928a9f57c.cu
#include <GL/glut.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <stdio.h> #include <math.h> #include <cuda.h> // // Constantes para OpenGL // #define KEY_ESC 27 #define ANCHO 1920 #define ALTO 1080 #define false 0 #define true 1 // // Constantes para Algoritmo de gravitacion // #define PI (3.14...
2ef2fb781a7b33870d4c8e6961265cafa5e3785f.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 "kernSmooth.cu" #include<chrono> #include<iostream> using namespa...
2ef2fb781a7b33870d4c8e6961265cafa5e3785f.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 "kernSmooth.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24...
b8a87af76b77993f158898cc1142b78a7a26a764.hip
// !!! This is a file automatically generated by hipify!!! #define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/hip/HIPContext.h> #include <ATen/native/TensorFactories.h> #include <ATen/hip/cub.h> #include <ATen/native/hip/Randperm.cuh> #ifndef AT_PER_OPERA...
b8a87af76b77993f158898cc1142b78a7a26a764.cu
#define TORCH_ASSERT_ONLY_METHOD_OPERATORS #include <ATen/core/Tensor.h> #include <ATen/Dispatch.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/native/TensorFactories.h> #include <ATen/cuda/cub.h> #include <ATen/native/cuda/Randperm.cuh> #ifndef AT_PER_OPERATOR_HEADERS #include <ATen/Functions.h> #include <ATen/...
02ec52b4cb20068918791a8a1ad6fe54c6ea2875.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // Created by jiashuai on 17-9-21. // #include "thundersvm/kernel/smo_kernel.h" #include <thrust/sort.h> #include <thrust/system/hip/detail/par.h> namespace svm_kernel { template<typename T> __device__ int get_block_min...
02ec52b4cb20068918791a8a1ad6fe54c6ea2875.cu
// // Created by jiashuai on 17-9-21. // #include "thundersvm/kernel/smo_kernel.h" #include <thrust/sort.h> #include <thrust/system/cuda/detail/par.h> namespace svm_kernel { template<typename T> __device__ int get_block_min(const T *values, int *index) { int tid = threadIdx.x; index[tid] = tid...
0ae3d4a0190bcd50adaebc9f854a12b9a46d8653.hip
// !!! This is a file automatically generated by hipify!!! #include "utilities.h" #include "blas.h" #include "kernels.h" double flopCounter(int M, int N, int numModels, int *hNVars) { double flop = 0; // r = y - mu flop += (double) M * (double) numModels; // c = X' * r flop += 2.0 * (double) M * (double) N * (dou...
0ae3d4a0190bcd50adaebc9f854a12b9a46d8653.cu
#include "utilities.h" #include "blas.h" #include "kernels.h" double flopCounter(int M, int N, int numModels, int *hNVars) { double flop = 0; // r = y - mu flop += (double) M * (double) numModels; // c = X' * r flop += 2.0 * (double) M * (double) N * (double) numModels; // abs(c) flop += (double) N * (double) n...
6a6d066184b819331aad076c3b9af7a2e5711992.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*----------------------- BEGIN kppa_CUDA_rates.cu BEGIN ----------------------*/ /* @file kppa_CUDA_rates.cu */ /* @author charlesj ...
6a6d066184b819331aad076c3b9af7a2e5711992.cu
/*----------------------- BEGIN kppa_CUDA_rates.cu BEGIN ----------------------*/ /* @file kppa_CUDA_rates.cu */ /* @author charlesj */ /* @date 2015-07-06 14:41:44.647816 ...
36b5f61672d01f63c2d63c475a45446e95d8f0de.hip
// !!! This is a file automatically generated by hipify!!! //a reduction on a single MP with a little bit 'o ugly //at the end to advance the wavefront //WJB 03/11 #include <hip/hip_runtime.h> #include <stdio.h> //__constant__ int sizeTheta; //__constant__ int sizePhi; // __global__ void advanceWave(float *devRedu...
36b5f61672d01f63c2d63c475a45446e95d8f0de.cu
//a reduction on a single MP with a little bit 'o ugly //at the end to advance the wavefront //WJB 03/11 #include <cuda.h> #include <stdio.h> //__constant__ int sizeTheta; //__constant__ int sizePhi; // __global__ void advanceWave(float *devReductionKeysIn, float *devReductionValuesIn, float *devReductionKeys...
af449cda61e4872dbb914bae43c950a03c947a62.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* camera.cu - Copyright 2019 Utrecht University 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 ...
af449cda61e4872dbb914bae43c950a03c947a62.cu
/* camera.cu - Copyright 2019 Utrecht University 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 agr...
b4660e57ee47d2ada8b977aa46a31c6f67b66e45.hip
// !!! This is a file automatically generated by hipify!!! // generated by gen_batch_cuda_conv_bias_kern_impls.py #include "../batch_conv_bias_int8_gemm_ncdiv4hw4.cuinl" template void megdnn::cuda::batch_conv_bias::do_batch_conv_bias_int8_gemm_ncdiv4hw4< PerChannelBiasVisitor, IConvEpilogue< ...
b4660e57ee47d2ada8b977aa46a31c6f67b66e45.cu
// generated by gen_batch_cuda_conv_bias_kern_impls.py #include "../batch_conv_bias_int8_gemm_ncdiv4hw4.cuinl" template void megdnn::cuda::batch_conv_bias::do_batch_conv_bias_int8_gemm_ncdiv4hw4< PerChannelBiasVisitor, IConvEpilogue< Activation<megdnn::param_enumv::BatchConvBias::Nonlin...
100baf0863528844a4c00e0ec96f1d98747dfca4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void ZeroMeanImpl(float* solutions, int rowSize, int matCount) { const int matricesPerBlock = BLOCK_SIZE / rowSize; const int matrixIdx = blockIdx.x * matricesPerBlock + threadIdx.x / rowSize; cons...
100baf0863528844a4c00e0ec96f1d98747dfca4.cu
#include "includes.h" __global__ void ZeroMeanImpl(float* solutions, int rowSize, int matCount) { const int matricesPerBlock = BLOCK_SIZE / rowSize; const int matrixIdx = blockIdx.x * matricesPerBlock + threadIdx.x / rowSize; const int tid = threadIdx.x; const int col = threadIdx.x & (rowSize - 1); const int inBlockO...
346c1a196d50ff6355023d8b76ca84144f28d3d9.hip
// !!! This is a file automatically generated by hipify!!! #include <rocblas.h> #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <unistd.h> #include <algorithm> #include <cmath> #include <cstdint> #include <fstream> #include <iostream> #inclu...
346c1a196d50ff6355023d8b76ca84144f28d3d9.cu
#include <cublas_v2.h> #include <cuda.h> #include <curand.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <unistd.h> #include <algorithm> #include <cmath> #include <cstdint> #include <fstream> #include <iostream> #include <random> #include <sstream> #include "dataloader.h" #include "dataset.h" ...
abe5b1d9f5c522b0c778e134fe3f8de554dada4c.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernels/cpu/dragon/bbox_utils.h" #include "core/ieee754_float.h" #include "kernels/common/third/dragon.h" #ifdef TS_USE_CUDA_FP16 #include "kernels/gpu/cudax_fp16_math.h" #endif #include "kernels/gpu/gpu_kernel.h" names...
abe5b1d9f5c522b0c778e134fe3f8de554dada4c.cu
#include "kernels/cpu/dragon/bbox_utils.h" #include "core/ieee754_float.h" #include "kernels/common/third/dragon.h" #ifdef TS_USE_CUDA_FP16 #include "kernels/gpu/cudax_fp16_math.h" #endif #include "kernels/gpu/gpu_kernel.h" namespace ts { namespace dragon { namespace rcnn { /******************** ...
3decdc8006fb41ccc6ae26f41d1ad3343edd558e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Raytracer.h" __device__ Intersection GetIntersection(SceneData data, Ray ray, float minInt, float maxInt) { Intersection closestInt; glm::vec3 d_model; glm::vec3 p0_model; closestInt.T = maxInt; c...
3decdc8006fb41ccc6ae26f41d1ad3343edd558e.cu
#include "Raytracer.h" __device__ Intersection GetIntersection(SceneData data, Ray ray, float minInt, float maxInt) { Intersection closestInt; glm::vec3 d_model; glm::vec3 p0_model; closestInt.T = maxInt; closestInt.ClosestShape = -1; for (int i = 0; i < data.NumShapes; i++) { ...
19c45426787454859236ced02012062c44271e61.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Useful functions for the PVM that are specific to the tracker // derivative and error calculation __global__ void der_and_error_kernel(double *A, double *B, double *C, unsigned int L) { unsigned int stride = blockDim.x * grid...
19c45426787454859236ced02012062c44271e61.cu
// Useful functions for the PVM that are specific to the tracker // derivative and error calculation __global__ void der_and_error_kernel(double *A, double *B, double *C, unsigned int L) { unsigned int stride = blockDim.x * gridDim.x; unsigned int start = threadIdx.x + blockIdx.x * blockDim.x; for (unsigned int ...
3fbd19fde277b4dab49d6f5001fd538d4bdd22ca.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "gpu_cuckoo.cuh" #include "macros.h" #include <random> #include <thrust/device_ptr.h> #include <thrust/copy.h> #include <thrust/gather.h> #include <thrust/scan.h> #include <thrust/device_vector.h> __device__ int hashFuncti...
3fbd19fde277b4dab49d6f5001fd538d4bdd22ca.cu
#include "gpu_cuckoo.cuh" #include "macros.h" #include <random> #include <thrust/device_ptr.h> #include <thrust/copy.h> #include <thrust/gather.h> #include <thrust/scan.h> #include <thrust/device_vector.h> __device__ int hashFunctionDev(int value, int size, int num) { return (0xFAB011991 ^ num + num * value) % (size+...
9e0abe2324ac08d2553d1ef953ba4f7b673dfa51.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "KDE.h" __device__ float epanechnikowKernelCUDA(float x) { float res = 0; if(x <= 1 && x >= -1) { res = 3*(1-x*x)/4; } return res; } __device__ float uniformKernelCUDA(float x) { float res = 0; if(x <= 1 && x >= ...
9e0abe2324ac08d2553d1ef953ba4f7b673dfa51.cu
#include "KDE.h" __device__ float epanechnikowKernelCUDA(float x) { float res = 0; if(x <= 1 && x >= -1) { res = 3*(1-x*x)/4; } return res; } __device__ float uniformKernelCUDA(float x) { float res = 0; if(x <= 1 && x >= -1) { res = 1.0/2; } return res; } __device__ float gaussianKernelCUDA(float x) { ...
e12338d2846b776251af24b590b6d7d49eb37a0a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Device.h" #include <iostream> #include "MonteCarlo.h" using std::cout; using std::endl; extern __global__ void monteCarlo(hiprandState_t* tabDevGenerator, int nbFleches, float m,int* ptrDevNx); extern __global__ void set...
e12338d2846b776251af24b590b6d7d49eb37a0a.cu
#include "Device.h" #include <iostream> #include "MonteCarlo.h" using std::cout; using std::endl; extern __global__ void monteCarlo(curandState* tabDevGenerator, int nbFleches, float m,int* ptrDevNx); extern __global__ void setup_kernel_rand(curandState* tabDevGenerator, int deviceId); MonteCarlo::MonteCarlo(int nbF...
bf8736444d31e60fe602195adc52673b5296bbcd.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 _NesterovUpdate(const int nthreads, const T lr, ...
bf8736444d31e60fe602195adc52673b5296bbcd.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 _NesterovUpdate(const int nthreads, const T lr, const T momentum, T* g, T* m); template <> __global__ void _NesterovUpdate<float>( ...
7463dfc20f4e925d576773f6525f18fdf8a1b1c1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "multi1.h" __global__ void k1_incr(float *data, float val) { data[threadIdx.x] += val; }
7463dfc20f4e925d576773f6525f18fdf8a1b1c1.cu
#include "multi1.h" __global__ void k1_incr(float *data, float val) { data[threadIdx.x] += val; }
6e3e05ca0327b20259dfeb6b62667e5e2f765ed2.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 matrixSubScalarInverse(double *a, double b, double *c, int cr, int cc){ int x = blockIdx.x * blockDim.x + threadIdx.x; // co...
6e3e05ca0327b20259dfeb6b62667e5e2f765ed2.cu
// // Created by root on 23/03/2020. // #include "../Matrix.cuh" #include <iostream> __global__ void matrixSubScalarInverse(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){ ...
1cee557fdcf1c17f1aeeb6e44c56ccbd6e1fb90f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> __global__ void kernel_sumar(int *a, int *b, int *c, int *resultado) /* Guarda en resultado la suma de a + b + c. */ { *resultado = *a + *b + *c; } void sumar_en_cuda(in...
1cee557fdcf1c17f1aeeb6e44c56ccbd6e1fb90f.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> __global__ void kernel_sumar(int *a, int *b, int *c, int *resultado) /* Guarda en resultado la suma de a + b + c. */ { *resultado = *a + *b + *c; } void sumar_en_cuda(int a, int b, int c, int* resultado) { // Variables de la gráfi...
f67226e084f68d0de7459a2a317912ce9a80907b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2019 @precisions normal z -> c d s */ #include "magmasparse_...
f67226e084f68d0de7459a2a317912ce9a80907b.cu
/* -- MAGMA (version 2.5.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2019 @precisions normal z -> c d s */ #include "magmasparse_internal.h" #define BLOCK_SIZE 512 // every multiprocessor handles one BCSR-block to ...
19c10726bba9d47b7e91ac63bc97e5dd3267c598.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include "CNNConvLayer.h" using namespace std; // This is the CPU version, please don't modify it void convLayerCPU() { // declarations for bunch of indexing parameters int fn, sli, fmy, fmx, y, x; int ifmy, ...
19c10726bba9d47b7e91ac63bc97e5dd3267c598.cu
#include <iostream> #include "CNNConvLayer.h" using namespace std; // This is the CPU version, please don't modify it void convLayerCPU() { // declarations for bunch of indexing parameters int fn, sli, fmy, fmx, y, x; int ifmy, ifmx, ofmy, ofmx; int filtIdx, inNeuIdx, outNeuIdx, outIdx; int filtVol = FMDEPTH * ...
66a7f1c0c639d2e24f2a7b2c105763d0af5f6d8b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we ...
66a7f1c0c639d2e24f2a7b2c105763d0af5f6d8b.cu
/* Udacity Homework 3 HDR Tone-mapping Background HDR ============== A High Dynamic Range (HDR) image contains a wider variation of intensity and color than is allowed by the RGB format with 1 byte per channel that we have used in the previous assignment. To store this extra information we use singl...
b7f64a676fe8a4704131586a50ce0f8175486b50.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; #define gpuErrchk(ans){gpuAssert((ans), __FILE__, __LINE__);} inline vo...
b7f64a676fe8a4704131586a50ce0f8175486b50.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <iostream> #include <fstream> #include <vector> #include <string> #include <sstream> using namespace std; #define gpuErrchk(ans){gpuAssert((ans), __FILE__, __LINE__);} inline void gpuAssert(cudaError_t code, const char *file, int line, boo...
70765769cdef20968e51efdabeb5ce903e37eabc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2014 Nervana Systems 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...
70765769cdef20968e51efdabeb5ce903e37eabc.cu
/* * Copyright 2014 Nervana Systems 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 ...
915e4f9b3daf014a8d467e215209f41eafd36fcc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* All modification made by Intel Corporation: 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All oth...
915e4f9b3daf014a8d467e215209f41eafd36fcc.cu
/* All modification made by Intel Corporation: © 2016 Intel Corporation All contributions by the University of California: Copyright (c) 2014, 2015, The Regents of the University of California (Regents) All rights reserved. All other contributions: Copyright (c) 2014, 2015, the respective contributors All rights rese...
17f3c38cc1e295a79039bc3f0643ec5078591af8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: mphoward /*! * \file mpcd/CellListGPU.cu * \brief Defin...
17f3c38cc1e295a79039bc3f0643ec5078591af8.cu
// Copyright (c) 2009-2021 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: mphoward /*! * \file mpcd/CellListGPU.cu * \brief Defines GPU functions and kernels used by mpcd::CellListGPU */ #include "CellListGPU.cuh" ...
8fc1f9f7c52eee9f7b8d495def19fc34781f3057.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @author Stan Tomov @generated from zgemv_...
8fc1f9f7c52eee9f7b8d495def19fc34781f3057.cu
/* -- MAGMA (version 1.6.1) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date January 2015 @author Stan Tomov @generated from zgemv_conjv.cu normal z -> d, Fri Jan 30 19:00:08 2015 */ #include "common_magma.h" #include "...
48e89ddf2f0f40f93b09c1933ba4e66a94509437.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright 2019 Yan Yan // // 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.apac...
48e89ddf2f0f40f93b09c1933ba4e66a94509437.cu
// Copyright 2019 Yan Yan // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writ...
8d85ce752c90eeb0f3c0afb1cb5ecb2d8fdc08df.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you...
8d85ce752c90eeb0f3c0afb1cb5ecb2d8fdc08df.cu
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
d80c67baaec916f42bb689ed58d8f67a2805130d.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (C) 2015 by Fernando Amat * See license.txt for full license and copyright notice. * * Authors: Fernando Amat * commonCUDA.cu * * Created on: June 5th, 2015 * Author: Fernando Amat * * \brief common functions and constants for CUDA */ #...
d80c67baaec916f42bb689ed58d8f67a2805130d.cu
/* * Copyright (C) 2015 by Fernando Amat * See license.txt for full license and copyright notice. * * Authors: Fernando Amat * commonCUDA.cu * * Created on: June 5th, 2015 * Author: Fernando Amat * * \brief common functions and constants for CUDA */ #include <cstdint> #include <algorithm> #include <iostream> ...
36cd937df9e8e7ec974669ed7ce672f61cacc75b.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <cuda_device_runtime_api.h> #include "device_launch_parameters.h" #include "kernels.h" #include "tests.h" #include <stdio.h> #include "const.h" // some defines to avoid repetition #define IF_LA...
36cd937df9e8e7ec974669ed7ce672f61cacc75b.cu
#include <cuda.h> #include <cuda_runtime.h> #include <cuda_device_runtime_api.h> #include "device_launch_parameters.h" #include "kernels.h" #include "tests.h" #include <stdio.h> #include "const.h" // some defines to avoid repetition #define IF_LAST if(id == (warpSize - 1)) #define WARP_OPERATION_DOWN(OP, NAME) \ __in...
3fbf4b9f2cf6f64e2e2c9b13a09635b1b9fe7a6c.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2020-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.o...
3fbf4b9f2cf6f64e2e2c9b13a09635b1b9fe7a6c.cu
/* * Copyright (c) 2020-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...
ca30eb22977f21309456233e1168276a5b6c4df0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2015 Kyuyeon Hwang (kyuyeon.hwang@gmail.com) 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 Lic...
ca30eb22977f21309456233e1168276a5b6c4df0.cu
/* Copyright 2015 Kyuyeon Hwang (kyuyeon.hwang@gmail.com) 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 applic...
0ae3c4a8d184fe56ac8f13e0ab1e646ba2cffbf6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2011-2016 Maxim Milakov * * 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 * * ...
0ae3c4a8d184fe56ac8f13e0ab1e646ba2cffbf6.cu
/* * Copyright 2011-2016 Maxim Milakov * * 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 ...
b4703651df7ed939bdfe4db073c63c2742913f67.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* # ============================================================================= # Copyright (C) 2016-2021 Blue Brain Project # # See top-level LICENSE file for details. # ==========================================================...
b4703651df7ed939bdfe4db073c63c2742913f67.cu
/* # ============================================================================= # Copyright (C) 2016-2021 Blue Brain Project # # See top-level LICENSE file for details. # =============================================================================. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #inclu...
6de124442c1a7068bfa5c9a73863bf7799754b0d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include "support.h" __global__ void kernelT(int m, int n, int k, const float *A, const float *B, float* C) { const unsigned int BLOCK_SIZE = 32; const unsigned int TILE_WIDTH = 32; __sh...
6de124442c1a7068bfa5c9a73863bf7799754b0d.cu
#include <stdio.h> #include <stdlib.h> #include "support.h" __global__ void kernelT(int m, int n, int k, const float *A, const float *B, float* C) { const unsigned int BLOCK_SIZE = 32; const unsigned int TILE_WIDTH = 32; __shared__ float subTileA[TILE_WIDTH][TILE_WIDTH]; __shared__ float subTileB[TILE_WIDTH][TI...
a0e7fdb9d4fa3b86e84700e529187ee7fdd8faaf.hip
// !!! This is a file automatically generated by hipify!!! //#include <stdio.h> //#include <stdlib.h> //#include <time.h> // //#include "common.h" //#include "cuda_common.cuh" // //#include "hip/hip_runtime.h" //#include "hip/hip_runtime.h" //#include "device_launch_parameters.h" // //#define BLOCK_SIZE 1024 // //templ...
a0e7fdb9d4fa3b86e84700e529187ee7fdd8faaf.cu
//#include <stdio.h> //#include <stdlib.h> //#include <time.h> // //#include "common.h" //#include "cuda_common.cuh" // //#include "cuda.h" //#include "cuda_runtime.h" //#include "device_launch_parameters.h" // //#define BLOCK_SIZE 1024 // //template<unsigned int iblock_size> //__global__ void reduction_gmem_benchmark(...
037ba6309277252ef4ef4298ea01e9f7b0ce5e28.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <ATen/ATen.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <vector> __global__ void NmDistanceKernel(int b,int n,const float * xyz,int m,const float * xyz2,float * result,int * result_i){ const int batch=...
037ba6309277252ef4ef4298ea01e9f7b0ce5e28.cu
#include <stdio.h> #include <ATen/ATen.h> #include <cuda.h> #include <cuda_runtime.h> #include <vector> __global__ void NmDistanceKernel(int b,int n,const float * xyz,int m,const float * xyz2,float * result,int * result_i){ const int batch=512; __shared__ float buf[batch*2]; for (int i=blockIdx.x;i<b;i+=gridDi...
e45422e9b1299e56bb3d149554476ec8d4fc99c0.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <time.h> #include <hip/hip_runtime.h> void sumMatrixOnHost(float *A, float *B, float *C, const int nx, const int ny) { float *ia = A; float *ib = B; float *ic = C; for (int i = 0; i < ny; i++) { for (int...
e45422e9b1299e56bb3d149554476ec8d4fc99c0.cu
#include <stdio.h> #include <time.h> #include <cuda_runtime.h> void sumMatrixOnHost(float *A, float *B, float *C, const int nx, const int ny) { float *ia = A; float *ib = B; float *ic = C; for (int i = 0; i < ny; i++) { for (int j = 0; j < nx; j++) { ic[j] = ia[j] + ib[...
47fb4d11439ce861ed4cde1b1f03dc6b831d7416.hip
// !!! This is a file automatically generated by hipify!!! #include "helper.h" // SNAP TRANSFORM SIZE // transforms data size, use in convolution FFT 2D int snapTransformSize(int dataSize){ int hiBit; unsigned int lowPOT, hiPOT; dataSize = iAlignUp(dataSize, 16); for (hiBit = 31; hiBit >= 0; hiBit--){ ...
47fb4d11439ce861ed4cde1b1f03dc6b831d7416.cu
#include "helper.h" // SNAP TRANSFORM SIZE // transforms data size, use in convolution FFT 2D int snapTransformSize(int dataSize){ int hiBit; unsigned int lowPOT, hiPOT; dataSize = iAlignUp(dataSize, 16); for (hiBit = 31; hiBit >= 0; hiBit--){ if (dataSize & (1U << hiBit)){ break; ...
c98a00481a0a516d5079de373d59ceeb28b41492.hip
// !!! This is a file automatically generated by hipify!!! #include <torch/extension.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <vector> #if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600 #else static inline __device__ void atomicAdd(double *address, double val) { unsigned long long i...
c98a00481a0a516d5079de373d59ceeb28b41492.cu
#include <torch/extension.h> #include <cuda.h> #include <cuda_runtime.h> #include <vector> #if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 600 #else static inline __device__ void atomicAdd(double *address, double val) { unsigned long long int* address_as_ull = (unsigned long long int*)address; unsigned long ...
d76b27a13b5619cb9fc342e9147ee72a39934814.hip
// !!! This is a file automatically generated by hipify!!! /** */ #include "../util/cudaUtil.h" #define CUDA #include "cudaKernel.h" #undef CUDA /** * cudaLaunchKernel function * * \brief This function uses the specified parameters to execute the * coprocessor function specified by kernel. Any par...
d76b27a13b5619cb9fc342e9147ee72a39934814.cu
/** */ #include "../util/cudaUtil.h" #define CUDA #include "cudaKernel.h" #undef CUDA /** * cudaLaunchKernel function * * \brief This function uses the specified parameters to execute the * coprocessor function specified by kernel. Any parameters to * the kernel should be included in para...
83594d896fcf5f84b46e12f2365aa9b8c3bfe21f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "convolutions.cuh" __global__ void convolution_deep_sh(const float* in, const float* kernel, float* out, const int3 im_shape, const int3 k_shape) { size_t x = blockIdx.x * blockDim.x + thread...
83594d896fcf5f84b46e12f2365aa9b8c3bfe21f.cu
#include "convolutions.cuh" __global__ void convolution_deep_sh(const float* in, const float* kernel, float* out, const int3 im_shape, const int3 k_shape) { size_t x = blockIdx.x * blockDim.x + threadIdx.x; size_t y = blockIdx.y * blockDim.y + threadIdx.y; size_t z = blockIdx.z *...
09e8978e7542069dc1c0939e3306bc7a75d8eca0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licens...
09e8978e7542069dc1c0939e3306bc7a75d8eca0.cu
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
5969edf1fcfd0eacd4aa07b6ffa68e0a09afe58d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * ****************************************************************************** * * * * * * This program and the accompanying materials are made available under the * * terms of the Apache License, Version 2.0 which is...
5969edf1fcfd0eacd4aa07b6ffa68e0a09afe58d.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 NOT...
21bffb1131abc9329137857864aee25241c12759.hip
// !!! This is a file automatically generated by hipify!!! /* * The MIT License (MIT) * * Copyright (c) 2015 Hydrodynamix * * 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...
21bffb1131abc9329137857864aee25241c12759.cu
/* * The MIT License (MIT) * * Copyright (c) 2015 Hydrodynamix * * 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 * t...
5a9217c619d6835a07cf8da97422b68e7f47a1af.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! * Copyright (c) 2017 by Contributors * Copyright (c) 2017 Microsoft * Licensed under The Apache-2.0 License [see LICENSE for details] * \file psroi_pooling.cu * \brief psroi pooling operator * \author Yi Li, Tairui Chen, G...
5a9217c619d6835a07cf8da97422b68e7f47a1af.cu
/*! * Copyright (c) 2017 by Contributors * Copyright (c) 2017 Microsoft * Licensed under The Apache-2.0 License [see LICENSE for details] * \file psroi_pooling.cu * \brief psroi pooling operator * \author Yi Li, Tairui Chen, Guodong Zhang, Jifeng Dai */ #include "./psroi_pooling-inl.h" #include <mshadow/tensor.h>...
a78699a217bc19d1e8d3fdf26f58e0e772e48377.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* @author:chenzhengqiang @date:2018-09-25 @email:642346572@qq.com */ #include "config.h" #include "saliency.h" #include "opencv_common.h" #include "cuda_common.h" __global__ void bgr2lab(const cuda::PtrStepSz<uchar> Bimg_, cons...
a78699a217bc19d1e8d3fdf26f58e0e772e48377.cu
/* @author:chenzhengqiang @date:2018-09-25 @email:642346572@qq.com */ #include "config.h" #include "saliency.h" #include "opencv_common.h" #include "cuda_common.h" __global__ void bgr2lab(const cuda::PtrStepSz<uchar> Bimg_, const cuda::PtrStepSz<uchar> Gimg_, const cuda::PtrStepSz<uchar> Rimg_, ...
fd3f889c61bd84cc9de7798b84f0ee3e3b9cbb17.hip
// !!! This is a file automatically generated by hipify!!! // ---------------------------------------------------------------- // Sudoku -- Puzzle Solver on GPU using CUDA // ---------------------------------------------------------------- /** * @file * sudoku.cu * * @brief main sudoku file to init and execute */...
fd3f889c61bd84cc9de7798b84f0ee3e3b9cbb17.cu
// ---------------------------------------------------------------- // Sudoku -- Puzzle Solver on GPU using CUDA // ---------------------------------------------------------------- /** * @file * sudoku.cu * * @brief main sudoku file to init and execute */ #pragma once // includes, system #include <stdlib.h> #in...
8634012a4d2ccc5d9934613a1cad2f69231f695a.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2018 Ole-Christoffer Granmo 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 limi...
8634012a4d2ccc5d9934613a1cad2f69231f695a.cu
/* Copyright (c) 2018 Ole-Christoffer Granmo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
4835f129b8f5fb7585a215f6845bc445a8a2c5c2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "lightfield.hpp" #include "cutil_math.hpp" #include "cuda_helpers.hh" #include <stdio.h> #include <cmath> #define PI 3.14159265358979f #define min(a, b) (((a) < (b)) ? (a) : (b)) #define TREE namespace lightfield { /*...
4835f129b8f5fb7585a215f6845bc445a8a2c5c2.cu
#include "lightfield.hpp" #include "cutil_math.hpp" #include "cuda_helpers.hh" #include <stdio.h> #include <cmath> #define PI 3.14159265358979f #define min(a, b) (((a) < (b)) ? (a) : (b)) #define TREE namespace lightfield { /* data structures */ struct LFData *camer_info = 0; static struct LFCamera *gpuCam = 0;...
ced9b8686b9b170cdf35ec82bdd6f1463467857a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "utils.h" #include "timer.h" #include <stdio.h> __global__ void sum_kernel(ull * const d_arr, ull * const d_out, int N) { extern __shared__ ull s_arr[]; int x = blockIdx.x * blockDim.x + threadIdx.x; int tid = thread...
ced9b8686b9b170cdf35ec82bdd6f1463467857a.cu
#include "utils.h" #include "timer.h" #include <stdio.h> __global__ void sum_kernel(ull * const d_arr, ull * const d_out, int N) { extern __shared__ ull s_arr[]; int x = blockIdx.x * blockDim.x + threadIdx.x; int tid = threadIdx.x; if (x >= N) return; s_arr[tid] = d_arr[x]; __syncthreads(); for ...
ffb064a4d252082aecaebae107ac926e16d6c832.hip
// !!! This is a file automatically generated by hipify!!! //-------------------------------------------------------------------------- // Project: // Read GPU temepratures on a CUDA-enabled system. // Bypass the need for 3rd party libraries. // Insert into your code as desired. // // Prerequisites: // Must have ins...
ffb064a4d252082aecaebae107ac926e16d6c832.cu
//-------------------------------------------------------------------------- // Project: // Read GPU temepratures on a CUDA-enabled system. // Bypass the need for 3rd party libraries. // Insert into your code as desired. // // Prerequisites: // Must have installed the CUDA toolkit. // Must be running on a UNIX machi...
4a8e0273fc7b2d30aa1e0cb1c1155bf123621967.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <stdlib.h> #include <ctime> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> using namespace std; __global__ void vecAddKernel(float * A, float *B, float *C, int n){ int i = blockDim.x*blockIdx.x + threadIdx.x; ...
4a8e0273fc7b2d30aa1e0cb1c1155bf123621967.cu
#include <iostream> #include <stdlib.h> #include <ctime> #include <cuda_runtime.h> #include <cuda.h> using namespace std; __global__ void vecAddKernel(float * A, float *B, float *C, int n){ int i = blockDim.x*blockIdx.x + threadIdx.x; if(i<n) C[i] = A[i] + B[i]; } void vecAdd(float * A, float *B, float *...
c00ade7375801d72a9e2199615d16db0f48848f1.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include "projektcuda.h" #include "project_comm.h" /* Kernel to square elements of the array on the GPU */ /* Matrix A is mA x nB , Vector B is nB Vector C output vector in size of mA C=A*B description: each...
c00ade7375801d72a9e2199615d16db0f48848f1.cu
#include "cuda.h" #include <stdio.h> #include "projektcuda.h" #include "project_comm.h" /* Kernel to square elements of the array on the GPU */ /* Matrix A is mA x nB , Vector B is nB Vector C output vector in size of mA C=A*B description: each row of A occuppy one block. if gridDim is smaller than the row number...
2145bc4213d364d5270f7b8ecd63812422377146.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <math.h> #include <float.h> #include <thrust/extrema.h> #include <thrust/device_ptr.h> #define CSC(call) \ do { \ hipError_t res = call; \ if (res != hipSuccess) { \ fprintf(stderr, "...
2145bc4213d364d5270f7b8ecd63812422377146.cu
#include <stdio.h> #include <math.h> #include <float.h> #include <thrust/extrema.h> #include <thrust/device_ptr.h> #define CSC(call) \ do { \ cudaError_t res = call; \ if (res != cudaSuccess) { \ fprintf(stderr, "ERROR in %s:%d. Message: %s\n", \ __FILE__, __LINE__, cudaGetErrorString(res)); ...
562a83784e429dd436d34161c1bfba8ac87fc9de.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <array> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <random> #include <sstream> #include "opencv2/core.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include "op...
562a83784e429dd436d34161c1bfba8ac87fc9de.cu
#include <array> #include <cassert> #include <cmath> #include <iomanip> #include <iostream> #include <random> #include <sstream> #include "opencv2/core.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/videoio.hpp" #include "shapes.hpp" #include "mov...