hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
d5718290a096e7f0ed809cd85d37aac06f65ddf8.hip
// !!! This is a file automatically generated by hipify!!! /*! * Copyright 2018 XGBoost contributors */ #include <gtest/gtest.h> #include <thrust/equal.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/transform.h> #include "../../../src/common/device_helpers.cuh" #include <xgboost/host_device_vect...
d5718290a096e7f0ed809cd85d37aac06f65ddf8.cu
/*! * Copyright 2018 XGBoost contributors */ #include <gtest/gtest.h> #include <thrust/equal.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/transform.h> #include "../../../src/common/device_helpers.cuh" #include <xgboost/host_device_vector.h> namespace xgboost { namespace common { namespace { v...
71406ab2ac5489c0f471f670d11868e5fef251f2.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright 2020 insaneyilin All Rights Reserved. * * */ #include "../common/common.h" #define N (1024*1024) #define FULL_DATA_SIZE (N * 100) __global__ void kernel(int *a, int *b, int *c) { int idx = threadIdx.x + bl...
71406ab2ac5489c0f471f670d11868e5fef251f2.cu
/* * Copyright 2020 insaneyilin All Rights Reserved. * * */ #include "../common/common.h" #define N (1024*1024) #define FULL_DATA_SIZE (N * 100) __global__ void kernel(int *a, int *b, int *c) { int idx = threadIdx.x + blockIdx.x * blockDim.x; if (idx < N) { // compute an average of three values in a a...
cb9b261387bc771ad9364d70d7bf5defd292ed54.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from sparse/blas/zgeaxpy.cu, normal z -> d, Mon ...
cb9b261387bc771ad9364d70d7bf5defd292ed54.cu
/* -- MAGMA (version 2.4.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date June 2018 @generated from sparse/blas/zgeaxpy.cu, normal z -> d, Mon Jun 25 18:24:23 2018 */ #include "magmasparse_internal.h" #define BLOCK_SIZE 256 // ...
f620f40d92db23f83063b21458c2d797494a2d3b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <algorithm> #include <cfloat> #include <vector> #include "thrust/device_vector.h" #include "caffe/filler.hpp" #include "caffe/layers/norm_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { // divid a ...
f620f40d92db23f83063b21458c2d797494a2d3b.cu
#include <algorithm> #include <cfloat> #include <vector> #include "thrust/device_vector.h" #include "caffe/filler.hpp" #include "caffe/layers/norm_layer.hpp" #include "caffe/util/math_functions.hpp" namespace caffe { // divid a matrix with vector template <typename Dtype> __global__ void DivBsx(const int nthreads, ...
1289ea8e291ca6081a652252981a797bcaf8d677.hip
// !!! This is a file automatically generated by hipify!!! #include <rocblas.h> #include <hiprand/hiprand.h> #include <cassert> #include <cmath> #include <ctime> #include <iostream> #include <vector> #include "addvec.h" int matmul(const int M, const int N, const int K, const int iter) { // random number generator...
1289ea8e291ca6081a652252981a797bcaf8d677.cu
#include <cublas_v2.h> #include <curand.h> #include <cassert> #include <cmath> #include <ctime> #include <iostream> #include <vector> #include "addvec.h" int matmul(const int M, const int N, const int K, const int iter) { // random number generator using Pseudo curandGenerator_t prng; curandCreateGenerat...
32d67750a8c664e2050cf41b606d16902f8eea65.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! * Copyright 2017-2020 XGBoost contributors */ #include <thrust/copy.h> #include <thrust/reduce.h> #include <xgboost/tree_updater.h> #include <algorithm> #include <cmath> #include <memory> #include <limits> #include <queue> #in...
32d67750a8c664e2050cf41b606d16902f8eea65.cu
/*! * Copyright 2017-2020 XGBoost contributors */ #include <thrust/copy.h> #include <thrust/reduce.h> #include <xgboost/tree_updater.h> #include <algorithm> #include <cmath> #include <memory> #include <limits> #include <queue> #include <utility> #include <vector> #include "xgboost/host_device_vector.h" #include "xgb...
84b953c9757e4627dc8ae686744d49908d9b9afe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<math.h> #include<stdio.h> #include "CUDA.h" #include "Random.h" #include "mycomplex.h" #include "model.h" using namespace std; /* ----------------------------------------*/ /**************************/ double *yzero; __de...
84b953c9757e4627dc8ae686744d49908d9b9afe.cu
#include<math.h> #include<stdio.h> #include "CUDA.h" #include "Random.h" #include "mycomplex.h" #include "model.h" using namespace std; /* ----------------------------------------*/ /**************************/ double *yzero; __device__ double const tau=1.; __device__ double const one_over_tau=1./tau; double const in...
ebf3bd0e058a278b3e8c9d5c8445761bcce1b7e4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * \file dnn/src/cuda/mesh_indexing/mesh_indexing.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicab...
ebf3bd0e058a278b3e8c9d5c8445761bcce1b7e4.cu
/** * \file dnn/src/cuda/mesh_indexing/mesh_indexing.cu * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed...
c87e4ad856706a371bc0f563caa190fa178e26d9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include<stdio.h> #include<stdlib.h> #include<math.h> #include<cuda.h> #include<cuda_runtime.h> namespace Neighbours { class FileHandle { public: int InputSize(void) { FILE *input = NULL; input = fope...
c87e4ad856706a371bc0f563caa190fa178e26d9.cu
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<cuda.h> #include<cuda_runtime.h> namespace Neighbours { class FileHandle { public: int InputSize(void) { FILE *input = NULL; input = fopen("input.txt", "r"); char line[30]; int N = 0; while(fgets(line, 3...
9825e06dd75711802246251a84d51fbdb594b06c.hip
// !!! This is a file automatically generated by hipify!!! #include "stdio.h" #include <hip/hip_runtime.h> #include "../../../CudaHelper.h" const unsigned int DATE_SIZE = 1 << 24; // 8M const unsigned int BLOCK_SIZE = 1024; // block size /* * * Many Block: every thread exec 1 computation task and all computatio...
9825e06dd75711802246251a84d51fbdb594b06c.cu
#include "stdio.h" #include <cuda_runtime.h> #include "../../../CudaHelper.h" const unsigned int DATE_SIZE = 1 << 24; // 8M const unsigned int BLOCK_SIZE = 1024; // block size /* * * Many Block: every thread exec 1 computation task and all computation task is exec in device */ // Kernel function to compute s...
b13ad6171c033b49d437e17ec9c068b31d619134.hip
// !!! This is a file automatically generated by hipify!!! /* * 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 und...
b13ad6171c033b49d437e17ec9c068b31d619134.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 ...
04d5fecda3d930fa17aa8bd773719161f6a60b50.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
04d5fecda3d930fa17aa8bd773719161f6a60b50.cu
/* * Copyright (c) 2019, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
8cc6bb17d6911ae0b2a37e51b1962ac21285d97f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************** * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificati...
8cc6bb17d6911ae0b2a37e51b1962ac21285d97f.cu
/****************************************************************************** * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributio...
38c6396e7c938c7d7b4deb25c06a5709e80f68fd.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime_api.h> #include "cudaWrap.h" #include <stdio.h> #define BLKX 32 #define BLKY 32 hipStream_t gstream; #define CUDA_CALL_SAFE(f) \ do { ...
38c6396e7c938c7d7b4deb25c06a5709e80f68fd.cu
#include <cuda_runtime_api.h> #include "cudaWrap.h" #include <stdio.h> #define BLKX 32 #define BLKY 32 cudaStream_t gstream; #define CUDA_CALL_SAFE(f) \ do { ...
eb39b112f6090ef865322f4395fc8ec9bb653815.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Host Side Code for Cross-correlation in GPU #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> //#include "Cross_Data_type.h" #include "corr2Mex.h" #include "normXcorr_GPUKernel.cu" ...
eb39b112f6090ef865322f4395fc8ec9bb653815.cu
// Host Side Code for Cross-correlation in GPU #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <fstream> //#include "Cross_Data_type.h" #include "corr2Mex.h" #include "normXcorr_GPUKernel.cu" using namespace std; Matrix AllocateDeviceMatrix(const Matrix M); Matrix AllocateMatri...
f93522fda87342031ed19073037c4a70249cbef8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void Matrix_MultiplElementWise_naiveOLD(const float * A , int Acount, int Acols, const float * B , int Bcount, int Bcols, float * out0 , int out0count, int out0cols) { int id = blockDim.x*blockIdx.y*...
f93522fda87342031ed19073037c4a70249cbef8.cu
#include "includes.h" __global__ void Matrix_MultiplElementWise_naiveOLD(const float * A , int Acount, int Acols, const float * B , int Bcount, int Bcols, float * out0 , int out0count, int out0cols) { int id = blockDim.x*blockIdx.y*gridDim.x + blockDim.x*blockIdx.x + threadIdx.x; int id_row,id_col; if (id<Acount) { if ...
e227d77186e3474823a8053e22f045a8a2bbba41.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void magnitude(float *vec, const int n) { unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x; if (xIndex < n) { vec[xIndex] = abs(vec[xIndex]); } }
e227d77186e3474823a8053e22f045a8a2bbba41.cu
#include "includes.h" __global__ void magnitude(float *vec, const int n) { unsigned int xIndex = blockDim.x * blockIdx.x + threadIdx.x; if (xIndex < n) { vec[xIndex] = abs(vec[xIndex]); } }
2295618f2b0c0e8062d2d6b40fcbabf9373c5f99.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <stdio.h> #include "checker_helper.cu" #define BLOCK_SIZE 4 #define NUM_BLOCKS 4 #define GLOBAL_BUF_SIZE 16384 #define INTERNAL_BUF_SIZE BLOCK_SIZE __device__ volatile int globalHead; __device__ volati...
2295618f2b0c0e8062d2d6b40fcbabf9373c5f99.cu
#include <iostream> #include <stdio.h> #include "checker_helper.cu" #define BLOCK_SIZE 4 #define NUM_BLOCKS 4 #define GLOBAL_BUF_SIZE 16384 #define INTERNAL_BUF_SIZE BLOCK_SIZE __device__ volatile int globalHead; __device__ volatile int globalTail; __device__ volatile int blockFence; // __device__ volatile int tailSe...
8553f08b5fa489e9a06e7a9c011a73178bf4a573.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "hiprand/hiprand_kernel.h" #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <iostream> #include <numeric> using namespace std; const int threadSideSize = 32; const ...
8553f08b5fa489e9a06e7a9c011a73178bf4a573.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include "curand_kernel.h" #include <cuda.h> #include <curand.h> #include <iostream> #include <numeric> using namespace std; const int threadSideSize = 32; const int blocksSideSize = 255; __global__ void calculate(int* sum) { int xBlock = blockIdx....
61427059ba2651c790546e824b169d7bd8a874a0.hip
// !!! This is a file automatically generated by hipify!!! #include<utility> #include<stdio.h> #include<assert.h> #include <hip/hip_runtime_api.h> #include <hip/hip_runtime.h> #include <ostream> #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <fstream> #include <omp.h> #include <time...
61427059ba2651c790546e824b169d7bd8a874a0.cu
#include<utility> #include<stdio.h> #include<assert.h> #include <cuda_runtime_api.h> #include <cuda_runtime.h> #include <ostream> #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <fstream> #include <omp.h> #include <time.h> #include <string.h> #include <utility> #include <time.h> #inc...
615cf8368e36be2682ac9f1b55d8cf9cab45c718.hip
// !!! This is a file automatically generated by hipify!!! #include <cmath> #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <iostream> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <hip/device_functions.h> #include <hip/hip...
615cf8368e36be2682ac9f1b55d8cf9cab45c718.cu
#include <cmath> #include <cstdio> #include <cstring> #include <string> #include <algorithm> #include <iostream> #include <cuda.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include <device_functions.h> #include <cuda_runtime_api.h> using namespace std; typedef double ld; typedef long long LL; ...
9dd7cd92a316ad4873a4e04f0137946142b23ed7.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2010-2011, NVIDIA Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source co...
9dd7cd92a316ad4873a4e04f0137946142b23ed7.cu
/* * Copyright (c) 2010-2011, NVIDIA Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list...
bcf4db357f4454f44f4c64cab1350d5052b1c2c2.hip
// !!! This is a file automatically generated by hipify!!! /* /* * 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 requir...
bcf4db357f4454f44f4c64cab1350d5052b1c2c2.cu
/* /* * 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 writing, software * ...
dd0fdc147032ecf99cf3be8b4cf29bec10469209.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Modified from // https://github.com/open-mmlab/OpenPCDet/blob/master/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.cu /* 3D IoU Calculation and Rotated NMS(modified from 2D NMS written by others) Written by Shaoshuai Shi All Rights R...
dd0fdc147032ecf99cf3be8b4cf29bec10469209.cu
// Modified from // https://github.com/open-mmlab/OpenPCDet/blob/master/pcdet/ops/iou3d_nms/src/iou3d_nms_kernel.cu /* 3D IoU Calculation and Rotated NMS(modified from 2D NMS written by others) Written by Shaoshuai Shi All Rights Reserved 2019-2020. */ #include <stdio.h> #define THREADS_PER_BLOCK 16 #define DIVUP(m, ...
a1eda7653f7d7c3ca01b9375662ccb09bdee5291.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <math.h> #include <fcntl.h> #include <unistd.h> // #define LIST_SIZE 1610612736 //6 GB of ints //#define LIST_SIZE 209715200 //500 MB of ints // #define LIST_SIZE 1048576 // 1MB of ints // #define LIST_S...
a1eda7653f7d7c3ca01b9375662ccb09bdee5291.cu
#include <stdio.h> #include <math.h> #include <fcntl.h> #include <unistd.h> // #define LIST_SIZE 1610612736 //6 GB of ints //#define LIST_SIZE 209715200 //500 MB of ints // #define LIST_SIZE 1048576 // 1MB of ints // #define LIST_SIZE (2 * 65536) // #define LIST_SIZE 65536 // #define LIST_SIZE 49152 // #define LIST_SI...
80ee86bb2f8936a6b9ad0fc6d85ec72d9c2fff8e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include <cmath> #include "error_checks.h" // Macros CUDA_CHECK and CHECK_ERROR_MSG __global__ void vector_add(double *C, const double *A, const double *B, int N) { // Add the kernel code int idx = blockI...
80ee86bb2f8936a6b9ad0fc6d85ec72d9c2fff8e.cu
#include <cstdio> #include <cmath> #include "error_checks.h" // Macros CUDA_CHECK and CHECK_ERROR_MSG __global__ void vector_add(double *C, const double *A, const double *B, int N) { // Add the kernel code int idx = blockIdx.x * blockDim.x + threadIdx.x; // Do not try to access past the allocated memory ...
727ceefc197727d9315ed02fb7af29a277d51cc8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*! ******************* BEGIN Caffe Copyright Notice and Disclaimer **************** * * COPYRIGHT * * All contributions by the University of California: * Copyright (c) 2014-2017 The Regents of the University of California (R...
727ceefc197727d9315ed02fb7af29a277d51cc8.cu
/*! ******************* BEGIN Caffe Copyright Notice and Disclaimer **************** * * COPYRIGHT * * All contributions by the University of California: * Copyright (c) 2014-2017 The Regents of the University of California (Regents) * All rights reserved. * * All other contributions: * Copyright (c) 2014-201...
55579b1d3b19c8b6deedf6fe9482bc19aafd3bd2.hip
// !!! This is a file automatically generated by hipify!!! // // Created by kier on 2019/3/6. // #include "kernels/gpu/gatherv2.h" #include "global/operator_factory.h" #include "backend/name.h" #include "kernels/gpu/gpu_kernel.h" #include <numeric> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #i...
55579b1d3b19c8b6deedf6fe9482bc19aafd3bd2.cu
// // Created by kier on 2019/3/6. // #include "kernels/gpu/gatherv2.h" #include "global/operator_factory.h" #include "backend/name.h" #include "kernels/gpu/gpu_kernel.h" #include <numeric> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include "kernels/gpu/cuda_context.h" #include "core/device_cont...
5f25a6485f2d29961cc9c3f6d7a22ae270da9218.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by op2.py // //user function __device__ void simulation_1_gpu( float *out, const float *in) { out[0] = in[0]; out[1] = in[1]; out[2] = in[2]; out[3] = in[3]; } // CUDA kernel function __global__ void ...
5f25a6485f2d29961cc9c3f6d7a22ae270da9218.cu
// // auto-generated by op2.py // //user function __device__ void simulation_1_gpu( float *out, const float *in) { out[0] = in[0]; out[1] = in[1]; out[2] = in[2]; out[3] = in[3]; } // CUDA kernel function __global__ void op_cuda_simulation_1( float *arg0, const float *__restrict arg1, int set_size ) ...
4c42e9d653841600c9bf3e8ba29aa4de59049e46.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> const int N = 512; //const float a[N] = {10,1,8,-1,0,-2,3,5,-2,-3,2,7,0,11,0,2}; //const float b[N] = {10,1,8,-1,0,-2,3,5,-2,-3,2,7,0,11,0,2}; //const float xx[N] = { -4,-3...
4c42e9d653841600c9bf3e8ba29aa4de59049e46.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> const int N = 512; //const float a[N] = {10,1,8,-1,0,-2,3,5,-2,-3,2,7,0,11,0,2}; //const float b[N] = {10,1,8,-1,0,-2,3,5,-2,-3,2,7,0,11,0,2}; //const float xx[N] = { -4,-3.5,-3,-2.5,-2,-1.5,-1,-0.5,0,0.5,1,1.5,2,2.5,3,3.5 }; __glob...
9d0839f9ef38ad7ed3258dc371ba7bc8159a3b50.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Simulated Annealing algorithm for Traveling Salesman Problem @@ CUDA version: no parallel optimization, single thread Input: xxx.tsp file Output: optimal value (total distance) & solution route: permutation of {1, 2, ......
9d0839f9ef38ad7ed3258dc371ba7bc8159a3b50.cu
/* Simulated Annealing algorithm for Traveling Salesman Problem @@ CUDA version: no parallel optimization, single thread Input: xxx.tsp file Output: optimal value (total distance) & solution route: permutation of {1, 2, ..., N} */ #include <iostream> #include <stdio.h> #include <string.h> #include <stdlib.h> ...
6ed914a66d2d461d27f20fd897c5772fe6da26d3.hip
// !!! This is a file automatically generated by hipify!!! #include <unittest/unittest.h> #include <thrust/copy.h> #include <list> #include <iterator> #include <thrust/sequence.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/iterator/constant_iterator.h> vo...
6ed914a66d2d461d27f20fd897c5772fe6da26d3.cu
#include <unittest/unittest.h> #include <thrust/copy.h> #include <list> #include <iterator> #include <thrust/sequence.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/iterator/constant_iterator.h> void TestCopyFromConstIterator(void) { typedef int T; ...
6eb80874e42c8ecccaccf294a701c54b924e0e35.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, ...
6eb80874e42c8ecccaccf294a701c54b924e0e35.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 related...
9644d7ffe807eb2f7fce6b2da4e06b16e17b073f.hip
// !!! This is a file automatically generated by hipify!!! #include "gtest/gtest.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include "../gpu/arima/arima.h" #include "cuda_utils2.h" TEST(ARIMA, differencing) { const int length = 10; thrust::device_vector<float> data(length); for (auto i...
9644d7ffe807eb2f7fce6b2da4e06b16e17b073f.cu
#include "gtest/gtest.h" #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include "../gpu/arima/arima.h" #include "cuda_utils2.h" TEST(ARIMA, differencing) { const int length = 10; thrust::device_vector<float> data(length); for (auto i = 0; i < length; ++i) data[i] = float(i / 2); thrust::de...
38d2e250fb0f05dee563a0095c5adb29b12931fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <math.h> // CUDA kernel to add elements of two arrays __global__ void add(int n, float *x, float *y) { int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; for ...
38d2e250fb0f05dee563a0095c5adb29b12931fa.cu
#include <iostream> #include <math.h> // CUDA kernel to add elements of two arrays __global__ void add(int n, float *x, float *y) { int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; for (int i = index; i < n; i += stride) y[i] = x[i] + y[i]; } int main(void) { int N...
6a898f8a77da1a3ca7128be200c64f74e8f287ea.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <iostream> #include <ctype.h> #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "hip/hip_runtime.h" #define CEIL(a,b) ((a+b-1)/b) #d...
6a898f8a77da1a3ca7128be200c64f74e8f287ea.cu
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <iostream> #include <ctype.h> #include "cuda_runtime.h" #include "device_launch_parameters.h" #include "cuda.h" #define CEIL(a,b) ((a+b-1)/b) #define PI 3.1415926 #define EDGE 0...
01df821c29fe577d5d5c80820b2a012b62a07909.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...
01df821c29fe577d5d5c80820b2a012b62a07909.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...
5633fe73fd7862dbd11c88042a59112a2962f3a4.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2018-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
5633fe73fd7862dbd11c88042a59112a2962f3a4.cu
/* * Copyright (c) 2018-2023, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
ed538c6a15b46029260fcd8a223ea5c0dfbe8d50.hip
// !!! This is a file automatically generated by hipify!!! #include <algorithm> #include <stdio.h> #include <omp.h> #include <string> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api.h> #define SIZE_BLOCK 1024 __global__ void reduction(double* new_u, double* f, double* u, long N, double h...
ed538c6a15b46029260fcd8a223ea5c0dfbe8d50.cu
#include <algorithm> #include <stdio.h> #include <omp.h> #include <string> #include <stdlib.h> #include <cuda.h> #include <cuda_runtime_api.h> #define SIZE_BLOCK 1024 __global__ void reduction(double* new_u, double* f, double* u, long N, double h){ __shared__ double temp[SIZE_BLOCK]; int index = (blockIdx.x)*bl...
1baf870898ea1534dea5a84b06e2aba32551cbfa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <stdlib.h> #include <iostream> #include "lodepng.h" #include "lodepng.cu" using namespace std; __global__ void Picture...
1baf870898ea1534dea5a84b06e2aba32551cbfa.cu
#include <stdio.h> #include <unistd.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <stdlib.h> #include <iostream> #include "lodepng.h" #include "lodepng.cu" using namespace std; __global__ void PictureKernell(unsigned char* d_Pin, unsigned char* d_Pout, int n, int m){ int y = blockIdx...
6362a81a07493ba2711140e1aff8f3aeb7eb4eed.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 2022-2023, NVIDIA CORPORATION. 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 * * ...
6362a81a07493ba2711140e1aff8f3aeb7eb4eed.cu
/* * Copyright (c) 2022-2023, NVIDIA CORPORATION. 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 ...
cc2f080b657e393820c3f4b42f9bf6869724456d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> const int M = 32; __global__ void bucket_sort(int *key, int *bucket, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i >= n) return; atomicAdd(bucket + key[i], 1); // Fill bucket by key __syn...
cc2f080b657e393820c3f4b42f9bf6869724456d.cu
#include <cstdio> const int M = 32; __global__ void bucket_sort(int *key, int *bucket, int n) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i >= n) return; atomicAdd(bucket + key[i], 1); // Fill bucket by key __syncthreads(); // Wait for all threads to finish filling bucket for (int j = 0, k = 0; j...
311c6da1e065e8697c609d046447132932abca64.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void MergeRank(float * d_input, float * d_output) { int indexA = blockIdx.x * blockDim.x + threadIdx.x; int indexB = indexA + 2048; float temp1 = d_input[indexA]; float temp2 = d_input[indexB]; int i...
311c6da1e065e8697c609d046447132932abca64.cu
#include "includes.h" __global__ void MergeRank(float * d_input, float * d_output) { int indexA = blockIdx.x * blockDim.x + threadIdx.x; int indexB = indexA + 2048; float temp1 = d_input[indexA]; float temp2 = d_input[indexB]; int indexAB = 2048; while (d_input[indexAB] < temp1) { indexAB++; } int indexBA = 0; while (d...
e5068996fff22c1aebf800ce4ff1a1ad16594b71.hip
// !!! This is a file automatically generated by hipify!!! #include "transformcuda.cuh" int transform(cuwst *w,short sense){ // wrapper to "master" version taking a stream argument return(transform(w,sense,NULL)); } int transform(cuwst *w,short sense, hipStream_t stream){ int ret; if(sense != w->transform...
e5068996fff22c1aebf800ce4ff1a1ad16594b71.cu
#include "transformcuda.cuh" int transform(cuwst *w,short sense){ // wrapper to "master" version taking a stream argument return(transform(w,sense,NULL)); } int transform(cuwst *w,short sense, cudaStream_t stream){ int ret; if(sense != w->transformed ? BWD : FWD){ printf("\nSense doesn't make sense. W...
6da436ce7d2fc5088fe5d5b45afb80e5b21d8bd5.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> //#include "input.h" #include "knnCuda.h" //#include "check.h" #include "hipError_t.h" #include "datasetFunctions.h" // attributi #d...
6da436ce7d2fc5088fe5d5b45afb80e5b21d8bd5.cu
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> //#include "input.h" #include "knnCuda.h" //#include "check.h" #include "cudaError.h" #include "datasetFunctions.h" // attributi #define A 30 // labels #define LABELS 10 // numtreads #define NT 32 //#define BLOCK_SIZE 32...
046ebbcb95aba16c08efa2fc968d4388800f93ab.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/hip/HIPContext.h> #include <ATen/hip/NumericLimits.cuh> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/NumericUtils.h> #include <c10/util/accumulate.h> #includ...
046ebbcb95aba16c08efa2fc968d4388800f93ab.cu
#include <ATen/cuda/CUDAContext.h> #include <ATen/cuda/NumericLimits.cuh> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/TensorUtils.h> #include <ATen/NumericUtils.h> #include <c10/util/accumulate.h> #include <THC/THCGeneral.h> #include <THC/THCNumerics.cuh> #include <cub/device/device_scan...
b78723a012b33e36526d16f10a6be76954a4e18a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * ...
b78723a012b33e36526d16f10a6be76954a4e18a.cu
/* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
4ab8602ecf51a4881765b8fa86cc5ba7c3c2f8cf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "caffe/layers/roi_pooling_layer.hpp" #include <cfloat> using std::max; using std::min; namespace caffe { template <typename Dtype> __global__ void ROIPoolForward(const int nthreads, const Dtype* bottom_data, ...
4ab8602ecf51a4881765b8fa86cc5ba7c3c2f8cf.cu
#include "caffe/layers/roi_pooling_layer.hpp" #include <cfloat> using std::max; using std::min; namespace caffe { template <typename Dtype> __global__ void ROIPoolForward(const int nthreads, const Dtype* bottom_data, const Dtype spatial_scale, const int channels, const int height, cons...
8ed8a029fab9784de7a126577e0f1f6bbeee6968.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /// **************************************************************************** /// ***************** Common utilities and CUDA Kernels ********************** /// ******************************************************************...
8ed8a029fab9784de7a126577e0f1f6bbeee6968.cu
/// **************************************************************************** /// ***************** Common utilities and CUDA Kernels ********************** /// **************************************************************************** //~ #include "utils.h" #include "common.h" #define W_SIGN(a) ((a > 0) ? (1.0...
f2387c3bbf5b24879151d9218f297a5fd53f0840.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <catboost/cuda/cuda_lib/kernel/kernel.cuh> #include <catboost/cuda/cuda_util/kernel/random_gen.cuh> #include <catboost/cuda/gpu_data/gpu_structures.h> #include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh> namespace...
f2387c3bbf5b24879151d9218f297a5fd53f0840.cu
#include <catboost/cuda/cuda_lib/kernel/kernel.cuh> #include <catboost/cuda/cuda_util/kernel/random_gen.cuh> #include <catboost/cuda/gpu_data/gpu_structures.h> #include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh> namespace NKernel { template <ui32 BLOCK_SIZE> __global__ void ComputeGroupIdsImpl(const...
9088a2e9b2943467e7b559f3def483121126eea7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" __global__ void manual_dot_nn_op_float_m1_k512_n1024_kernel0(float* input0, float* input1, float* output0) { int warp_id = threadIdx.x >> 5; int lane_id = threadIdx.x & 31; int col_id = blockIdx.x * blockDim.x...
9088a2e9b2943467e7b559f3def483121126eea7.cu
extern "C" __global__ void manual_dot_nn_op_float_m1_k512_n1024_kernel0(float* input0, float* input1, float* output0) { int warp_id = threadIdx.x >> 5; int lane_id = threadIdx.x & 31; int col_id = blockIdx.x * blockDim.x / 8 + lane_id; if (col_id < 1024) { float val = 0; int k_start ...
406dff04f8eb1f94a341d9621e63e109989c366c.hip
// !!! This is a file automatically generated by hipify!!! #include "stdio.h" #include<iostream> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define N 1024 #define threadsPerBlock 512 #define cpu_sum(x) (x*(x+1)) __global__ void gpu_dot(float *d_a, float *d_b, float *d_c){ __shared__ float partial_su...
406dff04f8eb1f94a341d9621e63e109989c366c.cu
#include "stdio.h" #include<iostream> #include <cuda.h> #include <cuda_runtime.h> #define N 1024 #define threadsPerBlock 512 #define cpu_sum(x) (x*(x+1)) __global__ void gpu_dot(float *d_a, float *d_b, float *d_c){ __shared__ float partial_sum[threadsPerBlock]; int tid = threadIdx.x + blockIdx.x * blockDim.x;...
2c9b6237be044b3dea180d40cf9664c024129481.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * 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 soft...
2c9b6237be044b3dea180d40cf9664c024129481.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 related...
65c12d81fd900f4faeda028b3d7831beddea0c48.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <primitiv/config.h> #include <primitiv/devices/cuda16/device.h> #include <primitiv/devices/cuda16/ops/common.h> #include <primitiv/internal/cuda/utils.h> namespace { __constant__ std::uint32_t permute_dims_x_strides[prim...
65c12d81fd900f4faeda028b3d7831beddea0c48.cu
#include <primitiv/config.h> #include <primitiv/devices/cuda16/device.h> #include <primitiv/devices/cuda16/ops/common.h> #include <primitiv/internal/cuda/utils.h> namespace { __constant__ std::uint32_t permute_dims_x_strides[primitiv::Shape::MAX_DEPTH]; __constant__ std::uint32_t permute_dims_y_strides[primitiv::Sha...
b08cf4244b45dfd30e26568ca03884b80772ed8b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #define MATRIX_SIZE 64 __global__ void Square(int *A) { // Block index /************Add your code***********/ int bx = blockIdx.x; int by = blockIdx.y; // Thread index /************Add your code**...
b08cf4244b45dfd30e26568ca03884b80772ed8b.cu
#include <stdio.h> #include <cuda_runtime.h> #define MATRIX_SIZE 64 __global__ void Square(int *A) { // Block index /************Add your code***********/ int bx = blockIdx.x; int by = blockIdx.y; // Thread index /************Add your code***********/ int tx = threadIdx.x; int ty = threadIdx....
6fe2f184c8d91e0f4a925179d01317c6d97a56fa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Lab 5, image filters with CUDA. // Compile with a command-line similar to Lab 4: // nvcc filter.cu -c -arch=sm_30 -o filter.o // g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter // o...
6fe2f184c8d91e0f4a925179d01317c6d97a56fa.cu
// Lab 5, image filters with CUDA. // Compile with a command-line similar to Lab 4: // nvcc filter.cu -c -arch=sm_30 -o filter.o // g++ filter.o milli.c readppm.c -lGL -lm -lcuda -lcudart -L/usr/local/cuda/lib -lglut -o filter // or (multicore lab) // nvcc filter.cu -c -arch=sm_20 -o filter.o // g++ filter.o milli.c r...
0815267381f46246bc36c5f5fdd4a4fa1b36cdc8.hip
// !!! This is a file automatically generated by hipify!!! /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // I...
0815267381f46246bc36c5f5fdd4a4fa1b36cdc8.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...
e280f7f1e34c3336169c17ee2a2a91d5266339d1.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> // #include <helper_cuda.h> #define THREADS_PER_BLOCK 3 double f(double x){ return x*x; } __global__ void calculate(double *buffer, double start, double step, int N, double (*f) (double)){ int i = blockIdx.x ...
e280f7f1e34c3336169c17ee2a2a91d5266339d1.cu
#include <stdio.h> #include <cuda_runtime.h> // #include <helper_cuda.h> #define THREADS_PER_BLOCK 3 double f(double x){ return x*x; } __global__ void calculate(double *buffer, double start, double step, int N, double (*f) (double)){ int i = blockIdx.x * blockDim.x + threadIdx.x; if(i < N){ double x = start + i...
49d78731b1d40670104fab5a1338f1fcf5ccd6cc.hip
// !!! This is a file automatically generated by hipify!!! #include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <sys/time.h> #include "vec_add.hip" #include<chrono> #include<iostream> using namespace...
49d78731b1d40670104fab5a1338f1fcf5ccd6cc.cu
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <curand_kernel.h> #include <stdlib.h> #include <cuda.h> #include <sys/time.h> #include "vec_add.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,24},{...
7e23199f4529b676d5b8fd3bb594854dea7b79b8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "main.hpp" #include "kernels_hip.cuh" // Device kernels. __global__ void kernelAbs( float* arr, int size) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i >= size) { return; } arr...
7e23199f4529b676d5b8fd3bb594854dea7b79b8.cu
#include "main.hpp" #include "kernels.cuh" // Device kernels. __global__ void kernelAbs( float* arr, int size) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i >= size) { return; } arr[i] = abs(arr[i]); } __global__ void kernelEliminateConnections( float* inGroupConnecti...
6c936787277114a353a931f1e239bbb12d9cb38a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "z.h" #define BLOCK_DIM_X 64 #define N(x) (erf((x)/sqrt(2.0f))/2+0.5f) __global__ void gpuBlackScholes(float* call,float* S,float* X,float* T,float* r,float* sigma,int len){ int ii=threadIdx.x+blockDim.x*blockIdx.x; ...
6c936787277114a353a931f1e239bbb12d9cb38a.cu
#include "z.h" #define BLOCK_DIM_X 64 #define N(x) (erf((x)/sqrt(2.0f))/2+0.5f) __global__ void gpuBlackScholes(float* call,float* S,float* X,float* T,float* r,float* sigma,int len){ int ii=threadIdx.x+blockDim.x*blockIdx.x; if(ii>len){ return; } float d1= (log(S[ii]/X[ii])+(r[ii]+(sigma[ii]*sigma[ii...
ba10c29d3b2882953904599c51f70999fc055cfc.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void im2col(float *A, int inputSize, int depth, int kernelSize, int stride, int pad, float *col, int o...
ba10c29d3b2882953904599c51f70999fc055cfc.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <sys/time.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void im2col(float *A, int inputSize, int depth, int kernelSize, int stride, int pad, float *col, int outputSize) { // 一个线程完成一次卷积操作中的转换 也就是说 一个线程转换生成col中的一...
326f3a0bf6f52845db580cbd6dd2205406ee55c9.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...
326f3a0bf6f52845db580cbd6dd2205406ee55c9.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...
c2690a469d21b93e9e458029051162ca3b18e853.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Matrix multiplication based on modified NVIDIA samples code * Copyright (C) 2014 Ren Oertel (rene.oertel@cs.tu-chemnitz.de) * * This program is free software: you can redistribute it and/or modify * it under the terms ...
c2690a469d21b93e9e458029051162ca3b18e853.cu
/* * Matrix multiplication based on modified NVIDIA samples code * Copyright (C) 2014 René Oertel (rene.oertel@cs.tu-chemnitz.de) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, eit...
09c55d674b32e5e5daf852dfd11937d5df051569.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #define WSIZE 32 #define LOOPS 100000 #define UPPER_BIT 31 #define LOWER_BIT 0 __device__ unsigned int ddata[WSIZE]; // naive warp-level bitwise radix sort __global__ void mykernel(){ __sh...
09c55d674b32e5e5daf852dfd11937d5df051569.cu
#include <stdio.h> #include <stdlib.h> #define WSIZE 32 #define LOOPS 100000 #define UPPER_BIT 31 #define LOWER_BIT 0 __device__ unsigned int ddata[WSIZE]; // naive warp-level bitwise radix sort __global__ void mykernel(){ __shared__ volatile unsigned int sdata[WSIZE*2]; // load from global into shared variable ...
3138d5c628e860e88cac5f0ec2d7a2bceda61aef.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" __global__ void orcu_kernel53927(const int sites_on_node, double* A, double* y, double* x) { const int tid=blockIdx.x*blockDim.x+threadIdx.x; const int gsize=gridDim.x*blockDim.x; double ci, ai, bi, ar, br, cr; int j, k; f...
3138d5c628e860e88cac5f0ec2d7a2bceda61aef.cu
__global__ void orcu_kernel53927(const int sites_on_node, double* A, double* y, double* x) { const int tid=blockIdx.x*blockDim.x+threadIdx.x; const int gsize=gridDim.x*blockDim.x; double ci, ai, bi, ar, br, cr; int j, k; for (int i=tid; i<=sites_on_node-1; i+=gsize) { { #pragma unroll 2 for (j...
579545f22c93e3b8c00f3ac90e1a9f46a2a764d0.hip
// !!! This is a file automatically generated by hipify!!! extern "C" { #include "rdma.h" #include "timing.h" #include "fifo.h" } #include <fcntl.h> #include <unistd.h> #include <rocblas.h> #include <hip/hip_runtime.h> #define M 2048UL #define N M #define K N #define P 16UL #define LDA1 K #define LDB1 M...
579545f22c93e3b8c00f3ac90e1a9f46a2a764d0.cu
extern "C" { #include "rdma.h" #include "timing.h" #include "fifo.h" } #include <fcntl.h> #include <unistd.h> #include <cublas_v2.h> #include <cuda_runtime.h> #define M 2048UL #define N M #define K N #define P 16UL #define LDA1 K #define LDB1 M #define LDB2 LDB1*N #define LDC1 N #define LDC2 LDC1*M #de...
af6929679b6722dec61dacb92c148de3ab2a56ad.hip
// !!! This is a file automatically generated by hipify!!! /** * syrk.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ ...
af6929679b6722dec61dacb92c148de3ab2a56ad.cu
/** * syrk.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <stdio.h> #include <stdlib.h> #include <math.h> #...
93a8d0dc60183031a0907415edd1d87295e05e1b.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Exercise 1 from http://webapp.dam.brown.edu/wiki/SciComp/CudaExercises // Transposition of a matrix // by Hendrik Riedmann <riedmann@dam.brown.edu> // Andrew Cron added bounds checks ... // Andrew Cron added Z grid dimension to...
93a8d0dc60183031a0907415edd1d87295e05e1b.cu
// Exercise 1 from http://webapp.dam.brown.edu/wiki/SciComp/CudaExercises // Transposition of a matrix // by Hendrik Riedmann <riedmann@dam.brown.edu> // Andrew Cron added bounds checks ... // Andrew Cron added Z grid dimension to X for larger matrices #define BLOCK_SIZE %(block_size)d #define A_BLOCK_STRIDE (BL...
5e7648668eaa1ffc61f01f05d43420e98c3d2031.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <chrono> #include <math.h> using namespace std; __global__ void reduce(int n, float *x, float *y) { int oindex = blockIdx.x + blockIdx.y * blockDim.x; int index = blockIdx.x * blockDim.x + threadIdx....
5e7648668eaa1ffc61f01f05d43420e98c3d2031.cu
#include <iostream> #include <chrono> #include <math.h> using namespace std; __global__ void reduce(int n, float *x, float *y) { int oindex = blockIdx.x + blockIdx.y * blockDim.x; int index = blockIdx.x * blockDim.x + threadIdx.x; int stride = blockDim.x * gridDim.x; for (int i = index; i < n; i += stride) y...
f093b6642435a7aada25424ca43133bad5392d06.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <fstream> #include <time.h> #include <stdlib.h> #inc...
f093b6642435a7aada25424ca43133bad5392d06.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <fstream> #include <time.h> #include <stdlib.h> #include <stdio.h> #include <cstdlib> #pragma once #ifdef __INTELL...
ea1b5969c2a30d384a167cce30ac71a98494540f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define W 500 #define H 500 #define TX 32 #define TY 32 __device__ unsigned char clip(int n){ return n>255?255:(n<0?0:n); } __global__ void distanceKernel(uchar4 *d_out,int w,int h,int2 pos){ const int c=blockIdx.x*blockDim.x+th...
ea1b5969c2a30d384a167cce30ac71a98494540f.cu
#define W 500 #define H 500 #define TX 32 #define TY 32 __device__ unsigned char clip(int n){ return n>255?255:(n<0?0:n); } __global__ void distanceKernel(uchar4 *d_out,int w,int h,int2 pos){ const int c=blockIdx.x*blockDim.x+threadIdx.x; const int r=blockIdx.y*blockDim.y+threadIdx.y; const int i =r*w+c; if ((c>...
8e036229eb1a609f8d0ac1453dd984dbbfa484fe.hip
// !!! This is a file automatically generated by hipify!!! #include "BufferCompaction.h" #include "GpuMemUtils.h" #include "GpuRtConstants.h" #include "ResultSetBufferAccessors.h" #include "ResultSetSortImpl.h" #include "SortUtils.cuh" #include <thrust/copy.h> #include <thrust/execution_policy.h> #include <thrust/host...
8e036229eb1a609f8d0ac1453dd984dbbfa484fe.cu
#include "BufferCompaction.h" #include "GpuMemUtils.h" #include "GpuRtConstants.h" #include "ResultSetBufferAccessors.h" #include "ResultSetSortImpl.h" #include "SortUtils.cuh" #include <thrust/copy.h> #include <thrust/execution_policy.h> #include <thrust/host_vector.h> #include <thrust/sort.h> #define FORCE_CPU_VERS...
bf49cc46ad43698e032eb94e2d1680e43d7b7b96.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at ...
bf49cc46ad43698e032eb94e2d1680e43d7b7b96.cu
/* Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
4241339c85cc2ab0c244ecf5ce1b9cdf37f958cd.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * DifferentialDecoder.cpp * * Created on: May 15, 2013 * Author: adm85 */ #include <vector> #include <iostream> #include <fstream> #include "DifferentialDecoder.h" #include "Kernels.h" using namespace std; namespace ...
4241339c85cc2ab0c244ecf5ce1b9cdf37f958cd.cu
/* * DifferentialDecoder.cpp * * Created on: May 15, 2013 * Author: adm85 */ #include <vector> #include <iostream> #include <fstream> #include "DifferentialDecoder.h" #include "Kernels.h" using namespace std; namespace PAQ_SOQPSK { DifferentialDecoder::DifferentialDecoder() { //We set the initial delta...
9e9945a8e9594e43d673c5d8cb58b05fbbf175fe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <ATen/hip/HIPBlas.h> #include <c10/hip/HIPException.h> #include <c10/test/util/complex_test_common.h> __global__ void test_thrust_kernel() { // thrust conversion { constexpr float num1 = float(1.23); constexpr floa...
9e9945a8e9594e43d673c5d8cb58b05fbbf175fe.cu
#include <ATen/cuda/CUDABlas.h> #include <c10/cuda/CUDAException.h> #include <c10/test/util/complex_test_common.h> __global__ void test_thrust_kernel() { // thrust conversion { constexpr float num1 = float(1.23); constexpr float num2 = float(4.56); assert(c10::complex<float>(thrust::complex<float>(num1, num2...
cfadf67a16b54cdd72a128b73300042c640b48fe.hip
// !!! This is a file automatically generated by hipify!!! #include <torch/extension.h> #include <ATen/ATen.h> using namespace at; #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <vector> #include <iostream> // Cuda tensor accessor definitions // restrict pointer traits piroritize speed over memo...
cfadf67a16b54cdd72a128b73300042c640b48fe.cu
#include <torch/extension.h> #include <ATen/ATen.h> using namespace at; #include <cuda.h> #include <cuda_runtime.h> #include <vector> #include <iostream> // Cuda tensor accessor definitions // restrict pointer traits piroritize speed over memory consumption #define TensorAcc4R PackedTensorAccessor<scalar_t,4,Restri...
0fbf941e7cbe30fbc222eec0da1f9a8eb38dc471.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "accessor.h" #include "model.h" #include "cuda_helper.h" template<typename DT, int dim> TensorAccessorR<DT, dim>::TensorAccessorR(PhysicalRegion region, RegionRequirement req, ...
0fbf941e7cbe30fbc222eec0da1f9a8eb38dc471.cu
#include "accessor.h" #include "model.h" #include "cuda_helper.h" template<typename DT, int dim> TensorAccessorR<DT, dim>::TensorAccessorR(PhysicalRegion region, RegionRequirement req, FieldID fid, ...
acef4e23504c5a46122b234450dcc7c02e58c647.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* author : Anshul Farkya created on : 12-feb-2021 */ #include <stdio.h> #include <stdlib.h> #include "kernels.h" // Print the matrix void printMatrix(int *mat, int rows, int cols) { for(int i=0; i < rows; i++) { for(int ...
acef4e23504c5a46122b234450dcc7c02e58c647.cu
/* author : Anshul Farkya created on : 12-feb-2021 */ #include <stdio.h> #include <stdlib.h> #include "kernels.h" // Print the matrix void printMatrix(int *mat, int rows, int cols) { for(int i=0; i < rows; i++) { for(int j=0; j < cols; j++) { printf("%d ", mat[i*cols+j]); } printf("\n"); } ...
a29c2605380217e0cde1ea36a92ec58fb1c5a9c1.hip
// !!! This is a file automatically generated by hipify!!! #include <cassert> #include <cfloat> #include <hip/hip_runtime_api.h> #include <hip/hip_runtime.h> #include <iostream> #include <stdio.h> #include <list> #include <map> #include <math.h> #include <stdlib.h> #include <vector> #include <set> #include <algorithm>...
a29c2605380217e0cde1ea36a92ec58fb1c5a9c1.cu
#include <cassert> #include <cfloat> #include <cuda_runtime_api.h> #include <cuda.h> #include <iostream> #include <stdio.h> #include <list> #include <map> #include <math.h> #include <stdlib.h> #include <vector> #include <set> #include <algorithm> #include <iterator> #include <fstream> #include "../include/common.h" #d...
1bf5795cdd9fc313407cb16ff820b0e98047f592.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stddef.h> #include <stdint.h> #include "model_gpu_utils.h" #include "mixed_tentusscher_myo_epi_2004_S1_1.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { print_to_stdout_and_file("Us...
1bf5795cdd9fc313407cb16ff820b0e98047f592.cu
#include <stddef.h> #include <stdint.h> #include "model_gpu_utils.h" #include "mixed_tentusscher_myo_epi_2004_S1_1.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { print_to_stdout_and_file("Using mixed version of TenTusscher 2004 myocardium + epicardium GPU model\n\n"); // e...
977ed52908b3518ed86dd0320ffc752995aa25cf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <chrono> #include <hiprand/hiprand_kernel.h> #include <stdio.h> #include "../configuration.h" #ifdef OPTION_RENDER #include "../rendering.h" #endif // OPTION_RENDER #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __...
977ed52908b3518ed86dd0320ffc752995aa25cf.cu
#include <chrono> #include <curand_kernel.h> #include <stdio.h> #include "../configuration.h" #ifdef OPTION_RENDER #include "../rendering.h" #endif // OPTION_RENDER #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abort=true) {...
672878313c6d20fa789b564c5f73d51da19a1b8e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * _reg_mutualinformation_gpu.cu * * * Created by Marc Modat on 24/03/2009. * Copyright (c) 2009, University College London. All rights reserved. * Centre for Medical Image Computing (CMIC) * See the LICENSE.txt file...
672878313c6d20fa789b564c5f73d51da19a1b8e.cu
/* * _reg_mutualinformation_gpu.cu * * * Created by Marc Modat on 24/03/2009. * Copyright (c) 2009, University College London. All rights reserved. * Centre for Medical Image Computing (CMIC) * See the LICENSE.txt file in the nifty_reg root folder * */ #ifndef _REG_MUTUALINFORMATION_GPU_CU #define _REG...
c0c3ce07432ab1ffb877c3c06396f09cbcce729d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 // DeepSpeed Team #include "ds_kernel_utils.h" #include "memory_access_utils.h" #include "quantization.h" #include "quantization_utils.h" #include "red...
c0c3ce07432ab1ffb877c3c06396f09cbcce729d.cu
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 // DeepSpeed Team #include "ds_kernel_utils.h" #include "memory_access_utils.h" #include "quantization.h" #include "quantization_utils.h" #include "reduction_utils.h" namespace cg = cooperative_groups; /* Pure quantization kernel with no...
905e4f88c97a2d2c7a08576368afdb8d5f4404d1.hip
// !!! This is a file automatically generated by hipify!!! //===============================================================================================================================================================================================================200 // INCLUDE/DEFINE //============================...
905e4f88c97a2d2c7a08576368afdb8d5f4404d1.cu
//===============================================================================================================================================================================================================200 // INCLUDE/DEFINE //=======================================================================================...
3a19d3cd0b4f20a7b2f7989ca29224b6ecd22c7c.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #define IDX(w, t, n_walkers) ((w) + ((t)*(...
3a19d3cd0b4f20a7b2f7989ca29224b6ecd22c7c.cu
#include <cuda.h> #include <curand.h> #include <curand_kernel.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <stdlib.h> #include <math.h> #include <stdio.h> #define IDX(w, t, n_walkers) ((w) + ((t)*(n_walkers))) /***************************************************************/ __global_...
59a0550936ddaf73d67123b95654da785ac701ce.hip
// !!! This is a file automatically generated by hipify!!! #include "cudaUtils.hpp" void __CUDAErrorCheck(const char *file, const int line) { hipError_t status = hipGetLastError(); if (hipSuccess != status) { printf("!!!Error, CUDAErrorCheck failed, %s:%i : %s\n", f...
59a0550936ddaf73d67123b95654da785ac701ce.cu
#include "cudaUtils.hpp" void __CUDAErrorCheck(const char *file, const int line) { cudaError status = cudaGetLastError(); if (cudaSuccess != status) { printf("!!!Error, CUDAErrorCheck failed, %s:%i : %s\n", file, line, cudaGetErrorString(status)); exit(-1); ...
14f287a9fd5e58dfc387530c29c72f0e176af0de.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <math.h> #include <chrono> #include <hip/hip_runtime.h> #include "utils.h" #include "kernel.h" int main(int argc, char* argv[]) { if (argc != 2) { printf("Usage: %s <repeat>\n", argv[0]); return 1; } ...
14f287a9fd5e58dfc387530c29c72f0e176af0de.cu
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <chrono> #include <hip/hip_runtime.h> #include "utils.h" #include "kernel.h" int main(int argc, char* argv[]) { if (argc != 2) { printf("Usage: %s <repeat>\n", argv[0]); return 1; } const int repeat = atoi(argv[1]); float *th, *pii, *q; ...
ac9678c920a98e95c4752722be72958fab1e4901.hip
// !!! This is a file automatically generated by hipify!!! #include <ATen/Context.h> #include <ATen/hip/HIPContext.h> #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/hip/PinnedMemoryAllocator.h> #include <ATen/hip/detail/IndexUtils.cuh> #include <ATen/native/LinearAlgebraUtils.h> #include <...
ac9678c920a98e95c4752722be72958fab1e4901.cu
#include <ATen/Context.h> #include <ATen/cuda/CUDAContext.h> #include <ATen/Dispatch.h> #include <ATen/NativeFunctions.h> #include <ATen/cuda/PinnedMemoryAllocator.h> #include <ATen/cuda/detail/IndexUtils.cuh> #include <ATen/native/LinearAlgebraUtils.h> #include <ATen/native/cuda/MiscUtils.h> #include <ATen/native/Res...
a844720c02b482ee6d4eddf1033f9bb127df086e.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> #include <iostream> #include <fstream> #include <sstream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <stdbool.h> #include <math.h> usin...
a844720c02b482ee6d4eddf1033f9bb127df086e.cu
#include <stdio.h> #include <cuda_runtime.h> #include <iostream> #include <fstream> #include <sstream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include "opencv2/imgproc/imgproc.hpp" #include <stdbool.h> #include <math.h> using namespace cv; using namespace std; #define BLOCKSIZE 32 //T...
3e857203cb52e1ea95cc92f0cd6a2b6d758f260f.hip
// !!! This is a file automatically generated by hipify!!! /*--------------------------------------------------------------------*/ /* CUDA utility Library */ /* written by Viktor K. Decyk, UCLA */ #include <stdlib.h> #include <stdio.h> #include "hip/hip_runtime.h" int nblock_size = 64; int ngrid_size = 1; int maxgsx...
3e857203cb52e1ea95cc92f0cd6a2b6d758f260f.cu
/*--------------------------------------------------------------------*/ /* CUDA utility Library */ /* written by Viktor K. Decyk, UCLA */ #include <stdlib.h> #include <stdio.h> #include "cuda.h" int nblock_size = 64; int ngrid_size = 1; int maxgsx = 65535; int mmcc = 0; static int devid; static cudaError_t crc; __...
120ee4c5616383d4a10f2c71d88cd2c7aff1e550.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...
120ee4c5616383d4a10f2c71d88cd2c7aff1e550.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...
d15b85110f549b17305287f01a6c85f0317268e9.hip
// !!! This is a file automatically generated by hipify!!! #include "funset.hpp" #include <iostream> #include <chrono> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include "common.hpp" /* __global__: ;;,3.2 ;void;, ;, gridblock,(<<< >>>); a kernel,(GPUCUDAkernel( ),__global__);*/ __global__ st...
d15b85110f549b17305287f01a6c85f0317268e9.cu
#include "funset.hpp" #include <iostream> #include <chrono> #include <cuda_runtime.h> #include <device_launch_parameters.h> #include "common.hpp" /* __global__: 函数类型限定符;在设备上运行;在主机端调用,计算能力3.2及以上可以在 设备端调用;声明的函数的返回值必须是void类型;对此类型函数的调用是异步的,即在 设备完全完成它的运行之前就返回了;对此类型函数的调用必须指定执行配置,即用于在 设备上执行函数时的grid和block的维度,以及相关的流(即插入<<< ...
4a60759bea2033a718524244d2fd3690e0ffe81f.hip
// !!! This is a file automatically generated by hipify!!! //////////////////////////////////////////////////////////////////////////// // // EXAMPLE OF BAD PREFIX-SCAN CHAPTER 8 // inclusive Kogge_Stone_scan // //////////////////////////////////////////////////////////////////////////// #include "hip/hip_runtime.h" ...
4a60759bea2033a718524244d2fd3690e0ffe81f.cu
//////////////////////////////////////////////////////////////////////////// // // EXAMPLE OF BAD PREFIX-SCAN CHAPTER 8 // inclusive Kogge_Stone_scan // //////////////////////////////////////////////////////////////////////////// #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #inc...
b9f73ffd52db31bbf4716f99cfae1d53872181c6.hip
// !!! This is a file automatically generated by hipify!!! /** * 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. */ #include <faiss/gpu/GpuResources.h> #include <faiss/gpu/utils/DeviceUti...
b9f73ffd52db31bbf4716f99cfae1d53872181c6.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. */ #include <faiss/gpu/GpuResources.h> #include <faiss/gpu/utils/DeviceUtils.h> #include <faiss/impl/AuxIndexStructures.h> #include <...
9688387d322c2a7998882465bb296cbab67565c5.hip
// !!! This is a file automatically generated by hipify!!! #include "common.h" #include <hip/hip_runtime.h> #include <stdio.h> /* * CUDA Project - HPC 2019 I * * This program demonstrates a simple simulation box which attempts to model * traffic flow on the GPU and on the host. * sumArraysOnGPU splits the work o...
9688387d322c2a7998882465bb296cbab67565c5.cu
#include "common.h" #include <cuda_runtime.h> #include <stdio.h> /* * CUDA Project - HPC 2019 I * * This program demonstrates a simple simulation box which attempts to model * traffic flow on the GPU and on the host. * sumArraysOnGPU splits the work of the vector across CUDA threads on the * GPU. Only a single ...
85f8cf7984ecb1b4b839351267cca3c234971887.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...
85f8cf7984ecb1b4b839351267cca3c234971887.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...
5ba5e891e261ddd23b3d071b132dac65897de2e6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Summer Semester 2017, September 11 - October 9 // ### // Exercise 9 // Writte...
5ba5e891e261ddd23b3d071b132dac65897de2e6.cu
// ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Summer Semester 2017, September 11 - October 9 // ### // Exercise 9 // Written by: Jiho Yang (M.Sc student in Computational Science & Engineering) // Matriculation n...
d6775b0b6a927698f5ca9ce84b97252292104980.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "LocalConnect.h" #include "../common/cuBase.h" #include "../common/Config.h" /* dim3 block = dim3(batch, outputAmount); dim3 thread= min(outputDim * outputDim, 512); */ __global__ void g_LocalConnect_backpropagation_kerne...
d6775b0b6a927698f5ca9ce84b97252292104980.cu
#include "LocalConnect.h" #include "../common/cuBase.h" #include "../common/Config.h" /* dim3 block = dim3(batch, outputAmount); dim3 thread= min(outputDim * outputDim, 512); */ __global__ void g_LocalConnect_backpropagation_kernelSize1( double* _curDelta, double**_w, double* _nextDelta, int dim, int are...
c7801994b24343c69deefb057f535c1dc2dc2098.hip
// !!! This is a file automatically generated by hipify!!! // // Cardiff University | Computer Science // Module: CM3203 One Semester Project (40 Credits) // Title: Parallelisation of Matrix Exponentials in C++/CUDA for Quantum Control // Date: 2016 // // Author: Peter Davison // Supervisor: Dr. Fran...
c7801994b24343c69deefb057f535c1dc2dc2098.cu
// // Cardiff University | Computer Science // Module: CM3203 One Semester Project (40 Credits) // Title: Parallelisation of Matrix Exponentials in C++/CUDA for Quantum Control // Date: 2016 // // Author: Peter Davison // Supervisor: Dr. Frank C Langbein // Moderator: Dr. Irena Spasic // // Include...