hip_filename
stringlengths
5
84
hip_content
stringlengths
79
9.69M
cuda_filename
stringlengths
4
83
cuda_content
stringlengths
19
9.69M
e7152101f56b393d2db37bff8b0bf64e48f31614.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef _TIMER_ #include "hip/hip_runtime_api.h" #endif #include "stdio.h" #define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) ) #define max(a,b) FORMA_MAX(a,b) #define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) ) #define min(a,b) FORMA_MIN(...
e7152101f56b393d2db37bff8b0bf64e48f31614.cu
#include "cuda.h" #ifdef _TIMER_ #include "cuda_profiler_api.h" #endif #include "stdio.h" #define FORMA_MAX(a,b) ( (a) > (b) ? (a) : (b) ) #define max(a,b) FORMA_MAX(a,b) #define FORMA_MIN(a,b) ( (a) < (b) ? (a) : (b) ) #define min(a,b) FORMA_MIN(a,b) #define FORMA_CEIL(a,b) ( (a) % (b) == 0 ? (a) / (b) : ((a) / (b)) ...
ecb353c126c2b8c3a4889385e13b85233d814782.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #define SIZEOFINT sizeof(int) const int INF = ((1 << 30) - 1); const dim3 block_dim(4, 32); const int B = 32; const int Share_Mem_Size = 64; int n, m; int *Dist; i...
ecb353c126c2b8c3a4889385e13b85233d814782.cu
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <cuda.h> #define SIZEOFINT sizeof(int) const int INF = ((1 << 30) - 1); const dim3 block_dim(4, 32); const int B = 32; const int Share_Mem_Size = 64; int n, m; int *Dist; int *Dist_cuda; void show_mat(int *start_p, int vertex_num){ for(int ...
02489c6e0497aa542c08a81f4c6051b72e1eb8ec.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2021 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 ...
02489c6e0497aa542c08a81f4c6051b72e1eb8ec.cu
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
5d4e438085f52719f708d53bbb4effd8c7b71f03.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "jacobi_iteration.h" __device__ void lock(int *mutex) { while(atomicCAS(mutex, 0, 1) != 0); return; } __device__ void unlock(int *mutex) { atomicExch(mutex, 0); return; } __global__ void jacobi_iteration_kernel_n...
5d4e438085f52719f708d53bbb4effd8c7b71f03.cu
#include "jacobi_iteration.h" __device__ void lock(int *mutex) { while(atomicCAS(mutex, 0, 1) != 0); return; } __device__ void unlock(int *mutex) { atomicExch(mutex, 0); return; } __global__ void jacobi_iteration_kernel_naive(float *A, float *B, unsigned int num_cols, unsigned int num_rows, float *x, double ...
8f3611f62295faf0f1fde49367fcd07580c3cfb3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "voxelize.cuh" // CUDA Global Memory variables //__device__ size_t voxel_count = 0; // How many voxels did we count //__device__ size_t triangles_seen_count = 0; // Sanity check __constant__ uint32_t morton256_x[256]; __c...
8f3611f62295faf0f1fde49367fcd07580c3cfb3.cu
#include "voxelize.cuh" // CUDA Global Memory variables //__device__ size_t voxel_count = 0; // How many voxels did we count //__device__ size_t triangles_seen_count = 0; // Sanity check __constant__ uint32_t morton256_x[256]; __constant__ uint32_t morton256_y[256]; __constant__ uint32_t morton256_z[256]; // Encode ...
cc67c8f8fba19c7ff9efd91305c84e7d8c1e4045.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void mean_array_kernel(float *src, int size, float alpha, float *avg) { const int i = blockIdx.x*blockDim.x + threadIdx.x; if (i >= size) return; avg[i] = avg[i] * (1 - alpha) + src[i] * alpha; src[...
cc67c8f8fba19c7ff9efd91305c84e7d8c1e4045.cu
#include "includes.h" __global__ void mean_array_kernel(float *src, int size, float alpha, float *avg) { const int i = blockIdx.x*blockDim.x + threadIdx.x; if (i >= size) return; avg[i] = avg[i] * (1 - alpha) + src[i] * alpha; src[i] = avg[i]; }
c0af4519696e3185ba22709ce36bf1032edd43d7.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "parallax/flowSequence.hpp" #include "./kernels/patchDifferenceFunction.cu" #include "backend/common/vectorOps.hpp" #include "backend/cuda/deviceB...
c0af4519696e3185ba22709ce36bf1032edd43d7.cu
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #include "parallax/flowSequence.hpp" #include "./kernels/patchDifferenceFunction.cu" #include "backend/common/vectorOps.hpp" #include "backend/cuda/deviceBuffer.hpp" #include "backend/cuda/deviceStream.hpp" #include "cuda/error.hpp" #include "...
ad0764ecc8a566cd1bea6397835728b50eb677bd.hip
// !!! This is a file automatically generated by hipify!!! #include "Logging.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> void fatal(const char *format, ...) { va_list args; fprintf(stderr, "Erreur fatale\n"); va_start(args, format); vfprintf(stderr, format, args); va_end(arg...
ad0764ecc8a566cd1bea6397835728b50eb677bd.cu
#include "Logging.h" #include <stdlib.h> #include <stdio.h> #include <stdarg.h> void fatal(const char *format, ...) { va_list args; fprintf(stderr, "Erreur fatale\n"); va_start(args, format); vfprintf(stderr, format, args); va_end(args); putc('\n', stderr); exit(1); } __host__ void ...
ab3d98be7b3fac4f8f9868eaa831b0caec0a2453.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <vector> #include <string> #include <ctime> #include <cstdio> #include "device_kernel_wrapper.h" #include "datatypes.h" #include "common.h" #include "memory_scheduler.h" __global__ void device_chain_tiled( return_...
ab3d98be7b3fac4f8f9868eaa831b0caec0a2453.cu
#include <vector> #include <string> #include <ctime> #include <cstdio> #include "device_kernel_wrapper.h" #include "datatypes.h" #include "common.h" #include "memory_scheduler.h" __global__ void device_chain_tiled( return_dt *ret, int n, const anchor_dt *a, control_dt *control, score_dt **max_tracker,...
4be3005aa8af30f389f83bf7bc08a73f2980ae8c.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <math.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including pointers // ...
4be3005aa8af30f389f83bf7bc08a73f2980ae8c.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <math.h> //----------------------------------------------------------------------------- // GpuConstantsPackage: a struct to hold many constants (including pointers // to allocated memory on the device) that can be // ...
a6a481621ec4238b007fe1f2800158402ea84ea4.hip
// !!! This is a file automatically generated by hipify!!! // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http:...
a6a481621ec4238b007fe1f2800158402ea84ea4.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...
a0eff5ab9fff9a275efb300f58d82e8a611a892a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" //pass //--blockDim=2048 --gridDim=64 __global__ void foo(int *r) { r[threadIdx.x + blockIdx.x * blockDim.x] = warpSize; }
a0eff5ab9fff9a275efb300f58d82e8a611a892a.cu
//pass //--blockDim=2048 --gridDim=64 __global__ void foo(int *r) { r[threadIdx.x + blockIdx.x * blockDim.x] = warpSize; }
7df2974779ef3570ca57543fe354bbc95de62623.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void Max (const int n, const float *top_temp, float *top_data, float *mask, const int mask_index){ int index = blockIdx.x * blockDim.x + threadIdx.x; if (index >= n) { return; } if (top_data[index] <...
7df2974779ef3570ca57543fe354bbc95de62623.cu
#include "includes.h" __global__ void Max (const int n, const float *top_temp, float *top_data, float *mask, const int mask_index){ int index = blockIdx.x * blockDim.x + threadIdx.x; if (index >= n) { return; } if (top_data[index] < top_temp[index]) { top_data[index] = top_temp[index]; mask[index] = mask_index; } }
a7d3c31b143feb56ade5cbacaf9069f0cc11db15.hip
// !!! This is a file automatically generated by hipify!!! #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <chrono> #include <hip/hip_runtime.h> #define MAX_THREADS_PER_BLOCK 256 #include "util.h" //Structure to hold a node information struct Node { int starting; int no_of_e...
a7d3c31b143feb56ade5cbacaf9069f0cc11db15.cu
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <chrono> #include <cuda.h> #define MAX_THREADS_PER_BLOCK 256 #include "util.h" //Structure to hold a node information struct Node { int starting; int no_of_edges; }; __global__ void Kernel(const Node* __restrict__ d_graph_node...
2c3e1ccf00ca07229e1523df93e7b4b16da9bf05.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" __global__ void big_add(int *a, int *b, int *c, unsigned int N){ // init thread id int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; // stride is for big arrays, i.e. bigger than threads we have int stride ...
2c3e1ccf00ca07229e1523df93e7b4b16da9bf05.cu
#include "includes.h" __global__ void big_add(int *a, int *b, int *c, unsigned int N){ // init thread id int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; // stride is for big arrays, i.e. bigger than threads we have int stride = blockDim.x * gridDim.x; // do the operations while(tid < N){ c[tid] = a[tid] + b[tid]...
f5ff1f356b781f1bb23a40af629270f48a5ddc13.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // using both threads and blocks #include <stdlib.h> #include <stdio.h> #include "./random.h" #define N (2048*2048) #define THREADS_PER_BLOCK 512 __global__ void add(int *a, int *b, int *c) { int index = threadIdx.x + blockIdx.x...
f5ff1f356b781f1bb23a40af629270f48a5ddc13.cu
// using both threads and blocks #include <stdlib.h> #include <stdio.h> #include "./random.h" #define N (2048*2048) #define THREADS_PER_BLOCK 512 __global__ void add(int *a, int *b, int *c) { int index = threadIdx.x + blockIdx.x * blockDim.x; //blockDim gets threads per block // if (index < n) // avoid accessing ...
df5ce87826132264d47074edfe4c8aeb1a5e1f7a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /*************************************************************************** *cr *cr (C) Copyright 2008-2010 The Board of Trustees of the *cr University of Illinois *cr A...
df5ce87826132264d47074edfe4c8aeb1a5e1f7a.cu
/*************************************************************************** *cr *cr (C) Copyright 2008-2010 The Board of Trustees of the *cr University of Illinois *cr All Rights Reserved *cr ***************************************************************...
3ca01ca0e2e5b781c2161be11a9a0290487848c5.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...
3ca01ca0e2e5b781c2161be11a9a0290487848c5.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 ...
2696b309ed1f66ea748e641f4454e096cc6ea7c8.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 // ### #include "helper.h" #inc...
2696b309ed1f66ea748e641f4454e096cc6ea7c8.cu
// ### // ### // ### Practical Course: GPU Programming in Computer Vision // ### // ### // ### Technical University Munich, Computer Vision Group // ### Summer Semester 2017, September 11 - October 9 // ### #include "helper.h" #include <iostream> #include "math.h" using namespace std; // uncomment to use the camera /...
cc8ce1cb4bd2a9c30a7f8d84831d4856d7ee2ed6.hip
// !!! This is a file automatically generated by hipify!!! //Includes for IntelliSense #define _SIZE_T_DEFINED #ifndef __HIPCC__ #define __HIPCC__ #endif #ifndef __cplusplus #define __cplusplus #endif #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "fl...
cc8ce1cb4bd2a9c30a7f8d84831d4856d7ee2ed6.cu
//Includes for IntelliSense #define _SIZE_T_DEFINED #ifndef __CUDACC__ #define __CUDACC__ #endif #ifndef __cplusplus #define __cplusplus #endif #include <cuda.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "float.h" #include <builtin_types.h> #include <vector_functions.h> ext...
d43ee0469a4b530a36b8ba8117d8a33a5d15a442.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 1999-2017 Alibaba Group. * * 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/licens...
d43ee0469a4b530a36b8ba8117d8a33a5d15a442.cu
/* * Copyright 1999-2017 Alibaba Group. * * 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 a...
5486988d77d9187bf20d39535dd45321081316cf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { hipError_t err = hipGetLastError(); if (hipSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) {...
5486988d77d9187bf20d39535dd45321081316cf.cu
#include "common.h" void checkCUDAErrorFn(const char *msg, const char *file, int line) { cudaError_t err = cudaGetLastError(); if (cudaSuccess == err) { return; } fprintf(stderr, "CUDA error"); if (file) { fprintf(stderr, " (%s:%d)", file, line); } fprintf(stderr, ": %s: %s...
351e0280a1416d68f1a6944957f8257a2748faae.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <omp.h> #include <stdlib.h> #include <math.h> #include <array> #include <vector> #include <sstream> #include <chrono> #include <hiprand/hiprand_kernel.h> #include <limits> #include <memory> #include <cstddef> ...
351e0280a1416d68f1a6944957f8257a2748faae.cu
#include <cuda.h> #include <omp.h> #include <stdlib.h> #include <math.h> #include <array> #include <vector> #include <sstream> #include <chrono> #include <curand_kernel.h> #include <limits> #include <memory> #include <cstddef> #include <type_traits> #include "../include/timer.cuh" #include "../includ...
a655136b7242eff54ac3c32d7cff3b5d284aca69.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "float.h" #include <builtin_types.h> #include <vector_functions.h> //Includes for IntelliSense #define _SIZE_T_DEFINED #ifndef __HIPCC__ #define _...
a655136b7242eff54ac3c32d7cff3b5d284aca69.cu
#include <cuda.h> #include <device_launch_parameters.h> #include <texture_fetch_functions.h> #include "float.h" #include <builtin_types.h> #include <vector_functions.h> //Includes for IntelliSense #define _SIZE_T_DEFINED #ifndef __CUDACC__ #define __CUDACC__ #endif #ifndef __cplusplus #define __cplusplus #endif exte...
8a041ec6a0e7a15bbf108776a29f4fa3e9b15102.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * Copyright (c) 2018-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
8a041ec6a0e7a15bbf108776a29f4fa3e9b15102.cu
/* * Copyright (c) 2018-2022, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
b48d1dc678681dc863091ee0e6428943a3e2f52e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* The implementation of this file is based on embLayerNorm plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 2019 NVIDIA Corporation Licensed under the Apache License, Version 2.0...
b48d1dc678681dc863091ee0e6428943a3e2f52e.cu
/* The implementation of this file is based on embLayerNorm plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 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 m...
7e168892ded1116912495d0c959d95188b2f88ed.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel2_zvel_plus_2_right; int xdim0_update_halo_kernel2_zvel_plus_2_right_h = -1; __constant__ int ydim0_update_halo_kernel2_zvel_plus_2_right; int ydim0_update_h...
7e168892ded1116912495d0c959d95188b2f88ed.cu
// // auto-generated by ops.py // __constant__ int xdim0_update_halo_kernel2_zvel_plus_2_right; int xdim0_update_halo_kernel2_zvel_plus_2_right_h = -1; __constant__ int ydim0_update_halo_kernel2_zvel_plus_2_right; int ydim0_update_halo_kernel2_zvel_plus_2_right_h = -1; __constant__ int xdim1_update_halo_kernel2_zvel_pl...
8a543be3620df1a584f6b238e44a162d6513a942.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "decode.h" #include "stdio.h" namespace nvinfer1 { DecodePlugin::DecodePlugin() { } DecodePlugin::~DecodePlugin() { } // create the plugin at runtime from a byte stream DecodePlugin::Decod...
8a543be3620df1a584f6b238e44a162d6513a942.cu
#include "decode.h" #include "stdio.h" namespace nvinfer1 { DecodePlugin::DecodePlugin() { } DecodePlugin::~DecodePlugin() { } // create the plugin at runtime from a byte stream DecodePlugin::DecodePlugin(const void* data, size_t length) { } void DecodePlugin::serialize(v...
5ea3f19d8ada5e768a5b3aa94a62baecc40a3d7e.hip
// !!! This is a file automatically generated by hipify!!! #include <cstdio> #include <hip/hip_runtime.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/partition.h> #include "sceneStructs.h" #include "scene.h" #include "glm/glm.hpp" #includ...
5ea3f19d8ada5e768a5b3aa94a62baecc40a3d7e.cu
#include <cstdio> #include <cuda.h> #include <cmath> #include <thrust/execution_policy.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/partition.h> #include "sceneStructs.h" #include "scene.h" #include "glm/glm.hpp" #include "glm/gtx/norm.hpp" #include "utilities.h" #include "pathtrace.h" #in...
c524730f8cf0b8ea6d85f811d29b24ae1563b3c1.hip
// !!! This is a file automatically generated by hipify!!! /* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. Copyright (c) 2022 NVIDIA 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 ob...
c524730f8cf0b8ea6d85f811d29b24ae1563b3c1.cu
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. Copyright (c) 2022 NVIDIA 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/li...
6009f5ed951a08b3f825fec8f5fe0c06b8dfda39.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include "common.h" #include "si.h" #include "wt.h" # define CUDACHECK \ { hipDeviceSynchronize(); \ hipError_t last = hipGetLastError();\ if(last!=hipSuccess) {\ printf("ERRO...
6009f5ed951a08b3f825fec8f5fe0c06b8dfda39.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include "common.h" #include "si.h" #include "wt.h" # define CUDACHECK \ { cudaThreadSynchronize(); \ cudaError_t last = cudaGetLastError();\ if(last!=cudaSuccess) {\ printf("ERRORX: %s %s %i \n", cudaGetErrorString( last), __FILE__, __LINE...
417c6f1e445a00c88d5d526175a4e9708603b841.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License ...
417c6f1e445a00c88d5d526175a4e9708603b841.cu
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
0242c8357b3257b7551cf81d2b85e1dd94e9c4f0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Copyright (c) 2017 Sony 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 L...
0242c8357b3257b7551cf81d2b85e1dd94e9c4f0.cu
// Copyright (c) 2017 Sony 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 by ...
69ec65fbf8b49a8eb15f3f6b8d6dee14c60a87df.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* The implementation of this file is based on qkvToContext plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 2019 NVIDIA Corporation Licensed under the Apache License, Version 2.0...
69ec65fbf8b49a8eb15f3f6b8d6dee14c60a87df.cu
/* The implementation of this file is based on qkvToContext plugin in TensorRT demo: https://github.com/NVIDIA/TensorRT/tree/release/5.1/demo/BERT/ Copyright 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 m...
a22ab91d827daed961238a14cbac0e628b8a399c.hip
// !!! This is a file automatically generated by hipify!!! #include <Timer.hpp> #include <iostream> #include <iomanip> #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <device_launch_parameters.h> using LOFAR::NSTimer; using std::cout; using std::cerr; using std::endl; using std::fixed; using std::se...
a22ab91d827daed961238a14cbac0e628b8a399c.cu
#include <Timer.hpp> #include <iostream> #include <iomanip> #include <cuda_runtime.h> #include <cuda.h> #include <device_launch_parameters.h> using LOFAR::NSTimer; using std::cout; using std::cerr; using std::endl; using std::fixed; using std::setprecision; /* Utility function/macro, used to do error checking. Use th...
5fa603d93f36271dd4545829e6ed5a4f6be034de.hip
// !!! This is a file automatically generated by hipify!!! /*! \file main.c \brief Main program of the serial solar system simulator. \author Peter C. Chapin <PChapin@vtc.vsc.edu> LICENSE This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Li...
5fa603d93f36271dd4545829e6ed5a4f6be034de.cu
/*! \file main.c \brief Main program of the serial solar system simulator. \author Peter C. Chapin <PChapin@vtc.vsc.edu> LICENSE 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 ...
a10003389f773c1f2183647add7e14cfc15b220c.hip
// !!! This is a file automatically generated by hipify!!! /* * ----------------------------------------------------------------- * Programmer(s): Cody J. Balos @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2020, Lawrence Livermore Nation...
a10003389f773c1f2183647add7e14cfc15b220c.cu
/* * ----------------------------------------------------------------- * Programmer(s): Cody J. Balos @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2020, Lawrence Livermore National Security * and Southern Methodist University. * All ri...
67d07c801874e9413b5c7858109dcdbb16dbf0aa.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // UIUC IMPACT #include "parboil.h" #include <stdio.h> #include <stdlib.h> #include "file.h" #include "gpu_info.h" #include "spmv_jds.h" #include "jds_kernels.cu" #include "convert_dataset.h" /* static int generate_vector(float *x_...
67d07c801874e9413b5c7858109dcdbb16dbf0aa.cu
// UIUC IMPACT #include "parboil.h" #include <stdio.h> #include <stdlib.h> #include "file.h" #include "gpu_info.h" #include "spmv_jds.h" #include "jds_kernels.cu" #include "convert_dataset.h" /* static int generate_vector(float *x_vector, int dim) { srand(54321); for(int i=0;i<dim;i++) { x_vector[i] = (rand() / ...
a8fe67d1699506a80d2a25dcd526fcc72c4b1fbf.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" // Alejandro Salmon Felix Diaz // A01201954 //incluir path a propio cuda_runtime #include "../cuda_runtime.h" #include "handle_error.h" #include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 16 __global__ void mat_mult(float*...
a8fe67d1699506a80d2a25dcd526fcc72c4b1fbf.cu
// Alejandro Salmon Felix Diaz // A01201954 //incluir path a propio cuda_runtime #include "../cuda_runtime.h" #include "handle_error.h" #include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 16 __global__ void mat_mult(float* dmat_res, float* dmat_a, float* dmat_b, int a_row, int a_col, int b_col){ int col = ...
4d40ce316b82fdc435d4d2a2e9a0048b21a28922.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cstdio> #include "ext_cuda_chunk.hpp" #include "kernels/solver_methods.cuknl" /* * SHARED SOLVER METHODS */ // Entry point to copy U. extern "C" void ext_solver_copy_u_( const int* chunk) { Chunks[*chunk-1]->CopyU(...
4d40ce316b82fdc435d4d2a2e9a0048b21a28922.cu
#include <cstdio> #include "ext_cuda_chunk.hpp" #include "kernels/solver_methods.cuknl" /* * SHARED SOLVER METHODS */ // Entry point to copy U. extern "C" void ext_solver_copy_u_( const int* chunk) { Chunks[*chunk-1]->CopyU(); } // Entry point for calculating residual. extern "C" void ext_calculate_residual_( ...
b74c26bcebe3b77511eddacec920e9963e39fd60.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 "fill_kernel.cu" #include<chrono> #include<iostream> using namesp...
b74c26bcebe3b77511eddacec920e9963e39fd60.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 "fill_kernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{24,2...
4bd195d6d1787918402f1ab7001e9c9d7a46bffe.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <stdio.h> #include "datadef.h" #include "warp_device.cuh" #include "check_cuda.h" __global__ void pop_fission_kernel(unsigned N, cross_section_data* d_xsdata, particle_data* d_particles, unsigned* d_scanned, spatial_data*...
4bd195d6d1787918402f1ab7001e9c9d7a46bffe.cu
#include <cuda.h> #include <stdio.h> #include "datadef.h" #include "warp_device.cuh" #include "check_cuda.h" __global__ void pop_fission_kernel(unsigned N, cross_section_data* d_xsdata, particle_data* d_particles, unsigned* d_scanned, spatial_data* fission_particles, float* fission_energy){ // get tid int tid = th...
d03a1992ec879438c4ad24f126ca212f75f5b952.hip
// !!! This is a file automatically generated by hipify!!! #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include "common.h" #include "naive.h" #include <cmath> #include <iostream> namespace StreamCompaction { namespace Naive { #define SHOW_TIMING 0 int numBlocks, numThreads = 256; int * dev_odata; int *...
d03a1992ec879438c4ad24f126ca212f75f5b952.cu
#include <cuda.h> #include <cuda_runtime.h> #include "common.h" #include "naive.h" #include <cmath> #include <iostream> namespace StreamCompaction { namespace Naive { #define SHOW_TIMING 0 int numBlocks, numThreads = 256; int * dev_odata; int * dev_idata; __global__ void scanStep(int n, int jump, int *odata, int *...
f3feddcd6a27b4940c7ba012e8ca34c5a8601c5d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Implements the Landau kernel */ #include <petscconf.h> #include <petsc/private/dmpleximpl.h> /*I "dmpleximpl.h" I*/ #include <petsclandau.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/aij/se...
f3feddcd6a27b4940c7ba012e8ca34c5a8601c5d.cu
/* Implements the Landau kernel */ #include <petscconf.h> #include <petsc/private/dmpleximpl.h> /*I "dmpleximpl.h" I*/ #include <petsclandau.h> #define PETSC_SKIP_IMMINTRIN_H_CUDAWORKAROUND 1 #include <../src/mat/impls/aij/seq/aij.h> #include <petscmat.h> #include <petscdevice.h> #include "../land_tensors.h" #i...
c911d16395e7adb03c3344585ef523f450fed012.hip
// !!! This is a file automatically generated by hipify!!! /** * correlation.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/G...
c911d16395e7adb03c3344585ef523f450fed012.cu
/** * correlation.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 <ma...
cb383db4543777f0d214440451f8053b90af916a.hip
// !!! This is a file automatically generated by hipify!!! #ifndef SUPPORTING_CU #define SUPPORTING_CU #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> #include <vector> #include <chrono> #include "all_structure_undir.cuh" #include "gpuFunctions_undir.cuh" #in...
cb383db4543777f0d214440451f8053b90af916a.cu
#ifndef SUPPORTING_CU #define SUPPORTING_CU #include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdio.h> #include <iostream> #include <vector> #include <chrono> #include "all_structure_undir.cuh" #include "gpuFunctions_undir.cuh" #include "bfs.cu" using namespace std; using namespace std::chron...
7cbbbe44269c60d7d463dce4b2ae9887753fab59.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /******************************* 1 - Install nvidia-cuda-toolkit 2 - Compile this program using: nvcc add.cu -o add_cuda.out *******************************/ /* Program that runs block size dynamically. As the number of thr...
7cbbbe44269c60d7d463dce4b2ae9887753fab59.cu
/******************************* 1 - Install nvidia-cuda-toolkit 2 - Compile this program using: nvcc add.cu -o add_cuda.out *******************************/ /* Program that runs block size dynamically. As the number of threads increase, the number of blocks is determined as a function of threads and input siz...
4c0fe62268433ed8417464e907ba12f98a60c580.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" /* * JCudaVec - Vector operations for JCuda * http://www.jcuda.org * * Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org */ extern "C" //=== Vector arithmetic =======================================...
4c0fe62268433ed8417464e907ba12f98a60c580.cu
#include "includes.h" /* * JCudaVec - Vector operations for JCuda * http://www.jcuda.org * * Copyright (c) 2013-2015 Marco Hutter - http://www.jcuda.org */ extern "C" //=== Vector arithmetic ====================================================== extern "C" extern "C" extern "C" extern "C" extern "C" //===...
a2cb5f45089db581ce5de51d2ffbf40c7878cd4d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "pairwise_hist.cuh" #include "split_properties_helpers.cuh" #include "compute_pair_hist_loop.cuh" #include <hip/hip_cooperative_groups.h> #include <catboost/cuda/cuda_lib/kernel/arch.cuh> #include <catboost/cuda/cuda_util/k...
a2cb5f45089db581ce5de51d2ffbf40c7878cd4d.cu
#include "pairwise_hist.cuh" #include "split_properties_helpers.cuh" #include "compute_pair_hist_loop.cuh" #include <cooperative_groups.h> #include <catboost/cuda/cuda_lib/kernel/arch.cuh> #include <catboost/cuda/cuda_util/kernel/instructions.cuh> #include <catboost/cuda/cuda_util/kernel/kernel_helpers.cuh> #include <c...
feb9778ea3874a21da3bacdb7c52e9695b4b082f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** @file * @brief Definition of CudaIntFloatFilter class. * * @author Jan Bobek */ #include "edetect.hxx" #include "IImage.hxx" #include "cuda/CudaError.hxx" #include "cuda/CudaIntFloatFilter.hxx" /** * @brief CUDA kernel co...
feb9778ea3874a21da3bacdb7c52e9695b4b082f.cu
/** @file * @brief Definition of CudaIntFloatFilter class. * * @author Jan Bobek */ #include "edetect.hxx" #include "IImage.hxx" #include "cuda/CudaError.hxx" #include "cuda/CudaIntFloatFilter.hxx" /** * @brief CUDA kernel converting integer-pixels to float-pixels. * * @param[out] ddata * The destination im...
fdb70d154835c2852287dda184e41a87a07837d6.hip
// !!! This is a file automatically generated by hipify!!! /* * GridTools * * Copyright (c) 2014-2021, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include <gridtools/fn/backend/gpu.hpp> #include <gtest/gtest.h> #inc...
fdb70d154835c2852287dda184e41a87a07837d6.cu
/* * GridTools * * Copyright (c) 2014-2021, ETH Zurich * All rights reserved. * * Please, refer to the LICENSE file in the root directory. * SPDX-License-Identifier: BSD-3-Clause */ #include <gridtools/fn/backend/gpu.hpp> #include <gtest/gtest.h> #include <gridtools/fn/column_stage.hpp> #include <gridtools/si...
0b3dd76a84f351a6e4d9d79560509e1a8cf1c5da.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include "opencv2/opencv.hpp" #include <Windows.h> #include <time.h> using namespace cv; using namespace std; //texture that stores the input image data texture<u...
0b3dd76a84f351a6e4d9d79560509e1a8cf1c5da.cu
#include "cuda_runtime.h" #include "cuda.h" #include "device_launch_parameters.h" #include "opencv2/opencv.hpp" #include <Windows.h> #include <time.h> using namespace cv; using namespace std; //texture that stores the input image data texture<uchar, 2, cudaReadModeElementType> src; //bools that keep track if the us...
c88fe7e4935122ac6dfbd66b4cd8266a09dbd6ba.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this...
c88fe7e4935122ac6dfbd66b4cd8266a09dbd6ba.cu
/****************************************************************************** * Copyright 2018 The Apollo Authors. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
1f669a58714e456ca1ebfdd4d0263e2a9e6df6d3.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #define GPU_KERNEL #ifdef MULTIPLE_FILE #include <bench_gtc.h> #include <cutil.h> //#include <papi.h> extern __device__ __constant__ real temp[MAX_MPSI] __align__ (16);extern __device__ __constant__ real dtemp[MAX_MPSI] __align_...
1f669a58714e456ca1ebfdd4d0263e2a9e6df6d3.cu
#define GPU_KERNEL #ifdef MULTIPLE_FILE #include <bench_gtc.h> #include <cutil.h> //#include <papi.h> extern __device__ __constant__ real temp[MAX_MPSI] __align__ (16);extern __device__ __constant__ real dtemp[MAX_MPSI] __align__ (16); extern __device__ __constant__ real rtemi[MAX_MPSI] __align__ (16); //extern __d...
e662ac34152fdc07fb7dee9897d3e6edf229cd46.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifdef PROFILING #include "RDTimer.h" #endif //====================================================================================================100 // UPDATE //====================================================================...
e662ac34152fdc07fb7dee9897d3e6edf229cd46.cu
#include "hip/hip_runtime.h" #ifdef PROFILING #include "RDTimer.h" #endif //====================================================================================================100 // UPDATE //====================================================================================================100 // 2006.03 Rob Ja...
4231ecf38d20f7eb56b9de55f45e3a0ff6cad550.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" namespace pwn { template <class T> __global__ void fillBuffer(T* buffer, int numElems, T value){ int i = blockDim.x * blockIdx.x + threadIdx.x; if (i<numElems){ buffer[i] = value; } } __global__ void com...
4231ecf38d20f7eb56b9de55f45e3a0ff6cad550.cu
namespace pwn { template <class T> __global__ void fillBuffer(T* buffer, int numElems, T value){ int i = blockDim.x * blockIdx.x + threadIdx.x; if (i<numElems){ buffer[i] = value; } } __global__ void computeDepthBuffer(int* buffer, int rows, int cols, const float* KT, const float*...
8487d6179f8086586a4068492de818b7e0fbc45d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <blas_magma.h> #include <string.h> #include <vector> #include <algorithm> #include <util_quda.h> #include <quda_internal.h> #ifndef MAX #define MAX(a, b) (a > b) ? a : b; #endif #define MAGMA_17 //default version versio...
8487d6179f8086586a4068492de818b7e0fbc45d.cu
#include <blas_magma.h> #include <string.h> #include <vector> #include <algorithm> #include <util_quda.h> #include <quda_internal.h> #ifndef MAX #define MAX(a, b) (a > b) ? a : b; #endif #define MAGMA_17 //default version version of the MAGMA library #ifdef MAGMA_LIB #include <magma.h> #ifdef MAGMA_14 #define _c...
51a608fe30539fd4f2499b99d8f252f396548b55.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "../common/book.h" #include <iostream> const int N = 10; __global__ void add(int *a, int *b, int *c){ int tid = threadIdx.x; if(tid < N) c[tid] = a[tid] + b[tid]; } int main(void){ int a[N], b[N], ...
51a608fe30539fd4f2499b99d8f252f396548b55.cu
#include "../common/book.h" #include <iostream> const int N = 10; __global__ void add(int *a, int *b, int *c){ int tid = threadIdx.x; if(tid < N) c[tid] = a[tid] + b[tid]; } int main(void){ int a[N], b[N], c[N]; int *dev_a, *dev_b, *dev_c; cudaMalloc( (void**)&dev_a, sizeof(int) * N ...
e295ec419c226f8a7cc665dc135c6fce2763ebba.hip
// !!! This is a file automatically generated by hipify!!! //////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (c) 2021, NVIDIA Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modificatio...
e295ec419c226f8a7cc665dc135c6fce2763ebba.cu
//////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (c) 2021, NVIDIA Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are...
b20e25faebecad3c178c13a93c31f8b471404e22.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...
b20e25faebecad3c178c13a93c31f8b471404e22.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...
9f753b6b67e77094a37ad6b23c6c63ff299ff9a0.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Copyright 2016 Tommi M. Tykkl 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...
9f753b6b67e77094a37ad6b23c6c63ff299ff9a0.cu
/* Copyright 2016 Tommi M. Tykkälä 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, softwar...
05f700d66c5a2843d8fc9dc01ec46321faa20d88.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* Matrix Inversion * Group F: M. Lechner, P. Knbel, J. Lvhall * * reduction to check if matrix is ID */ #include "includes.h" /* Sets the diagonal to 1 */ __global__ void identity(int n, float *mat) { int i = blockIdx.x * b...
05f700d66c5a2843d8fc9dc01ec46321faa20d88.cu
/* Matrix Inversion * Group F: M. Lechner, P. Knöbel, J. Lövhall * * reduction to check if matrix is ID */ #include "includes.h" /* Sets the diagonal to 1 */ __global__ void identity(int n, float *mat) { int i = blockIdx.x * blockDim.x + threadIdx.x; int j = blockIdx.y * blockDim.y + threadIdx.y; if (i < n &&...
df39e3176b6d16cfeebb0b283cd296f01bfd02b9.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <chrono> #include <math.h> #include <thrust/device_vector.h> #include <thrust/copy.h> #include <thrust/transform.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/rand...
df39e3176b6d16cfeebb0b283cd296f01bfd02b9.cu
#include <iostream> #include <fstream> #include <chrono> #include <math.h> #include <thrust/device_vector.h> #include <thrust/copy.h> #include <thrust/transform.h> #include <thrust/iterator/counting_iterator.h> #include <thrust/random.h> #include <thrust/remove.h> #include <thrust/count.h> using namespace std; static...
260a35891989bb5c6fe52a6bca94f361ed0438f7.hip
// !!! This is a file automatically generated by hipify!!! /* * Implements the file command for jim * * (c) 2008 Steve Bennett <steveb@workware.net.au> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistribu...
260a35891989bb5c6fe52a6bca94f361ed0438f7.cu
/* * Implements the file command for jim * * (c) 2008 Steve Bennett <steveb@workware.net.au> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * n...
6facead1c98aaf42af9a676f39aab5db14ecb082.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...
6facead1c98aaf42af9a676f39aab5db14ecb082.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...
67178768f7a491f4e08a4a92d13e3b2d90e739a3.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_S3_13.h" extern "C" SET_ODE_INITIAL_CONDITIONS_GPU(set_model_initial_conditions_gpu) { print_to_stdout_and_file("U...
67178768f7a491f4e08a4a92d13e3b2d90e739a3.cu
#include <stddef.h> #include <stdint.h> #include "model_gpu_utils.h" #include "mixed_tentusscher_myo_epi_2004_S3_13.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"); // ...
f6705aade6d403f1bcab04799a974ea490e4f0cf.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 "rgb2grayKernel.cu" #include<chrono> #include<iostream> using nam...
f6705aade6d403f1bcab04799a974ea490e4f0cf.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 "rgb2grayKernel.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8},{16,16},{2...
617dddc58b7174797761b4c588254d4eed89ba72.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "K_Means.h" __device__ double calculate_distance_between_positions_gpu(Position* p1, Position* p2) { double euclid_distance, x, y, z; x = p1->x - p2->x; y = p1->y - p2->y; z = p1->z - p2->z; euclid_distance = sqrt(...
617dddc58b7174797761b4c588254d4eed89ba72.cu
#include "K_Means.h" __device__ double calculate_distance_between_positions_gpu(Position* p1, Position* p2) { double euclid_distance, x, y, z; x = p1->x - p2->x; y = p1->y - p2->y; z = p1->z - p2->z; euclid_distance = sqrt(x*x + y*y + z*z); return euclid_distance; } __global__ void assign_points_to_cluster...
47f7f35ec1b16fa382f9458f08731a4349eda28e.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright (c) 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 * * ht...
47f7f35ec1b16fa382f9458f08731a4349eda28e.cu
/* * Copyright (c) 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 requi...
3f681b01c01927d8021a7033af8c0eb406af695f.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "device_launch_parameters.h" #include <locale> #include <stdio.h> #define BLOCK_SIZE 16 hipError_t MulMatrixCuda(float* mul_matrix, float* mul_matrix2, float* matrix1, float * matrix2, int n); void print_matrix(float* mt...
3f681b01c01927d8021a7033af8c0eb406af695f.cu
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <locale> #include <stdio.h> #define BLOCK_SIZE 16 cudaError_t MulMatrixCuda(float* mul_matrix, float* mul_matrix2, float* matrix1, float * matrix2, int n); void print_matrix(float* mtx, int n); __global__ void mtxMult(float *C, float *A, float...
69d0425fb3c8615a1534c6947de1d67836e4c57d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "utils.h" #include "common.h" template <typename Dtype> __device__ void maxpool_bubblesort(Dtype *a, Dtype *b, int n) { int i, j; Dtype temp; for (i = 1; i < n; i++) { for (j = 0; j < n- 1; j++) { if (a[j]...
69d0425fb3c8615a1534c6947de1d67836e4c57d.cu
#include "utils.h" #include "common.h" template <typename Dtype> __device__ void maxpool_bubblesort(Dtype *a, Dtype *b, int n) { int i, j; Dtype temp; for (i = 1; i < n; i++) { for (j = 0; j < n- 1; j++) { if (a[j] > a[j + 1]) { temp = a[j]; a[j] = a[j + 1]; a[j + 1] = temp; ...
6b2a264bdbc2c05d6433486154c09912840f2e5b.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 "add_reference_points_norm.cu" #include<chrono> #include<iostream...
6b2a264bdbc2c05d6433486154c09912840f2e5b.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 "add_reference_points_norm.cu" #include<chrono> #include<iostream> using namespace std; using namespace std::chrono; int blocks_[20][2] = {{8,8}...
b6c37bd089b133bd06eba4ee540633c7c81ab346.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <climits> #include <cstdint> #include <cstring> #include <array> #include <chrono> #include <iostream> #include <random> #include <set> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #inclu...
b6c37bd089b133bd06eba4ee540633c7c81ab346.cu
#include <climits> #include <cstdint> #include <cstring> #include <array> #include <chrono> #include <iostream> #include <random> #include <set> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> #include "helper_cuda.h" #include <sys/time.h> #include <cooperative_groups.h> #include <uni...
82e5bda89d5c369fad27c1d0077fb2739f5d736d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "Delaunay.h" //////////////////////////////////////////////// // DRAW TRIANGLE RELATED // //////////////////////////////////////////////// __device__ int lower_div(int a, int b) {...
82e5bda89d5c369fad27c1d0077fb2739f5d736d.cu
#include "Delaunay.h" //////////////////////////////////////////////// // DRAW TRIANGLE RELATED // //////////////////////////////////////////////// __device__ int lower_div(int a, int b) { if (a < 0) { return (a + 1) / b - 1; } else { return a / b; } } __device__ int upper_...
9f4670f134f91c76ecb715293dbba0a3a77ad8fe.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" extern "C" __global__ void crossEntropyCost(float *desiredOutput, unsigned int length, float *networkOutput, float* result) { for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < length; i += blockDim.x *...
9f4670f134f91c76ecb715293dbba0a3a77ad8fe.cu
extern "C" __global__ void crossEntropyCost(float *desiredOutput, unsigned int length, float *networkOutput, float* result) { for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < length; i += blockDim.x * gridDim.x) { result[i]=desiredOutput[i]*logf(0.00001f+networkOutput[i]...
36cf7873ae988a84c0777e68cf9a5885c70f876f.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...
36cf7873ae988a84c0777e68cf9a5885c70f876f.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...
413c322cf8417e4689632c97524b4e9e53a7228e.hip
// !!! This is a file automatically generated by hipify!!! // incrementArray.cu // Utilities and system includes #include <assert.h> #include <helper_string.h> // helper for shared functions common to CUDA Samples // CUDA runtime #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> #include <hip/hip_runtime_api....
413c322cf8417e4689632c97524b4e9e53a7228e.cu
// incrementArray.cu // Utilities and system includes #include <assert.h> #include <helper_string.h> // helper for shared functions common to CUDA Samples // CUDA runtime #include <cuda.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> #include <device_launch_parameters.h> #include <device_functions.h> #incl...
eb59c8caf029d8d040fa1834dc092accb00c373a.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "kernel.h" #include <hipfft.h> ///// GPU kernels ///// __global__ void ConjMult(hipfftComplex *d_potential_F, hipfftComplex *d_ligand_F, int odist, int numOfGridsUsed) { int dist = odist * numOfGridsUsed; int idx_l = ...
eb59c8caf029d8d040fa1834dc092accb00c373a.cu
#include "kernel.h" #include <cufft.h> ///// GPU kernels ///// __global__ void ConjMult(cufftComplex *d_potential_F, cufftComplex *d_ligand_F, int odist, int numOfGridsUsed) { int dist = odist * numOfGridsUsed; int idx_l = (blockIdx.y * gridDim.x + blockIdx.x) * blockDim.x + threadIdx.x; int idx_p = idx_l % dis...
e1bf5885985b77b355194d5293b1724489d42891.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <time.h> //************variables globales*************** int msk=3, dimx=1040, dimy=1388, tam_imag=1388*1040; // [i][j] = i*dimy+j //************** Kernel CUDA ********************...
e1bf5885985b77b355194d5293b1724489d42891.cu
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <time.h> //************variables globales*************** int msk=3, dimx=1040, dimy=1388, tam_imag=1388*1040; // [i][j] = i*dimy+j //************** Kernel CUDA ********************* __global__ void Varianza (int *G_d, float *var_d){ int idx = threa...
4c59aa0784077e5c116bb824cf003748465a09e6.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif } __global__ void uplo_set (const int sd, const int unit, const int bottom, const REAL alpha, REAL* a, const int offset_a, const int ld_...
4c59aa0784077e5c116bb824cf003748465a09e6.cu
#include "includes.h" extern "C" { #ifndef REAL #define REAL float #endif } __global__ void uplo_set (const int sd, const int unit, const int bottom, const REAL alpha, REAL* a, const int offset_a, const int ld_a) { const int gid_0 = blockIdx.x * blockDim.x + threadIdx.x; const int gid_1 = blockIdx...
6b1890d61bb05d7df2d7ad08dab092edb886d220.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* * DepthConcatLayer.cpp * * Created on: 2016. 5. 25. * Author: jhkim */ #include "DepthConcatLayer.h" using namespace std; //#define DEPTHCONCAT_LOG template <typename Dtype> __global__ void Concat(const int nthread...
6b1890d61bb05d7df2d7ad08dab092edb886d220.cu
/* * DepthConcatLayer.cpp * * Created on: 2016. 5. 25. * Author: jhkim */ #include "DepthConcatLayer.h" using namespace std; //#define DEPTHCONCAT_LOG template <typename Dtype> __global__ void Concat(const int nthreads, const Dtype* in_data, const bool forward, const int num_concats, const int concat_s...
1e41a86de23e5637cc3637e290ca94322a8a491e.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #if !defined(CPU_ONLY) #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <...
1e41a86de23e5637cc3637e290ca94322a8a491e.cu
#if !defined(CPU_ONLY) #include <math_functions.h> // CUDA's, not caffe's, for fabs, signbit #include <thrust/device_vector.h> #include <thrust/functional.h> // thrust::plus #include <thrust/reduce.h> #include <cmath> #include <cstdlib> #include <cstring> #include "syncedmem.hpp" #include "math_functions.hpp" #de...
318ba1b7d3013215cf81b28e25d4aeaa6c83127d.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "whatDataInCentroid.h" #include "../randomCudaScripts/DeleteFromArray.h" #include "../randomCudaScripts/Utils.h" #include <assert.h> __global__ void whatDataIsInCentroidKernel(bool* output, float* data, ...
318ba1b7d3013215cf81b28e25d4aeaa6c83127d.cu
#include "whatDataInCentroid.h" #include "../randomCudaScripts/DeleteFromArray.h" #include "../randomCudaScripts/Utils.h" #include <assert.h> __global__ void whatDataIsInCentroidKernel(bool* output, float* data, bool* dimensions, const unsigned int* centroid, const ...
bd225db33c3cb77bc731e9accb303b3051923c86.hip
// !!! This is a file automatically generated by hipify!!! /******************************************************************************* * 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 availab...
bd225db33c3cb77bc731e9accb303b3051923c86.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. * *...
Fidelity.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <cpp/dev_random.cpp> #include <tclap/CmdLine.h> #include <itpp/itbase.h> #include <itpp/stat/histogram.h> #include "cpp/RMT.cpp" #include <cpp/itpp_ext_math.cpp> #include <cpp/spinchain.cpp> #include <itpp/stat/misc_stat.h> #includ...
Fidelity.cu
#include <iostream> #include <cpp/dev_random.cpp> #include <tclap/CmdLine.h> #include <itpp/itbase.h> #include <itpp/stat/histogram.h> #include "cpp/RMT.cpp" #include <cpp/itpp_ext_math.cpp> #include <cpp/spinchain.cpp> #include <itpp/stat/misc_stat.h> #include <fstream> #include <cuda.h> #include "cuda_functions.cu" ...
ea9616e12cdb9ae2e595a73503730cab6b11ef8e.hip
// !!! This is a file automatically generated by hipify!!! /* * Copyright 2021 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 with the LLVM exception * (the "License"); you may not use this file except in compliance with * the License. * * You may obtain a copy of the License at * *...
ea9616e12cdb9ae2e595a73503730cab6b11ef8e.cu
/* * Copyright 2021 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 with the LLVM exception * (the "License"); you may not use this file except in compliance with * the License. * * You may obtain a copy of the License at * * http://llvm.org/foundation/relicensing/LICENSE.txt *...
d63457a3b509ae92127531d4656efe6666c746e8.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include "cudamat_kernels.cuh" #include "float.h" template<int NUM_THREADS> __device__ void reduceToMax(float* sdata, unsigned int tid){ //Synchronize threads to share shared memory data __syncthreads(); float mySum = sdata[...
d63457a3b509ae92127531d4656efe6666c746e8.cu
#include "cudamat_kernels.cuh" #include "float.h" template<int NUM_THREADS> __device__ void reduceToMax(float* sdata, unsigned int tid){ //Synchronize threads to share shared memory data __syncthreads(); float mySum = sdata[tid]; // do reduction in shared mem if (NUM_THREADS >= 512) { if (tid < 256) { sdat...
100f7ddafce10989cfa52b3aeeb2db6a94915dad.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #define epsilon (float)1e-5 // Thread block size #define NB 32 // Forward declaration void randomInit (float*, int); void MatMul_cpu (const float *, const float *, float *, int ); void MatMul_gpu (const float *,...
100f7ddafce10989cfa52b3aeeb2db6a94915dad.cu
#include <stdio.h> #define epsilon (float)1e-5 // Thread block size #define NB 32 // Forward declaration void randomInit (float*, int); void MatMul_cpu (const float *, const float *, float *, int ); void MatMul_gpu (const float *, const float *, float *, int ); __global__ void MatMul_kernel(float *, float *, float *,...
5345cb41edf77986ff67436e67f6b30fce8613db.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <cudaDefs.h> #include <time.h> #include <math.h> #include <random> namespace lesson4 { using namespace std; hipError_t error = hipSuccess; hipDeviceProp_t deviceProp = hipDeviceProp_t(); struct FooBar { int foo; ...
5345cb41edf77986ff67436e67f6b30fce8613db.cu
#include <cudaDefs.h> #include <time.h> #include <math.h> #include <random> namespace lesson4 { using namespace std; cudaError_t error = cudaSuccess; cudaDeviceProp deviceProp = cudaDeviceProp(); struct FooBar { int foo; float bar; }; __constant__ __device__ int dScalar; __constant__ __device__ FooBar dF...
47c48846b824f29ac7a8fa3b1807b905a077ac79.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...
47c48846b824f29ac7a8fa3b1807b905a077ac79.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...
717adf36bb50dc7bdd7cb1d10c6f58819fe19432.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/THCTensorMathReduce.cu" #else THC_API void THCTensor_(sum)(THCState* state, THCTensor *self, THCTensor *src, int dimension, int keepdim) { THCAssertSameGPU(THCTensor_(che...
717adf36bb50dc7bdd7cb1d10c6f58819fe19432.cu
#ifndef THC_GENERIC_FILE #define THC_GENERIC_FILE "generic/THCTensorMathReduce.cu" #else THC_API void THCTensor_(sum)(THCState* state, THCTensor *self, THCTensor *src, int dimension, int keepdim) { THCAssertSameGPU(THCTensor_(checkGPU)(state, 2, self, src)); if (!THC_reduceDim(state, self, src, ...
da306f0cd73ee7b7aa86e0490f0949cfc3b05023.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include <stdlib.h> #include <hiprand/hiprand_kernel.h> #include <time.h> #include <string.h> #include <math.h> #include "constants.c" #include "utils.h" /* * Mutation kernel */ __global__ void mutation(int* po...
da306f0cd73ee7b7aa86e0490f0949cfc3b05023.cu
#include <stdio.h> #include <stdlib.h> #include <curand_kernel.h> #include <time.h> #include <string.h> #include <math.h> #include "constants.c" #include "utils.h" /* * Mutation kernel */ __global__ void mutation(int* population_d, float* population_cost_d, float* population_fitness_d, curandState* states_d) { ...
c6d3531314308752bb02dada9764211b54b135c4.hip
// !!! This is a file automatically generated by hipify!!! #include <iostream> #include <string> #include <hip/hip_runtime.h> #include </home/ksugumar/project/headers/helper_functions.h> #include </home/ksugumar/project/headers/helper_cuda.h> #include "device_launch_parameters.h" #include <chrono> #define STB_IMAGE_I...
c6d3531314308752bb02dada9764211b54b135c4.cu
#include <iostream> #include <string> #include <cuda_runtime.h> #include </home/ksugumar/project/headers/helper_functions.h> #include </home/ksugumar/project/headers/helper_cuda.h> #include "device_launch_parameters.h" #include <chrono> #define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #include ...
2c26623d48f40a9672d8da3297c0e11a72ebb2fb.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /** * Author: Zachariah Bryant * Description: This is a class wrap for runnning SU(2) lattice qcd * operations using CUDA. */ // ******************** // * Headers * // ******************** #include "./...
2c26623d48f40a9672d8da3297c0e11a72ebb2fb.cu
/** * Author: Zachariah Bryant * Description: This is a class wrap for runnning SU(2) lattice qcd * operations using CUDA. */ // ******************** // * Headers * // ******************** #include "./Headers/LattiCuda.cuh" #include "./Headers/LattiCuda_Device.cuh" #include "./Headers/Com...
bac7e095a58122ae49e8bbbf7041b39e47a8c9cb.hip
// !!! This is a file automatically generated by hipify!!! /** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction,...
bac7e095a58122ae49e8bbbf7041b39e47a8c9cb.cu
/** * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relate...
1d00f47a38297df7dcd53570db4ed526c961968b.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <hip/hip_runtime.h> extern __shared__ double cache[]; __global__ void kernel(int *Ss, int *Nn, int *mask, double *xyz, double *cost){ int i1 = blockIdx.x; int i2 = threadIdx.x; int j = threadIdx.y; int dimx= bl...
1d00f47a38297df7dcd53570db4ed526c961968b.cu
#include <stdio.h> #include <cuda.h> extern __shared__ double cache[]; __global__ void kernel(int *Ss, int *Nn, int *mask, double *xyz, double *cost){ int i1 = blockIdx.x; int i2 = threadIdx.x; int j = threadIdx.y; int dimx= blockDim.x, dimy = blockDim.y; int cacheIndex = j*dimx+i2, cIndexMax =...
ee534e46a4c26bc4d9a674a9484107672e65b368.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <stdio.h> #include "util.cuh" using namespace std; __global__ void hello_world(int *x){ printf("hello from gpu\n"); for(int i=0; i<10; i++) printf("%i\t", x[i]); printf("\n"); } int main(){ hipDeviceR...
ee534e46a4c26bc4d9a674a9484107672e65b368.cu
#include <stdio.h> #include "util.cuh" using namespace std; __global__ void hello_world(int *x){ printf("hello from gpu\n"); for(int i=0; i<10; i++) printf("%i\t", x[i]); printf("\n"); } int main(){ cudaDeviceReset(); int *dx, *dx2, *dx3; int x[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 1...
6009bd3fc28efc0578a8483cd2c54957845abc18.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" #include <iostream> #include <fstream> #include <string> #include <vector> #include <hipcub/hipcub.hpp> #include "../cuda.cuh" const size_t blockSize = 32; // Functions to convert index position to/from squareform to condensed f...
6009bd3fc28efc0578a8483cd2c54957845abc18.cu
#include <iostream> #include <fstream> #include <string> #include <vector> #include <cub/device/device_select.cuh> #include "../cuda.cuh" const size_t blockSize = 32; // Functions to convert index position to/from squareform to condensed form __device__ int calc_row_idx(const int k, const int n) { // __ll2float_rn...
1fe2412b419c9e442917ad4c837112e1b050cc81.hip
// !!! This is a file automatically generated by hipify!!! #include "hip/hip_runtime.h" /* !===================================================================== ! ! S p e c f e m 3 D V e r s i o n 3 . 0 ! --------------------------------------- ! ! Main historical authors: Dimit...
1fe2412b419c9e442917ad4c837112e1b050cc81.cu
/* !===================================================================== ! ! S p e c f e m 3 D V e r s i o n 3 . 0 ! --------------------------------------- ! ! Main historical authors: Dimitri Komatitsch and Jeroen Tromp ! CNRS, France ! ...
59e55ad02f1c82651c39469e6d1cebaf46addbd4.hip
// !!! This is a file automatically generated by hipify!!! #include <stdio.h> #include <iostream> #include <fstream> #include <vector> #include <string> #pragma comment(lib, "cuda.lib") #pragma comment(lib, "cudart.lib") #include <hip/hip_runtime.h> #include <math.h> #include <hip/hip_runtime.h> #include <hip/hip_runt...
59e55ad02f1c82651c39469e6d1cebaf46addbd4.cu
#include <stdio.h> #include <iostream> #include <fstream> #include <vector> #include <string> #pragma comment(lib, "cuda.lib") #pragma comment(lib, "cudart.lib") #include <cuda.h> #include <math.h> #include <cuda_runtime.h> #include <cuda_runtime_api.h> #include "device_launch_parameters.h" #include <cublas_v2.h> usi...