Datasets:

filename
stringlengths
40
40
cuda_source
stringlengths
11
9.01M
cuda_host
stringlengths
1.53k
6.65M
cuda_device
stringlengths
17
97.4M
hip_source
stringlengths
29
9.01M
hip_host
stringlengths
407
13.3M
hip_device
stringlengths
650
11.7M
3e86f1ccc23355749451c34b339da1a03c46a106
#include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <cuda_runtime_api.h> typedef struct point_t { double x; double y; } point_t; int n_data = 1000; __device__ int d_n_data = 1000; point_t data[] = { {76.80,141.84},{73.91,133.16},{65.59,135.84},{77.08,144.27}, {83.32,166.24...
.file "tmpxft_002e11ee_00000000-6_lr_bibek.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2047: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2047: .size _ZL26__cudaU...
code for sm_89 Function : _Z11d_rms_errorPdS_S_P7point_t .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <hip/hip_runtime_api.h> typedef struct point_t { double x; double y; } point_t; int n_data = 1000; __device__ int d_n_data = 1000; point_t data[] = { {76.80,141.84},{73.91,133.16},{65.59,135.84...
.text .file "lr_bibek.hip" .globl _Z14residual_errordddd # -- Begin function _Z14residual_errordddd .type _Z14residual_errordddd,@function _Z14residual_errordddd: # @_Z14residual_errordddd .cfi_startproc # %bb.0: mulsd %xmm2, %xmm0 addsd %xmm3, %xmm0 subsd %xmm1, %xmm0 mulsd %xmm0, %xm...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11d_rms_errorPdS_S_P7point_t ; -- Begin function _Z11d_rms_errorPdS_S_P7point_t .globl _Z11d_rms_errorPdS_S_P7point_t .p2align 8 .type _Z11d_rms_errorPdS_S_P7point_t,@function _Z11d_rms_errorPdS_S_P7point_t: ; @_Z11d_rms_errorPdS_S_P7point_t ;...
707b8132a8232408d954f54e770d320aada5462e
/* * Copyright (c) 2018 Preferred Networks, Inc. All rights reserved. */ namespace chainer_trt { namespace plugin { __global__ void transpose_kernel(const float* d_src, float* d_dst, int* d_indexes, int in_size) { int idx = blockIdx.x * blockDim.x + threadIdx.x; ...
.file "tmpxft_0039a6a4_00000000-6_transpose.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2012: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2012: .size _ZL26__cuda...
code for sm_89 Function : _ZN11chainer_trt6plugin17transpose_indexesEPiS1_S1_S1_S1_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> /* * Copyright (c) 2018 Preferred Networks, Inc. All rights reserved. */ namespace chainer_trt { namespace plugin { __global__ void transpose_kernel(const float* d_src, float* d_dst, int* d_indexes, int in_size) { int idx = blockIdx.x * b...
.text .file "transpose.hip" .globl _ZN11chainer_trt6plugin31__device_stub__transpose_kernelEPKfPfPii # -- Begin function _ZN11chainer_trt6plugin31__device_stub__transpose_kernelEPKfPfPii .type _ZN11chainer_trt6plugin31__device_stub__transpose_kernelEPKfPfPii,@function _ZN11chainer_trt6plugin31__device_stub__transpo...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _ZN11chainer_trt6plugin16transpose_kernelEPKfPfPii ; -- Begin function _ZN11chainer_trt6plugin16transpose_kernelEPKfPfPii .globl _ZN11chainer_trt6plugin16transpose_kernelEPKfPfPii .p2align 8 .type _ZN11chainer_trt6plugin16transpose_kernelEPKfPfPii,@func...
464e7f1701ff01007eecf52762fb122dc0440d98
// This example demonstrates parallel floating point vector // addition with a simple __global__ function. #include <stdlib.h> #include <stdio.h> #include <iostream> #include <time.h> #include <unistd.h> #include <sys/time.h> #include <cuda_runtime.h> #define BLOCK_SIZE 512 // this kernel computes the vector sum c =...
.file "tmpxft_003b4a6c_00000000-6_vector_reduction.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3653: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PL...
code for sm_89 Function : _Z23vector_reduction_sharedPKfPfm .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// This example demonstrates parallel floating point vector // addition with a simple __global__ function. #include <stdlib.h> #include <stdio.h> #include <iostream> #include <time.h> #include <unistd.h> #include <sys/time.h> #include <hip/hip_runtime.h> #define BLOCK_SIZE 512 // this kernel computes the vector sum ...
.text .file "vector_reduction.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z20vector_reduction_seqPKfPfm # -- Begin function _Z20vector_reduction_seqPKfPfm ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16vector_reductionPfS_m ; -- Begin function _Z16vector_reductionPfS_m .globl _Z16vector_reductionPfS_m .p2align 8 .type _Z16vector_reductionPfS_m,@function _Z16vector_reductionPfS_m: ; @_Z16vector_reductionPfS_m ; %bb.0: s_clause 0x1 s_...
7e8b024e51029a9a68d03819fce17db00787d155
#include<stdio.h> #define iteration_max 100 #define CEIL(a, b) (((a) + (b) - 1)/(b)) // Function using of the internet //////////////////////////////////////////////////////////////////////////////// // These are CUDA Helper functions // This will output the proper CUDA error strings in the event that a CUDA host cal...
.file "tmpxft_00300492_00000000-6_so_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUn...
code for sm_89 Function : _Z6kerneliiffffPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include<stdio.h> #define iteration_max 100 #define CEIL(a, b) (((a) + (b) - 1)/(b)) // Function using of the internet //////////////////////////////////////////////////////////////////////////////// // These are CUDA Helper functions // This will output the proper CUDA error strings in ...
.text .file "so_cuda.hip" .globl _Z21__device_stub__kerneliiffffPi # -- Begin function _Z21__device_stub__kerneliiffffPi .type _Z21__device_stub__kerneliiffffPi,@function _Z21__device_stub__kerneliiffffPi: # @_Z21__device_stub__kerneliiffffPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kerneliiffffPi ; -- Begin function _Z6kerneliiffffPi .globl _Z6kerneliiffffPi .p2align 8 .type _Z6kerneliiffffPi,@function _Z6kerneliiffffPi: ; @_Z6kerneliiffffPi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_...
42543cfac7e06317b728375d002398ab4d9cf78d
__global__ void force_aux0(long k, double *magx_gpu, double *magy_gpu) { long i,cind; __shared__ double mx,my,mgx[512],mgy[512]; cind=threadIdx.x; mgx[cind]=magx_gpu[cind]; mgy[cind]=magy_gpu[cind]; __syncthreads(); mx=0.0; my=0.0; for (i=0;i<k;i++) { mx+...
.file "tmpxft_0035fba2_00000000-6_force_aux0.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cud...
code for sm_89 Function : _Z10force_aux0lPdS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> __global__ void force_aux0(long k, double *magx_gpu, double *magy_gpu) { long i,cind; __shared__ double mx,my,mgx[512],mgy[512]; cind=threadIdx.x; mgx[cind]=magx_gpu[cind]; mgy[cind]=magy_gpu[cind]; __syncthreads(); mx=0.0; my=0.0; for (i=0...
.text .file "force_aux0.hip" .globl _Z25__device_stub__force_aux0lPdS_ # -- Begin function _Z25__device_stub__force_aux0lPdS_ .type _Z25__device_stub__force_aux0lPdS_,@function _Z25__device_stub__force_aux0lPdS_: # @_Z25__device_stub__force_aux0lPdS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10force_aux0lPdS_ ; -- Begin function _Z10force_aux0lPdS_ .globl _Z10force_aux0lPdS_ .p2align 8 .type _Z10force_aux0lPdS_,@function _Z10force_aux0lPdS_: ; @_Z10force_aux0lPdS_ ; %bb.0: s_clause 0x1 s_load_b128 s[4:7], s[0:1], ...
f8dfd3fe63d4a62e09c861efbf3f5f8453d3fabb
// Kernel function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { int i = blockIdx.x*blockDim.x + threadIdx.x; if(i < n) { y[i] = x[i] + y[i]; } }
.file "tmpxft_0031be71_00000000-6_common.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z3addiPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> // Kernel function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { int i = blockIdx.x*blockDim.x + threadIdx.x; if(i < n) { y[i] = x[i] + y[i]; } }
.text .file "common.hip" .globl _Z18__device_stub__addiPfS_ # -- Begin function _Z18__device_stub__addiPfS_ .type _Z18__device_stub__addiPfS_,@function _Z18__device_stub__addiPfS_: # @_Z18__device_stub__addiPfS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addiPfS_ ; -- Begin function _Z3addiPfS_ .globl _Z3addiPfS_ .p2align 8 .type _Z3addiPfS_,@function _Z3addiPfS_: ; @_Z3addiPfS_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b32 s3, s[0:1], 0x0 s_w...
af9dcf4208a869b1cfd9e7f9bfe9faf9351e7e45
#include "includes.h" /** * This is my first program in learning parallel programming using CUDA. * Equivalent to a hello World program :-) * This program basically performs two tasks: * 1. It selects suitable CUDA enabled device(GPU) and prints the device properties * 2. It demonstrate basic parallel addition of two a...
.file "tmpxft_0033cd56_00000000-6_add.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnregi...
code for sm_89 Function : _Z3addPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" /** * This is my first program in learning parallel programming using CUDA. * Equivalent to a hello World program :-) * This program basically performs two tasks: * 1. It selects suitable CUDA enabled device(GPU) and prints the device properties * 2. It demonstrate ba...
.text .file "add.hip" .globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_ .type _Z18__device_stub__addPiS_S_,@function _Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_of...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_ ; -- Begin function _Z3addPiS_S_ .globl _Z3addPiS_S_ .p2align 8 .type _Z3addPiS_S_,@function _Z3addPiS_S_: ; @_Z3addPiS_S_ ; %bb.0: s_cmp_gt_i32 s15, 9 s_cbranch_scc1 .LBB0_2 ; %bb.1: s_clause 0x1 s_...
63d83f59b0711ca67c179442f1a0581056671f1b
#include <iostream> __global__ void add( int*a, int*b, int*c ) { int index = threadIdx.x + blockIdx.x * blockDim.x; c[index] = a[index] + b[index]; } #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define N (1024*1024*16) #define THREADS_PER_BLOCK 1024 int main( void ) { int *a, *b, *c...
.file "tmpxft_00361731_00000000-6_add-index.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi...
code for sm_89 Function : _Z3addPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> __global__ void add( int*a, int*b, int*c ) { int index = threadIdx.x + blockIdx.x * blockDim.x; c[index] = a[index] + b[index]; } #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #define N (1024*1024*16) #define THREADS_PER_BLOCK 1024 int ...
.text .file "add-index.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_ .type _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addPiS_S_ ; -- Begin function _Z3addPiS_S_ .globl _Z3addPiS_S_ .p2align 8 .type _Z3addPiS_S_,@function _Z3addPiS_S_: ; @_Z3addPiS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4:7], s[0:1],...
a8086cf603670fea83290e1b0307acfa792e4834
#include "includes.h" __global__ void chainFunction ( const int dim, const int nwl, const int nst, const int ipr, const float *smpls, float *chnFnctn ) { int i = threadIdx.x + blockDim.x * blockIdx.x; int j = threadIdx.y + blockDim.y * blockIdx.y; int t = i + j * nwl; if ( i < nwl && j < nst ) { chnFnctn[t] = smpls[ipr...
.file "tmpxft_002179bf_00000000-6_chainFunction.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__...
code for sm_89 Function : _Z13chainFunctioniiiiPKfPf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void chainFunction ( const int dim, const int nwl, const int nst, const int ipr, const float *smpls, float *chnFnctn ) { int i = threadIdx.x + blockDim.x * blockIdx.x; int j = threadIdx.y + blockDim.y * blockIdx.y; int t = i + j * nwl; if ( i < nwl && j < n...
.text .file "chainFunction.hip" .globl _Z28__device_stub__chainFunctioniiiiPKfPf # -- Begin function _Z28__device_stub__chainFunctioniiiiPKfPf .type _Z28__device_stub__chainFunctioniiiiPKfPf,@function _Z28__device_stub__chainFunctioniiiiPKfPf: # @_Z28__device_stub__chainFunctioniiiiPKfPf .cfi_startproc # %bb.0: p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13chainFunctioniiiiPKfPf ; -- Begin function _Z13chainFunctioniiiiPKfPf .globl _Z13chainFunctioniiiiPKfPf .p2align 8 .type _Z13chainFunctioniiiiPKfPf,@function _Z13chainFunctioniiiiPKfPf: ; @_Z13chainFunctioniiiiPKfPf ; %bb.0: s_clause 0x...
94492e5a0adb1fcffd9a4a812bf9df2de3e3276e
#include <fstream> #include <iostream> #include <math.h> #include <cmath> #include <curand_kernel.h> #include <cuda.h> #include <string> #include <time.h> __device__ void rot( float *w, float *vec, const float dt) { float mw = sqrt(w[0]*w[0] + w[1]*w[1] + w[2]*w[2]); float omega[3]; float invmw = 1.0f/mw;...
.file "tmpxft_002aba41_00000000-6_improved_sampling.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3985: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@P...
code for sm_89 Function : _Z10final_tempPffiS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <fstream> #include <iostream> #include <math.h> #include <cmath> #include <hiprand/hiprand_kernel.h> #include <hip/hip_runtime.h> #include <string> #include <time.h> __device__ void rot( float *w, float *vec, const float dt) { float mw = sqrt(w[0]*w[0] + w[1]*w[1] + w[2]*w[2]); float omega[3]; fl...
.text .file "improved_sampling.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z30__device_stub__precessnucspinsPfS_iS_S_iif # -- Begin function _Z30__device_st...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15precessnucspinsPfS_iS_S_iif ; -- Begin function _Z15precessnucspinsPfS_iS_S_iif .globl _Z15precessnucspinsPfS_iS_S_iif .p2align 8 .type _Z15precessnucspinsPfS_iS_S_iif,@function _Z15precessnucspinsPfS_iS_S_iif: ; @_Z15precessnucspinsPfS_iS_S_...
3914c030e4e27901668ae5c576bdcbe782af7e81
// Second CUDA program // Ping-Che Chen #include <stdio.h> #include <stdlib.h> #include <time.h> #include <cuda_runtime.h> #define BLOCK_SIZE 16 __global__ static void matMultCUDA(const float* a, size_t lda, const float* b, size_t ldb, float* c, size_t ldc, int n) { __shared__ float matA[BLOCK_SIZE][BLOCK_SIZE]; ...
.file "tmpxft_00297024_00000000-6_second_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2029: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2029: .size _ZL26__cu...
code for sm_89 Function : _Z11matMultCUDAPKfmS0_mPfmi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// Second CUDA program // Ping-Che Chen #include <stdio.h> #include <stdlib.h> #include <time.h> #include <hip/hip_runtime.h> #define BLOCK_SIZE 16 __global__ static void matMultCUDA(const float* a, size_t lda, const float* b, size_t ldb, float* c, size_t ldc, int n) { __shared__ float matA[BLOCK_SIZE][BLOCK_SIZE...
.text .file "second_cuda.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d89...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZL11matMultCUDAPKfmS0_mPfmi,"axG",@progbits,_ZL11matMultCUDAPKfmS0_mPfmi,comdat .globl _ZL11matMultCUDAPKfmS0_mPfmi ; -- Begin function _ZL11matMultCUDAPKfmS0_mPfmi .p2align 8 .type _ZL11matMultCUDAPKfmS0_mPfmi,@function _ZL11matMultCUDAPKfmS0_m...
efdb4cc24da52af568f0e47f0c88075040431a35
#include <stdio.h> #include <cuda_runtime.h> int main(int argc, char **argv) { printf("%s Starting...\n", argv[0]); int deviceCount = 0; cudaError_t error_id = cudaGetDeviceCount(&deviceCount); if (error_id != cudaSuccess){ printf("cudaGetDeviceCount returned %d\n -> %s\n", (i...
.file "tmpxft_00370eba_00000000-6_main.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnreg...
code for sm_89
#include <stdio.h> #include <hip/hip_runtime.h> int main(int argc, char **argv) { printf("%s Starting...\n", argv[0]); int deviceCount = 0; hipError_t error_id = hipGetDeviceCount(&deviceCount); if (error_id != hipSuccess){ printf("hipGetDeviceCount returned %d\n -> %s\n", (in...
.text .file "main.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function main .LCPI0_0: .quad 0x3e10000000000000 # double 9.3132257461547852E-10 .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 .LCPI0_1: .long 0x3a83126f #...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
b9d051e67436e7499446ccdb4c1dd7ff92f44881
__global__ void test_while() { int a[5]; int x = 0; int i = 0; while (i++ < 5) { // i == 1..5 // x == 1..5 ++x; a[x] = 42; a[x - 1] = 42; } // i == 6, x == 5 a[i] = 42; a[x] = 42; a[x - 1] = 42; } __global__ void test_large_while() { const int size = 10000; int b[size]; int i = 0; int x = 0; w...
.file "tmpxft_00284642_00000000-6_test_loops.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cud...
code for sm_89 Function : _Z8test_forv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ ...
#include <hip/hip_runtime.h> __global__ void test_while() { int a[5]; int x = 0; int i = 0; while (i++ < 5) { // i == 1..5 // x == 1..5 ++x; a[x] = 42; a[x - 1] = 42; } // i == 6, x == 5 a[i] = 42; a[x] = 42; a[x - 1] = 42; } __global__ void test_large_while() { const int size = 10000; int b[siz...
.text .file "test_loops.hip" .globl _Z25__device_stub__test_whilev # -- Begin function _Z25__device_stub__test_whilev .type _Z25__device_stub__test_whilev,@function _Z25__device_stub__test_whilev: # @_Z25__device_stub__test_whilev .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10test_whilev ; -- Begin function _Z10test_whilev .globl _Z10test_whilev .p2align 8 .type _Z10test_whilev,@function _Z10test_whilev: ; @_Z10test_whilev ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 ...
ee1b111b644d52a2eaeede6fe8d05f5854e1b57b
/* * JCuda - Java bindings for NVIDIA CUDA driver and runtime API * http://www.jcuda.org * * * This code is based on the NVIDIA 'reduction' CUDA sample, * Copyright 1993-2010 NVIDIA Corporation. */ extern "C" __global__ void reduce(float *g_idata, float *g_odata, unsigned int n) { extern __shared__ float sda...
.file "tmpxft_0035ec49_00000000-6_JCudaReductionKernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size ...
code for sm_89 Function : reduce .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> /* * JCuda - Java bindings for NVIDIA CUDA driver and runtime API * http://www.jcuda.org * * * This code is based on the NVIDIA 'reduction' CUDA sample, * Copyright 1993-2010 NVIDIA Corporation. */ extern "C" __global__ void reduce(float *g_idata, float *g_odata, unsigned int n) { ...
.text .file "JCudaReductionKernel.hip" .globl __device_stub__reduce # -- Begin function __device_stub__reduce .type __device_stub__reduce,@function __device_stub__reduce: # @__device_stub__reduce .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected reduce ; -- Begin function reduce .globl reduce .p2align 8 .type reduce,@function reduce: ; @reduce ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1], 0x24 s_load_b32 s8, s[0:1], 0x10 s_load_b128 s[4:7], s[...
74d88a1be5e8b59b7b1306fea562eda8d1f5a776
#include <cuda.h> #include <stdio.h> int main (int argc, char **argv){ int ndev, maxtpb; cudaGetDeviceCount(&ndev); printf("Number of GPUs = %4d\n",ndev); for(int i=0;i<ndev;i++){ cudaDeviceProp deviceProps; cudaGetDeviceProperties(&deviceProps, i); maxtpb = deviceProps.maxThreadsPerBlock; ...
.file "tmpxft_003b3c2a_00000000-6_query.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnre...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> int main (int argc, char **argv){ int ndev, maxtpb; hipGetDeviceCount(&ndev); printf("Number of GPUs = %4d\n",ndev); for(int i=0;i<ndev;i++){ hipDeviceProp_t deviceProps; hipGetDeviceProperties(&deviceProps, i); maxtpb = deviceProps.maxThreads...
.text .file "query.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %rbx .cfi_def_cfa_offset 32 subq $1488, %rsp ...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
22d700c57e89310b2bd215b161626bb117c3187c
// Copyright (c) 2017 Madhavan Seshadri // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) extern "C" { __global__ void smvp(double *A_data, int *A_indices, int *A_pointers, double *B, double *C, int *m, int ...
.file "tmpxft_002bfad2_00000000-6_smvp.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnreg...
code for sm_89 Function : smvp .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> // Copyright (c) 2017 Madhavan Seshadri // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) extern "C" { __global__ void smvp(double *A_data, int *A_indices, int *A_pointers, doub...
.text .file "smvp.hip" .globl __device_stub__smvp # -- Begin function __device_stub__smvp .type __device_stub__smvp,@function __device_stub__smvp: # @__device_stub__smvp .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected smvp ; -- Begin function smvp .globl smvp .p2align 8 .type smvp,@function smvp: ; @smvp ; %bb.0: s_clause 0x1 s_load_b128 s[16:19], s[0:1], 0x20 s_load_b32 s2, s[0:1], 0x54 s_waitcnt lgkmcnt(0) s...
3cc7c281aadda0fefab60d71a9e27f6d4ab07872
#include <stdio.h> #define N 64 #define TPB 32 float scale(int i, int n) { return ((float)i)/(n-1); } __device__ float distance(float x1, float x2) { return sqrt((x2-x1)*(x2-x1)); } __global__ void distanceKernel(float *d_out, float *d_in, float ref) { const int i = blockIdx.x * blockDim.x + threadIdx.x;...
.file "tmpxft_002b6226_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z14distanceKernelPfS_f .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #define N 64 #define TPB 32 float scale(int i, int n) { return ((float)i)/(n-1); } __device__ float distance(float x1, float x2) { return sqrt((x2-x1)*(x2-x1)); } __global__ void distanceKernel(float *d_out, float *d_in, float ref) { const int i = blockIdx...
.text .file "kernel.hip" .globl _Z5scaleii # -- Begin function _Z5scaleii .type _Z5scaleii,@function _Z5scaleii: # @_Z5scaleii .cfi_startproc # %bb.0: cvtsi2ss %edi, %xmm0 decl %esi cvtsi2ss %esi, %xmm1 divss %xmm1, %xmm0 retq .Lfunc_end0: .size _Z5scaleii, .L...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14distanceKernelPfS_f ; -- Begin function _Z14distanceKernelPfS_f .globl _Z14distanceKernelPfS_f .p2align 8 .type _Z14distanceKernelPfS_f,@function _Z14distanceKernelPfS_f: ; @_Z14distanceKernelPfS_f ; %bb.0: s_clause 0x2 s_load_b32 s...
9c14d7c1da01d4eba265afe64cf3bb1034484d53
#include "includes.h" __global__ void mapKernel(float* out, int functionCode, float frange_start, float dx) { int id = blockIdx.x * blockDim.x + threadIdx.x; float x = frange_start + id * dx; float y; switch (functionCode) { case 0: y = cos(x); break; case 1: y = tan(x); break; default: y = sin(x); break; } out[2 * ...
.file "tmpxft_003a3b7c_00000000-6_mapKernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cuda...
code for sm_89 Function : _Z9mapKernelPfiff .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void mapKernel(float* out, int functionCode, float frange_start, float dx) { int id = blockIdx.x * blockDim.x + threadIdx.x; float x = frange_start + id * dx; float y; switch (functionCode) { case 0: y = cos(x); break; case 1: y = tan(x); break; default: ...
.text .file "mapKernel.hip" .globl _Z24__device_stub__mapKernelPfiff # -- Begin function _Z24__device_stub__mapKernelPfiff .type _Z24__device_stub__mapKernelPfiff,@function _Z24__device_stub__mapKernelPfiff: # @_Z24__device_stub__mapKernelPfiff .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9mapKernelPfiff ; -- Begin function _Z9mapKernelPfiff .globl _Z9mapKernelPfiff .p2align 8 .type _Z9mapKernelPfiff,@function _Z9mapKernelPfiff: ; @_Z9mapKernelPfiff ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_...
789a5fc2d53c7c5eff021d2876e36d8e6fe2823a
#include <stdio.h> #include <cuda_runtime.h> __global__ void vectorAdd(float *A, float *B, float *C, int numElements) { int i = blockIdx.x * blockDim.x + threadIdx.x; if(i < numElements) { C[i] = A[i] + B[i]; } } int main() { int numElements = 1000; size_t size = numElements * sizeof(float); float *h_A,...
.file "tmpxft_0024184f_00000000-6_vector_add_self.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26...
code for sm_89 Function : _Z9vectorAddPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <stdio.h> #include <hip/hip_runtime.h> __global__ void vectorAdd(float *A, float *B, float *C, int numElements) { int i = blockIdx.x * blockDim.x + threadIdx.x; if(i < numElements) { C[i] = A[i] + B[i]; } } int main() { int numElements = 1000; size_t size = numElements * sizeof(float); float *h...
.text .file "vector_add_self.hip" .globl _Z24__device_stub__vectorAddPfS_S_i # -- Begin function _Z24__device_stub__vectorAddPfS_S_i .type _Z24__device_stub__vectorAddPfS_S_i,@function _Z24__device_stub__vectorAddPfS_S_i: # @_Z24__device_stub__vectorAddPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9vectorAddPfS_S_i ; -- Begin function _Z9vectorAddPfS_S_i .globl _Z9vectorAddPfS_S_i .p2align 8 .type _Z9vectorAddPfS_S_i,@function _Z9vectorAddPfS_S_i: ; @_Z9vectorAddPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c ...
ac265768e4a18f42a145194d0b159a02fbb5f3d0
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <complex.h> #include <cufft.h> // Kernel used for assigning values to matrix. __global__ void assign(int N, cufftDoubleComplex* a, cufftDoubleComplex* a_copy){ if (blockIdx.x < N && blockIdx.y < N){ a_copy[blockIdx.x+blockIdx....
.file "tmpxft_00388f68_00000000-6_ComplexGL.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3962: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE3962: .size _ZL26__cuda...
code for sm_89 Function : _Z6updateidddidP7double2S0_S0_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <complex.h> #include <hipfft/hipfft.h> // Kernel used for assigning values to matrix. __global__ void assign(int N, hipfftDoubleComplex* a, hipfftDoubleComplex* a_copy){ if (blockIdx.x < N && blockIdx...
.text .file "ComplexGL.hip" .globl _Z21__device_stub__assigniP15HIP_vector_typeIdLj2EES1_ # -- Begin function _Z21__device_stub__assigniP15HIP_vector_typeIdLj2EES1_ .type _Z21__device_stub__assigniP15HIP_vector_typeIdLj2EES1_,@function _Z21__device_stub__assigniP15HIP_vector_typeIdLj2EES1_: # @_Z21__device_stub__as...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6assigniP15HIP_vector_typeIdLj2EES1_ ; -- Begin function _Z6assigniP15HIP_vector_typeIdLj2EES1_ .globl _Z6assigniP15HIP_vector_typeIdLj2EES1_ .p2align 8 .type _Z6assigniP15HIP_vector_typeIdLj2EES1_,@function _Z6assigniP15HIP_vector_typeIdLj2EES1_: ; @...
10811452851aad63ad56634add9b23e8e1c837dd
#include <iostream> #include <cstdio> using namespace std; #include <cuda_runtime.h> #define TIMES 24 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////HELP FUNCTIONS//////////////////////////////////////...
.file "tmpxft_0022f99d_00000000-6_l1_stride.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3643: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi...
code for sm_89 Function : _Z9l1_stridePKfPfi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <iostream> #include <cstdio> using namespace std; #include <hip/hip_runtime.h> #define TIMES 24 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////HELP FUNCTIONS///////////////////////////////////...
.text .file "l1_stride.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin funct...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14l1_stride_consPKfPfi ; -- Begin function _Z14l1_stride_consPKfPfi .globl _Z14l1_stride_consPKfPfi .p2align 8 .type _Z14l1_stride_consPKfPfi,@function _Z14l1_stride_consPKfPfi: ; @_Z14l1_stride_consPKfPfi ; %bb.0: s_clause 0x1 s_load_...
4d56fef24e438cfacec9b93f769ad36869f60a7a
/** * Vector reverse: A[i] = B[SIZE - i]. * */ #include <stdio.h> #include <cuda_runtime.h> // SIZE is defined to be multiple of the number of threads #define SIZE 4 #define THREADS_PER_BLOCK 4 __global__ void mat_mul( int *A, int *B, int *C, int size) { int thrIdx = blockIdx.x * blockDim.x + threadIdx.x; ...
.file "tmpxft_0039516d_00000000-6_Mmul_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cuda...
code for sm_89 Function : _Z7mat_mulPiS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/** * Vector reverse: A[i] = B[SIZE - i]. * */ #include <stdio.h> #include <hip/hip_runtime.h> // SIZE is defined to be multiple of the number of threads #define SIZE 4 #define THREADS_PER_BLOCK 4 __global__ void mat_mul( int *A, int *B, int *C, int size) { int thrIdx = blockIdx.x * blockDim.x + threadIdx.x;...
.text .file "Mmul_cuda.hip" .globl _Z22__device_stub__mat_mulPiS_S_i # -- Begin function _Z22__device_stub__mat_mulPiS_S_i .type _Z22__device_stub__mat_mulPiS_S_i,@function _Z22__device_stub__mat_mulPiS_S_i: # @_Z22__device_stub__mat_mulPiS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7mat_mulPiS_S_i ; -- Begin function _Z7mat_mulPiS_S_i .globl _Z7mat_mulPiS_S_i .p2align 8 .type _Z7mat_mulPiS_S_i,@function _Z7mat_mulPiS_S_i: ; @_Z7mat_mulPiS_S_i ; %bb.0: s_load_b32 s6, s[0:1], 0x18 s_waitcnt lgkmcnt(0) ...
51dd73bfde58214ce92cc632c301934cd7aa5e75
#include <cuda.h> #include <cmath> #include <cstdio> #include <iostream> #include <chrono> using namespace std; // check for errors using cuda runtime api // https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api // Error: GPUassert: unknown error vecadd.c...
.file "tmpxft_0039438c_00000000-6_vecadd.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3740: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z12vecAddKernelPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <cmath> #include <cstdio> #include <iostream> #include <chrono> using namespace std; // check for errors using cuda runtime api // https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api // Error: GPUassert: unknown err...
.text .file "vecadd.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z7vecAdd1PfS_S_i # -- Begin function _Z7vecAdd1PfS_S_i .type _Z7vecAdd1PfS_S_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12vecAddKernelPfS_S_i ; -- Begin function _Z12vecAddKernelPfS_S_i .globl _Z12vecAddKernelPfS_S_i .p2align 8 .type _Z12vecAddKernelPfS_S_i,@function _Z12vecAddKernelPfS_S_i: ; @_Z12vecAddKernelPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s...
da0ae36a8bdc3200c6e345b1dae86256abc869e3
#include <stdio.h> #include <stdlib.h> #define DIM 1000 #define CUDA_CHECK( err ) (cuda_checker(err, __FILE__, __LINE__)) static void cuda_checker( cudaError_t err, const char *file, int line ) { if (err != cudaSuccess) { printf("%s in %s at line %d\n", cudaGetErrorString(err), file, line); exit(EXIT_FAILURE);...
.file "tmpxft_0022b4af_00000000-6_1d_3.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2040: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2040: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z6kernelPh .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define DIM 1000 #define CUDA_CHECK( err ) (cuda_checker(err, __FILE__, __LINE__)) static void cuda_checker( hipError_t err, const char *file, int line ) { if (err != hipSuccess) { printf("%s in %s at line %d\n", hipGetErrorString(err), file, l...
.text .file "1d_3.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function _Z5juliaii .LCPI0_0: .long 0x3fc00000 # float 1.5 .LCPI0_1: .long 0x43fa0000 # float 500 .LCPI0_2: .long 0xbf4ccccd # float -0....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPh ; -- Begin function _Z6kernelPh .globl _Z6kernelPh .p2align 8 .type _Z6kernelPh,@function _Z6kernelPh: ; @_Z6kernelPh ; %bb.0: s_load_b32 s4, s[0:1], 0x14 s_add_u32 s2, s0, 8 s_addc_u32 s3, s1, 0 s_...
f15143bf1f7979a6a3908ad6426e0352a684ea59
#include "includes.h" __global__ void transposeDiagonalRow(float *out, float *in, const int nx, const int ny) { unsigned int blk_y = blockIdx.x; unsigned int blk_x = (blockIdx.x + blockIdx.y) % gridDim.x; unsigned int ix = blockDim.x * blk_x + threadIdx.x; unsigned int iy = blockDim.y * blk_y + threadIdx.y; if (ix < ...
.file "tmpxft_0025fcae_00000000-6_transposeDiagonalRow.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size ...
code for sm_89 Function : _Z20transposeDiagonalRowPfS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void transposeDiagonalRow(float *out, float *in, const int nx, const int ny) { unsigned int blk_y = blockIdx.x; unsigned int blk_x = (blockIdx.x + blockIdx.y) % gridDim.x; unsigned int ix = blockDim.x * blk_x + threadIdx.x; unsigned int iy = blockDim.y * b...
.text .file "transposeDiagonalRow.hip" .globl _Z35__device_stub__transposeDiagonalRowPfS_ii # -- Begin function _Z35__device_stub__transposeDiagonalRowPfS_ii .type _Z35__device_stub__transposeDiagonalRowPfS_ii,@function _Z35__device_stub__transposeDiagonalRowPfS_ii: # @_Z35__device_stub__transposeDiagonalRowPfS_ii ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20transposeDiagonalRowPfS_ii ; -- Begin function _Z20transposeDiagonalRowPfS_ii .globl _Z20transposeDiagonalRowPfS_ii .p2align 8 .type _Z20transposeDiagonalRowPfS_ii,@function _Z20transposeDiagonalRowPfS_ii: ; @_Z20transposeDiagonalRowPfS_ii ;...
0baa21c4009f30210d8c6fa543418b9c3bb3506a
#include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/sort.h> #include <thrust/inner_product.h> #include <thrust/for_each.h> #include <cstdlib> #include <vector> typedef double ScalarType; int main(void) { /* // generate 32M random numbers on the host thrust::host_vector<int> h_...
.file "tmpxft_003814e1_00000000-6_thrust.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat ...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS28DeviceReduceSingleTileKernelINS0_18DeviceReducePolicyIdyN6thrust20THRUST_200700_890_NS4plusIdEEE9Policy600EPdS9_iS6_ddN4cuda3std3__410__identityEEEvT0_T1_T2_T3_T4_T6_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(E...
#include <hip/hip_runtime.h> #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/sort.h> #include <thrust/inner_product.h> #include <thrust/for_each.h> #include <cstdlib> #include <vector> typedef double ScalarType; int main(void) { /* // generate 32M random numbers on the host...
.text .file "thrust.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl main # -- Begin function main .type main,@function main: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN7rocprim6detail19block_reduce_kernelILb0ENS0_21wrapped_reduce_configINS_14default_configEdEEdPdS5_dN6thrust4plusIdEEEEvT2_mT3_T4_T5_,"axG",@progbits,_ZN7rocprim6detail19block_reduce_kernelILb0ENS0_21wrapped_reduce_configINS_14default_configEdEEdPdS5...
93e90f96297bd2b08f3f50cc9c295e26a99ac74b
#include "includes.h" __global__ void cuda_multiply_f32(float *input_output, size_t size, float multipler) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < size) input_output[idx] = input_output[idx] * multipler; // 7-bit (1-bit sign) }
.file "tmpxft_0031ed83_00000000-6_cuda_multiply_f32.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL...
code for sm_89 Function : _Z17cuda_multiply_f32Pfmf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void cuda_multiply_f32(float *input_output, size_t size, float multipler) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < size) input_output[idx] = input_output[idx] * multipler; // 7-bit (1-bit sign) }
.text .file "cuda_multiply_f32.hip" .globl _Z32__device_stub__cuda_multiply_f32Pfmf # -- Begin function _Z32__device_stub__cuda_multiply_f32Pfmf .type _Z32__device_stub__cuda_multiply_f32Pfmf,@function _Z32__device_stub__cuda_multiply_f32Pfmf: # @_Z32__device_stub__cuda_multiply_f32Pfmf .cfi_startproc # %bb.0: pu...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17cuda_multiply_f32Pfmf ; -- Begin function _Z17cuda_multiply_f32Pfmf .globl _Z17cuda_multiply_f32Pfmf .p2align 8 .type _Z17cuda_multiply_f32Pfmf,@function _Z17cuda_multiply_f32Pfmf: ; @_Z17cuda_multiply_f32Pfmf ; %bb.0: s_clause 0x1 s_...
ed17debea57a03888a77a395f48ffd5aa4ba0aeb
/* simple-warp-divergence.cu */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <cuda_runtime.h> #define CHECK_CUDA_CALL(call) \ { \ const cudaError_t error = call; \ \ if (error != cudaSuccess) { \ fprintf(stderr, "Error (%s:%d), code: ...
.file "tmpxft_0027f97e_00000000-6_simple-warp-divergence.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .siz...
code for sm_89 Function : _Z23warpDivergencePredicatePf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/* simple-warp-divergence.cu */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <hip/hip_runtime.h> #define CHECK_CUDA_CALL(call) \ { \ const hipError_t error = call; \ \ if (error != hipSuccess) { \ fprintf(stderr, "Error (%s:%d), code:...
.text .file "simple-warp-divergence.hip" .globl _Z21__device_stub__warmUpPf # -- Begin function _Z21__device_stub__warmUpPf .type _Z21__device_stub__warmUpPf,@function _Z21__device_stub__warmUpPf: # @_Z21__device_stub__warmUpPf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6warmUpPf ; -- Begin function _Z6warmUpPf .globl _Z6warmUpPf .p2align 8 .type _Z6warmUpPf,@function _Z6warmUpPf: ; @_Z6warmUpPf ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x14 s_load_b64 s[0:1], s[0:1], 0x0 ...
c640b5ad4f1d236ee5a77e93956a912d8a3f2b29
/* * * Programa de Introducci�n a los conceptos de CUDA * Suma dos vectores de enteros e indica qu� partes del c�digo deben modificarse * para implementar la versi�n paralela en el GPU * * Asume un modelo de memoria distribuida */ /* Parte 0: A�adir los archivos .h de CUDA*/ #include <cuda_runtime.h> #include ...
.file "tmpxft_002c3231_00000000-6_sumaVec.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3640: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_e...
code for sm_89 Function : _Z19vect_add_multiblockPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
/* * * Programa de Introducci�n a los conceptos de CUDA * Suma dos vectores de enteros e indica qu� partes del c�digo deben modificarse * para implementar la versi�n paralela en el GPU * * Asume un modelo de memoria distribuida */ /* Parte 0: A�adir los archivos .h de CUDA*/ #include <hip/hip_runtime.h> #incl...
.text .file "sumaVec.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z10vect_add_cPiS_S_ # -- Begin function _Z10vect_add_cPiS_S_ .type _Z10vect_add...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8vect_addPiS_S_ ; -- Begin function _Z8vect_addPiS_S_ .globl _Z8vect_addPiS_S_ .p2align 8 .type _Z8vect_addPiS_S_,@function _Z8vect_addPiS_S_: ; @_Z8vect_addPiS_S_ ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 v_lshlrev_b32_e32...
7600618f5fba2433260fa3b1551737eb06714cc8
#include <stdio.h> #define T 8 // As Threads #define N 16 __global__ void vecMatrixTransposed(int *A, int *B) { int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y+ threadIdx.y; int width = gridDim.x * T; for( int j = 0; j<T; j+=N ) { B[x*width + (j+y)] = A[(y+j...
.file "tmpxft_00291fac_00000000-6_cuda5.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnre...
code for sm_89 Function : _Z19vecMatrixTransposedPiS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #define T 8 // As Threads #define N 16 __global__ void vecMatrixTransposed(int *A, int *B) { int x = blockIdx.x * blockDim.x + threadIdx.x; int y = blockIdx.y * blockDim.y+ threadIdx.y; int width = gridDim.x * T; for( int j = 0; j<T; j+=N ) { ...
.text .file "cuda5.hip" .globl _Z34__device_stub__vecMatrixTransposedPiS_ # -- Begin function _Z34__device_stub__vecMatrixTransposedPiS_ .type _Z34__device_stub__vecMatrixTransposedPiS_,@function _Z34__device_stub__vecMatrixTransposedPiS_: # @_Z34__device_stub__vecMatrixTransposedPiS_ .cfi_startproc # %bb.0: push...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19vecMatrixTransposedPiS_ ; -- Begin function _Z19vecMatrixTransposedPiS_ .globl _Z19vecMatrixTransposedPiS_ .p2align 8 .type _Z19vecMatrixTransposedPiS_,@function _Z19vecMatrixTransposedPiS_: ; @_Z19vecMatrixTransposedPiS_ ; %bb.0: ...
116a0712bcb1b1da9da9347adbb5770c199f96c2
#include <stdio.h> #include <stdlib.h> #define INPUT_SIZE 8 #define MASK_SIZE 4 #define RES_SIZE (MASK_SIZE+INPUT_SIZE-1) #define THREAD_PER_BLOCK 2 #define N_BLOCKS (RES_SIZE+THREAD_PER_BLOCK-1)/THREAD_PER_BLOCK /* Debug runtime API function */ #define CHECK(call){\ const cudaError_t error=call;\ if( error!=...
.file "tmpxft_00389712_00000000-6_convolution_easy.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL2...
code for sm_89 Function : _Z11convolutionPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #define INPUT_SIZE 8 #define MASK_SIZE 4 #define RES_SIZE (MASK_SIZE+INPUT_SIZE-1) #define THREAD_PER_BLOCK 2 #define N_BLOCKS (RES_SIZE+THREAD_PER_BLOCK-1)/THREAD_PER_BLOCK /* Debug runtime API function */ #define CHECK(call){\ const hipError_t...
.text .file "convolution_easy.hip" .globl _Z26__device_stub__convolutionPiS_S_ # -- Begin function _Z26__device_stub__convolutionPiS_S_ .type _Z26__device_stub__convolutionPiS_S_,@function _Z26__device_stub__convolutionPiS_S_: # @_Z26__device_stub__convolutionPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11convolutionPiS_S_ ; -- Begin function _Z11convolutionPiS_S_ .globl _Z11convolutionPiS_S_ .p2align 8 .type _Z11convolutionPiS_S_,@function _Z11convolutionPiS_S_: ; @_Z11convolutionPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 s_wai...
2ffcb0c107d88619cfcda5561e1dc319f87514d0
#include <stdio.h> // // kernel code // __global__ void my_first_kernel() { printf("Hello from block (%d, %d), thread (%d, %d)\n", blockIdx.x, blockIdx.y, threadIdx.x, threadIdx.y); } // // host code // int main(int argc, char **argv) { // set number of blocks, and threads per block dim3 blocks_2d = dim3(...
.file "tmpxft_0020ee07_00000000-6_prac1b.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z15my_first_kernelv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> // // kernel code // __global__ void my_first_kernel() { printf("Hello from block (%d, %d), thread (%d, %d)\n", blockIdx.x, blockIdx.y, threadIdx.x, threadIdx.y); } // // host code // int main(int argc, char **argv) { // set number of blocks, and threads per b...
.text .file "prac1b.hip" .globl _Z30__device_stub__my_first_kernelv # -- Begin function _Z30__device_stub__my_first_kernelv .type _Z30__device_stub__my_first_kernelv,@function _Z30__device_stub__my_first_kernelv: # @_Z30__device_stub__my_first_kernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15my_first_kernelv ; -- Begin function _Z15my_first_kernelv .globl _Z15my_first_kernelv .p2align 8 .type _Z15my_first_kernelv,@function _Z15my_first_kernelv: ; @_Z15my_first_kernelv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbc...
f07dd5c0f69bd6875878b3066c6cdd37bb96d3f3
//Editor: Michael Lukiman //Izhikevich spiking neuron network implementation in CUDA with added spatial winner-take-all dynamics //GPU Architecture and Programming - Fall 2018 #include <stdio.h> //Standard input-output #include <stdlib.h> //StandardLibraryfunctions #include <iostream> //For streaming input-output oper...
.file "tmpxft_0039c0a6_00000000-6_gen3.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3640: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89
//Editor: Michael Lukiman //Izhikevich spiking neuron network implementation in CUDA with added spatial winner-take-all dynamics //GPU Architecture and Programming - Fall 2018 #include <hip/hip_runtime.h> #include <stdio.h> //Standard input-output #include <stdlib.h> //StandardLibraryfunctions #include <iostream> //F...
.text .file "gen3.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z11pstochastici # -- Begin function _Z11pstochastici .type _Z11pstochastici,@f...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
10ed614e4b91f0b46af802f289f4c46e387d44b0
#include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <cuda_runtime_api.h> #include <errno.h> #include <unistd.h> /****************************************************************************** * This program takes an initial estimate of m and c and finds the associated * rms error. It...
.file "tmpxft_002a7fa8_00000000-6_linear_raj_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2047: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2047: .size _ZL26...
code for sm_89 Function : _Z11d_rms_errorPdS_S_P7point_t .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <math.h> #include <time.h> #include <unistd.h> #include <hip/hip_runtime_api.h> #include <errno.h> #include <unistd.h> /****************************************************************************** * This program takes an initial estimate of m and c and finds...
.text .file "linear_raj_cuda.hip" .globl _Z14residual_errordddd # -- Begin function _Z14residual_errordddd .type _Z14residual_errordddd,@function _Z14residual_errordddd: # @_Z14residual_errordddd .cfi_startproc # %bb.0: mulsd %xmm2, %xmm0 addsd %xmm3, %xmm0 subsd %xmm1, %xmm0 mulsd %xm...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11d_rms_errorPdS_S_P7point_t ; -- Begin function _Z11d_rms_errorPdS_S_P7point_t .globl _Z11d_rms_errorPdS_S_P7point_t .p2align 8 .type _Z11d_rms_errorPdS_S_P7point_t,@function _Z11d_rms_errorPdS_S_P7point_t: ; @_Z11d_rms_errorPdS_S_P7point_t ;...
0aa0febd57628552bf052704fd79e798ef5529a4
//xfail:TIMEOUT //--blockDim=32 --gridDim=64 --no-inline #include "cuda.h" #define N 32 __global__ void foo(int* p) { __shared__ unsigned char x[N]; for (unsigned int i=0; i<(N/4); i++) { ((unsigned int *)x)[i] = threadIdx.x; } }
.file "tmpxft_00378793_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z3fooPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ ...
//xfail:TIMEOUT //--blockDim=32 --gridDim=64 --no-inline #include "hip/hip_runtime.h" #define N 32 __global__ void foo(int* p) { __shared__ unsigned char x[N]; for (unsigned int i=0; i<(N/4); i++) { ((unsigned int *)x)[i] = threadIdx.x; } }
.text .file "kernel.hip" .globl _Z18__device_stub__fooPi # -- Begin function _Z18__device_stub__fooPi .type _Z18__device_stub__fooPi,@function _Z18__device_stub__fooPi: # @_Z18__device_stub__fooPi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3fooPi ; -- Begin function _Z3fooPi .globl _Z3fooPi .p2align 8 .type _Z3fooPi,@function _Z3fooPi: ; @_Z3fooPi ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z3fooPi ....
733b14c17205bf9404dac4ab23b4f65e0432f218
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <stdlib.h> #include <stdio.h> cudaError_t backPropagation(double *out, double *x, double *y, double *W, unsigned int row, unsigned int column, double eta); __global__ void subtractKernel(double *out, double *y, unsigned int row) { int t...
.file "tmpxft_003ba5dd_00000000-6_back_propagation.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL2...
code for sm_89 Function : _Z13updateWKernelPdS_S_jjd .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include "hip/hip_runtime.h" #include <stdlib.h> #include <stdio.h> hipError_t backPropagation(double *out, double *x, double *y, double *W, unsigned int row, unsigned int column, double eta); __global__ void subtractKernel(double *out, double *y, unsigned int row) { int thread_idx = blockIdx.x * blockDim.x...
.text .file "back_propagation.hip" .globl _Z29__device_stub__subtractKernelPdS_j # -- Begin function _Z29__device_stub__subtractKernelPdS_j .type _Z29__device_stub__subtractKernelPdS_j,@function _Z29__device_stub__subtractKernelPdS_j: # @_Z29__device_stub__subtractKernelPdS_j .cfi_startproc # %bb.0: pushq %r15 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14subtractKernelPdS_j ; -- Begin function _Z14subtractKernelPdS_j .globl _Z14subtractKernelPdS_j .p2align 8 .type _Z14subtractKernelPdS_j,@function _Z14subtractKernelPdS_j: ; @_Z14subtractKernelPdS_j ; %bb.0: s_clause 0x1 s_load_b32 s...
d8aa4f103087e8b41b859ff36104f640eef49ce1
#include <stdio.h> #include <iostream> __global__ void helloFromGPU() { printf("Hello world from GPU using C++\n"); // A line below doesn't work! // std::cout << "Hello world from GPU using C++" << std::endl; } int main(int argc, char const* argv[]) { std::cout << "Hello world from cpu using C++" << std::endl; ...
.file "tmpxft_0025f060_00000000-6_helloworld2.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .c...
code for sm_89 Function : _Z12helloFromGPUv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <iostream> __global__ void helloFromGPU() { printf("Hello world from GPU using C++\n"); // A line below doesn't work! // std::cout << "Hello world from GPU using C++" << std::endl; } int main(int argc, char const* argv[]) { std::cout << "Hello world from ...
.text .file "helloworld2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z27__device_stub__helloFromGPUv # -- Begin function _Z27__device_stub__helloFromGPUv ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12helloFromGPUv ; -- Begin function _Z12helloFromGPUv .globl _Z12helloFromGPUv .p2align 8 .type _Z12helloFromGPUv,@function _Z12helloFromGPUv: ; @_Z12helloFromGPUv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b3...
8cf31a4b77a123d13be11e09394a674c6772a217
/* By: Carrick McClain Sources: http://csweb.cs.wfu.edu https://stackoverflow.com http://www.cplusplus.com https://devtalk.nvidia.com https://docs.nvidia.com/cuda/cuda-c-programming-guide */ #include <iostream> #include <stdio.h> #include <cuda.h> #include <cuda_runtime....
.file "tmpxft_001fe57b_00000000-6_trapezoidal_rule.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3646: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PL...
code for sm_89 Function : _Z18trapezoidal_kernelfffPf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
/* By: Carrick McClain Sources: http://csweb.cs.wfu.edu https://stackoverflow.com http://www.cplusplus.com https://devtalk.nvidia.com https://docs.nvidia.com/cuda/cuda-c-programming-guide */ #include <iostream> #include <stdio.h> #include <hip/hip_runtime.h> using name...
.text .file "trapezoidal_rule.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18trapezoidal_kernelfffPf ; -- Begin function _Z18trapezoidal_kernelfffPf .globl _Z18trapezoidal_kernelfffPf .p2align 8 .type _Z18trapezoidal_kernelfffPf,@function _Z18trapezoidal_kernelfffPf: ; @_Z18trapezoidal_kernelfffPf ; %bb.0: s_clau...
b44a49f014881b0978b42e0cdb53fc34f71bfd47
#include <iostream> // #include <tuple> // thrust includes #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/inner_product.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/transform.h> #include <thrust/transform_reduce.h> #include <thrust/iterator/constant_iterator.h> #inc...
.file "tmpxft_0032c4ff_00000000-6_ex3.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comdat .a...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tElN6thrust20THRUST_200700_890_NS8cuda_cub11__transform18binary_transform_fINS7_6detail15normal_iteratorINS7_10device_ptrIiEEEESF_SF_NS9_14no_stencil_tagENS7_10multipliesIiEENS9_21always_true_predicate...
#include <hip/hip_runtime.h> #include <iostream> // #include <tuple> // thrust includes #include <thrust/host_vector.h> #include <thrust/device_vector.h> #include <thrust/inner_product.h> #include <thrust/iterator/zip_iterator.h> #include <thrust/transform.h> #include <thrust/transform_reduce.h> #include <thrust/iter...
.text .file "ex3.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function ma...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEiEEmLj1EEEvT0_T1_S9_,"axG",@progbits,_ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_20__uninitialized_fill7functorINS_10device_ptrIiEEi...
dee4f7673d7291e8b375b05d51acafcd27d2c6a6
__device__ void color(float r, float g, float b, unsigned char* buffer){ if(r>255) buffer[0] = 255; else buffer[0] = (unsigned char)(r); if(r>255) buffer[1] = 255; else buffer[1] = (unsigned char)(g); if(r>255) buffer[2] = 255; else buffer[2] = (unsigned char)(b); } __device__ struct ma...
.file "tmpxft_003670a5_00000000-6_shader.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2081: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2081: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z12set_window_gii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> __device__ void color(float r, float g, float b, unsigned char* buffer){ if(r>255) buffer[0] = 255; else buffer[0] = (unsigned char)(r); if(r>255) buffer[1] = 255; else buffer[1] = (unsigned char)(g); if(r>255) buffer[2] = 255; else buffer[2] = (unsigned cha...
.text .file "shader.hip" .globl _Z23__device_stub__rotationt # -- Begin function _Z23__device_stub__rotationt .type _Z23__device_stub__rotationt,@function _Z23__device_stub__rotationt: # @_Z23__device_stub__rotationt .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8rotationt ; -- Begin function _Z8rotationt .globl _Z8rotationt .p2align 8 .type _Z8rotationt,@function _Z8rotationt: ; @_Z8rotationt ; %bb.0: s_load_b32 s2, s[0:1], 0x0 v_mov_b32_e32 v0, 0 s_getpc_b64 s[0:1] s...
43b5fe9eb90cfdee714e5a3863c17daf3ccbe378
#include <cuda_runtime.h> __global__ void binarizeKernel(uchar4* pData, unsigned char threshold) { // get the position for the current thread unsigned int x = (blockIdx.x * blockDim.x) + threadIdx.x; unsigned int y = (blockIdx.y * blockDim.y) + threadIdx.y; // calculate the memory adress const...
.file "tmpxft_00210aaf_00000000-6_Binarize.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cudaU...
code for sm_89 Function : _Z14binarizeKernelP6uchar4h .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> __global__ void binarizeKernel(uchar4* pData, unsigned char threshold) { // get the position for the current thread unsigned int x = (blockIdx.x * blockDim.x) + threadIdx.x; unsigned int y = (blockIdx.y * blockDim.y) + threadIdx.y; // calculate the memory adress co...
.text .file "Binarize.hip" .globl _Z29__device_stub__binarizeKernelP15HIP_vector_typeIhLj4EEh # -- Begin function _Z29__device_stub__binarizeKernelP15HIP_vector_typeIhLj4EEh .type _Z29__device_stub__binarizeKernelP15HIP_vector_typeIhLj4EEh,@function _Z29__device_stub__binarizeKernelP15HIP_vector_typeIhLj4EEh: # @_Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14binarizeKernelP15HIP_vector_typeIhLj4EEh ; -- Begin function _Z14binarizeKernelP15HIP_vector_typeIhLj4EEh .globl _Z14binarizeKernelP15HIP_vector_typeIhLj4EEh .p2align 8 .type _Z14binarizeKernelP15HIP_vector_typeIhLj4EEh,@function _Z14binarizeKernelP...
9cad2a3d378d5ec31d2920522b70f0557eca58b1
#include <stdio.h> #include <time.h> #define TPB 256 #define ARRAY_SIZE 1000000 __global__ void saxpy_gpu(int n, float a, float* d_x, float* d_y) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < n) d_y[i] = a * d_x[i] + d_y[i]; } void saxpy_cpu(int n, float a, float* x, float* y) { for (int i = 0; i < n...
.file "tmpxft_00349648_00000000-6_exercise_2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cud...
code for sm_89 Function : _Z9saxpy_gpuifPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <time.h> #define TPB 256 #define ARRAY_SIZE 1000000 __global__ void saxpy_gpu(int n, float a, float* d_x, float* d_y) { int i = blockIdx.x * blockDim.x + threadIdx.x; if (i < n) d_y[i] = a * d_x[i] + d_y[i]; } void saxpy_cpu(int n, float a, float* x, floa...
.text .file "exercise_2.hip" .globl _Z24__device_stub__saxpy_gpuifPfS_ # -- Begin function _Z24__device_stub__saxpy_gpuifPfS_ .type _Z24__device_stub__saxpy_gpuifPfS_,@function _Z24__device_stub__saxpy_gpuifPfS_: # @_Z24__device_stub__saxpy_gpuifPfS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9saxpy_gpuifPfS_ ; -- Begin function _Z9saxpy_gpuifPfS_ .globl _Z9saxpy_gpuifPfS_ .p2align 8 .type _Z9saxpy_gpuifPfS_,@function _Z9saxpy_gpuifPfS_: ; @_Z9saxpy_gpuifPfS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x24 s_l...
54c3a082d482b72bd10fe95bcdb598d66af9c8af
// test the size of shared memory for each block #include <iostream> #include <cstdio> using namespace std; #define N 2500 __global__ void fun() { __shared__ double x[N], y[N]; for (int i=0; i<400; ++i) for (int j=0; j<N; ++j) y[j] += x[j]; } int main() { fun<<<1,1>>>(); cudaDeviceSynchronize(); }
.file "tmpxft_002b2c93_00000000-6_shared.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z3funv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// test the size of shared memory for each block #include <hip/hip_runtime.h> #include <iostream> #include <cstdio> using namespace std; #define N 2500 __global__ void fun() { __shared__ double x[N], y[N]; for (int i=0; i<400; ++i) for (int j=0; j<N; ++j) y[j] += x[j]; } int main() { fun<<<1,1>>>(); hipDe...
.text .file "shared.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__funv # -- Begin function _Z18__device_stub__funv .type _Z18__devi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3funv ; -- Begin function _Z3funv .globl _Z3funv .p2align 8 .type _Z3funv,@function _Z3funv: ; @_Z3funv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z3funv .amdhs...
a5572b3ae1f2a5d5508ebba00c9025353f3d0ca0
//***************************************************************************** //Projet HPC fusion et trie de tableaux sur GPU //Auteur: ROBIN Clement et SAULNIER Solene //Promo: MAIN5 //Date: decembre 2020 //Question 3 //***************************************************************************** #include <stdio.h>...
.file "tmpxft_003b428e_00000000-6_sort.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26__cudaUnreg...
code for sm_89 Function : _Z15sortManager_GPUPiS_S_S_iii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
//***************************************************************************** //Projet HPC fusion et trie de tableaux sur GPU //Auteur: ROBIN Clement et SAULNIER Solene //Promo: MAIN5 //Date: decembre 2020 //Question 3 //***************************************************************************** #include <hip/hip...
.text .file "sort.hip" .globl _Z10verif_triePii # -- Begin function _Z10verif_triePii .type _Z10verif_triePii,@function _Z10verif_triePii: # @_Z10verif_triePii .cfi_startproc # %bb.0: cmpl $2, %esi movl $1, %ecx cmovgel %esi, %ecx decl %ecx xorl %edx, %edx .LBB0_1: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15sortManager_GPUPiS_S_S_iii ; -- Begin function _Z15sortManager_GPUPiS_S_S_iii .globl _Z15sortManager_GPUPiS_S_S_iii .p2align 8 .type _Z15sortManager_GPUPiS_S_S_iii,@function _Z15sortManager_GPUPiS_S_S_iii: ; @_Z15sortManager_GPUPiS_S_S_iii ;...
24a1c61d0a403a3bd33107c16030a7d6cb226048
#include "stdio.h" #include<iostream> #include <cuda.h> #include <cuda_runtime.h> //Defining two constants __constant__ float constant_f; __constant__ float constant_g; #define N 5 //Kernel function for using constant memory __global__ void gpu_constant_memory(float *d_in, float *d_out) { //Getting thread index for...
.file "tmpxft_0025c6cc_00000000-6_10_constant_memory.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@...
code for sm_89 Function : _Z19gpu_constant_memoryPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include "stdio.h" #include<iostream> #include <hip/hip_runtime.h> //Defining two constants __constant__ float constant_f; __constant__ float constant_g; #define N 5 //Kernel function for using constant memory __global__ void gpu_constant_memory(float *d_in, float *d_out) { //Getting thread index for current kerne...
.text .file "10_constant_memory.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z34__device_stub__gpu_constant_memoryPfS_ # -- Begin function _Z34__device_stub_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19gpu_constant_memoryPfS_ ; -- Begin function _Z19gpu_constant_memoryPfS_ .globl _Z19gpu_constant_memoryPfS_ .p2align 8 .type _Z19gpu_constant_memoryPfS_,@function _Z19gpu_constant_memoryPfS_: ; @_Z19gpu_constant_memoryPfS_ ; %bb.0: s_load...
76a820c33e52efa9b09b408576e5de1f7f303ce1
#include <stdio.h> #include <sys/time.h> // #include <demo_util.h> // #include <cuda_util.h> #define CLOCK_RATE 1076000 // Titan double cpuSecond() { struct timeval tp; gettimeofday(&tp,NULL); return (double) tp.tv_sec + (double)tp.tv_usec*1e-6; } __device__ void sleep(float t) { clock_t t0 = cl...
.file "tmpxft_002219f5_00000000-6_sm_question.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cu...
code for sm_89 Function : _Z6workerv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <sys/time.h> // #include <demo_util.h> // #include <cuda_util.h> #define CLOCK_RATE 1076000 // Titan double cpuSecond() { struct timeval tp; gettimeofday(&tp,NULL); return (double) tp.tv_sec + (double)tp.tv_usec*1e-6; } __device__ void sleep(...
.text .file "sm_question.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z9cpuSecondv .LCPI0_0: .quad 0x3eb0c6f7a0b5ed8d # double 9.9999999999999995E-7 .text .globl _Z9cpuSecondv .type _Z9cpuSecondv,@function _Z9cpuSecondv: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6workerv ; -- Begin function _Z6workerv .globl _Z6workerv .p2align 8 .type _Z6workerv,@function _Z6workerv: ; @_Z6workerv ; %bb.0: s_getreg_b32 s0, hwreg(HW_REG_SHADER_CYCLES, 0, 20) s_mov_b32 s1, 0 s_delay_...
a300d1633a8d4aea646ad55b48bcd0adae4d3a1c
// a cuda app. we will convert this to opencl, and run it :-) #include <iostream> #include <memory> #include <cassert> using namespace std; #include <cuda_runtime.h> __global__ void setValue(float *data, int idx, float value) { if(threadIdx.x == 0) { data[idx] = value; } } int main(int argc, char ...
.file "tmpxft_00317bf3_00000000-6_testmemcpydevicetodevice.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4282: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatB...
code for sm_89 Function : _Z8setValuePfif .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// a cuda app. we will convert this to opencl, and run it :-) #include <iostream> #include <memory> #include <cassert> using namespace std; #include <hip/hip_runtime.h> __global__ void setValue(float *data, int idx, float value) { if(threadIdx.x == 0) { data[idx] = value; } } int main(int argc, ch...
.text .file "testmemcpydevicetodevice.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z23__device_stub__setValuePfif # -- Begin function _Z23__device_stub__setV...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8setValuePfif ; -- Begin function _Z8setValuePfif .globl _Z8setValuePfif .p2align 8 .type _Z8setValuePfif,@function _Z8setValuePfif: ; @_Z8setValuePfif ; %bb.0: s_mov_b32 s2, exec_lo v_cmpx_eq_u32_e32 0, v0 s_cbranch_...
2d09aa2946b2225e85d38f2b6b343071ff3c8bb0
// Hello Cuda World Program // /* * Author: Malhar Bhatt * Subject : High Performance Computing * */ #include <iostream> /** * Empty Function named Kernel() qualified with __global__ * */ __global__ void kernel (void) { } int main(void) { kernel<<<1,1>>>(); // Calling Empty Function printf("Hello Cuda World !!!\n...
.file "tmpxft_0033bf62_00000000-6_helloCudaWorld.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT ...
code for sm_89 Function : _Z6kernelv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ ...
// Hello Cuda World Program // /* * Author: Malhar Bhatt * Subject : High Performance Computing * */ #include <hip/hip_runtime.h> #include <iostream> /** * Empty Function named Kernel() qualified with __global__ * */ __global__ void kernel (void) { } int main(void) { kernel<<<1,1>>>(); // Calling Empty Function ...
.text .file "helloCudaWorld.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__kernelv # -- Begin function _Z21__device_stub__kernelv .type...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelv ; -- Begin function _Z6kernelv .globl _Z6kernelv .p2align 8 .type _Z6kernelv,@function _Z6kernelv: ; @_Z6kernelv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z6k...
722fde820adb5fa173f2957fdd6799254522c761
#include "includes.h" __global__ void cudaSmult_kernel(unsigned int size, const float *x1, const float *x2, float *y) { const unsigned int index = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int stride = blockDim.x * gridDim.x; for (unsigned int i = index; i < size; i += stride) { y[i] = x1[i] * x2[i]; } }
.file "tmpxft_003490c5_00000000-6_cudaSmult_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL2...
code for sm_89 Function : _Z16cudaSmult_kerneljPKfS0_Pf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void cudaSmult_kernel(unsigned int size, const float *x1, const float *x2, float *y) { const unsigned int index = blockIdx.x * blockDim.x + threadIdx.x; const unsigned int stride = blockDim.x * gridDim.x; for (unsigned int i = index; i < size; i += stride)...
.text .file "cudaSmult_kernel.hip" .globl _Z31__device_stub__cudaSmult_kerneljPKfS0_Pf # -- Begin function _Z31__device_stub__cudaSmult_kerneljPKfS0_Pf .type _Z31__device_stub__cudaSmult_kerneljPKfS0_Pf,@function _Z31__device_stub__cudaSmult_kerneljPKfS0_Pf: # @_Z31__device_stub__cudaSmult_kerneljPKfS0_Pf .cfi_sta...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16cudaSmult_kerneljPKfS0_Pf ; -- Begin function _Z16cudaSmult_kerneljPKfS0_Pf .globl _Z16cudaSmult_kerneljPKfS0_Pf .p2align 8 .type _Z16cudaSmult_kerneljPKfS0_Pf,@function _Z16cudaSmult_kerneljPKfS0_Pf: ; @_Z16cudaSmult_kerneljPKfS0_Pf ; %bb....
c5f3894aca13b9f908273323b5e452dbebfb6d5b
// Homework_5 // Problem_4 // change the array size to 8000. Check if answer to problem 3 still works. // RUN as // nvcc prob4.cu // ./a.out #include <cuda_runtime.h> #include <stdio.h> #include <stdlib.h> //Kernel function to initialize array __global__ void initialize(int *arr, int size){ int sectors = blockIdx...
.file "tmpxft_002d1f12_00000000-6_prob4.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUnre...
code for sm_89 Function : _Z9addIValuePii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// Homework_5 // Problem_4 // change the array size to 8000. Check if answer to problem 3 still works. // RUN as // nvcc prob4.cu // ./a.out #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> //Kernel function to initialize array __global__ void initialize(int *arr, int size){ int sectors = block...
.text .file "prob4.hip" .globl _Z25__device_stub__initializePii # -- Begin function _Z25__device_stub__initializePii .type _Z25__device_stub__initializePii,@function _Z25__device_stub__initializePii: # @_Z25__device_stub__initializePii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10initializePii ; -- Begin function _Z10initializePii .globl _Z10initializePii .p2align 8 .type _Z10initializePii,@function _Z10initializePii: ; @_Z10initializePii ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x1c s_load_...
e455bfd01f20e1749a521d999bf9192c3225ea8e
__global__ void kernel1(int m, int n, int k, double *d_A, double *d_B, double *d_C){ for(int i = 0; i < m; i++){ for(int j = 0; j < n; j++){ d_C[i*n + j] = 0.0; } } //mkn for(int i = 0; i < m; i++){ for(int s = 0; s < k; s++){ for(int j = 0; j < n; j++){ ...
.file "tmpxft_0039dca0_00000000-6_matmult_gpu1.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__c...
code for sm_89 Function : _Z7kernel1iiiPdS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> __global__ void kernel1(int m, int n, int k, double *d_A, double *d_B, double *d_C){ for(int i = 0; i < m; i++){ for(int j = 0; j < n; j++){ d_C[i*n + j] = 0.0; } } //mkn for(int i = 0; i < m; i++){ for(int s = 0; s < k; s++){ ...
.text .file "matmult_gpu1.hip" .globl _Z22__device_stub__kernel1iiiPdS_S_ # -- Begin function _Z22__device_stub__kernel1iiiPdS_S_ .type _Z22__device_stub__kernel1iiiPdS_S_,@function _Z22__device_stub__kernel1iiiPdS_S_: # @_Z22__device_stub__kernel1iiiPdS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offs...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7kernel1iiiPdS_S_ ; -- Begin function _Z7kernel1iiiPdS_S_ .globl _Z7kernel1iiiPdS_S_ .p2align 8 .type _Z7kernel1iiiPdS_S_,@function _Z7kernel1iiiPdS_S_: ; @_Z7kernel1iiiPdS_S_ ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 s_waitcnt...
52f7809b60955bbfc6282543b28fb0d82c681536
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <time.h> using namespace std; __global__ void initArray( int *A) { int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; A[tid] = tid; } __global__ void swapArray( int *A, int size, int num_t) { int tid = blockIdx.x * blockDim.x + threadId...
.file "tmpxft_00284036_00000000-6_hw10.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z9swapArrayPiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> #include <iostream> #include <time.h> using namespace std; __global__ void initArray( int *A) { int tid; tid = blockIdx.x * blockDim.x + threadIdx.x; A[tid] = tid; } __global__ void swapArray( int *A, int size, int num_t) { int tid = bloc...
.text .file "hw10.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__initArrayPi # -- Begin function _Z24__device_stub__initArrayPi .type _Z24_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9initArrayPi ; -- Begin function _Z9initArrayPi .globl _Z9initArrayPi .p2align 8 .type _Z9initArrayPi,@function _Z9initArrayPi: ; @_Z9initArrayPi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x14 s_load_b64 s[0:1], ...
0d266de3bf924c2b950a12ccce7ce428996ce675
// // A simple function that squares all the elements of an array // through a call to a CUDA kernel // #include "cudasquare.cuh" // Square function kernel // It squares all the elements of an array // Arguments: // a: array that must be squared in the GPU // b: squared int array (output) // n: number of elements of ...
.file "tmpxft_002bc49d_00000000-6_cudasquare.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cud...
code for sm_89 Function : _Z13square_kernelPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// // A simple function that squares all the elements of an array // through a call to a CUDA kernel // #include <hip/hip_runtime.h> #include "cudasquare.cuh" // Square function kernel // It squares all the elements of an array // Arguments: // a: array that must be squared in the GPU // b: squared int array (output...
.text .file "cudasquare.hip" .globl _Z28__device_stub__square_kernelPiS_i # -- Begin function _Z28__device_stub__square_kernelPiS_i .type _Z28__device_stub__square_kernelPiS_i,@function _Z28__device_stub__square_kernelPiS_i: # @_Z28__device_stub__square_kernelPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13square_kernelPiS_i ; -- Begin function _Z13square_kernelPiS_i .globl _Z13square_kernelPiS_i .p2align 8 .type _Z13square_kernelPiS_i,@function _Z13square_kernelPiS_i: ; @_Z13square_kernelPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s...
3dc03ffc7832890b6267733bace0e677195bbbf4
#include "includes.h" __global__ void kernel_setAllPointsToRemove(int number_of_points, bool *d_markers_out) { int ind=blockIdx.x*blockDim.x+threadIdx.x; if(ind<number_of_points) { d_markers_out[ind] = false; } }
.file "tmpxft_0039c022_00000000-6_kernel_setAllPointsToRemove.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: ...
code for sm_89 Function : _Z27kernel_setAllPointsToRemoveiPb .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void kernel_setAllPointsToRemove(int number_of_points, bool *d_markers_out) { int ind=blockIdx.x*blockDim.x+threadIdx.x; if(ind<number_of_points) { d_markers_out[ind] = false; } }
.text .file "kernel_setAllPointsToRemove.hip" .globl _Z42__device_stub__kernel_setAllPointsToRemoveiPb # -- Begin function _Z42__device_stub__kernel_setAllPointsToRemoveiPb .type _Z42__device_stub__kernel_setAllPointsToRemoveiPb,@function _Z42__device_stub__kernel_setAllPointsToRemoveiPb: # @_Z42__device_stub__kern...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z27kernel_setAllPointsToRemoveiPb ; -- Begin function _Z27kernel_setAllPointsToRemoveiPb .globl _Z27kernel_setAllPointsToRemoveiPb .p2align 8 .type _Z27kernel_setAllPointsToRemoveiPb,@function _Z27kernel_setAllPointsToRemoveiPb: ; @_Z27kernel_setAl...
68514832b5eba5fdd41be21cad071538c1d78f98
// This example is taken from https://cuda-tutorial.readthedocs.io/en/latest/ #include <stdio.h> __global__ void cuda_hello(){ printf("Hello World from GPU!\n"); } int main() { printf("Hello World from CPU!\n"); cuda_hello<<<1,1>>>(); cudaDeviceSynchronize(); return 0; }
.file "tmpxft_0025754c_00000000-6_hello-cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cud...
code for sm_89 Function : _Z10cuda_hellov .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// This example is taken from https://cuda-tutorial.readthedocs.io/en/latest/ #include <hip/hip_runtime.h> #include <stdio.h> __global__ void cuda_hello(){ printf("Hello World from GPU!\n"); } int main() { printf("Hello World from CPU!\n"); cuda_hello<<<1,1>>>(); hipDeviceSynchronize(); return 0; }
.text .file "hello-cuda.hip" .globl _Z25__device_stub__cuda_hellov # -- Begin function _Z25__device_stub__cuda_hellov .type _Z25__device_stub__cuda_hellov,@function _Z25__device_stub__cuda_hellov: # @_Z25__device_stub__cuda_hellov .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10cuda_hellov ; -- Begin function _Z10cuda_hellov .globl _Z10cuda_hellov .p2align 8 .type _Z10cuda_hellov,@function _Z10cuda_hellov: ; @_Z10cuda_hellov ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b32 v2, -1...
9d2fde00ba75e50fc3ba6d0d84d417074e251151
void cpu_jacobi(double ***u, double ***u_old, double ***f, int N, int delta, int iter_max, int *iter) { int temp_iter = *iter; int i, j, k; double delta_2 = delta*delta; double div_val = 1.0/6.0; double ***temp_pointer; #pragma omp parallel default(none) \ shared(iter_max, N, f, del...
.file "tmpxft_0030c353_00000000-6_cpu_jacobi.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cud...
code for sm_89
#include <hip/hip_runtime.h> void cpu_jacobi(double ***u, double ***u_old, double ***f, int N, int delta, int iter_max, int *iter) { int temp_iter = *iter; int i, j, k; double delta_2 = delta*delta; double div_val = 1.0/6.0; double ***temp_pointer; #pragma omp parallel default(none) \ ...
.text .file "cpu_jacobi.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z10cpu_jacobiPPPdS1_S1_iiiPi .LCPI0_0: .quad 0x3fc5555555555555 # double 0.16666666666666666 .text .globl _Z10cpu_jacobiPPPdS1_S1_iiiPi .type _Z10cpu_jacobiPPPdS1_S1_iii...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
4ebae7ff99608f38147c9e054e157e3586e0bc55
#include <iostream> #include <cstdlib> #include <cuda.h> #include <cmath> #define M 2048 #define W 15 #define w 3 #define threshold 80 using namespace std; __global__ void smoothening_kernel(float* d_filter,float* d_raw_image,float* d_hx,float* d_hy,float* d_gx,float* d_gy,float* d_smooth_image,float* d_edged_imag...
.file "tmpxft_0038f0ce_00000000-6_convo_cuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z18smoothening_kernelPfS_S_S_S_S_S_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <iostream> #include <cstdlib> #include <hip/hip_runtime.h> #include <cmath> #define M 2048 #define W 15 #define w 3 #define threshold 80 using namespace std; __global__ void smoothening_kernel(float* d_filter,float* d_raw_image,float* d_hx,float* d_hy,float* d_gx,float* d_gy,float* d_smooth_image,float* d...
.text .file "convo_cuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z33__device_stub__smoothening_kernelPfS_S_S_S_S_S_S_i # -- Begin function _Z33__device_s...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18smoothening_kernelPfS_S_S_S_S_S_S_i ; -- Begin function _Z18smoothening_kernelPfS_S_S_S_S_S_S_i .globl _Z18smoothening_kernelPfS_S_S_S_S_S_S_i .p2align 8 .type _Z18smoothening_kernelPfS_S_S_S_S_S_S_i,@function _Z18smoothening_kernelPfS_S_S_S_S_S_S_i...
7609058901c646b107c5e6c1234f6216b98f2c8e
#include "includes.h" __global__ void updateVelocity_k(float2 *v, float *vx, float *vy, int dx, int pdx, int dy, int lb, size_t pitch) { int gtidx = blockIdx.x * blockDim.x + threadIdx.x; int gtidy = blockIdx.y * (lb * blockDim.y) + threadIdx.y * lb; int p; float vxterm, vyterm; float2 nvterm; // gtidx is the domain ...
.file "tmpxft_002bdba2_00000000-6_updateVelocity_k.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL2...
code for sm_89 Function : _Z16updateVelocity_kP6float2PfS1_iiiim .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void updateVelocity_k(float2 *v, float *vx, float *vy, int dx, int pdx, int dy, int lb, size_t pitch) { int gtidx = blockIdx.x * blockDim.x + threadIdx.x; int gtidy = blockIdx.y * (lb * blockDim.y) + threadIdx.y * lb; int p; float vxterm, vyterm; float2 n...
.text .file "updateVelocity_k.hip" .globl _Z31__device_stub__updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim # -- Begin function _Z31__device_stub__updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim .type _Z31__device_stub__updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim,@function _Z31__device_stub__update...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim ; -- Begin function _Z16updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim .globl _Z16updateVelocity_kP15HIP_vector_typeIfLj2EEPfS2_iiiim .p2align 8 .type _Z16updateVelocity_kP15HIP_vector_typeIfL...
34f1f2dc30e3b206d7d86a2af99b46487843b511
#include "includes.h" __global__ void kernel_forwardElimination( float * fullMatrix, float * B, unsigned int nComp ) { unsigned int t = threadIdx.x; unsigned int baseIndex = t*nComp*nComp; unsigned int i,j,k; for ( i = 0; i < nComp - 1; i++ ) for ( j = i + 1; j < nComp; j++ ) { double div = fullMatrix[baseIndex+ j*nCo...
.file "tmpxft_002d798e_00000000-6_kernel_forwardElimination.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: ....
code for sm_89 Function : _Z25kernel_forwardEliminationPfS_j .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void kernel_forwardElimination( float * fullMatrix, float * B, unsigned int nComp ) { unsigned int t = threadIdx.x; unsigned int baseIndex = t*nComp*nComp; unsigned int i,j,k; for ( i = 0; i < nComp - 1; i++ ) for ( j = i + 1; j < nComp; j++ ) { double div...
.text .file "kernel_forwardElimination.hip" .globl _Z40__device_stub__kernel_forwardEliminationPfS_j # -- Begin function _Z40__device_stub__kernel_forwardEliminationPfS_j .type _Z40__device_stub__kernel_forwardEliminationPfS_j,@function _Z40__device_stub__kernel_forwardEliminationPfS_j: # @_Z40__device_stub__kernel...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z25kernel_forwardEliminationPfS_j ; -- Begin function _Z25kernel_forwardEliminationPfS_j .globl _Z25kernel_forwardEliminationPfS_j .p2align 8 .type _Z25kernel_forwardEliminationPfS_j,@function _Z25kernel_forwardEliminationPfS_j: ; @_Z25kernel_forwa...
584bd4bcb48b77f42dbb04b03f7b2de6e8954da0
#include <stdio.h> #include <sys/time.h> int main(int argc, char** argv) { printf("Star timer\n"); // Start the timer struct timeval tim; gettimeofday(&tim, NULL); double t1=tim.tv_sec+(tim.tv_usec/1000000.0); // init vars int malloc_size_bytes, num_mallocs; // not enough args throw error if(argc...
.file "tmpxft_00355a3a_00000000-6_malloc.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cudaUnr...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> #include <sys/time.h> int main(int argc, char** argv) { printf("Star timer\n"); // Start the timer struct timeval tim; gettimeofday(&tim, NULL); double t1=tim.tv_sec+(tim.tv_usec/1000000.0); // init vars int malloc_size_bytes, num_mallocs; // not eno...
.text .file "malloc.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function main .LCPI0_0: .quad 0x412e848000000000 # double 1.0E+6 .text .globl main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
a232b70d64c9ebbc27ea08cc727aecef1f1703fa
#include <iostream> #include <vector> #include <ctime> #include <cstdlib> #include <algorithm> #include <sstream> #include <fstream> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/sort.h> using namespace std; struct element { int key; float value; double nana; __...
.file "tmpxft_002042ff_00000000-6_test_fish.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text._ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,"axG",@progbits,_ZNK6thrust20THRUST_200700_890_NS6system14error_category23default_error_conditionEi,comd...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS26DeviceMergeSortMergeKernelINS0_21DeviceMergeSortPolicyIN6thrust20THRUST_200700_890_NS6detail15normal_iteratorINS4_10device_ptrI7elementEEEEE9Policy600ESA_PNS0_8NullTypeESA_SE_lNS4_4lessIS8_EES8_SD_EEvbT2_T3_T4_PT6_PT7_T5_PSJ_SJ_NS0_6detail7vsmem_tE .headerflags...
#include <hip/hip_runtime.h> #include <iostream> #include <vector> #include <ctime> #include <cstdlib> #include <algorithm> #include <sstream> #include <fstream> #include <thrust/device_vector.h> #include <thrust/host_vector.h> #include <thrust/sort.h> using namespace std; struct element { int key; float v...
.text .file "test_fish.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin funct...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN7rocprim6detail39device_merge_sort_compile_time_verifierINS0_36wrapped_merge_sort_block_sort_configINS_14default_configE7elementNS_10empty_typeEEENS0_37wrapped_merge_sort_block_merge_configIS3_S4_S5_EEEEvv,"axG",@progbits,_ZN7rocprim6detail39device_...
2392da7e0710b4bf7ecc5b478cf1a793865142a7
#include "includes.h" __device__ void timeTest1(int *a){ int t_index = threadIdx.x + (blockIdx.x * blockDim.x); if (t_index < SIZE) { *a +=5; } } __global__ void timeTest() { int t_index = threadIdx.x + (blockIdx.x * blockDim.x); if (t_index < SIZE) { int a = 0; for(int i = 0; i < 10000000; i++){ timeTest1(&a); }...
.file "tmpxft_0029420b_00000000-6_timeTest.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cudaU...
code for sm_89 Function : _Z8timeTestv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __device__ void timeTest1(int *a){ int t_index = threadIdx.x + (blockIdx.x * blockDim.x); if (t_index < SIZE) { *a +=5; } } __global__ void timeTest() { int t_index = threadIdx.x + (blockIdx.x * blockDim.x); if (t_index < SIZE) { int a = 0; for(int i = 0; i < 10...
.text .file "timeTest.hip" .globl _Z23__device_stub__timeTestv # -- Begin function _Z23__device_stub__timeTestv .type _Z23__device_stub__timeTestv,@function _Z23__device_stub__timeTestv: # @_Z23__device_stub__timeTestv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8timeTestv ; -- Begin function _Z8timeTestv .globl _Z8timeTestv .p2align 8 .type _Z8timeTestv,@function _Z8timeTestv: ; @_Z8timeTestv ; %bb.0: ; %.loopexit s_endpgm .section .rodata...
8934a240a02e588a9ea44932ad77bc793c5c50c5
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args #include <iostream> // CHECK: #include <hip/hip_runtime.h> #include <cuda.h> template<typename T> __global__ void axpy(T a, T *x, T *y) { y[threadIdx.x] = a * x[threadIdx.x]; } template<typename T> __global__ void axpy_empty() { } __global__ void empty(...
.file "tmpxft_00388015_00000000-6_kernel_launch_syntax.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3642: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinar...
code for sm_89 Function : _Z10axpy_emptyIfEvv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args #include <iostream> // CHECK: #include <hip/hip_runtime.h> #include <hip/hip_runtime.h> template<typename T> __global__ void axpy(T a, T *x, T *y) { y[threadIdx.x] = a * x[threadIdx.x]; } template<typename T> __global__ void axpy_empty() { } __global__ ...
.text .file "kernel_launch_syntax.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z20__device_stub__emptyv # -- Begin function _Z20__device_stub__emptyv ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5emptyv ; -- Begin function _Z5emptyv .globl _Z5emptyv .p2align 8 .type _Z5emptyv,@function _Z5emptyv: ; @_Z5emptyv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z5empty...
91857f0008b672d7d13a5755a2502c4efefa31dd
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include<unistd.h> #define DEVICE_ID 0 /* constants for the number of threads and the integration domain */ /* number of threads in a block, 2^n */ #define NT 1024 /* number of blocks in a grid, 2^n */ #define NB 16 /* length of the...
.file "tmpxft_003a92d0_00000000-6_reduction_me.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2044: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2044: .size _ZL26__c...
code for sm_89 Function : _Z26reduce_array_shared_memoryPdS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include<unistd.h> #define DEVICE_ID 0 /* constants for the number of threads and the integration domain */ /* number of threads in a block, 2^n */ #define NT 1024 /* number of blocks in a grid, 2^n */ #...
.text .file "reduction_me.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z19calculate_referenceid .LCPI0_0: .quad 0x3fe0000000000000 # double 0.5 .LCPI0_2: .quad 0x3ff0000000000000 # double 1 .section .rodata.cst16,"aM",@progbit...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20calculate_each_pointPd ; -- Begin function _Z20calculate_each_pointPd .globl _Z20calculate_each_pointPd .p2align 8 .type _Z20calculate_each_pointPd,@function _Z20calculate_each_pointPd: ; @_Z20calculate_each_pointPd ; %bb.0: s_load_b32 ...
17dd221366dabf475de29710255678a80233d2c3
// includes, system #include <stdio.h> #include <assert.h> #include <chrono> // Here you can set the device ID that was assigned to you #define MYDEVICE 0 // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char *msg); ////////////////////////////////////////////////////////////////...
.file "tmpxft_0036eb76_00000000-6_cuda_mem_model.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2134: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2134: .size _ZL26_...
code for sm_89
// includes, system #include <hip/hip_runtime.h> #include <stdio.h> #include <assert.h> #include <chrono> // Here you can set the device ID that was assigned to you #define MYDEVICE 0 // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char *msg); //////////////////////////////////...
.text .file "cuda_mem_model.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function main .LCPI0_0: .quad 0x41cdcd6500000000 # double 1.0E+9 .LCPI0_1: .quad 0x4040000000000000 # double 32 .LCPI0_2: .quad 0x412e848000000000 # d...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
ec3563df6e3e8a43af103aed00b1fa6206f33f21
#include "includes.h" __global__ void AddIntegers(int *arr1, int *arr2, int num_elements) { int id = blockIdx.x * blockDim.x + threadIdx.x; if (id < num_elements) { arr1[id] += arr2[id]; } }
.file "tmpxft_002c2d5f_00000000-6_AddIntegers.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cu...
code for sm_89 Function : _Z11AddIntegersPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void AddIntegers(int *arr1, int *arr2, int num_elements) { int id = blockIdx.x * blockDim.x + threadIdx.x; if (id < num_elements) { arr1[id] += arr2[id]; } }
.text .file "AddIntegers.hip" .globl _Z26__device_stub__AddIntegersPiS_i # -- Begin function _Z26__device_stub__AddIntegersPiS_i .type _Z26__device_stub__AddIntegersPiS_i,@function _Z26__device_stub__AddIntegersPiS_i: # @_Z26__device_stub__AddIntegersPiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offse...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11AddIntegersPiS_i ; -- Begin function _Z11AddIntegersPiS_i .globl _Z11AddIntegersPiS_i .p2align 8 .type _Z11AddIntegersPiS_i,@function _Z11AddIntegersPiS_i: ; @_Z11AddIntegersPiS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
e2de7d75b3f2a6ea5b2b3843af47b34955ba25a2
// Simple starting example for CUDA program // Kees Lemmens, last change May 2012 #include <stdio.h> #include <stdlib.h> #include <cuda.h> #define NRBLKS 4 // Nr of blocks in a kernel (gridDim) #define NRTPBK 4 // Nr of threads in a block (blockDim) void checkCudaError(char *error) { if (cudaGetLastError() != c...
.file "tmpxft_002edb18_00000000-6_HelloWorld.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cud...
code for sm_89 Function : _Z11decodeOnGPUPc .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// Simple starting example for CUDA program // Kees Lemmens, last change May 2012 #include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #define NRBLKS 4 // Nr of blocks in a kernel (gridDim) #define NRTPBK 4 // Nr of threads in a block (blockDim) void checkCudaError(char *error) { if (hipGetLastEr...
.text .file "HelloWorld.hip" .globl _Z14checkCudaErrorPc # -- Begin function _Z14checkCudaErrorPc .type _Z14checkCudaErrorPc,@function _Z14checkCudaErrorPc: # @_Z14checkCudaErrorPc .cfi_startproc # %bb.0: pushq %rbx .cfi_def_cfa_offset 16 .cfi_offset %rbx, -16 movq %rdi, %rbx call...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11decodeOnGPUPc ; -- Begin function _Z11decodeOnGPUPc .globl _Z11decodeOnGPUPc .p2align 8 .type _Z11decodeOnGPUPc,@function _Z11decodeOnGPUPc: ; @_Z11decodeOnGPUPc ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x14 s_load_...
768225af11c5296798a213e7ba4975d6b8772bcf
#include "k_indices.cuh" namespace timemachine { // Takes a source and destination array. // The value of the src is used as the index and the value in the destination array. Allows combining // a series of indices to get a unique set of values. void __global__ k_unique_indices( const int N, // Number of values in...
.file "tmpxft_0034fc06_00000000-6_k_indices.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cuda...
code for sm_89 Function : _ZN11timemachine8k_arangeEiPii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#pragma once #include <hip/hip_runtime.h> namespace timemachine { // Takes a source and destination array. Assumes K <= N with values in the src are less than or equal // to K. The value of the src is used as the indice and the value in the destination array. Allows combining // a series of indices to get a unique se...
.text .file "k_indices.hip" .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_cuid_: .byte 0 # 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
b386921924f635200d4a3cfbd270805545c83a6d
#include <stdio.h> __global__ void array_reverse(int *array_a_dev, int *array_a_rev_dev, int len) { int tid = threadIdx.x; array_a_rev_dev[len - tid - 1] = array_a_dev[tid]; } __global__ void array_reverse_shared(int *array_a_dev, int *array_a_rev_dev, int len) { int tid = threadIdx.x; __shared__ int ...
.file "tmpxft_003aecd5_00000000-6_array_rev.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cuda...
code for sm_89 Function : _Z28array_reverse_dynamic_sharedPiS_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void array_reverse(int *array_a_dev, int *array_a_rev_dev, int len) { int tid = threadIdx.x; array_a_rev_dev[len - tid - 1] = array_a_dev[tid]; } __global__ void array_reverse_shared(int *array_a_dev, int *array_a_rev_dev, int len) { int tid = th...
.text .file "array_rev.hip" .globl _Z28__device_stub__array_reversePiS_i # -- Begin function _Z28__device_stub__array_reversePiS_i .type _Z28__device_stub__array_reversePiS_i,@function _Z28__device_stub__array_reversePiS_i: # @_Z28__device_stub__array_reversePiS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13array_reversePiS_i ; -- Begin function _Z13array_reversePiS_i .globl _Z13array_reversePiS_i .p2align 8 .type _Z13array_reversePiS_i,@function _Z13array_reversePiS_i: ; @_Z13array_reversePiS_i ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x...
5b3d4a347800335784d03b9da0f1ffccb07d7640
#ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif __global__ void mikkola_gpu(const double *manom, const double *ecc, double *eanom){ /* Vectorized C Analtyical Mikkola solver for the eccentric anomaly. See: S. Mikkola. 1987. Celestial Mechanics, 40, 329-334. Adapted from IDL ...
.file "tmpxft_00262f1e_00000000-6_mikkola.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUn...
code for sm_89 Function : _Z11mikkola_gpuPKdS0_Pd .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif __global__ void mikkola_gpu(const double *manom, const double *ecc, double *eanom){ /* Vectorized C Analtyical Mikkola solver for the eccentric anomaly. See: S. Mikkola. 1987. Celestial Mechanics, 40, ...
.text .file "mikkola.hip" .globl _Z26__device_stub__mikkola_gpuPKdS0_Pd # -- Begin function _Z26__device_stub__mikkola_gpuPKdS0_Pd .type _Z26__device_stub__mikkola_gpuPKdS0_Pd,@function _Z26__device_stub__mikkola_gpuPKdS0_Pd: # @_Z26__device_stub__mikkola_gpuPKdS0_Pd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11mikkola_gpuPKdS0_Pd ; -- Begin function _Z11mikkola_gpuPKdS0_Pd .globl _Z11mikkola_gpuPKdS0_Pd .p2align 8 .type _Z11mikkola_gpuPKdS0_Pd,@function _Z11mikkola_gpuPKdS0_Pd: ; @_Z11mikkola_gpuPKdS0_Pd ; %bb.0: s_clause 0x2 s_load_b32 s...
5d0b258985fd6afba80c4912802973f4aedeeaf2
#include "3d-test.cuh" #include<iostream> #include<stdio.h> __host__ __device__ void scalingFunction(int array[],int x) { for(int i=0; i<8; i++) { array[i] = array[i] * 2; } } __host__ __device__ void distributeFunction(int array[],int x,int y){ //pencilComputation p2; for...
.file "tmpxft_0028cfb0_00000000-6_3d-test.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3641: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_e...
code for sm_89 Function : _Z25pencilComputationFunctionv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "3d-test.cuh" #include<iostream> #include<stdio.h> __host__ __device__ void scalingFunction(int array[],int x) { for(int i=0; i<8; i++) { array[i] = array[i] * 2; } } __host__ __device__ void distributeFunction(int array[],int x,int y){ //penc...
.text .file "3d-test.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z15scalingFunctionPii # -- Begin function _Z15scalingFunctionPii .type _Z15scalin...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .p2align 2 ; -- Begin function __ockl_printf_append_string_n .type __ockl_printf_append_string_n,@function __ockl_printf_append_string_n: ; @__ockl_printf_append_string_n ; %bb.0: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) v_dua...
38961020a73611e2d173fe37be10698b3a95b3d3
struct ProgramGPUColorRGB { __device__ ProgramGPUColorRGB() { } unsigned char Blue; unsigned char Green; unsigned char Red; unsigned char Alpha; }; // Insaniquarium_Deluxe_Bot.Program extern "C" __global__ void FindPixel( ProgramGPUColorRGB* rgbColors, int rgbColorsLen0, ProgramGPUColorRGB* colors, int colo...
.file "tmpxft_0029f888_00000000-6_CUDAFYSOURCETEMP.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2013: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2013: .size _ZL2...
code for sm_89 Function : FindPixel .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> struct ProgramGPUColorRGB { __device__ ProgramGPUColorRGB() { } unsigned char Blue; unsigned char Green; unsigned char Red; unsigned char Alpha; }; // Insaniquarium_Deluxe_Bot.Program extern "C" __global__ void FindPixel( ProgramGPUColorRGB* rgbColors, int rgbColorsLen0, Progra...
.text .file "CUDAFYSOURCETEMP.hip" .globl __device_stub__FindPixel # -- Begin function __device_stub__FindPixel .type __device_stub__FindPixel,@function __device_stub__FindPixel: # @__device_stub__FindPixel .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected FindPixel ; -- Begin function FindPixel .globl FindPixel .p2align 8 .type FindPixel,@function FindPixel: ; @FindPixel ; %bb.0: s_load_b64 s[0:1], s[0:1], 0x20 v_lshlrev_b32_e32 v0, 2, v0 s_waitcnt lgkmcnt(0)...
ed7720ad41693d658579a19dcb53b8020318c405
#include<iostream> using namespace std; __global__ void add(int a,int b,int *c){ *c=a+b; } int main() { int c; int *dev_c; cudaMalloc(&dev_c,sizeof(int)); add<<<1,1>>>(2,7,dev_c); cudaMemcpy(&c,dev_c,sizeof(int),cudaMemcpyDeviceToHost); cout<<"2+7="<<c<<endl; cudaFree(dev_c); return ...
.file "tmpxft_00227af9_00000000-6_Hello.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_end...
code for sm_89 Function : _Z3addiiPi .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include<iostream> using namespace std; __global__ void add(int a,int b,int *c){ *c=a+b; } int main() { int c; int *dev_c; hipMalloc(&dev_c,sizeof(int)); add<<<1,1>>>(2,7,dev_c); hipMemcpy(&c,dev_c,sizeof(int),hipMemcpyDeviceToHost); cout<<"2+7="<<c<<endl; h...
.text .file "Hello.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addiiPi # -- Begin function _Z18__device_stub__addiiPi .type _Z18__de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addiiPi ; -- Begin function _Z3addiiPi .globl _Z3addiiPi .p2align 8 .type _Z3addiiPi,@function _Z3addiiPi: ; @_Z3addiiPi ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x0 s_waitcnt lgkmcnt(0) s_add_i32 s0, s1, s0 s...
f3ce2768aa4148c9f4e9b95f974f8e001a6dd5ca
#include "includes.h" /* * Open source copyright declaration based on BSD open source template: * http://www.opensource.org/licenses/bsd-license.php * * This file is part of the OPS distribution. * * Copyright (c) 2013, Mike Giles and others. Please see the AUTHORS file in * the main source directory for a full list of...
.file "tmpxft_0037f5ad_00000000-6_copy_kernel_frombuf.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _...
code for sm_89 Function : _Z19copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" /* * Open source copyright declaration based on BSD open source template: * http://www.opensource.org/licenses/bsd-license.php * * This file is part of the OPS distribution. * * Copyright (c) 2013, Mike Giles and others. Please see the AUTHORS file in * the main sourc...
.text .file "copy_kernel_frombuf.hip" .globl _Z34__device_stub__copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii # -- Begin function _Z34__device_stub__copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii .type _Z34__device_stub__copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii,@function _Z34__device_stub__copy_kernel_frombufPcS_iiiiiiiiii...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii ; -- Begin function _Z19copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii .globl _Z19copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii .p2align 8 .type _Z19copy_kernel_frombufPcS_iiiiiiiiiiiiiiiiii,@function _Z19copy_kernel...
e5a0a13376efbc3eca7c2c721a0d44730d8369c8
/* * Copyright 1993-2007 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * ...
.file "tmpxft_00385778_00000000-6_dev_properties.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26_...
code for sm_89
/* * Copyright 1993-2007 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * ...
.text .file "dev_properties.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function main .LCPI0_0: .long 0x358637bd # float 9.99999997E-7 .text .globl main .type main,@function main: # @main .cfi_startproc #...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
bc9008b2d618b4a18971871d732872cbe1bfb353
#include <stdio.h> #include <cuda_runtime.h> #define num_threads 256 #define N (1<<20) void fillArray(float* arr) { //Seed rand() srand(42); for (int i = 0; i < N/2; i++) { arr[i] = rand() % 10; } ///Negatives for (int i = N/2; i < N; i++) { arr[i] = -1*(rand() % 10); }...
.file "tmpxft_002041c6_00000000-6_Vector_add.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26__cud...
code for sm_89 Function : _Z11glob_VecAddPfS_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <stdio.h> #include <hip/hip_runtime.h> #define num_threads 256 #define N (1<<20) void fillArray(float* arr) { //Seed rand() srand(42); for (int i = 0; i < N/2; i++) { arr[i] = rand() % 10; } ///Negatives for (int i = N/2; i < N; i++) { arr[i] = -1*(rand() % 10); ...
.text .file "Vector_add.hip" .globl _Z9fillArrayPf # -- Begin function _Z9fillArrayPf .type _Z9fillArrayPf,@function _Z9fillArrayPf: # @_Z9fillArrayPf .cfi_startproc # %bb.0: pushq %r14 .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 pushq %rax .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12share_VecAddPfS_ ; -- Begin function _Z12share_VecAddPfS_ .globl _Z12share_VecAddPfS_ .p2align 8 .type _Z12share_VecAddPfS_,@function _Z12share_VecAddPfS_: ; @_Z12share_VecAddPfS_ ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0...
0c7c893e34f38b3700c08eb5dafc66a5ad8fb1a8
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "config.cuh" using namespace std; /* * Mapping function to be run for each input. The input must be read from memory * and the the key/value output must be stored in memory at pairs. Multiple * pairs may be stored at the next po...
.file "tmpxft_003679ab_00000000-6_gpu_demo.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2032: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2032: .size _ZL26__cudaU...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "config.cuh" using namespace std; /* * Mapping function to be run for each input. The input must be read from memory * and the the key/value output must be stored in memory at pairs. Multiple * pair...
.text .file "gpu_demo.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r12 .cfi_def_cfa_offset 32 pushq %rbx .cfi_def_c...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
ffcd3b66fd41c8b6d65b63b808bc2078de5b2c44
#include <stdio.h> __global__ void matVectMult(float* d_B, float* d_C, float* d_A, int numElements){ int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float sum = 0.f; if(row < numElements && col < numElements) { for(int i=0; i<numElements; i++) sum += d_B[row+c...
.file "tmpxft_0032ce2d_00000000-6_matrix_vect_mult.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL2...
code for sm_89 Function : _Z11matVectMultPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> __global__ void matVectMult(float* d_B, float* d_C, float* d_A, int numElements){ int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float sum = 0.f; if(row < numElements && col < numElements) { for(int i=0; i<numElem...
.text .file "matrix_vect_mult.hip" .globl _Z26__device_stub__matVectMultPfS_S_i # -- Begin function _Z26__device_stub__matVectMultPfS_S_i .type _Z26__device_stub__matVectMultPfS_S_i,@function _Z26__device_stub__matVectMultPfS_S_i: # @_Z26__device_stub__matVectMultPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11matVectMultPfS_S_i ; -- Begin function _Z11matVectMultPfS_S_i .globl _Z11matVectMultPfS_S_i .p2align 8 .type _Z11matVectMultPfS_S_i,@function _Z11matVectMultPfS_S_i: ; @_Z11matVectMultPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s3, s...
7fd48d7a703691a9b8dede2bfe3627143cdb98e0
#include <iostream> #include <chrono> constexpr size_t kSize = 1000000; class Stopwatch { public: using TimePoint = decltype(std::chrono::high_resolution_clock::now()); Stopwatch(): start(std::chrono::high_resolution_clock::now()) {} ~Stopwatch() { end = std::chrono::high_resolution_clock::now(); std::c...
.file "tmpxft_001ff5b6_00000000-6_cuda-async-copy.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3746: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> #include <chrono> constexpr size_t kSize = 1000000; class Stopwatch { public: using TimePoint = decltype(std::chrono::high_resolution_clock::now()); Stopwatch(): start(std::chrono::high_resolution_clock::now()) {} ~Stopwatch() { end = std::chrono::high_resol...
.text .file "cuda-async-copy.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z9Transfer0PfS_S_S_ # -- Begin function _Z9Transfer0PfS_S_S_ .type _Z9T...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
80c087bc35e12114321e92401c944fe355fde8e3
#include <stdio.h> #include <stdlib.h> __global__ void global_reduction_kernel(float *data_out, float *data_in, int stride, int size) { int idx_x = blockIdx.x * blockDim.x + threadIdx.x; if (idx_x + stride < size) { data_out[idx_x] += data_in[idx_x + stride]; } } void global_reduction(float *d_ou...
.file "tmpxft_00254d35_00000000-6_reduction_global_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .si...
code for sm_89 Function : _Z23global_reduction_kernelPfS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> __global__ void global_reduction_kernel(float *data_out, float *data_in, int stride, int size) { int idx_x = blockIdx.x * blockDim.x + threadIdx.x; if (idx_x + stride < size) { data_out[idx_x] += data_in[idx_x + stride]; } } voi...
.text .file "reduction_global_kernel.hip" .globl _Z38__device_stub__global_reduction_kernelPfS_ii # -- Begin function _Z38__device_stub__global_reduction_kernelPfS_ii .type _Z38__device_stub__global_reduction_kernelPfS_ii,@function _Z38__device_stub__global_reduction_kernelPfS_ii: # @_Z38__device_stub__global_reduc...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23global_reduction_kernelPfS_ii ; -- Begin function _Z23global_reduction_kernelPfS_ii .globl _Z23global_reduction_kernelPfS_ii .p2align 8 .type _Z23global_reduction_kernelPfS_ii,@function _Z23global_reduction_kernelPfS_ii: ; @_Z23global_reduction...
e8f2c3a1512d850af23bcf88aaa960f9c230e52c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #define N 10000000 #define MAX_ERR 1e-6 __global__ void vector_add(float *out, float *a, float *b, int n) { int i = blockDim.x*blockIdx.x+threadIdx.x; if (i<n) out[i] = a[i] + b[i]; } int main(){ float *a, *b, *out; ...
.file "tmpxft_002c27b7_00000000-6_vector_add_parallel_2.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size...
code for sm_89 Function : _Z10vector_addPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <assert.h> #define N 10000000 #define MAX_ERR 1e-6 __global__ void vector_add(float *out, float *a, float *b, int n) { int i = blockDim.x*blockIdx.x+threadIdx.x; if (i<n) out[i] = a[i] + b[i]; } int main(){ ...
.text .file "vector_add_parallel_2.hip" .globl _Z25__device_stub__vector_addPfS_S_i # -- Begin function _Z25__device_stub__vector_addPfS_S_i .type _Z25__device_stub__vector_addPfS_S_i,@function _Z25__device_stub__vector_addPfS_S_i: # @_Z25__device_stub__vector_addPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10vector_addPfS_S_i ; -- Begin function _Z10vector_addPfS_S_i .globl _Z10vector_addPfS_S_i .p2align 8 .type _Z10vector_addPfS_S_i,@function _Z10vector_addPfS_S_i: ; @_Z10vector_addPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
df5992aff54459e8dd84d105c16afc2429ec2cc3
// // vectorAdd.cu // vector_add_parallel // // Created by poohRui on 2018/10/23. // Copyright © 2018 poohRui. All rights reserved. // #include <stdio.h> #include <math.h> #include <cuda.h> // Predefine the size of block #define BLOCK_DIM 256 /** * This is a kernel function which mainly deal with the computatio...
.file "tmpxft_00306e23_00000000-6_vectorAdd.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL26__cuda...
code for sm_89 Function : _Z12vecAddKernelPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
// // vectorAdd.cu // vector_add_parallel // // Created by poohRui on 2018/10/23. // Copyright © 2018 poohRui. All rights reserved. // #include <stdio.h> #include <math.h> #include <hip/hip_runtime.h> // Predefine the size of block #define BLOCK_DIM 256 /** * This is a kernel function which mainly deal with the...
.text .file "vectorAdd.hip" .globl _Z27__device_stub__vecAddKernelPfS_S_i # -- Begin function _Z27__device_stub__vecAddKernelPfS_S_i .type _Z27__device_stub__vecAddKernelPfS_S_i,@function _Z27__device_stub__vecAddKernelPfS_S_i: # @_Z27__device_stub__vecAddKernelPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12vecAddKernelPfS_S_i ; -- Begin function _Z12vecAddKernelPfS_S_i .globl _Z12vecAddKernelPfS_S_i .p2align 8 .type _Z12vecAddKernelPfS_S_i,@function _Z12vecAddKernelPfS_S_i: ; @_Z12vecAddKernelPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s...
c143b2f8e0585b82fdd3d64d74fa36ddf4151d7e
#include "includes.h" cudaError_t cuda(); // clamp x to range [a, b] __global__ void kernel(){ }
.file "tmpxft_00317a20_00000000-6_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnr...
code for sm_89 Function : _Z6kernelv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ /* 0x000fe40000000f00 */ ...
#include <hip/hip_runtime.h> #include "includes.h" hipError_t cuda(); // clamp x to range [a, b] __global__ void kernel(){ }
.text .file "kernel.hip" .globl _Z21__device_stub__kernelv # -- Begin function _Z21__device_stub__kernelv .type _Z21__device_stub__kernelv,@function _Z21__device_stub__kernelv: # @_Z21__device_stub__kernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offse...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelv ; -- Begin function _Z6kernelv .globl _Z6kernelv .p2align 8 .type _Z6kernelv,@function _Z6kernelv: ; @_Z6kernelv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align 6, 0x0 .amdhsa_kernel _Z6k...
cec84a9d23e0f5ee27c51bd27e54fc1f47c6ee13
/*! * @file CudaHelpers.cu * @author Zdenek Travnicek * @date 15.2.2012 * @date 16.2.2013 * @copyright Institute of Intermedia, CTU in Prague, 2012 - 2013 * Distributed under modified BSD Licence, details in file doc/LICENSE * */ #include <cuda.h> namespace yuri { namespace cuda { void* map_arr...
.file "tmpxft_00291c58_00000000-6_CudaHelpers.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2011: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2011: .size _ZL26__cu...
code for sm_89
/*! * @file CudaHelpers.cu * @author Zdenek Travnicek * @date 15.2.2012 * @date 16.2.2013 * @copyright Institute of Intermedia, CTU in Prague, 2012 - 2013 * Distributed under modified BSD Licence, details in file doc/LICENSE * */ #include <hip/hip_runtime.h> namespace yuri { namespace cuda { vo...
.text .file "CudaHelpers.hip" .globl _ZN4yuri4cuda9map_arrayEP8hipArray # -- Begin function _ZN4yuri4cuda9map_arrayEP8hipArray .type _ZN4yuri4cuda9map_arrayEP8hipArray,@function _ZN4yuri4cuda9map_arrayEP8hipArray: # @_ZN4yuri4cuda9map_arrayEP8hipArray .cfi_startproc # %bb.0: xorl %eax, %eax retq .Lfunc_end0:...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
ea18d7b355a185d6f88bb3f5da9de601377c78ec
/*sums square matrix by reduction*/ __global__ void sum(double sum, double * data, double sz) { const int colIdx = threadIdx.x; const int rowIdx = threadIdx.y; int linearIdx = rowIdx*sz + colIdx; extern __shared__ int sdata[]; // each thread loads one element from global to shared mem sdata[linearId...
.file "tmpxft_002a83b4_00000000-6_sum.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnregi...
code for sm_89 Function : _Z3sumdPdd .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> /*sums square matrix by reduction*/ __global__ void sum(double sum, double * data, double sz) { const int colIdx = threadIdx.x; const int rowIdx = threadIdx.y; int linearIdx = rowIdx*sz + colIdx; extern __shared__ int sdata[]; // each thread loads one element from global t...
.text .file "sum.hip" .globl _Z18__device_stub__sumdPdd # -- Begin function _Z18__device_stub__sumdPdd .type _Z18__device_stub__sumdPdd,@function _Z18__device_stub__sumdPdd: # @_Z18__device_stub__sumdPdd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 2...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3sumdPdd ; -- Begin function _Z3sumdPdd .globl _Z3sumdPdd .p2align 8 .type _Z3sumdPdd,@function _Z3sumdPdd: ; @_Z3sumdPdd ; %bb.0: v_bfe_u32 v1, v0, 10, 10 v_and_b32_e32 v2, 0x3ff, v0 s_clause 0x1 s_load_b1...
986d9dc7ab7e4778d513edc0ad27f98ce9fa557c
#include "softmax-cross-entropy-grad.hh" #include "graph.hh" #include "../runtime/node.hh" #include "../memory/alloc.hh" namespace ops { SoftmaxCrossEntropyGrad::SoftmaxCrossEntropyGrad(Op* y, Op* logits) : Op("softmax_cross_entropy_grad", y->shape_get(), {y, logits}) {} void SoftmaxCrossEntropyG...
.file "tmpxft_003156c2_00000000-6_softmax-cross-entropy-grad.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4586: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFa...
code for sm_89
#include <hip/hip_runtime.h> #include "softmax-cross-entropy-grad.hh" #include "graph.hh" #include "../runtime/node.hh" #include "../memory/alloc.hh" namespace ops { SoftmaxCrossEntropyGrad::SoftmaxCrossEntropyGrad(Op* y, Op* logits) : Op("softmax_cross_entropy_grad", y->shape_get(), {y, logits}) {} ...
.text .file "softmax-cross-entropy-grad.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _ZN3ops23SoftmaxCrossEntropyGradC2EPNS_2OpES2_ # -- Begin function _ZN3op...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
eda6b6542b8dfc4378a0bc41c7944968d7c9e179
#include <stdio.h> #include <stdlib.h> /** * In this section, we will discover concurrent operation in CUDA * 1) blocks in grid: concurrent tasks, no gurantee their order of execution (no synchronization) * 2) warp in blocks: concurrent threads, explicitly synchronizable (it will be discussed in next section) * ...
.file "tmpxft_00279967_00000000-6_cuda_thread_block.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2030: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2030: .size _ZL...
code for sm_89 Function : _Z9idx_printv .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> /** * In this section, we will discover concurrent operation in CUDA * 1) blocks in grid: concurrent tasks, no gurantee their order of execution (no synchronization) * 2) warp in blocks: concurrent threads, explicitly synchronizable (it will be ...
.text .file "cuda_thread_block.hip" .globl _Z24__device_stub__idx_printv # -- Begin function _Z24__device_stub__idx_printv .type _Z24__device_stub__idx_printv,@function _Z24__device_stub__idx_printv: # @_Z24__device_stub__idx_printv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9idx_printv ; -- Begin function _Z9idx_printv .globl _Z9idx_printv .p2align 8 .type _Z9idx_printv,@function _Z9idx_printv: ; @_Z9idx_printv ; %bb.0: v_and_b32_e32 v1, 15, v0 s_mov_b32 s2, exec_lo s_delay_alu insti...
ae56fb44a6898469080c68ae4661c355f3446920
//16CO212 16CO249 //Computer Architecture Lab Assignment 0 //Question 1 #include <stdio.h> //Printing Properties of the device void printDevProp(cudaDeviceProp device_properties) { printf("\tMajor revision number: %d\n", device_properties.major); printf("\tMinor revision number: %d\n",...
.file "tmpxft_00301c87_00000000-6_A0-Q1-212-249.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__...
code for sm_89
//16CO212 16CO249 //Computer Architecture Lab Assignment 0 //Question 1 #include <hip/hip_runtime.h> #include <stdio.h> //Printing Properties of the device void printDevProp(hipDeviceProp_t device_properties) { printf("\tMajor revision number: %d\n", device_properties.major); printf("\tMinor ...
.text .file "A0-Q1-212-249.hip" .globl _Z12printDevProp20hipDeviceProp_tR0600 # -- Begin function _Z12printDevProp20hipDeviceProp_tR0600 .type _Z12printDevProp20hipDeviceProp_tR0600,@function _Z12printDevProp20hipDeviceProp_tR0600: # @_Z12printDevProp20hipDeviceProp_tR0600 .cfi_startproc # %bb.0: pushq %r15 .cfi...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
ace5148e2634f7dd3f5a864a99c6018db4c1e743
#include "includes.h" __global__ void THCudaTensor_kernel_indexSelect( float *tensor, float *src, long* src_stride, float *index, long src_nDim, int dim, long idx_size, long tensor_size, long size_dim ) { int thread_idx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y * blockDim.x + threadIdx.x; long flat_size = t...
.file "tmpxft_00226b40_00000000-6_THCudaTensor_kernel_indexSelect.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE20...
code for sm_89 Function : _Z31THCudaTensor_kernel_indexSelectPfS_PlS_lilll .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void THCudaTensor_kernel_indexSelect( float *tensor, float *src, long* src_stride, float *index, long src_nDim, int dim, long idx_size, long tensor_size, long size_dim ) { int thread_idx = blockIdx.x * blockDim.x * blockDim.y + threadIdx.y * blockDim.x + th...
.text .file "THCudaTensor_kernel_indexSelect.hip" .globl _Z46__device_stub__THCudaTensor_kernel_indexSelectPfS_PlS_lilll # -- Begin function _Z46__device_stub__THCudaTensor_kernel_indexSelectPfS_PlS_lilll .type _Z46__device_stub__THCudaTensor_kernel_indexSelectPfS_PlS_lilll,@function _Z46__device_stub__THCudaTensor...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z31THCudaTensor_kernel_indexSelectPfS_PlS_lilll ; -- Begin function _Z31THCudaTensor_kernel_indexSelectPfS_PlS_lilll .globl _Z31THCudaTensor_kernel_indexSelectPfS_PlS_lilll .p2align 8 .type _Z31THCudaTensor_kernel_indexSelectPfS_PlS_lilll,@function _Z3...
3df080cfdffb1db663fea14967663d3f67e45176
#include "includes.h" __global__ void gpu_sobel_kernel_shared(u_char *Source, u_char *Resultat, unsigned width, unsigned height) { __shared__ u_char tuile[BLOCKDIM_X][BLOCKDIM_Y]; int x = threadIdx.x; int y = threadIdx.y; int i = blockIdx.y*(BLOCKDIM_Y-2) + y; int j = blockIdx.x*(BLOCKDIM_X-2) + x; int globalIndex = ...
.file "tmpxft_002c509e_00000000-6_gpu_sobel_kernel_shared.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .si...
code for sm_89 Function : _Z23gpu_sobel_kernel_sharedPhS_jj .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void gpu_sobel_kernel_shared(u_char *Source, u_char *Resultat, unsigned width, unsigned height) { __shared__ u_char tuile[BLOCKDIM_X][BLOCKDIM_Y]; int x = threadIdx.x; int y = threadIdx.y; int i = blockIdx.y*(BLOCKDIM_Y-2) + y; int j = blockIdx.x*(BLOCKDIM...
.text .file "gpu_sobel_kernel_shared.hip" .globl _Z38__device_stub__gpu_sobel_kernel_sharedPhS_jj # -- Begin function _Z38__device_stub__gpu_sobel_kernel_sharedPhS_jj .type _Z38__device_stub__gpu_sobel_kernel_sharedPhS_jj,@function _Z38__device_stub__gpu_sobel_kernel_sharedPhS_jj: # @_Z38__device_stub__gpu_sobel_ke...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23gpu_sobel_kernel_sharedPhS_jj ; -- Begin function _Z23gpu_sobel_kernel_sharedPhS_jj .globl _Z23gpu_sobel_kernel_sharedPhS_jj .p2align 8 .type _Z23gpu_sobel_kernel_sharedPhS_jj,@function _Z23gpu_sobel_kernel_sharedPhS_jj: ; @_Z23gpu_sobel_kernel...
70aeea806b3159cfd5618b50905eee5100afec90
#include "includes.h" __global__ void inverse_transform(float *in, float *out, int height, int width) { // block elements int my_x, k, t; my_x = blockIdx.x * blockDim.x + threadIdx.x; // iterate through each element, going from frequency to time domain for (k = 0; k < height; k++) { // difference, which will be used t...
.file "tmpxft_00262af9_00000000-6_inverse_transform.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL...
code for sm_89 Function : _Z17inverse_transformPfS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void inverse_transform(float *in, float *out, int height, int width) { // block elements int my_x, k, t; my_x = blockIdx.x * blockDim.x + threadIdx.x; // iterate through each element, going from frequency to time domain for (k = 0; k < height; k++) { // di...
.text .file "inverse_transform.hip" .globl _Z32__device_stub__inverse_transformPfS_ii # -- Begin function _Z32__device_stub__inverse_transformPfS_ii .type _Z32__device_stub__inverse_transformPfS_ii,@function _Z32__device_stub__inverse_transformPfS_ii: # @_Z32__device_stub__inverse_transformPfS_ii .cfi_startproc # ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17inverse_transformPfS_ii ; -- Begin function _Z17inverse_transformPfS_ii .globl _Z17inverse_transformPfS_ii .p2align 8 .type _Z17inverse_transformPfS_ii,@function _Z17inverse_transformPfS_ii: ; @_Z17inverse_transformPfS_ii ; %bb.0: s_load...
8afae9fe3eabf52d98b8f4c36930a92155fe0267
/*This mixed-precision matrix-vector multiplication algorithm is based on cublasSgemv NVIDIA's CUBLAS 1.1. */ #define LOG_THREAD_COUNT (7) #define THREAD_COUNT (1 << LOG_THREAD_COUNT) #define CTAS (64) #define IDXA(row,col) (lda*(col)+(row)) #define IDXX(i) (startx + ((i) *...
.file "tmpxft_002e6f73_00000000-6_sgemv_mixedprecision.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size ...
code for sm_89 Function : _Z18sgemvn_mixedprecisPKfS0_Pfiiiii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> /*This mixed-precision matrix-vector multiplication algorithm is based on cublasSgemv NVIDIA's CUBLAS 1.1. */ #define LOG_THREAD_COUNT (7) #define THREAD_COUNT (1 << LOG_THREAD_COUNT) #define CTAS (64) #define IDXA(row,col) (lda*(col)+(row)) #define IDXX(i...
.text .file "sgemv_mixedprecision.hip" .globl _Z33__device_stub__sgemvn_mixedprecisPKfS0_Pfiiiii # -- Begin function _Z33__device_stub__sgemvn_mixedprecisPKfS0_Pfiiiii .type _Z33__device_stub__sgemvn_mixedprecisPKfS0_Pfiiiii,@function _Z33__device_stub__sgemvn_mixedprecisPKfS0_Pfiiiii: # @_Z33__device_stub__sgemvn_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18sgemvn_mixedprecisPKfS0_Pfiiiii ; -- Begin function _Z18sgemvn_mixedprecisPKfS0_Pfiiiii .globl _Z18sgemvn_mixedprecisPKfS0_Pfiiiii .p2align 8 .type _Z18sgemvn_mixedprecisPKfS0_Pfiiiii,@function _Z18sgemvn_mixedprecisPKfS0_Pfiiiii: ; @_Z18sgemvn_m...
88778744939e4cdad55b3e17ead9a90941a69c17
__global__ void sgemm (float *A, float *B, float *C, int N) { // Thread identifiers const int r = blockIdx.x; // Row ID const int c = blockIdx.y; // Col ID // Compute a single element (loop a K) float acc = 0.0f; for (int k = 0; k < N; k++) { acc += A[k * N + r] * B[c * N + k]; } // Store the resu...
.file "tmpxft_00293a90_00000000-6_sgemm.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _ZL26__cudaUnre...
code for sm_89 Function : _Z5sgemmPfS_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> __global__ void sgemm (float *A, float *B, float *C, int N) { // Thread identifiers const int r = blockIdx.x; // Row ID const int c = blockIdx.y; // Col ID // Compute a single element (loop a K) float acc = 0.0f; for (int k = 0; k < N; k++) { acc += A[k * N + r] * B[c * N ...
.text .file "sgemm.hip" .globl _Z20__device_stub__sgemmPfS_S_i # -- Begin function _Z20__device_stub__sgemmPfS_S_i .type _Z20__device_stub__sgemmPfS_S_i,@function _Z20__device_stub__sgemmPfS_S_i: # @_Z20__device_stub__sgemmPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5sgemmPfS_S_i ; -- Begin function _Z5sgemmPfS_S_i .globl _Z5sgemmPfS_S_i .p2align 8 .type _Z5sgemmPfS_S_i,@function _Z5sgemmPfS_S_i: ; @_Z5sgemmPfS_S_i ; %bb.0: s_clause 0x2 s_load_b32 s8, s[0:1], 0x18 s_load_b128 s[4...
c2750fae7824b03ffe15cc4876c0c0df1ed05d3b
#include "includes.h" __global__ void rgbUtoGreyF_kernel(int width, int height, unsigned int* rgbU, float* grey) { int x = blockDim.x * blockIdx.x + threadIdx.x; int y = blockDim.y * blockIdx.y + threadIdx.y; if ((x < width) && (y < height)) { int index = y * width + x; unsigned int rgb = rgbU[index]; float r = (float)...
.file "tmpxft_003ae2f9_00000000-6_rgbUtoGreyF_kernel.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2010: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2010: .size _Z...
code for sm_89 Function : _Z18rgbUtoGreyF_kerneliiPjPf .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void rgbUtoGreyF_kernel(int width, int height, unsigned int* rgbU, float* grey) { int x = blockDim.x * blockIdx.x + threadIdx.x; int y = blockDim.y * blockIdx.y + threadIdx.y; if ((x < width) && (y < height)) { int index = y * width + x; unsigned int rgb = ...
.text .file "rgbUtoGreyF_kernel.hip" .globl _Z33__device_stub__rgbUtoGreyF_kerneliiPjPf # -- Begin function _Z33__device_stub__rgbUtoGreyF_kerneliiPjPf .type _Z33__device_stub__rgbUtoGreyF_kerneliiPjPf,@function _Z33__device_stub__rgbUtoGreyF_kerneliiPjPf: # @_Z33__device_stub__rgbUtoGreyF_kerneliiPjPf .cfi_startp...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z18rgbUtoGreyF_kerneliiPjPf ; -- Begin function _Z18rgbUtoGreyF_kerneliiPjPf .globl _Z18rgbUtoGreyF_kerneliiPjPf .p2align 8 .type _Z18rgbUtoGreyF_kerneliiPjPf,@function _Z18rgbUtoGreyF_kerneliiPjPf: ; @_Z18rgbUtoGreyF_kerneliiPjPf ; %bb.0: s...
f653e604d03b6254f0acc72c163b6f62b6b17f4c
// includes, system #include <stdio.h> #include <assert.h> #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char* msg); // Part3: implement the kernel __global__ void max_parallel(double *cmax, dou...
.file "tmpxft_00212cf0_00000000-6_maxtest.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cudaUn...
code for sm_89 Function : _Z12max_parallelPdS_id .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
// includes, system #include <hip/hip_runtime.h> #include <stdio.h> #include <assert.h> #include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ // Simple utility function to check for CUDA runtime errors void checkCUDAError(const char* msg); // Part3: implement the kernel __global__ void ...
.text .file "maxtest.hip" .globl _Z27__device_stub__max_parallelPdS_id # -- Begin function _Z27__device_stub__max_parallelPdS_id .type _Z27__device_stub__max_parallelPdS_id,@function _Z27__device_stub__max_parallelPdS_id: # @_Z27__device_stub__max_parallelPdS_id .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_o...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12max_parallelPdS_id ; -- Begin function _Z12max_parallelPdS_id .globl _Z12max_parallelPdS_id .p2align 8 .type _Z12max_parallelPdS_id,@function _Z12max_parallelPdS_id: ; @_Z12max_parallelPdS_id ; %bb.0: s_clause 0x2 s_load_b32 s5, s...
b9f716aabe69405a2c097523af41fdd1120bbf1f
#include <iostream> #include <iterator> #include <queue> #include <vector> #include <math.h> #include <assert.h> #define CONV_MATRIX_SIZE 10 #define MAX_POOL_SIZE 10 #define TRIBE_MIN_POPULATION 15 #define RESET "\033[0m" #define BOLDBLACK "\033[1m\033[40m" /* Bold Black */ #define BOLDRED "\033[1m\033...
.file "tmpxft_0026d80c_00000000-6_AreaDivisionParallel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4375: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinar...
code for sm_89
#include <hip/hip_runtime.h> #include <iostream> #include <iterator> #include <queue> #include <vector> #include <math.h> #include <assert.h> #define CONV_MATRIX_SIZE 10 #define MAX_POOL_SIZE 10 #define TRIBE_MIN_POPULATION 15 #define RESET "\033[0m" #define BOLDBLACK "\033[1m\033[40m" /* Bold Black */ #d...
.text .file "AreaDivisionParallel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .type __hip_cuid_,@object # @__hip_cuid_ .bss .globl __hip_cuid_ __hip_c...
.text .p2alignl 7, 3214868480 .fill 96, 4, 3214868480 .type __hip_cuid_,@object ; @__hip_cuid_ .section .bss,"aw",@nobits .globl __hip_cuid_ __hip_cuid_: .byte 0 ; 0x0 .size __hip_cuid_, 1 .ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-...
247bb285ecf9c0608558b8efc0989d2d2a8f4d98
#include <stdio.h> #include <stdlib.h> #include <cuda.h> #include <curand.h> #include <cuda_runtime.h> #define PI 3.14159265358979323846 #define N 100000 #define BLOCK_SIZE 1024 __device__ void BoxMuller(float u1, float u2, float *n1, float *n2) { float r = sqrtf(-2*logf(u1)); float theta = 2*PI*(u2); *n1 = r*s...
.file "tmpxft_00342e95_00000000-6_monte_carlo.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2031: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2031: .size _ZL26__cu...
code for sm_89 Function : _Z14norm_transformPfS_S_S_i .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <stdio.h> #include <stdlib.h> #include <hip/hip_runtime.h> #include <hiprand/hiprand.h> #define PI 3.14159265358979323846 #define N 100000 #define BLOCK_SIZE 1024 __device__ void BoxMuller(float u1, float u2, float *n1, float *n2) { float r = sqrtf(-2*logf(u1)); float theta = 2*PI*(u2); *n1 = r*sinf(t...
.text .file "monte_carlo.hip" .globl _Z29__device_stub__norm_transformPfS_S_S_i # -- Begin function _Z29__device_stub__norm_transformPfS_S_S_i .type _Z29__device_stub__norm_transformPfS_S_S_i,@function _Z29__device_stub__norm_transformPfS_S_S_i: # @_Z29__device_stub__norm_transformPfS_S_S_i .cfi_startproc # %bb.0:...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14norm_transformPfS_S_S_i ; -- Begin function _Z14norm_transformPfS_S_S_i .globl _Z14norm_transformPfS_S_S_i .p2align 8 .type _Z14norm_transformPfS_S_S_i,@function _Z14norm_transformPfS_S_S_i: ; @_Z14norm_transformPfS_S_S_i ; %bb.0: s_clau...
923444321603954081b6b72efbb4f1bc40db0ece
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <cuda.h> __global__ void kernel_grey(uint8_t* start, uint8_t* end, int height, int width) { int i, j, k, l; float blur[3][3] = {{1,2,1}, {2,4,2}, {1,2,1}}; // fil...
.file "tmpxft_003ac658_00000000-6_cuda_functions.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2034: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2034: .size _ZL26_...
code for sm_89 Function : _Z10kernel_rgbPhS_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */ ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <hip/hip_runtime.h> __global__ void kernel_grey(uint8_t* start, uint8_t* end, int height, int width) { int i, j, k, l; float blur[3][3] = {{1,2,1}, {2,4,2}, {1,2,...
.text .file "cuda_functions.hip" .globl _Z26__device_stub__kernel_greyPhS_ii # -- Begin function _Z26__device_stub__kernel_greyPhS_ii .type _Z26__device_stub__kernel_greyPhS_ii,@function _Z26__device_stub__kernel_greyPhS_ii: # @_Z26__device_stub__kernel_greyPhS_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11kernel_greyPhS_ii ; -- Begin function _Z11kernel_greyPhS_ii .globl _Z11kernel_greyPhS_ii .p2align 8 .type _Z11kernel_greyPhS_ii,@function _Z11kernel_greyPhS_ii: ; @_Z11kernel_greyPhS_ii ; %bb.0: s_load_b64 s[0:1], s[0:1], 0x4 v_...
fccab61a0def7d44116f626941e5473adae8b91d
#include <iostream> #include <stdio.h> #include <sys/time.h> using namespace std; double get_time() { struct timeval tim; gettimeofday(&tim, NULL); return (double) tim.tv_sec+(tim.tv_usec/1000000.0); } //KERNEL __global__ void Add(float *a, float *b, float *c, int N, int BSZ) { int i = blockIdx.x*BSZ + threa...
.file "tmpxft_00367e66_00000000-6_add.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3639: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpr...
code for sm_89 Function : _Z3AddPfS_S_ii .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <iostream> #include <stdio.h> #include <sys/time.h> using namespace std; double get_time() { struct timeval tim; gettimeofday(&tim, NULL); return (double) tim.tv_sec+(tim.tv_usec/1000000.0); } //KERNEL __global__ void Add(float *a, float *b, float *c, int N, int BSZ) { ...
.text .file "add.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3AddPfS_S_ii ; -- Begin function _Z3AddPfS_S_ii .globl _Z3AddPfS_S_ii .p2align 8 .type _Z3AddPfS_S_ii,@function _Z3AddPfS_S_ii: ; @_Z3AddPfS_S_ii ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x18 s_waitcnt lgkmcnt(0) v_mad_u...
6d1c8bfc8c9ca2b91666c4bdd0dba0b90758cbf8
#include <stdio.h> #include <iostream> #define N 512 #define BLOCK_DIM 32 __global__ void matrixAdd(int *d_a, int *d_b, int *d_out){ // Mapping from 2D block grid to absolute 2D locations on matrix int idx_x = blockDim.x * blockIdx.x + threadIdx.x; int idx_y = blockDim.y * blockIdx.y + threadIdx.y; ...
.file "tmpxft_00384655_00000000-6_matrixadd.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3638: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi...
code for sm_89 Function : _Z9matrixAddPiS_S_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM89)" /*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */ ...
#include <hip/hip_runtime.h> #include <stdio.h> #include <iostream> #define N 512 #define BLOCK_DIM 32 __global__ void matrixAdd(int *d_a, int *d_b, int *d_out){ // Mapping from 2D block grid to absolute 2D locations on matrix int idx_x = blockDim.x * blockIdx.x + threadIdx.x; int idx_y = blockDim.y * ...
.text .file "matrixadd.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__matrixAddPiS_S_ # -- Begin function _Z24__device_stub__matrixAddPiS_S_ ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9matrixAddPiS_S_ ; -- Begin function _Z9matrixAddPiS_S_ .globl _Z9matrixAddPiS_S_ .p2align 8 .type _Z9matrixAddPiS_S_,@function _Z9matrixAddPiS_S_: ; @_Z9matrixAddPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 v_and_b32_e32 v2,...