hip_filename stringlengths 5 84 | hip_content stringlengths 79 9.69M | cuda_filename stringlengths 4 83 | cuda_content stringlengths 19 9.69M |
|---|---|---|---|
316c411af1d1bd5a4f2fe573457c399a1322caf8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* file name: TilingMatrix.cu
* NOTE:
* squareMatrixMult is much more efficent than the regular multiplier
* currently compiling with: nvcc TilingMatrix.cu -o tileTest
* Device Standards for: GeForce GTX ... | 316c411af1d1bd5a4f2fe573457c399a1322caf8.cu | /*
* file name: TilingMatrix.cu
* NOTE:
* squareMatrixMult is much more efficent than the regular multiplier
* currently compiling with: nvcc TilingMatrix.cu -o tileTest
* Device Standards for: GeForce GTX 1060 6GB
* total global mem size: 6078 MBytes (6373572608 bytes)
* t... |
77f0da584ad6b3a0b3456fce8c038813fc400153.hip | // !!! This is a file automatically generated by hipify!!!
// http://csweb.cs.wfu.edu/bigiron/LittleFE-CUDA-TrapezoidalRule/build/html/cudaAlg.html
// This program implements trapezoidal integration for a function
// f(x) over the interval [c,d] using N subdivisions. This program
// runs on a host and device (NVIDIA ... | 77f0da584ad6b3a0b3456fce8c038813fc400153.cu | // http://csweb.cs.wfu.edu/bigiron/LittleFE-CUDA-TrapezoidalRule/build/html/cudaAlg.html
// This program implements trapezoidal integration for a function
// f(x) over the interval [c,d] using N subdivisions. This program
// runs on a host and device (NVIDIA graphics chip with cuda
// certification). The function f... |
23130f61080bd2a8d8fa3e84c7d92911b8dda823.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author Azzam Haidar
@author Ahmad Abdelfattah
@precisio... | 23130f61080bd2a8d8fa3e84c7d92911b8dda823.cu | /*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author Azzam Haidar
@author Ahmad Abdelfattah
@precisions normal z -> s d c
*/
#include "magma_internal.h"
#include "magma_templates.h"
#inclu... |
3fa4ede10dd78785fbcac966b7dd2d2b17934389.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<stdlib.h>
#define N 512
void host_add(int *a, int *b, int *c) {
for(int idx=0;idx<N;idx++)
c[idx] = a[idx] + b[idx];
}
__global__ void device_add(int *a, int *b, int *c) {
int index = threadIdx.... | 3fa4ede10dd78785fbcac966b7dd2d2b17934389.cu | #include<stdio.h>
#include<stdlib.h>
#define N 512
void host_add(int *a, int *b, int *c) {
for(int idx=0;idx<N;idx++)
c[idx] = a[idx] + b[idx];
}
__global__ void device_add(int *a, int *b, int *c) {
int index = threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] + b[index];
}
//basically just fill... |
671d6e6abbf401437321ccb7dde20a3d94638539.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//==================================================
// bvh.cu
//
// Copyright (c) 2016 Benjamin Hepp.
// Author: Benjamin Hepp
// Created on: Jan 16, 2017
//==================================================
#include <bh/cuda_ut... | 671d6e6abbf401437321ccb7dde20a3d94638539.cu | //==================================================
// bvh.cu
//
// Copyright (c) 2016 Benjamin Hepp.
// Author: Benjamin Hepp
// Created on: Jan 16, 2017
//==================================================
#include <bh/cuda_utils.h>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include ... |
c631e4ad48efb5981374796fce3dfed4289d98fe.hip | // !!! This is a file automatically generated by hipify!!!
#include "deltaCV/gpu/cudaImg.cuh"
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <hip/device_functions.h>
#include <opencv2/opencv.hpp>
//
__global__ void erode(unsigned char* dataIn,
... | c631e4ad48efb5981374796fce3dfed4289d98fe.cu | #include "deltaCV/gpu/cudaImg.cuh"
#include <cuda_runtime.h>
#include <cuda.h>
#include <device_launch_parameters.h>
#include <device_functions.h>
#include <opencv2/opencv.hpp>
//腐蚀
__global__ void erode(unsigned char* dataIn,
unsigned char* dataOut,
short int imgRows,
... |
be18fc25f2694cafbde8da480b7dec3e16686ef2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <wb.h>
__global__ void vecAdd(float * in1, float * in2, float * out, int len) {
//@@ Insert code to implement vector addition here
int tx = threadIdx.x + blockDim.x * blockIdx.x;
if (tx < len) out[tx] = in1[... | be18fc25f2694cafbde8da480b7dec3e16686ef2.cu | #include <wb.h>
__global__ void vecAdd(float * in1, float * in2, float * out, int len) {
//@@ Insert code to implement vector addition here
int tx = threadIdx.x + blockDim.x * blockIdx.x;
if (tx < len) out[tx] = in1[tx] + in2[tx];
return;
}
int main(int argc, char ** argv) {
wbArg_t args;
i... |
6a1f527e4928cf72049b969da274d9abe8dd1964.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF lic... | 6a1f527e4928cf72049b969da274d9abe8dd1964.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 ... |
d16f01386b532bba1f118dc39af9923cd2b733da.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdlib.h>
#include <stdio.h>
#include <hip/hip_runtime.h>
#define N 8
#define BLOCK_SIZE 2
__global__ void matrixSum(float *d_a, float *d_b, float *d_c){
int globalIndex = blockIdx.y * BLOCK_SIZE * N + blockIdx.x * BLOCK_SIZE + threadIdx.y * N + ... | d16f01386b532bba1f118dc39af9923cd2b733da.cu | #include <stdlib.h>
#include <stdio.h>
#include <cuda_runtime.h>
#define N 8
#define BLOCK_SIZE 2
__global__ void matrixSum(float *d_a, float *d_b, float *d_c){
int globalIndex = blockIdx.y * BLOCK_SIZE * N + blockIdx.x * BLOCK_SIZE + threadIdx.y * N + threadIdx.x;
d_c[globalIndex] = d_a[globalIndex] + d_b[gl... |
4df638e2f08fd795f5c9efdbcb91852d244c4f3c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************/
/* */
/* (C) 2010 Texas Advanced Computing Center. All rights reserved. ... | 4df638e2f08fd795f5c9efdbcb91852d244c4f3c.cu | /******************************************************************************/
/* */
/* (C) 2010 Texas Advanced Computing Center. All rights reserved. */
/* For information, contact Frank Willmore: willmore@tacc.utexas.edu ... |
47c852ad098ee89be7b658b95600b59609f2aa2d.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <iostream>
#include "hip/hip_runtime.h"
#include <device_launch_parameters.h>
#include <hip/device_functions.h>
#include <time.h>
#include <hip/hip_runtime_api.h>
/*Realization of the multiplication between a vector and a matrix, on ... | 47c852ad098ee89be7b658b95600b59609f2aa2d.cu | #include <stdio.h>
#include <iostream>
#include "cuda_runtime.h"
#include <device_launch_parameters.h>
#include <device_functions.h>
#include <time.h>
#include <cuda_runtime_api.h>
/*Realization of the multiplication between a vector and a matrix, on the GPU.
It realizes multiplication between a vector of 4 element an... |
e92b9efd11e19c1c864ddae7f879d3898be6099b.hip | // !!! This is a file automatically generated by hipify!!!
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license tha... | e92b9efd11e19c1c864ddae7f879d3898be6099b.cu | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
1dae24e698fbbf2c3dd9d20ce168c80ebf4be937.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <iostream>
__global__ void kernel( void ) {
}
int main( void ) {
hipLaunchKernelGGL(( kernel), dim3(1),dim3(1), 0, 0, );
printf( "Hello, World!\n" );
return 0;
}
| 1dae24e698fbbf2c3dd9d20ce168c80ebf4be937.cu | #include <iostream>
__global__ void kernel( void ) {
}
int main( void ) {
kernel<<<1,1>>>();
printf( "Hello, World!\n" );
return 0;
}
|
f0f6ebe1c2455239c4a71554ae4c24ce2c26b7e4.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <math.h>
#include <chrono>
void checkCUDAError(const char *msg)
{
hipError_t err = hipGetLastError();
if( hipSuccess != err)
{
fprintf(stderr, "CUDA Error: %s: %s.\n", msg, hipGe... | f0f6ebe1c2455239c4a71554ae4c24ce2c26b7e4.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <math.h>
#include <chrono>
void checkCUDAError(const char *msg)
{
cudaError_t err = cudaGetLastError();
if( cudaSuccess != err)
{
fprintf(stderr, "CUDA Error: %s: %s.\n", msg, cudaGetErrorString(err) );
exit(EXIT_FAILURE);
}
}
#define BLOCKSIZE... |
623bec37201afc751317cd5a3f4df49125af32d1.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 "matrixAddKernel3.cu"
#include<chrono>
#include<iostream>
using n... | 623bec37201afc751317cd5a3f4df49125af32d1.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 "matrixAddKernel3.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
33252075fddfccd061750a56e455374a4eaf83cd.hip | // !!! This is a file automatically generated by hipify!!!
////////////////////////////////////////////////////////////////////////
// GPU version of Monte Carlo algorithm using NVIDIA's CURAND library
////////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <stdio.h>
#inc... | 33252075fddfccd061750a56e455374a4eaf83cd.cu |
////////////////////////////////////////////////////////////////////////
// GPU version of Monte Carlo algorithm using NVIDIA's CURAND library
////////////////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <cuda.h>
#include <curand.h>
#inclu... |
f1fe5cbd0b5f818f9a18e753d37f9f02538ce1d6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* Write GPU code to perform the step(s) involved in counting sort.
Add additional kernels and device functions as needed. */
__global__ void counting_sort_kernel(int *input_array, int *sorted_array, int *histogram, int *scan, int... | f1fe5cbd0b5f818f9a18e753d37f9f02538ce1d6.cu | /* Write GPU code to perform the step(s) involved in counting sort.
Add additional kernels and device functions as needed. */
__global__ void counting_sort_kernel(int *input_array, int *sorted_array, int *histogram, int *scan, int num_elements, int range)
{
extern __shared__ int temp[];
int threadID = block... |
04b3a4a5f83d37da5f816162e8f5366a5ed1ff03.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/********************************************************************
*@version-0.1
*@author Liyuqian- yuqianfly@gmail.com
*
*:
*
*
*
*
*
*
* 1
* 2
*
* 3
* 410240000bytes
* 5
* 6
* 7
*************... | 04b3a4a5f83d37da5f816162e8f5366a5ed1ff03.cu | /********************************************************************
*@version-0.1
*@author Liyuqian-李雨前 yuqianfly@gmail.com
*华中科技大学计算机学院 智能与分布式计算实验室
*注意: 除华中科技大学计算机学院智能与分布式计算外,
*任何个人、团队、研究结构、商业单位等不能对本算法进行专利申请或者撰写
*本算法的论文。
*任何个人、团队、研究结构、商业单位都可以对本算法进行使用、修改、扩展、传播。
*使用本算法不当造成的损失,责任有使用者自行负责。
*
* 使用提示:
* 1。本词典详细构造没有... |
5aa0b8280edc697ac503c1c452e5a295aad0fd51.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
extern "C"
__global__ void bhsm_backward(
const float *wxy,
const float *x,
const float *w,
const int *ts,
const int *paths,
const float *codes,
const int *begins,
const float *gLoss,
const int n_in,
con... | 5aa0b8280edc697ac503c1c452e5a295aad0fd51.cu | extern "C"
__global__ void bhsm_backward(
const float *wxy,
const float *x,
const float *w,
const int *ts,
const int *paths,
const float *codes,
const int *begins,
const float *gLoss,
const int n_in,
const int max_len,
const int n_ex,
float *gx,
float *gW
) {
int i = blockIdx.x... |
d40da346717c67a230d94eb00e9be3b63147603b.hip | // !!! This is a file automatically generated by hipify!!!
/*
* SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | d40da346717c67a230d94eb00e9be3b63147603b.cu | /*
* SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
c9a879a34d326927c23ce59aa09484c7a926ecd8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <hipcub/hipcub.hpp>
#include <launch_kernel.cuh>
namespace quda {
#ifdef GPU_GAUGE_TOOLS
... | c9a879a34d326927c23ce59aa09484c7a926ecd8.cu | #include <quda_internal.h>
#include <quda_matrix.h>
#include <tune_quda.h>
#include <gauge_field.h>
#include <gauge_field_order.h>
#include <cub/cub.cuh>
#include <launch_kernel.cuh>
namespace quda {
#ifdef GPU_GAUGE_TOOLS
// template <typename Float, typename Gauge>
template <typename Gauge>
struct GaugePlaqA... |
35280091ad828eea05641d57759ca437c44399a8.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<math.h>
#include<time.h>
#include<stdexcept>
#include<iostream>
using namespace std;
int NUMBER_OF_ELEMENTS = 8;
int SIZE = NUMBER_OF_ELEMENTS*sizeof(int);
__global__ void kernel_sum( int* A, int* B, int* C, int NUMBE... | 35280091ad828eea05641d57759ca437c44399a8.cu | #include<math.h>
#include<time.h>
#include<stdexcept>
#include<iostream>
using namespace std;
int NUMBER_OF_ELEMENTS = 8;
int SIZE = NUMBER_OF_ELEMENTS*sizeof(int);
__global__ void kernel_sum( int* A, int* B, int* C, int NUMBERofELEMENTS);
void sum( int* A, int* B, int* C, int n_el);
int main()
{
//allocat... |
f48ac5b8ba074a91769b945162520e045ce2b911.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* Copyright (c) 2016 by Contributors
* \file lsoftmax.cu
* \brief LSoftmax from <Large-Margin Softmax Loss for Convolutional Neural Networks>
* \author luoyetx
*/
#include "./lsoftmax-inl.h"
namespace mshadow {
namespace c... | f48ac5b8ba074a91769b945162520e045ce2b911.cu | /*!
* Copyright (c) 2016 by Contributors
* \file lsoftmax.cu
* \brief LSoftmax from <Large-Margin Softmax Loss for Convolutional Neural Networks>
* \author luoyetx
*/
#include "./lsoftmax-inl.h"
namespace mshadow {
namespace cuda {
namespace {
// workspace variables
enum LSoftmaxTempSpaceType {kCost, kCosmt, kK,... |
f2d9f29bbbb021c3c0fe73a109c473481361ca9e.hip | // !!! This is a file automatically generated by hipify!!!
#pragma once
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <device_launch_parameters.h>
#include <stdlib.h>
#include <time.h>
#include <Windows.h>
/* After checking in many different forums, we have discovered that for some reason
Visual Studio In... | f2d9f29bbbb021c3c0fe73a109c473481361ca9e.cu | #pragma once
#include <stdio.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <stdlib.h>
#include <time.h>
#include <Windows.h>
/* After checking in many different forums, we have discovered that for some reason
Visual Studio Intellisense does not recognize the <<< >>> nomenclature, so we
... |
13f9e41082381dbf8676cbc17d0e1b17681b26c4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#ifndef __FACE_DETECTION_MAIN
#define __FACE_DETECTION_MAIN
#include "../easypng/png.h"
#include "../util/png2arrays.h"
#include "kernels.hip"
void do_face_detection_cuda(float * r, float * g, float * b, int width, int height) {
... | 13f9e41082381dbf8676cbc17d0e1b17681b26c4.cu | #ifndef __FACE_DETECTION_MAIN
#define __FACE_DETECTION_MAIN
#include "../easypng/png.h"
#include "../util/png2arrays.h"
#include "kernels.cu"
void do_face_detection_cuda(float * r, float * g, float * b, int width, int height) {
int size = width * height;
cudaError_t cuda_ret;
//allocate the device input a... |
618be6f5e48a21bf66fe8e6da6aa629ef97c71da.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//
// auto-generated by op2.py
//
//user function
__device__ void update_gpu( const double *qold, double *q, double *res,
const double *adt, double *rms) {
double del, adti, rmsl;
rmsl = 0.0f;
adti = 1.0f ... | 618be6f5e48a21bf66fe8e6da6aa629ef97c71da.cu | //
// auto-generated by op2.py
//
//user function
__device__ void update_gpu( const double *qold, double *q, double *res,
const double *adt, double *rms) {
double del, adti, rmsl;
rmsl = 0.0f;
adti = 1.0f / (*adt);
for (int n = 0; n < 4; n++) {
del = adti * res[n];
q[n] = qold[n] -... |
99607953679a4f8475a6ddb08d2a572b7d63f1bb.hip | // !!! This is a file automatically generated by hipify!!!
#include "data_source.hpp"
#include <iostream>
#include <cstdlib>
#include <hip/hip_runtime_api.h>
#include <thrust/reduce.h>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
template <typename T>
struct LARGERT
{
__host__ __device__ __forcei... | 99607953679a4f8475a6ddb08d2a572b7d63f1bb.cu | #include "data_source.hpp"
#include <iostream>
#include <cstdlib>
#include <cuda_runtime_api.h>
#include <thrust/reduce.h>
#include <thrust/device_ptr.h>
#include <thrust/device_vector.h>
template <typename T>
struct LARGERT
{
__host__ __device__ __forceinline__
T operator()(const T& x, const T& y) const {
f... |
29ab2247c4d4101bb2bb9d2f3b975b579f64ca0f.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
... | 29ab2247c4d4101bb2bb9d2f3b975b579f64ca0f.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... |
831e3a6281f191ca605835ea52b8e54bcabf5505.hip | // !!! This is a file automatically generated by hipify!!!
/* *******************************************************
* Created By Ethan Kreloff April 4th, 2014.
* *******************************************************
* Based off of code from CSCI 5239/4239 Advanced Computer
* Graphics at the University of Colora... | 831e3a6281f191ca605835ea52b8e54bcabf5505.cu | /* *******************************************************
* Created By Ethan Kreloff April 4th, 2014.
* *******************************************************
* Based off of code from CSCI 5239/4239 Advanced Computer
* Graphics at the University of Colorado, Boulder.
* *******************************************... |
54f52f6a2ed20dac53d7bc17653b401d6151d108.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken fro... | 54f52f6a2ed20dac53d7bc17653b401d6151d108.cu | #include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken from http://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functio... |
411e9fabe198e54fb18cf7d1c85a72bb36542d1b.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <hiprand/hiprand_kernel.h>
#include <math_constants.h>
#include <hip/hip_runtime.h>
/* #define N 20000 */
/* #define GRID_D1 20 */
/* #define GRID_D2 2 */
/* #define BLOCK_D1 512 */... | 411e9fabe198e54fb18cf7d1c85a72bb36542d1b.cu | #include <stdio.h>
#include <stdlib.h>
#include <cuda.h>
#include <curand_kernel.h>
#include <math_constants.h>
#include <cuda_runtime.h>
/* #define N 20000 */
/* #define GRID_D1 20 */
/* #define GRID_D2 2 */
/* #define BLOCK_D1 512 */
/* #define BLOCK_D2 1 */
/* #define BLOCK_D3 1 */
extern "C"
{
__global__ void... |
bfb07396897444014fa6599e7354e344453ab0e0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of t... | bfb07396897444014fa6599e7354e344453ab0e0.cu | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
ebc232238523654a7ae929aa79aaae95252ac5db.hip | // !!! This is a file automatically generated by hipify!!!
#include <torch/serialize/tensor.h>
#include <ATen/ATen.h>
#include <ATen/hip/HIPContext.h>
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
namespace {
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (size_t i = blockIdx.x... | ebc232238523654a7ae929aa79aaae95252ac5db.cu | #include <torch/serialize/tensor.h>
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>
#include <cuda.h>
#include <cuda_runtime.h>
namespace {
#define CUDA_1D_KERNEL_LOOP(i, n) \
for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \
i += blockDim.x * gridDi... |
745903e1b8262cad07b6f583e297d2424097dec2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zgecsrmv.cu normal z -> d, Fri Jan 30 19... | 745903e1b8262cad07b6f583e297d2424097dec2.cu | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from zgecsrmv.cu normal z -> d, Fri Jan 30 19:00:28 2015
*/
#include "common_magma.h"
#if (GPUSHMEM < 200)
#define BLOCK_SIZE 25... |
5c8280cf0d6e759bf8115cc74c2ce781412cd9c0.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <hip/hip_runtime.h>
#include "common.h"
#include "shared.h"
#include "efficient.h"
#include "device_launch_parameters.h"
#define checkCUDAErrorWithLine(msg) checkCUDAError(msg, __LINE__)
//#define blockSize 128
int* dev... | 5c8280cf0d6e759bf8115cc74c2ce781412cd9c0.cu | #include <cuda.h>
#include <cuda_runtime.h>
#include "common.h"
#include "shared.h"
#include "efficient.h"
#include "device_launch_parameters.h"
#define checkCUDAErrorWithLine(msg) checkCUDAError(msg, __LINE__)
//#define blockSize 128
int* dev_idata_shared;
int* padded_idata_shared;
namespace StreamCompaction {
n... |
6f9ce54d997bfb3b601f272c22fd3e65ff766596.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <vector>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <time.h>
#include <helper_cuda.h>
#include <helper_functions.h>
__global__
void reco3d(int n, doub... | 6f9ce54d997bfb3b601f272c22fd3e65ff766596.cu | #include <stdio.h>
#include <iostream>
#include <vector>
#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
#include <time.h>
#include <helper_cuda.h>
#include <helper_functions.h>
__global__
void reco3d(int n, double *r, double *s,double *phi,double *z)
{
// printf("check %d\n",n);
int i = b... |
246a3059dcf64d27bbf843e023d88bc34c507c47.hip | // !!! This is a file automatically generated by hipify!!!
/*------------------------------*/
/* ALL DEVICE MEMORY OPERATIONS */
/* IMPLEMENTATION */
/* (HIGH LEVEL) */
/*------------------------------*/
#include <iostream>
/*****************
* NAMESPACES *
* __________ *
*****************/
u... | 246a3059dcf64d27bbf843e023d88bc34c507c47.cu | /*------------------------------*/
/* ALL DEVICE MEMORY OPERATIONS */
/* IMPLEMENTATION */
/* (HIGH LEVEL) */
/*------------------------------*/
#include <iostream>
/*****************
* NAMESPACES *
* __________ *
*****************/
using namespace std;
using HostSpace = HostMemory<datatype... |
b8f686c90dcc44a0314dcf323e19cc32c8938c9f.hip | // !!! This is a file automatically generated by hipify!!!
#include "../common/common.h"
#include "hip/hip_runtime.h"
#include "stdio.h"
__global__ void gpuRecursiveReduce2(int *g_idata, int *g_odata, int iStride, int const iDim){
int *idata = g_idata + blockIdx.x*iDim;
// stop condition
if(iStride == 1... | b8f686c90dcc44a0314dcf323e19cc32c8938c9f.cu | #include "../common/common.h"
#include "cuda_runtime.h"
#include "stdio.h"
__global__ void gpuRecursiveReduce2(int *g_idata, int *g_odata, int iStride, int const iDim){
int *idata = g_idata + blockIdx.x*iDim;
// stop condition
if(iStride == 1 && threadIdx.x == 0){
g_odata[blockIdx.x] = idata[0]+... |
52600a0b751ae3da6e211e1f70e89880a060bddd.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
*... | 52600a0b751ae3da6e211e1f70e89880a060bddd.cu | /* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
920801b4bda983df86d41945cdb42fd9e97f5e84.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 920801b4bda983df86d41945cdb42fd9e97f5e84.cu | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
8e2b156af1878047d1edf7b76da86dc781bb81b2.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* Shady Boukhary
* Midwestern State University
* CMPS 4563 - Parallel Distributed Computing - GPU Programming
* February 26th, 2... | 8e2b156af1878047d1edf7b76da86dc781bb81b2.cu | /*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
* Shady Boukhary
* Midwestern State University
* CMPS 4563 - Parallel Distributed Computing - GPU Programming
* February 26th, 2018
*
*
* CUDA Parallel Code that computes the matrix multiplication of 2 matrices of ... |
98ae64b40e5d892af0b07b351caf3a11644ff9b1.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
... | 98ae64b40e5d892af0b07b351caf3a11644ff9b1.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... |
37b915297928a62639ac2d094055bfa64507fa84.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
//pass
//--gridDim=[40,51] --blockDim=[8,8]
#include "common.h"
__global__ void NLM(
TColor *dst,
int imageW,
int imageH,
float Noise,
float lerpC
)
{
__requires(imageW == 320);
const int ix = blockDim.... | 37b915297928a62639ac2d094055bfa64507fa84.cu | //pass
//--gridDim=[40,51] --blockDim=[8,8]
#include "common.h"
__global__ void NLM(
TColor *dst,
int imageW,
int imageH,
float Noise,
float lerpC
)
{
__requires(imageW == 320);
const int ix = blockDim.x * blockIdx.x + threadIdx.x;
const int iy = blockDim.y * blockIdx.y + threadIdx.y;
... |
abe29fe57e9e63670519d3b7c17a8e8e8a359363.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... | abe29fe57e9e63670519d3b7c17a8e8e8a359363.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... |
215a5d3cf5a777c1c45932134ae8921e0401094c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "AssignRCut.h"
#include "BoxGeometry.h"
AssignRCut::
AssignRCut ()
: malloced (false)
{
}
AssignRCut::
~AssignRCut ()
{
freeAll();
}
void AssignRCut::
reinit (const MDSystem & sys,
const AdaptRCut & arc,
const In... | 215a5d3cf5a777c1c45932134ae8921e0401094c.cu | #include "AssignRCut.h"
#include "BoxGeometry.h"
AssignRCut::
AssignRCut ()
: malloced (false)
{
}
AssignRCut::
~AssignRCut ()
{
freeAll();
}
void AssignRCut::
reinit (const MDSystem & sys,
const AdaptRCut & arc,
const IndexType & NThread)
{
freeAll ();
myBlockDim.y = 1;
myBlockDim.z = 1;
myBlockDim.... |
cf37449dfb1fc93294c610cb36c1b274ea69ea53.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "DataLayerSpiking.h"
#include "opencv2/opencv.hpp"
#include <vector>
#include <helper_functions.h>
#include <helper_cuda.h>
#include <math.h>
//#include <thread>
#include "../common/Config.h"
#include "../common/cuBase.h"
#... | cf37449dfb1fc93294c610cb36c1b274ea69ea53.cu | #include "DataLayerSpiking.h"
#include "opencv2/opencv.hpp"
#include <vector>
#include <helper_functions.h>
#include <helper_cuda.h>
#include <math.h>
//#include <thread>
#include "../common/Config.h"
#include "../common/cuBase.h"
#include "../common/util.h"
/*
* dim3 block = dim3(batch, outputAmount);
* dim3 threa... |
425b549694ebfcd02a08f999b7e7a5779133bc50.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "asvgf/asvgf.h"
#include "kernel/pt_common.h"
#include "cuda/cudadefs.h"
#include "cuda/helper_math.h"
#include "cuda/cudautil.h"
#include "cuda/cudamemory.h"
#include "aten4idaten.h"
#if 0
__device__ inline bool isEqua... | 425b549694ebfcd02a08f999b7e7a5779133bc50.cu | #include "asvgf/asvgf.h"
#include "kernel/pt_common.h"
#include "cuda/cudadefs.h"
#include "cuda/helper_math.h"
#include "cuda/cudautil.h"
#include "cuda/cudamemory.h"
#include "aten4idaten.h"
#if 0
__device__ inline bool isEqualInt2(const int2& a, const int2& b)
{
return (a.x == b.x) && (a.y == b.y);
}
__glob... |
63ca046bff415aa5924232d7ef56557e903730f8.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 "matrixNorm.cu"
#include<chrono>
#include<iostream>
using namespa... | 63ca046bff415aa5924232d7ef56557e903730f8.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 "matrixNorm.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24... |
d7634eab56b9691776b75ef2701103cc772e52e3.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* CUDA kernels for the feature tracker
* feature_tracker_cuda_tools.cu
*
* Copyright (c) 2019-2020 Balazs Nagy,
* Robotics and Perception Group, University of Zurich
* All rights reserved.
*
* Redistribution and use in s... | d7634eab56b9691776b75ef2701103cc772e52e3.cu | /*
* CUDA kernels for the feature tracker
* feature_tracker_cuda_tools.cu
*
* Copyright (c) 2019-2020 Balazs Nagy,
* Robotics and Perception Group, University of Zurich
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
755ea1cb9284cda21f0040c0b5b1e19f27e20113.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
using Point = double3;
struct Ref {
Point* pos;
Point* dir;
double* distance;
};
struct View {
int size;
Point* pos;
Point* dir;
double* distance;
__device__ Ref operator[](int i) const {
return {pos + i, dir ... | 755ea1cb9284cda21f0040c0b5b1e19f27e20113.cu | using Point = double3;
struct Ref {
Point* pos;
Point* dir;
double* distance;
};
struct View {
int size;
Point* pos;
Point* dir;
double* distance;
__device__ Ref operator[](int i) const {
return {pos + i, dir + i, distance + i};
}
};
__device__ inline void move_impl(const Ref& ref) {
const d... |
beca52fe62dde351d3a54bc7ace2c3ecf8dad9ec.hip | // !!! This is a file automatically generated by hipify!!!
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/sequence.h>
#include <hipfft.h>
// includes, project
#include <hip/hip_runtime.h>
#include <helper_functions.h>
#include <helper_cuda.h>
#include <iostream>
t... | beca52fe62dde351d3a54bc7ace2c3ecf8dad9ec.cu |
#include <vector>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/sequence.h>
#include <cufft.h>
// includes, project
#include <cuda_runtime.h>
#include <helper_functions.h>
#include <helper_cuda.h>
#include <iostream>
typedef float2 Complex;
//hsl=-2./((pi^2)*(4*n.*n-1))/dYL;
stru... |
9b556bc10e3e412520d0b65898ca0af5898263e9.hip | // !!! This is a file automatically generated by hipify!!!
#include "chainerx/cuda/cuda_device.h"
#include <cstdint>
#include <mutex>
#include <type_traits>
#include <rocblas.h>
#include <hip/hip_runtime.h>
#include <cuda_fp16.hpp>
#include "chainerx/array.h"
#include "chainerx/backend_util.h"
#include "chainerx/cud... | 9b556bc10e3e412520d0b65898ca0af5898263e9.cu | #include "chainerx/cuda/cuda_device.h"
#include <cstdint>
#include <mutex>
#include <type_traits>
#include <cublas_v2.h>
#include <cuda_runtime.h>
#include <cuda_fp16.hpp>
#include "chainerx/array.h"
#include "chainerx/backend_util.h"
#include "chainerx/cuda/cublas.h"
#include "chainerx/cuda/cuda_runtime.h"
#include... |
5dc02a49829b05578ef5b4b67dff04b24a6ab289.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 "sync_conv_groups.cu"
#include<chrono>
#include<iostream>
using n... | 5dc02a49829b05578ef5b4b67dff04b24a6ab289.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 "sync_conv_groups.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},... |
8b3fe1974fd39fd2bc4a5dafa41960280119fb2a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* University of Illinois Open Source License
* Copyright 2010 Luthey-Schulten Group,
* All rights reserved.
*
* Developed by: Luthey-Schulten Group
* University of Illinois at Urbana-Champaign
* http://www.... | 8b3fe1974fd39fd2bc4a5dafa41960280119fb2a.cu | /*
* University of Illinois Open Source License
* Copyright 2010 Luthey-Schulten Group,
* All rights reserved.
*
* Developed by: Luthey-Schulten Group
* University of Illinois at Urbana-Champaign
* http://www.scs.uiuc.edu/~schulten
*
* Permission is hereby granted, free of charge, to any person... |
08fe5b31b2d1d970b3a1f341eaa97e5e3350bd67.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2019, 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... | 08fe5b31b2d1d970b3a1f341eaa97e5e3350bd67.cu | /*
* Copyright (c) 2018-2019, 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 required ... |
f99c73b50a0ab29e0a8b3e8585e6a37e3f33a26b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
August 2013
@generated s Wed Aug 14 12:16:37 2013
*/
#include "common_magm... | f99c73b50a0ab29e0a8b3e8585e6a37e3f33a26b.cu | /*
-- MAGMA (version 1.4.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
August 2013
@generated s Wed Aug 14 12:16:37 2013
*/
#include "common_magma.h"
// 512 is maximum number of threads for CUDA capability 1.x
#if (GPUSHMEM < 200)
... |
24b5c277382c74f89757bee7725c666179a2ceb0.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution a... | 24b5c277382c74f89757bee7725c666179a2ceb0.cu | /******************************************************************************
* Copyright (c) 2011, Duane Merrill. All rights reserved.
* Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
7322efec6d77113889cb90d67488da812a97e695.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__ void vecAdd(double *a, double *b, double *c, int n)
{
int id = blockIdx.x*blockDim.x+threadIdx.x;
if (id < n)
c[id] = a[id] + b[id];
}
in... | 7322efec6d77113889cb90d67488da812a97e695.cu | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
__global__ void vecAdd(double *a, double *b, double *c, int n)
{
int id = blockIdx.x*blockDim.x+threadIdx.x;
if (id < n)
c[id] = a[id] + b[id];
}
int main( int argc, char* argv[] )
{
int n = 10;
double *h_a;
doubl... |
3c2dfbd4122c778bd73c4a50ace58a93a6264a29.hip | // !!! This is a file automatically generated by hipify!!!
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <iostream>
#define DTYPE float
__global__ void kernel(float *a, float *x, float* buff,int Xblocks,int size)
{
int i=threadIdx.x+blockIdx.x*blockDi... | 3c2dfbd4122c778bd73c4a50ace58a93a6264a29.cu | #include <cuda.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <iostream>
#define DTYPE float
__global__ void kernel(float *a, float *x, float* buff,int Xblocks,int size)
{
int i=threadIdx.x+blockIdx.x*blockDim.x;
int j=threadIdx.y+blockIdx.y*blockDim.y;
if (i<size && j<... |
14df90d83ff554562d2e470f41258e8fbbc5c953.hip | // !!! This is a file automatically generated by hipify!!!
/*
-- 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
@author Weifeng Liu
*/
// CSC Sync-Free SpTRSM... | 14df90d83ff554562d2e470f41258e8fbbc5c953.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
@author Weifeng Liu
*/
// CSC Sync-Free SpTRSM kernel
// see paper by W. Liu, A. Li, J. D. Hogg, I. S. Du... |
e286d0971a065c77fe5cda298f690e310f839fc1.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// -1/target probability if target = 1.0, 0.0 otherwise
__global__ void backwardLogisticLossKernel (float *predictions, float *targets, float *result)
{
int globalId = blockIdx.x * blockDim.x + threadIdx.x;
result[globalId... | e286d0971a065c77fe5cda298f690e310f839fc1.cu | // -1/target probability if target = 1.0, 0.0 otherwise
__global__ void backwardLogisticLossKernel (float *predictions, float *targets, float *result)
{
int globalId = blockIdx.x * blockDim.x + threadIdx.x;
result[globalId] = targets[globalId] * -(1.0/predictions[globalId]);
} |
4e96cc4813c885b4e6a34efe21e3983f161999fa.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 4e96cc4813c885b4e6a34efe21e3983f161999fa.cu | /*
* Copyright (c) 2018-2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
d3e73ddad73afee07f46f4799ac767ab19860dd5.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "kernel.h"
__global__ void updatePointsByTime(Point* allPoints, Point* result, int numOfPoints, double time)
{
int index = (blockIdx.x*blockDim.x) + threadIdx.x;
if (index < numOfPoints) {
result[index].x = allPoints[in... | d3e73ddad73afee07f46f4799ac767ab19860dd5.cu | #include "kernel.h"
__global__ void updatePointsByTime(Point* allPoints, Point* result, int numOfPoints, double time)
{
int index = (blockIdx.x*blockDim.x) + threadIdx.x;
if (index < numOfPoints) {
result[index].x = allPoints[index].orgx + allPoints[index].vx * time;
result[index].y = allPoints[index].orgy + allP... |
617a2bfbf84efeccfac9d3ae5fee51adcff49ff2.hip | // !!! This is a file automatically generated by hipify!!!
/***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are... | 617a2bfbf84efeccfac9d3ae5fee51adcff49ff2.cu | /***************************************************************************************************
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are me... |
0ee13b5026b93f7ccc2c55e567598ad1b6b7ddcf.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
__global__ void convolution_2D_basic_kernel(float* in, float* mask, float* out, int mask_width, int width, int height) {
int row = blockIdx.x * bloc... | 0ee13b5026b93f7ccc2c55e567598ad1b6b7ddcf.cu | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <stdlib.h>
__global__ void convolution_2D_basic_kernel(float* in, float* mask, float* out, int mask_width, int width, int height) {
int row = blockIdx.x * blockDim.x + threadIdx.x;
int col = blockIdx.y * blockDim.y + ... |
f6d1dfeeaf514b17175d60fa2934f6bfaa2fb3d5.hip | // !!! This is a file automatically generated by hipify!!!
#include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
#include<hip/hip_runtime_api.h>
#include<hipfft.h>
#include"comfft.h"
int fft2d(hipfftComplex *src_data, hipfftComplex *dst_data, int nx, int ny){
hipfftHandle plan;
hipfftComplex *dev_src, *dev... | f6d1dfeeaf514b17175d60fa2934f6bfaa2fb3d5.cu | #include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
#include<cuda_runtime_api.h>
#include<cufft.h>
#include"comfft.h"
int fft2d(cufftComplex *src_data, cufftComplex *dst_data, int nx, int ny){
cufftHandle plan;
cufftComplex *dev_src, *dev_dst;
//Allocate memory on the GPU and copy over the src array
... |
9a6283994826bfcf35c5e6c78aab088cf0ff06f4.hip | // !!! This is a file automatically generated by hipify!!!
#define GLM_FORCE_CUDA
#include <stdio.h>
#include <hip/hip_runtime.h>
#include <cmath>
#include <glm/glm.hpp>
#include "utilityCore.hpp"
#include "kernel.h"
// LOOK-2.1 potentially useful for doing grid-based neighbor search
#ifndef imax
#define imax( a, b ) ... | 9a6283994826bfcf35c5e6c78aab088cf0ff06f4.cu | #define GLM_FORCE_CUDA
#include <stdio.h>
#include <cuda.h>
#include <cmath>
#include <glm/glm.hpp>
#include "utilityCore.hpp"
#include "kernel.h"
// LOOK-2.1 potentially useful for doing grid-based neighbor search
#ifndef imax
#define imax( a, b ) ( ((a) > (b)) ? (a) : (b) )
#endif
#ifndef imin
#define imin( a, b ) ... |
4cfa37dca268a48417dd8aca30cc6da729b859e6.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
Copyright (C) 2016 Bruno Golosio
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, either version 3 of the Lice... | 4cfa37dca268a48417dd8aca30cc6da729b859e6.cu | /*
Copyright (C) 2016 Bruno Golosio
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, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that... |
7582c5bb174b08cd3dd82a0983d6c0c66251af4a.hip | // !!! This is a file automatically generated by hipify!!!
//pass
//--warp-sync=32 --blockDim=32 --gridDim=1 --equality-abstraction --no-inline
#include <stdio.h>
#include <assert.h>
#include <hip/hip_runtime.h>
#define N 2//32
__global__ void foo(int * A, int * B) {
A[threadIdx.x] = 1;
volatile int x = A[thr... | 7582c5bb174b08cd3dd82a0983d6c0c66251af4a.cu | //pass
//--warp-sync=32 --blockDim=32 --gridDim=1 --equality-abstraction --no-inline
#include <stdio.h>
#include <assert.h>
#include <cuda.h>
#define N 2//32
__global__ void foo(int * A, int * B) {
A[threadIdx.x] = 1;
volatile int x = A[threadIdx.x];
B[threadIdx.x] = 1;
volatile int y = A[threadIdx.x]... |
e1c11aa3a5fd31f9cd7f8f70130a690e098c14f4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weigh... | e1c11aa3a5fd31f9cd7f8f70130a690e098c14f4.cu | // Homework 2
// Image Blurring
//
// In this homework we are blurring an image. To do this, imagine that we have
// a square array of weight values. For each pixel in the image, imagine that we
// overlay this square array of weights on top of the image such that the center
// of the weight array is aligned with the c... |
72e1197792f3bf5460bfbd094bbba792d0f4c72e.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
@generated from zswapblk.cu normal z -> d, Tue Sep 2 ... | 72e1197792f3bf5460bfbd094bbba792d0f4c72e.cu | /*
-- MAGMA (version 1.5.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2014
@generated from zswapblk.cu normal z -> d, Tue Sep 2 12:38:16 2014
*/
#include "common_magma.h"
#define BLOCK_SIZE 64
/*******************... |
8227d0dc6a9255fb4453b9f0823f8aa55abdef19.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/device/common_cub.h"
#include "dragon/utils/math_functions.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernel {
namespace {
#... | 8227d0dc6a9255fb4453b9f0823f8aa55abdef19.cu | #ifdef USE_CUDA
#include "dragon/core/context_cuda.h"
#include "dragon/utils/device/common_cub.h"
#include "dragon/utils/math_functions.h"
#include "dragon/utils/op_kernels.h"
namespace dragon {
namespace kernel {
namespace {
#if __CUDA_ARCH__ >= 350
#define LDG(x, i) __ldg(x + i)
#define LDG2(x, i) convert::To<Ac... |
3d266200ba784e01b03c3f03c338042c6b573612.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "common.h"
#include "cpu_anim.h"
#include <vector>
static constexpr int DIM = 1024;
static constexpr float MAX_TEMP = 1.0f;
static constexpr float MIN_TEMP = 0.0001f;
static constexpr float SPEED = 0.25f;
texture<float, 2... | 3d266200ba784e01b03c3f03c338042c6b573612.cu | #include "common.h"
#include "cpu_anim.h"
#include <vector>
static constexpr int DIM = 1024;
static constexpr float MAX_TEMP = 1.0f;
static constexpr float MIN_TEMP = 0.0001f;
static constexpr float SPEED = 0.25f;
texture<float, 2> tex_const;
texture<float, 2> tex_in;
texture<float, 2> tex_out;
__global__ void copy_... |
9942cfcbe5172cc909d76eee285300e9435f7579.hip | // !!! This is a file automatically generated by hipify!!!
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a co... | 9942cfcbe5172cc909d76eee285300e9435f7579.cu | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You ca... |
0b9a47f45f9a6339648083c2d329c60cfe8ac1b6.hip | // !!! This is a file automatically generated by hipify!!!
#include <ATen/native/TensorIterator.h>
#include <ATen/native/hip/Reduce.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/Dispatch.h>
#include <ATen/hip/NumericLimits.cuh>
#include <THH/THHNumerics.cuh>
#include... | 0b9a47f45f9a6339648083c2d329c60cfe8ac1b6.cu | #include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Reduce.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/Dispatch.h>
#include <ATen/cuda/NumericLimits.cuh>
#include <THC/THCNumerics.cuh>
#include <ATen/native/ReduceOps.h>
#include<ATen/native/ReduceAll... |
d440bb3a1b38f53373322aed2af60f017613d326.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*!
* \brief Demonstrate how HyperQ allows supporting devices to avoid false
* dependencies between kernels in different streams.
*/
#include "cuda_util.h"
// This subroutine does no real work but runs for at least the specif... | d440bb3a1b38f53373322aed2af60f017613d326.cu | /*!
* \brief Demonstrate how HyperQ allows supporting devices to avoid false
* dependencies between kernels in different streams.
*/
#include "cuda_util.h"
// This subroutine does no real work but runs for at least the specified number
// of clock ticks.
__global__ void KernelA(clock_t *d_o, clock_t clock_count)... |
595e6ea829613addc4162055d57fdc71968eced4.hip | // !!! This is a file automatically generated by hipify!!!
#include "opencv2/gpu/device/common.hpp"
#include <opencv2/core/core.hpp>
using namespace cv::gpu;
#include "hip/hip_runtime.h"
#include "device_launch_parameters.h"
#include "../Matting/matting.h"
#if HAVE_GPU ==1
#define BLOCK_WIDE 64
#define BLOCK_HIGH 8
#d... | 595e6ea829613addc4162055d57fdc71968eced4.cu | #include "opencv2/gpu/device/common.hpp"
#include <opencv2/core/core.hpp>
using namespace cv::gpu;
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include "../Matting/matting.h"
#if HAVE_GPU ==1
#define BLOCK_WIDE 64
#define BLOCK_HIGH 8
#define alpha_top 40
#define alpha_bottom 40
#define alpha_left ... |
e4f285dfea6502a85406a7a752fad78dcd0e28a9.hip | // !!! This is a file automatically generated by hipify!!!
#include "RecurrentNeuralNetwork/ManageDescriptor/LibraryHandleDropoutRNN.h"
#include "RecurrentNeuralNetwork/Modules/GetWeightsAndBias.h"
#include "RecurrentNeuralNetwork/Parameters.h"
#include "RecurrentNeuralNetwork/WeightSpace.h"
#include "Tensors/ManageDes... | e4f285dfea6502a85406a7a752fad78dcd0e28a9.cu | #include "RecurrentNeuralNetwork/ManageDescriptor/LibraryHandleDropoutRNN.h"
#include "RecurrentNeuralNetwork/Modules/GetWeightsAndBias.h"
#include "RecurrentNeuralNetwork/Parameters.h"
#include "RecurrentNeuralNetwork/WeightSpace.h"
#include "Tensors/ManageDescriptor/GetNDTensorDescriptorValues.h"
#include "Tensors/Ma... |
2aff7ec5c401768d1d350b63c551cf01d9d9ec2d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Attention : Extension .cu
#include <iostream>
#include "cudaTools.h"
#include "Device.h"
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\... | 2aff7ec5c401768d1d350b63c551cf01d9d9ec2d.cu | // Attention : Extension .cu
#include <iostream>
#include "cudaTools.h"
#include "Device.h"
using std::cout;
using std::endl;
/*----------------------------------------------------------------------*\
|* Declaration *|
\*---------------------------------------------------------------------*/
/*------------... |
0cc209983cdd41bb7f4947d53acc8e9e0cdbfe03.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// BUG IN SRAD APPLICATIONS SEEMS TO BE SOMEWHERE IN THIS CODE, MEMORY CORRUPTION
// srad kernel
__global__ void srad2( fp d_lambda,
int d_Nr,
int d_Nc,
long d_Ne,
int *d_iN,
i... | 0cc209983cdd41bb7f4947d53acc8e9e0cdbfe03.cu | // BUG IN SRAD APPLICATIONS SEEMS TO BE SOMEWHERE IN THIS CODE, MEMORY CORRUPTION
// srad kernel
__global__ void srad2( fp d_lambda,
int d_Nr,
int d_Nc,
long d_Ne,
int *d_iN,
int *d_iS,
int *d_jE,
int *d_jW,
fp *d_dN,
fp ... |
4fe12c95a439a723ca8701f8406d096928965858.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 "transposeNoBankConflicts.cu"
#include<chrono>
#include<iostream>... | 4fe12c95a439a723ca8701f8406d096928965858.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 "transposeNoBankConflicts.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},... |
f29d6c1ab838a42159cb9d963a88b348731eb1bb.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 "__initSeq2.cu"
#include<chrono>
#include<iostream>
using namespa... | f29d6c1ab838a42159cb9d963a88b348731eb1bb.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 "__initSeq2.cu"
#include<chrono>
#include<iostream>
using namespace std;
using namespace std::chrono;
int blocks_[20][2] = {{8,8},{16,16},{24,24... |
9af923648afdaf61723a08b9baae92ee6f065b35.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@author Azzam Haidar
@author Tingxing Dong
... | 9af923648afdaf61723a08b9baae92ee6f065b35.cu | /*
-- MAGMA (version 1.7.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date September 2015
@author Azzam Haidar
@author Tingxing Dong
@precisions normal z -> s d c
*/
#include "common_magma.h"
#include "magmablas.h"
#... |
12e44900865ee66ac12b36bc804066148953bde4.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License,... | 12e44900865ee66ac12b36bc804066148953bde4.cu | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* 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.
*
*... |
e7284a0ae05775ff7580b8730cb1ebdcaeda7aa7.hip | // !!! This is a file automatically generated by hipify!!!
/*
* Copyright (c) 2018-2019, 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... | e7284a0ae05775ff7580b8730cb1ebdcaeda7aa7.cu | /*
* Copyright (c) 2018-2019, 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 required ... |
922d47899850e2cf72a5ef67fc1d061ac1b52e32.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// printf.cu
/*
* Simple script to show how to print on a GPU.
* NOTE: I have no idea why, but this simply does not work unless
* you initialize an array on the GPU, then free it afterwards.
* Hence the hipMalloc() and hipFree()... | 922d47899850e2cf72a5ef67fc1d061ac1b52e32.cu | // printf.cu
/*
* Simple script to show how to print on a GPU.
* NOTE: I have no idea why, but this simply does not work unless
* you initialize an array on the GPU, then free it afterwards.
* Hence the cudaMalloc() and cudaFree() calls that do nothing.
*
* My assumption is that it has something to do with initia... |
8b88ff9f1a2220644fff6819c4a27df7842d9e57.hip | // !!! This is a file automatically generated by hipify!!!
// ########################################################################
// Practical Course: GPU Programming in Computer Vision
// Technical University of Munich, Computer Vision Group
// #####################################################################... | 8b88ff9f1a2220644fff6819c4a27df7842d9e57.cu | // ########################################################################
// Practical Course: GPU Programming in Computer Vision
// Technical University of Munich, Computer Vision Group
// ########################################################################
#include <iostream>
#include <string>
#include <opencv... |
89594314fb4dd69c55e864bc26f50e51a819be82.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... | 89594314fb4dd69c55e864bc26f50e51a819be82.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... |
3d71e61e5d212e7b6a82b2569fc5541a40e8d565.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
// Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, ... | 3d71e61e5d212e7b6a82b2569fc5541a40e8d565.cu | // Homework 1
// Color to Greyscale Conversion
//A common way to represent color images is known as RGBA - the color
//is specified by how much Red, Grean and Blue is in it.
//The 'A' stands for Alpha and is used for transparency, it will be
//ignored in this homework.
//Each channel Red, Blue, Green and Alpha is rep... |
a732aeccb97eb7ed7f9f5a5ba179aebdb1f4fd8d.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
/*
* Copyright (c) 2018, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*... | a732aeccb97eb7ed7f9f5a5ba179aebdb1f4fd8d.cu | /*
* Copyright (c) 2018, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
f49e5c8f5fec0d8b59172b7bb735e3ee5bb8320d.hip | // !!! This is a file automatically generated by hipify!!!
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/hip/Loops.cuh>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/BinaryOps.h>
// NOTE: CUDA on Windows requires that the enclos... | f49e5c8f5fec0d8b59172b7bb735e3ee5bb8320d.cu | #define TORCH_ASSERT_NO_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/BinaryOps.h>
// NOTE: CUDA on Windows requires that the enclosing function
// of a __device__ lambda not have internal l... |
df74dc58afa194f4a0ddaa1b2f8bb2700c736a27.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
#define TILE_WIDTH 100 // for shared kernel
#define DEBUG 0
typedef double Type;
void transpose_CPU(Type* in_, Type* out, int dim1, int dim2){
for(int n = 0; n<dim1*dim2; ... | df74dc58afa194f4a0ddaa1b2f8bb2700c736a27.cu | #include<stdio.h>
#include<stdlib.h>
#include<cuda.h>
#define TILE_WIDTH 100 // for shared kernel
#define DEBUG 0
typedef double Type;
void transpose_CPU(Type* in_, Type* out, int dim1, int dim2){
for(int n = 0; n<dim1*dim2; n++) {
int i = n/dim1;
int j = n%dim1;
out[n] = in_[dim2*j + i];... |
60287eb8b7fda1a9f7d50b486abe53df868d7507.hip | // !!! This is a file automatically generated by hipify!!!
// Copyright (c) 2017, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory (LLNL).
// LLNL-CODE-742473. All rights reserved.
//
// This file is part of HiOp. For details, see https://github.com/LLNL/hiop. HiOp
/... | 60287eb8b7fda1a9f7d50b486abe53df868d7507.cu | // Copyright (c) 2017, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory (LLNL).
// LLNL-CODE-742473. All rights reserved.
//
// This file is part of HiOp. For details, see https://github.com/LLNL/hiop. HiOp
// is released under the BSD 3-clause license (https://opens... |
37adeb77286be854edbd3574e7b66997e01e466e.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "SoftmaxExecution.hpp"
#include "core/TensorUtils.hpp"
namespace MNN {
namespace CUDA {
template <typename T>
__global__ void SOFTMAX(const T *input, T *output,
const int inside,
const int axis,
const int outsi... | 37adeb77286be854edbd3574e7b66997e01e466e.cu | #include "SoftmaxExecution.hpp"
#include "core/TensorUtils.hpp"
namespace MNN {
namespace CUDA {
template <typename T>
__global__ void SOFTMAX(const T *input, T *output,
const int inside,
const int axis,
const int outside,
const int count
) {
for (size_t i = blockIdx.x * blockDim.x + threadIdx.x; i... |
d49d527005a85b112fb9bbe1371f563856a2119c.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <cmath>
#include <cstring>
#include <algorithm>
#include <cudnn.h>
#include "common.h"
/**
* Compute the gradient of the convolution w.r.t. the input data.
*/
void ConvolutionBackwardDataHost(float *dy, int batch_size... | d49d527005a85b112fb9bbe1371f563856a2119c.cu | #include <cmath>
#include <cstring>
#include <algorithm>
#include <cudnn.h>
#include "common.h"
/**
* Compute the gradient of the convolution w.r.t. the input data.
*/
void ConvolutionBackwardDataHost(float *dy, int batch_size, int c_out, int h_out, int w_out,
float *w, int c_in, int kernel_h, int kernel_w, i... |
76db3cd2b92cca77a8bd0aa7fe0bf0b444b63591.hip | // !!! This is a file automatically generated by hipify!!!
#include "stdio.h"
#include "stdlib.h"
#include <hip/hip_runtime.h>
#define SIZE 10000
__global__
void dotProdKernel(int *A, int *B, int *C, int N){
int i = blockIdx.x * blockDim.x + threadIdx.x;
*C += A[i] * B[i];
}
void dotProd_CPU(int *A, int *B,... | 76db3cd2b92cca77a8bd0aa7fe0bf0b444b63591.cu | #include "stdio.h"
#include "stdlib.h"
#include <cuda.h>
#define SIZE 10000
__global__
void dotProdKernel(int *A, int *B, int *C, int N){
int i = blockIdx.x * blockDim.x + threadIdx.x;
*C += A[i] * B[i];
}
void dotProd_CPU(int *A, int *B, int *C, int N){
for (int i = 0; i < N; i++){
*C += A[i] *... |
6a7274bdcaf250bcf12331c77d0e3f29cb21869b.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "includes.h"
/* ==========================================================================
textureCube.cu
==========================================================================
Main wrapper + kernel that changes the co... | 6a7274bdcaf250bcf12331c77d0e3f29cb21869b.cu | #include "includes.h"
/* ==========================================================================
textureCube.cu
==========================================================================
Main wrapper + kernel that changes the colors of the four faces
*/
#define PI 3.1415926536f
// ----------------------------... |
f13027ea7703e0352c410a0aa583615e82216202.hip | // !!! This is a file automatically generated by hipify!!!
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <float.h>
#include <errno.h>
#include <stdint.h>
#include <hip/hip_runtime_api.h>
#define DIM 64
#define CEILING(x,y) (((x) + (y) - 1) / (y))
#define DIMVEC CEILING(DIM,4)
#de... | f13027ea7703e0352c410a0aa583615e82216202.cu | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <float.h>
#include <errno.h>
#include <stdint.h>
#include <cuda_runtime_api.h>
#define DIM 64
#define CEILING(x,y) (((x) + (y) - 1) / (y))
#define DIMVEC CEILING(DIM,4)
#define SHARED_MEMORY_DIM ((1<<15)+(1<<14)) // 48KB
#define N_THR... |
2721ba57fb15d6ffcc1c59fd8f998b6c61fc5cbc.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include "SART_cuda.h" // consists all required package and functions
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray const *prhs[])
{
// Macro for input and output
#define IN_IMG prhs[0]
#define PROJ prhs[1]
#define ... | 2721ba57fb15d6ffcc1c59fd8f998b6c61fc5cbc.cu | #include "SART_cuda.h" // consists all required package and functions
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, mxArray const *prhs[])
{
// Macro for input and output
#define IN_IMG prhs[0]
#define PROJ prhs[1]
#define GEO_PARA prhs[2]
#define ITER_PARA prhs[3]
#define OUT_IMG plhs[0]
#define OUT_ERR plhs[... |
b65b4ceadb46ed639360a2e2d05e42a2a54d1f6a.hip | // !!! This is a file automatically generated by hipify!!!
#include "hip/hip_runtime.h"
#include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken fro... | b65b4ceadb46ed639360a2e2d05e42a2a54d1f6a.cu | #include <stdio.h>
#include <assert.h>
#include <chrono>
#include <vector>
#include <algorithm>
#include <helper_cuda.h>
#include <helper_cuda_gl.h>
using namespace std;
/* ----- BEGIN Shared Library Export ----- */
// taken from http://stackoverflow.com/questions/2164827/explicitly-exporting-shared-library-functio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.