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
dd0cb796c9894a6caaa55eade014342503bf932c
__global__ void CuKnlSetField( double xCells, double yCells, double* energy0, double* energy1) { const int gid = threadIdx.x+blockIdx.x*blockDim.x; energy1[gid] = energy0[gid]; }
.file "tmpxft_002d3b98_00000000-6_set_field.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 : _Z13CuKnlSetFieldddPdS_ .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 CuKnlSetField( double xCells, double yCells, double* energy0, double* energy1) { const int gid = threadIdx.x+blockIdx.x*blockDim.x; energy1[gid] = energy0[gid]; }
.text .file "set_field.hip" .globl _Z28__device_stub__CuKnlSetFieldddPdS_ # -- Begin function _Z28__device_stub__CuKnlSetFieldddPdS_ .type _Z28__device_stub__CuKnlSetFieldddPdS_,@function _Z28__device_stub__CuKnlSetFieldddPdS_: # @_Z28__device_stub__CuKnlSetFieldddPdS_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13CuKnlSetFieldddPdS_ ; -- Begin function _Z13CuKnlSetFieldddPdS_ .globl _Z13CuKnlSetFieldddPdS_ .p2align 8 .type _Z13CuKnlSetFieldddPdS_,@function _Z13CuKnlSetFieldddPdS_: ; @_Z13CuKnlSetFieldddPdS_ ; %bb.0: s_clause 0x1 s_load_b32 s...
8e148db0f7db0ac0e71fc85c52c7d3574108172c
#include "probe.cuh" Probe::Probe(ProbeConfig cfg) : chan_indices_(cfg.n_active()), site_labels(cfg.n_active()), chan_grps(cfg.n_active()), x_coords(cfg.n_active()), y_coords(cfg.n_active()), is_active_(cfg.n_total), site_dists(cfg.n_active()) { n_total_ = cfg.n_total; if (n...
.file "tmpxft_0038a454_00000000-6_probe.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text.nvtxEtiGetModuleFunctionTable_v3,"axG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat .weak nvtxEtiGetModuleFunctionTable_v3 .hidden nvtxEtiGetModuleFunctionTable_v3 .type nvtxEtiGetModu...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv .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 "probe.cuh" Probe::Probe(ProbeConfig cfg) : chan_indices_(cfg.n_active()), site_labels(cfg.n_active()), chan_grps(cfg.n_active()), x_coords(cfg.n_active()), y_coords(cfg.n_active()), is_active_(cfg.n_total), site_dists(cfg.n_active()) { n...
.text .file "probe.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _ZN5ProbeC2E11ProbeConfig # -- Begin function _ZN5ProbeC2E11ProbeConfig .p2align 1, 0x9...
.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-...
76c2c2f82115c79a51ef5f34f813c777b863ea91
#include "includes.h" __global__ void cudaComputeSignature(double* hyperplanes, double* v, int* dimensions, bool* sig, long* hyperp_length) { long tid = threadIdx.x + blockDim.x * blockIdx.x; if (tid < *hyperp_length) { int d_dimensions = *dimensions; long pos = tid * d_dimensions; double sum = 0.0; for (int i = 0; i...
.file "tmpxft_0031cce4_00000000-6_cudaComputeSignature.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 : _Z20cudaComputeSignaturePdS_PiPbPl .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 cudaComputeSignature(double* hyperplanes, double* v, int* dimensions, bool* sig, long* hyperp_length) { long tid = threadIdx.x + blockDim.x * blockIdx.x; if (tid < *hyperp_length) { int d_dimensions = *dimensions; long pos = tid * d_dimensions; double...
.text .file "cudaComputeSignature.hip" .globl _Z35__device_stub__cudaComputeSignaturePdS_PiPbPl # -- Begin function _Z35__device_stub__cudaComputeSignaturePdS_PiPbPl .type _Z35__device_stub__cudaComputeSignaturePdS_PiPbPl,@function _Z35__device_stub__cudaComputeSignaturePdS_PiPbPl: # @_Z35__device_stub__cudaCompute...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20cudaComputeSignaturePdS_PiPbPl ; -- Begin function _Z20cudaComputeSignaturePdS_PiPbPl .globl _Z20cudaComputeSignaturePdS_PiPbPl .p2align 8 .type _Z20cudaComputeSignaturePdS_PiPbPl,@function _Z20cudaComputeSignaturePdS_PiPbPl: ; @_Z20cudaComputeS...
df846dccb07bf1f64f6c13c9ae3c3ea7afcaddf3
#include "stdio.h" // printf() is only supported // for devices of compute capability 2.0 and higher #if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ < 200) #define printf(f, ...) ((void)(f, __VA_ARGS__),0) #endif __global__ void helloCUDA(float f) { printf("Hello thread %d, f=%f\n", threadIdx.x, f); } int main(...
.file "tmpxft_002cc315_00000000-6_printfcuda.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 : _Z9helloCUDAf .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" // printf() is only supported // for devices of compute capability 2.0 and higher #if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ < 200) #define printf(f, ...) ((void)(f, __VA_ARGS__),0) #endif __global__ void helloCUDA(float f) { printf("Hello thread %d, f=%f\n",...
.text .file "printfcuda.hip" .globl _Z24__device_stub__helloCUDAf # -- Begin function _Z24__device_stub__helloCUDAf .type _Z24__device_stub__helloCUDAf,@function _Z24__device_stub__helloCUDAf: # @_Z24__device_stub__helloCUDAf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9helloCUDAf ; -- Begin function _Z9helloCUDAf .globl _Z9helloCUDAf .p2align 8 .type _Z9helloCUDAf,@function _Z9helloCUDAf: ; @_Z9helloCUDAf ; %bb.0: s_load_b64 s[4:5], s[0:1], 0x58 v_mbcnt_lo_u32_b32 v29, -1, 0 v_...
b6bc831d888f255cf7d2816063e151e4121b639d
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #define N 1000000 __global__ void gpuAdd(int *d_a, int *d_b, int *d_c){ //总线程id = 当前块线程id.x + 块id*块维度x int tid = threadIdx.x + blockIdx.x * blockDim.x; while (tid < N) { d_c[tid] = d_a[tid] + d_b[tid];// 加法 tid += blockDim.x * gridDim.x; // 一次执...
.file "tmpxft_0025703e_00000000-6_async.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 : _Z6gpuAddPiS_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> #define N 1000000 __global__ void gpuAdd(int *d_a, int *d_b, int *d_c){ //总线程id = 当前块线程id.x + 块id*块维度x int tid = threadIdx.x + blockIdx.x * blockDim.x; while (tid < N) { d_c[tid] = d_a[tid] + d_b[tid];// 加法 tid += blockDim.x * gridDim.x; // 一次执行一个格子 块维度x*格子维...
.text .file "async.hip" .globl _Z21__device_stub__gpuAddPiS_S_ # -- Begin function _Z21__device_stub__gpuAddPiS_S_ .type _Z21__device_stub__gpuAddPiS_S_,@function _Z21__device_stub__gpuAddPiS_S_: # @_Z21__device_stub__gpuAddPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6gpuAddPiS_S_ ; -- Begin function _Z6gpuAddPiS_S_ .globl _Z6gpuAddPiS_S_ .p2align 8 .type _Z6gpuAddPiS_S_,@function _Z6gpuAddPiS_S_: ; @_Z6gpuAddPiS_S_ ; %bb.0: s_load_b32 s4, s[0:1], 0x24 s_add_u32 s2, s0, 24 s_addc_...
02803b0c84afd8cf453fe2dab81c04192136aeda
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <climits> #include <fstream> #include <iostream> #include <string> #include <vector> #include <chrono> #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, int line, bool abor...
.file "tmpxft_002f95a1_00000000-6_graphlets.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4255: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi...
code for sm_89 Function : _Z9graphletsPiyS_yS_S_P11EDGE_OUTPUT .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 <climits> #include <fstream> #include <iostream> #include <string> #include <vector> #include <chrono> #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipError_t code, const char *file, int line, bool abort = true) { if (code != hipSuccess...
.text .file "graphlets.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__graphletsPiyS_yS_S_P11EDGE_OUTPUT # -- Begin function _Z24__device_stub...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text.unlikely.,"ax",@progbits .p2align 2 ; -- Begin function __ockl_dm_alloc .type __ockl_dm_alloc,@function __ockl_dm_alloc: ; @__ockl_dm_alloc ; %bb.0: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) s_or_s...
79cf5d389538d87994a6b32d5edc55bc159b6028
#include <stdio.h> __global__ void add(int a, int b, int *c){ *c = a + b; } int main(){ int c; int *dev_c; cudaMalloc( (void**) &dev_c, sizeof(int) ); add<<<1, 1>>> (2, 7, dev_c); cudaMemcpy(&c, dev_c, sizeof(int), cudaMemcpyDeviceToHost); printf("2 + 7 ...
.file "tmpxft_00329cd8_00000000-6_pass_param.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 : _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 <stdio.h> __global__ void add(int a, int b, int *c){ *c = a + b; } int main(){ int c; int *dev_c; hipMalloc( (void**) &dev_c, sizeof(int) ); add<<<1, 1>>> (2, 7, dev_c); hipMemcpy(&c, dev_c, sizeof(int), hipMemcpyDeviceToHo...
.text .file "pass_param.hip" .globl _Z18__device_stub__addiiPi # -- Begin function _Z18__device_stub__addiiPi .type _Z18__device_stub__addiiPi,@function _Z18__device_stub__addiiPi: # @_Z18__device_stub__addiiPi .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 _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...
82699aa4bf8829214ceaf9fed349e3186e709adb
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include <stdio.h> // __global__ indicates a function or "kernel" that runs on the device and is called from host code __global__ void hello_kernel(void) { // greet from the device : the GPU and its memory printf("Hello, world from the device!\n...
.file "tmpxft_002f509e_00000000-6_hello.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 : _Z12hello_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> // __global__ indicates a function or "kernel" that runs on the device and is called from host code __global__ void hello_kernel(void) { // greet from the device : the GPU and its memory printf("Hello, world from the device!\n"); } int main(void) { // gre...
.text .file "hello.hip" .globl _Z27__device_stub__hello_kernelv # -- Begin function _Z27__device_stub__hello_kernelv .type _Z27__device_stub__hello_kernelv,@function _Z27__device_stub__hello_kernelv: # @_Z27__device_stub__hello_kernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12hello_kernelv ; -- Begin function _Z12hello_kernelv .globl _Z12hello_kernelv .p2align 8 .type _Z12hello_kernelv,@function _Z12hello_kernelv: ; @_Z12hello_kernelv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b3...
3a155e6732baa12fd2e994a69c56ac9d55385d77
#include <stdlib.h> #include <stdio.h> #include <time.h> /* Every thread gets exactly one value in the unsorted array. */ #define THREADS 128 // 2^7 #define BLOCKS 1024 // 2^10 #define NUM_VALS THREADS*BLOCKS #define MAX_VALUE 8196 void print_elapsed(clock_t start, clock_t stop) { double elapsed = ((double) (stop -...
.file "tmpxft_0028c486_00000000-6_count_sort.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__cud...
code for sm_89 Function : _Z5mergePi .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 <time.h> /* Every thread gets exactly one value in the unsorted array. */ #define THREADS 128 // 2^7 #define BLOCKS 1024 // 2^10 #define NUM_VALS THREADS*BLOCKS #define MAX_VALUE 8196 void print_elapsed(clock_t start, clock_t stop) { doub...
.text .file "count_sort.hip" .section .rodata.cst8,"aM",@progbits,8 .p2align 3, 0x0 # -- Begin function _Z13print_elapsedll .LCPI0_0: .quad 0x412e848000000000 # double 1.0E+6 .text .globl _Z13print_elapsedll .type _Z13print_elapsedll,@function _Z13print_elapsedll: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5countPiS_i ; -- Begin function _Z5countPiS_i .globl _Z5countPiS_i .p2align 8 .type _Z5countPiS_i,@function _Z5countPiS_i: ; @_Z5countPiS_i ; %bb.0: s_load_b32 s2, s[0:1], 0x24 v_mov_b32_e32 v1, 1 s_waitcnt lgkmcn...
9803af9e72c2daca0d85e56e3422f1c66eb5ed83
#include <iostream> using std::endl; __global__ void sum_kernel(double *A, double *B, double *C, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx >= N) { return; } double a = A[idx]; double b = B[idx]; C[idx] = a + b; } int main(int argc, char **argv) { // Size of vectors ...
.file "tmpxft_002b71be_00000000-6_main.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 : _Z10sum_kernelPdS_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 <iostream> using std::endl; __global__ void sum_kernel(double *A, double *B, double *C, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx >= N) { return; } double a = A[idx]; double b = B[idx]; C[idx] = a + b; } int main(int argc, char **argv...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z25__device_stub__sum_kernelPdS_S_i # -- Begin function _Z25__device_stub__sum_kernelPdS_S_i ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10sum_kernelPdS_S_i ; -- Begin function _Z10sum_kernelPdS_S_i .globl _Z10sum_kernelPdS_S_i .p2align 8 .type _Z10sum_kernelPdS_S_i,@function _Z10sum_kernelPdS_S_i: ; @_Z10sum_kernelPdS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
6e7f6855d6eaf3472a3a701e0829b44c3387b9db
/** * 3mm.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <stdio.h> #include <stdlib.h> #include <math.h> #i...
.file "tmpxft_0022f881_00000000-6_3mm_managed.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2045: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2045: .size _ZL26__cu...
code for sm_89 Function : _Z11mm3_kernel3PfS_S_iiiii .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 */ ...
/** * 3mm.cu: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: Scott Grauer-Gray <sgrauerg@gmail.com> * Louis-Noel Pouchet <pouchet@cse.ohio-state.edu> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <stdio.h> #include <stdlib.h> #include <math.h> #i...
.text .file "3mm_managed.hip" .globl _Z10init_arrayPfS_S_S_ # -- Begin function _Z10init_arrayPfS_S_S_ .type _Z10init_arrayPfS_S_S_,@function _Z10init_arrayPfS_S_S_: # @_Z10init_arrayPfS_S_S_ .cfi_startproc # %bb.0: pushq %rbx .cfi_def_cfa_offset 16 .cfi_offset %rbx, -16 movl NI(%rip),...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11mm3_kernel1PfS_S_iiiii ; -- Begin function _Z11mm3_kernel1PfS_S_iiiii .globl _Z11mm3_kernel1PfS_S_iiiii .p2align 8 .type _Z11mm3_kernel1PfS_S_iiiii,@function _Z11mm3_kernel1PfS_S_iiiii: ; @_Z11mm3_kernel1PfS_S_iiiii ; %bb.0: s_clause 0x...
d52a8e81aae5f6f1acbda05ba6479b98f4331a6b
#include <cuda_runtime.h> #include <device_launch_parameters.h> #include <cuda.h> #include <device_functions.h> #include <cuda_runtime_api.h> #include<iostream> #define imin(a,b) (a<b?a:b) #define sum_squares(x) (x*(x+1)*(2*x+1)/6) const int N = 33 * 1024; const int threadsPerBlock = 256; const int blocksPerGrid = i...
.file "tmpxft_0035474b_00000000-6_File6_Dot_SharedMemory.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 __cudaUnregisterFatBin...
code for sm_89 Function : _Z3dotPfS_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 <hip/device_functions.h> #include <hip/hip_runtime_api.h> #include<iostream> #define imin(a,b) (a<b?a:b) #define sum_squares(x) (x*(x+1)*(2*x+1)/6) const int N = 33 * 1024; const int threadsPerBlock = 256; const int blocksPerGrid = imin(32, (N + threadsPerBlock - 1) / threadsP...
.text .file "File6_Dot_SharedMemory.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__dotPfS_S_ # -- Begin function _Z18__device_stub__dotPfS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3dotPfS_S_ ; -- Begin function _Z3dotPfS_S_ .globl _Z3dotPfS_S_ .p2align 8 .type _Z3dotPfS_S_,@function _Z3dotPfS_S_: ; @_Z3dotPfS_S_ ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1], 0x24 s_load_b128 s[4:7], s[0:1],...
d50d3870d1fc69d494a4d3dcc3ac11e49c131a67
// RUN: %run_test hipify "%s" "%t" %hipify_args %clang_args "-Xclang" "-fcuda-allow-variadic-functions" /* Copyright (c) 2015-present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
.file "tmpxft_002a3abd_00000000-6_atomics.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2322: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2322: .size _ZL26__cudaUn...
code for sm_89 Function : _Z10testKernelIdEvPT_ .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 "-Xclang" "-fcuda-allow-variadic-functions" /* Copyright (c) 2015-present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
.text .file "atomics.hip" .globl _Z18computeGoldBitwisez # -- Begin function _Z18computeGoldBitwisez .type _Z18computeGoldBitwisez,@function _Z18computeGoldBitwisez: # @_Z18computeGoldBitwisez .cfi_startproc # %bb.0: movb $1, %al retq .Lfunc_end0: .size _Z18computeGoldBitwisez, .Lfunc_end...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z10testKernelIiEvPT_,"axG",@progbits,_Z10testKernelIiEvPT_,comdat .protected _Z10testKernelIiEvPT_ ; -- Begin function _Z10testKernelIiEvPT_ .globl _Z10testKernelIiEvPT_ .p2align 8 .type _Z10testKernelIiEvPT_,@function _Z10testKernelIiEvPT_: ...
af629d60b47ab63358b615273a13bff152c36dc5
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <cuda.h> __global__ void _slowKernel(char* ptr, int sz) { int idx = blockIdx.x * blockD...
.file "tmpxft_002cb56d_00000000-6_kernel.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__cudaUnr...
code for sm_89 Function : _Z11_slowKernelPci .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 */ ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <hip/hip_runtime.h> __global__ void _slowKernel(char* ptr, int sz) { int idx = blockIdx...
.text .file "kernel.hip" .globl _Z26__device_stub___slowKernelPci # -- Begin function _Z26__device_stub___slowKernelPci .type _Z26__device_stub___slowKernelPci,@function _Z26__device_stub___slowKernelPci: # @_Z26__device_stub___slowKernelPci .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11_slowKernelPci ; -- Begin function _Z11_slowKernelPci .globl _Z11_slowKernelPci .p2align 8 .type _Z11_slowKernelPci,@function _Z11_slowKernelPci: ; @_Z11_slowKernelPci ; %bb.0: s_clause 0x1 s_load_b32 s5, s[0:1], 0x1c s_l...
c892cc9b64b9ca4a26c8a05efef421c4f865ecdd
#include "math.h" __constant__ int sobelV[] = {1, 0, -1, 2, 0, -2, 1, 0, -1}; __constant__ int sobelH[] = {1, 2, 1, 0, 0, 0, -1, -2, -1}; extern "C" __global__ void grayEdgeDetection(int * output, int width, int thresh) { int idx = blockIdx.x * blockDim.x + threadIdx.x; int idy = blockIdx.y * blockDim.y + threadI...
.file "tmpxft_003b8ae4_00000000-6_grayEdgeDetection.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 : grayEdgeDetection .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 "math.h" __constant__ int sobelV[] = {1, 0, -1, 2, 0, -2, 1, 0, -1}; __constant__ int sobelH[] = {1, 2, 1, 0, 0, 0, -1, -2, -1}; extern "C" __global__ void grayEdgeDetection(int * output, int width, int thresh) { int idx = blockIdx.x * blockDim.x + threadIdx.x; int idy = blo...
.text .file "grayEdgeDetection.hip" .globl __device_stub__grayEdgeDetection # -- Begin function __device_stub__grayEdgeDetection .type __device_stub__grayEdgeDetection,@function __device_stub__grayEdgeDetection: # @__device_stub__grayEdgeDetection .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected grayEdgeDetection ; -- Begin function grayEdgeDetection .globl grayEdgeDetection .p2align 8 .type grayEdgeDetection,@function grayEdgeDetection: ; @grayEdgeDetection ; %bb.0: s_clause 0x1 s_load_b32 s4, s[0:1], 0x1c s_load_...
df9be14946b8363dc2b3c7f4d46779dd7ec9175a
#include<stdio.h> #include<stdlib.h> #include<time.h> float random_number(int min, int max){ /* * Function: random_number * ----------------------- * return a random number between min and max as a float */ float num = rand() % (max + 1 - min) + min; ret...
.file "tmpxft_002a522a_00000000-6_utils.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2038: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2038: .size _ZL26__cudaUnre...
code for sm_89
#include <hip/hip_runtime.h> #include<stdio.h> #include<stdlib.h> #include<time.h> float random_number(int min, int max){ /* * Function: random_number * ----------------------- * return a random number between min and max as a float */ float num = rand() % (max ...
.text .file "utils.hip" .globl _Z13random_numberii # -- Begin function _Z13random_numberii .type _Z13random_numberii,@function _Z13random_numberii: # @_Z13random_numberii .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 pushq %rax .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-...
8487a1b0e5c2ce9c5a84dbd026cc29632753a579
/* * ising_cuda_v1.cu * * Created on: Dec 26, 2019 * Author: Charalampos Eleftheriadis */ #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 512 #define threadsNum 64 #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, ...
.file "tmpxft_002f7d5c_00000000-6_ising_cuda_v1.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__...
code for sm_89 Function : _Z5checkPiS_iS_ .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 */ ...
/* * ising_cuda_v1.cu * * Created on: Dec 26, 2019 * Author: Charalampos Eleftheriadis */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 512 #define threadsNum 64 #define gpuErrchk(ans) { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipErr...
.text .file "ising_cuda_v1.hip" .globl _Z19__device_stub__spinPiPdS_i # -- Begin function _Z19__device_stub__spinPiPdS_i .type _Z19__device_stub__spinPiPdS_i,@function _Z19__device_stub__spinPiPdS_i: # @_Z19__device_stub__spinPiPdS_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4spinPiPdS_i ; -- Begin function _Z4spinPiPdS_i .globl _Z4spinPiPdS_i .p2align 8 .type _Z4spinPiPdS_i,@function _Z4spinPiPdS_i: ; @_Z4spinPiPdS_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s22, s[0...
02cfe7382154d057bb709f67b6794b1d24186679
#include "includes.h" __device__ void generate2DGaussian(double * output, double sigma, int sz, bool normalize) { /*x and y coordinates of thread in kernel. The gaussian filters are *small enough for the kernel to fit into a single thread block of sz*sz*/ const int colIdx = threadIdx.x; const int rowIdx = threadIdx.y;...
.file "tmpxft_00288f24_00000000-6_getGaussian.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 Function : _Z11getGaussianPdd .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" __device__ void generate2DGaussian(double * output, double sigma, int sz, bool normalize) { /*x and y coordinates of thread in kernel. The gaussian filters are *small enough for the kernel to fit into a single thread block of sz*sz*/ const int colIdx = threadIdx.x; c...
.text .file "getGaussian.hip" .globl _Z26__device_stub__getGaussianPdd # -- Begin function _Z26__device_stub__getGaussianPdd .type _Z26__device_stub__getGaussianPdd,@function _Z26__device_stub__getGaussianPdd: # @_Z26__device_stub__getGaussianPdd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pu...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11getGaussianPdd ; -- Begin function _Z11getGaussianPdd .globl _Z11getGaussianPdd .p2align 8 .type _Z11getGaussianPdd,@function _Z11getGaussianPdd: ; @_Z11getGaussianPdd ; %bb.0: s_load_b128 s[8:11], s[0:1], 0x0 v_bfe_u32 v7...
ed9c44f372f37fb3cfdd3d3f71954cb6e65bf1f0
#include <algorithm> #include <cassert> #include <cstdlib> #include <functional> #include <iostream> #include <vector> #include <chrono> using namespace std; constexpr int M = 1 << 3 ; //M =8 constexpr int N = 1 << 3; constexpr int K = 1 << 3; constexpr int THREADS = 1 << 2; constexpr int M_padded = M + TH...
.file "tmpxft_0022a504_00000000-6_mmul_nonMultiple.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4995: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PL...
code for sm_89 Function : _Z9matrixMulPKiS0_Pi .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 <algorithm> #include <cassert> #include <cstdlib> #include <functional> #include <iostream> #include <vector> #include <chrono> using namespace std; constexpr int M = 1 << 3 ; //M =8 constexpr int N = 1 << 3; constexpr int K = 1 << 3; constexpr int THREADS = 1 << 2; c...
.text .file "mmul_nonMultiple.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z8get_timev # -- Begin function _Z8get_timev .type _Z8get_time...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9matrixMulPKiS0_Pi ; -- Begin function _Z9matrixMulPKiS0_Pi .globl _Z9matrixMulPKiS0_Pi .p2align 8 .type _Z9matrixMulPKiS0_Pi,@function _Z9matrixMulPKiS0_Pi: ; @_Z9matrixMulPKiS0_Pi ; %bb.0: s_clause 0x2 s_load_b32 s3, s[0:1], 0...
cd2768a572d9015a8fc2b49350617d7ae397990c
#include <cuda.h> #include <stdlib.h> #include <stdio.h> #include <cuda_profiler_api.h> #include <tuple> #include <iostream> #include <string.h> double time_host = 0; double time_device = 0; int sample_rounds = 10; void meanFilter_host(unsigned char* image_matrix,unsigned char* filtered_image_data,int image_width, i...
.file "tmpxft_002cbc31_00000000-6_meanfilter1.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 .c...
code for sm_89 Function : _Z17meanFilter_devicePhS_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 */ ...
#include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> #include <hip/hip_runtime_api.h> #include <tuple> #include <iostream> #include <string.h> double time_host = 0; double time_device = 0; int sample_rounds = 10; void meanFilter_host(unsigned char* image_matrix,unsigned char* filtered_image_data,int i...
.text .file "meanfilter1.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z15meanFilter_hostPhS_iii # -- Begin function _Z15meanFilter_hostPhS_iii .type _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z17meanFilter_devicePhS_iii ; -- Begin function _Z17meanFilter_devicePhS_iii .globl _Z17meanFilter_devicePhS_iii .p2align 8 .type _Z17meanFilter_devicePhS_iii,@function _Z17meanFilter_devicePhS_iii: ; @_Z17meanFilter_devicePhS_iii ; %bb.0: s...
799c474a8231a1177100fdbd3daf8cf204224b39
// pi2.cu /* * A simple CUDA-enabled program that approximates \pi using monte-carlo * sampling. This version generates random numbers on-the-fly within each * kernel. */ #include <iostream> #include <curand.h> #include <curand_kernel.h> #include <stdlib.h> #include <unistd.h> #include <stdbool.h> using namespace ...
.file "tmpxft_00226650_00000000-6_pi2.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3865: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpr...
code for sm_89 Function : _Z2piPfP17curandStateXORWOWi .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 */ ...
// pi2.cu /* * A simple CUDA-enabled program that approximates \pi using monte-carlo * sampling. This version generates random numbers on-the-fly within each * kernel. */ #include <hip/hip_runtime.h> #include <iostream> #include <hiprand/hiprand.h> #include <hiprand/hiprand_kernel.h> #include <stdlib.h> #include ...
.text .file "pi2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z26__device_stub__initThreadsPfP12hiprandState # -- Begin function _Z26__device_stub__initThrea...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11initThreadsPfP12hiprandState ; -- Begin function _Z11initThreadsPfP12hiprandState .globl _Z11initThreadsPfP12hiprandState .p2align 8 .type _Z11initThreadsPfP12hiprandState,@function _Z11initThreadsPfP12hiprandState: ; @_Z11initThreadsPfP12hipr...
9a489877746797711963b7efe8f2185d4a98a34a
#include <iostream> #include <cuda.h> #define DATA_TYPE float #define NX 1024*8 // A = NX * NY #define NY 1024*32 // B = NY * NZ #define NZ 1024 #define GPU_DEVICE 0 using namespace std; __global__ void MatMul(DATA_TYPE* A, DATA_TYPE* B, DATA_TYPE* Out){ int idx = blockIdx.x * blockDim.x + threadIdx.x; int idy = b...
.file "tmpxft_0022705e_00000000-6_matmul.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_en...
code for sm_89 Function : _Z6MatMulPfS_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 <iostream> #include <hip/hip_runtime.h> #define DATA_TYPE float #define NX 1024*8 // A = NX * NY #define NY 1024*32 // B = NY * NZ #define NZ 1024 #define GPU_DEVICE 0 using namespace std; __global__ void MatMul(DATA_TYPE* A, DATA_TYPE* B, DATA_TYPE* Out){ int idx = blockIdx.x * blockDim.x + threadIdx.x; ...
.text .file "matmul.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z21__device_stub__MatMulPfS_S_ # -- Begin function _Z21__device_stub__MatMulPfS_S_ .type _Z...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6MatMulPfS_S_ ; -- Begin function _Z6MatMulPfS_S_ .globl _Z6MatMulPfS_S_ .p2align 8 .type _Z6MatMulPfS_S_,@function _Z6MatMulPfS_S_: ; @_Z6MatMulPfS_S_ ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b128 s[4...
acc895e816a3109eca84595543eecdf79714ba45
//This is a matrix multiplication program in CUDA without any optimizations //like tiling, using shared memory etc #include<stdio.h> #include<stdlib.h> #include<cuda_runtime.h> #include<assert.h> __global__ void MatrixMulKernel(float* Md, float* Nd, float* Pd, int width) { //2D thread ID int bx=blockIdx.x; int ...
.file "tmpxft_0039a235_00000000-6_matmul.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 : _Z15MatrixMulKernelPfS_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 */ ...
//This is a matrix multiplication program in CUDA without any optimizations //like tiling, using shared memory etc #include<stdio.h> #include<stdlib.h> #include<hip/hip_runtime.h> #include<assert.h> __global__ void MatrixMulKernel(float* Md, float* Nd, float* Pd, int width) { //2D thread ID int bx=blockIdx.x; i...
.text .file "matmul.hip" .globl _Z30__device_stub__MatrixMulKernelPfS_S_i # -- Begin function _Z30__device_stub__MatrixMulKernelPfS_S_i .type _Z30__device_stub__MatrixMulKernelPfS_S_i,@function _Z30__device_stub__MatrixMulKernelPfS_S_i: # @_Z30__device_stub__MatrixMulKernelPfS_S_i .cfi_startproc # %bb.0: pushq %r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15MatrixMulKernelPfS_S_i ; -- Begin function _Z15MatrixMulKernelPfS_S_i .globl _Z15MatrixMulKernelPfS_S_i .p2align 8 .type _Z15MatrixMulKernelPfS_S_i,@function _Z15MatrixMulKernelPfS_S_i: ; @_Z15MatrixMulKernelPfS_S_i ; %bb.0: s_clause 0x...
5effdb66bdf600ebec3cd23c9d0ce5fbec20d424
#define TILE_DIM 32 template<typename T> __device__ void vectorDotVector(const T* A, const T* B, T* result, const int length) { __shared__ T a_tile[TILE_DIM]; __shared__ T b_tile[TILE_DIM]; __shared__ T result_tile[TILE_DIM]; for (int i = 0; i < TILE_DIM; i++) { result_tile[i] = 0; } int tx = threadI...
.file "tmpxft_002298ff_00000000-6_Vector2VectorTensor.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 _...
code for sm_89
#include <hip/hip_runtime.h> #define TILE_DIM 32 template<typename T> __device__ void vectorDotVector(const T* A, const T* B, T* result, const int length) { __shared__ T a_tile[TILE_DIM]; __shared__ T b_tile[TILE_DIM]; __shared__ T result_tile[TILE_DIM]; for (int i = 0; i < TILE_DIM; i++) { result_tile[i...
.text .file "Vector2VectorTensor.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 e5bf7e55c91490b...
.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-...
37227da2dfd6ab69ec07e6ec3eb78528a1df9097
#include <stdio.h> #include <cuda.h> int *a, *b; // host data int *c, *c2; // results //Cuda error checking - non mandatory void cudaCheckError() { cudaError_t e=cudaGetLastError(); if(e!=cudaSuccess) { printf("Cuda failure %s:%d: '%s'\n",__FILE__,__LINE__,cudaGetErrorString(e)); exit(0); } } //GPU kernel...
.file "tmpxft_002547d9_00000000-6_matrixMultiply.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 Function : _Z14matrixMultiplyPiS_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> int *a, *b; // host data int *c, *c2; // results //Cuda error checking - non mandatory void cudaCheckError() { hipError_t e=hipGetLastError(); if(e!=hipSuccess) { printf("Cuda failure %s:%d: '%s'\n",__FILE__,__LINE__,hipGetErrorString(e)); exit(0); } } //GPU...
.text .file "matrixMultiply.hip" .globl _Z14cudaCheckErrorv # -- Begin function _Z14cudaCheckErrorv .type _Z14cudaCheckErrorv,@function _Z14cudaCheckErrorv: # @_Z14cudaCheckErrorv .cfi_startproc # %bb.0: pushq %rax .cfi_def_cfa_offset 16 callq hipGetLastError testl %eax, %eax jn...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14matrixMultiplyPiS_S_i ; -- Begin function _Z14matrixMultiplyPiS_S_i .globl _Z14matrixMultiplyPiS_S_i .p2align 8 .type _Z14matrixMultiplyPiS_S_i,@function _Z14matrixMultiplyPiS_S_i: ; @_Z14matrixMultiplyPiS_S_i ; %bb.0: s_clause 0x1 s_...
305afc813486d707c1b2d230e25642c1a83f7253
#include <algorithm> #include <fstream> #include <iostream> #include <sstream> #include <vector> #define THREADS 64 // Error check----- #define gpuErrchk(ans) \ { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(cudaError_t code, const char *file, i...
.file "tmpxft_00365d73_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4460: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z11deviceDFSk3PiS_S_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 <algorithm> #include <fstream> #include <iostream> #include <sstream> #include <vector> #define THREADS 64 // Error check----- #define gpuErrchk(ans) \ { gpuAssert((ans), __FILE__, __LINE__); } inline void gpuAssert(hipErro...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z26__device_stub__deviceDFSk5PiS_S_S_ # -- Begin function _Z26__device_stub__deviceDFSk5PiS_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11deviceDFSk5PiS_S_S_ ; -- Begin function _Z11deviceDFSk5PiS_S_S_ .globl _Z11deviceDFSk5PiS_S_S_ .p2align 8 .type _Z11deviceDFSk5PiS_S_S_,@function _Z11deviceDFSk5PiS_S_S_: ; @_Z11deviceDFSk5PiS_S_S_ ; %bb.0: s_clause 0x1 s_load_b256 ...
324781fc04b22d24ec53c36cbf34c3166130c2de
#include "includes.h" /* Vector addition with a single thread for each addition */ /* Vector addition with thread mapping and thread accessing its neighbor parallely */ //slower than simpler /* Matrix Matrix multiplication with a single thread for each row */ /* Matrix Matrix multiplication with a single thread...
.file "tmpxft_003387b3_00000000-6_simple_addition.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 : _Z15simple_additionPiS_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 "includes.h" /* Vector addition with a single thread for each addition */ /* Vector addition with thread mapping and thread accessing its neighbor parallely */ //slower than simpler /* Matrix Matrix multiplication with a single thread for each row */ /* Matrix Matrix multi...
.text .file "simple_addition.hip" .globl _Z30__device_stub__simple_additionPiS_S_i # -- Begin function _Z30__device_stub__simple_additionPiS_S_i .type _Z30__device_stub__simple_additionPiS_S_i,@function _Z30__device_stub__simple_additionPiS_S_i: # @_Z30__device_stub__simple_additionPiS_S_i .cfi_startproc # %bb.0: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15simple_additionPiS_S_i ; -- Begin function _Z15simple_additionPiS_S_i .globl _Z15simple_additionPiS_S_i .p2align 8 .type _Z15simple_additionPiS_S_i,@function _Z15simple_additionPiS_S_i: ; @_Z15simple_additionPiS_S_i ; %bb.0: s_clause 0x...
39b0206e32efc355e1b670dce9d866652f6ad793
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <fstream> #include <string> #include <cmath> #define N 1024 #define BLOCK_SIZE 16 typedef struct { float *elements; int width; int height; } Matrix; void cpu_gj(Matrix A, float *x, ...
.file "tmpxft_00307dbb_00000000-6_gj.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3772: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endpro...
code for sm_89 Function : _Z4fillPfS_ .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 <stdlib.h> #include <stdio.h> #include <iostream> #include <fstream> #include <string> #include <cmath> #define N 1024 #define BLOCK_SIZE 16 typedef struct { float *elements; int width; int height; } Matrix; vo...
.text .file "gj.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 function _Z6...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8naive_gj6MatrixPfS0_S0_ ; -- Begin function _Z8naive_gj6MatrixPfS0_S0_ .globl _Z8naive_gj6MatrixPfS0_S0_ .p2align 8 .type _Z8naive_gj6MatrixPfS0_S0_,@function _Z8naive_gj6MatrixPfS0_S0_: ; @_Z8naive_gj6MatrixPfS0_S0_ ; %bb.0: s_clause 0x...
d7ee83541b8b3e02d595efe03b9eec7d054f7595
/* * EyLeftUpdater.cpp * * Created on: 01 февр. 2016 г. * Author: aleksandr */ #include "EyLeftUpdater.h" #include "SmartIndex.h" /* * indx должен пренадлежать участку от [0, sizeY-1] */ __device__ void EyLeftUpdater::operator() (const int indx) { int n = indx; Ey(0, n) = coeff[0]*(Ey(2, n) + EyLeft(0,...
.file "tmpxft_00345a00_00000000-6_EyLeftUpdater.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .section .text.nvtxEtiGetModuleFunctionTable_v3,"axG",@progbits,nvtxEtiGetModuleFunctionTable_v3,comdat .weak nvtxEtiGetModuleFunctionTable_v3 .hidden nvtxEtiGetModuleFunctionTable_v3 .type nvtxEt...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS11EmptyKernelIvEEvv .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 */ ...
/* * EyLeftUpdater.cpp * * Created on: 01 февр. 2016 г. * Author: aleksandr */ #include <hip/hip_runtime.h> #include "EyLeftUpdater.h" #include "SmartIndex.h" /* * indx должен пренадлежать участку от [0, sizeY-1] */ __device__ void EyLeftUpdater::operator() (const int indx) { int n = indx; Ey(0, n) = ...
.text .file "EyLeftUpdater.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_cuid_: ...
.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-...
01116ced823417aab0b00a33a69357735e180409
/* Histogram generation on the GPU. Host-side code. Author: Naga Kandasamy Date modified: 3/11/2017 */ // includes, system #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <string.h> #include <math.h> #include <float.h> #define THREAD_BLOCK_SIZE 256 #define NUM_BLOCKS 60 // Define the size o...
.file "tmpxft_002a4777_00000000-6_histogram.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__cuda...
code for sm_89 Function : _Z21histogram_kernel_slowPiS_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 */ ...
/* Histogram generation on the GPU. Host-side code. Author: Naga Kandasamy Date modified: 3/11/2017 */ // includes, system #include <hip/hip_runtime.h> #include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <string.h> #include <math.h> #include <float.h> #define THREAD_BLOCK_SIZE 256 #define NUM_...
.text .file "histogram.hip" .globl _Z36__device_stub__histogram_kernel_fastPiS_ii # -- Begin function _Z36__device_stub__histogram_kernel_fastPiS_ii .type _Z36__device_stub__histogram_kernel_fastPiS_ii,@function _Z36__device_stub__histogram_kernel_fastPiS_ii: # @_Z36__device_stub__histogram_kernel_fastPiS_ii .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z21histogram_kernel_fastPiS_ii ; -- Begin function _Z21histogram_kernel_fastPiS_ii .globl _Z21histogram_kernel_fastPiS_ii .p2align 8 .type _Z21histogram_kernel_fastPiS_ii,@function _Z21histogram_kernel_fastPiS_ii: ; @_Z21histogram_kernel_fastPiS...
6d4b209e469692d7c7b871f4ab30fe3b5396abee
#include "includes.h" __global__ void unaccumulatedPartSizesKernel(int size, int *accumulatedSize, int *sizes) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if(idx == 0) sizes[idx] = accumulatedSize[0]; else if(idx < size) { sizes[idx] = accumulatedSize[idx] - accumulatedSize[idx - 1]; } }
.file "tmpxft_003805c1_00000000-6_unaccumulatedPartSizesKernel.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 : _Z28unaccumulatedPartSizesKerneliPiS_ .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 unaccumulatedPartSizesKernel(int size, int *accumulatedSize, int *sizes) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if(idx == 0) sizes[idx] = accumulatedSize[0]; else if(idx < size) { sizes[idx] = accumulatedSize[idx] - accumulatedSize[idx - 1...
.text .file "unaccumulatedPartSizesKernel.hip" .globl _Z43__device_stub__unaccumulatedPartSizesKerneliPiS_ # -- Begin function _Z43__device_stub__unaccumulatedPartSizesKerneliPiS_ .type _Z43__device_stub__unaccumulatedPartSizesKerneliPiS_,@function _Z43__device_stub__unaccumulatedPartSizesKerneliPiS_: # @_Z43__devi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z28unaccumulatedPartSizesKerneliPiS_ ; -- Begin function _Z28unaccumulatedPartSizesKerneliPiS_ .globl _Z28unaccumulatedPartSizesKerneliPiS_ .p2align 8 .type _Z28unaccumulatedPartSizesKerneliPiS_,@function _Z28unaccumulatedPartSizesKerneliPiS_: ; @_Z28...
a6ee07990866b00ea500d076f30381237322e610
#include <stdio.h> #include <sys/time.h> __global__ void log1p(double p, double q, double * y) { y[0] = q + log1p(exp(p - q)); } __global__ void log_1p(double p, double q, double * y) { y[0] = q + log(1 + exp(p - q)); } int main(void) { double a, b; double * y; cudaMallocManaged(&y, sizeof(*y)); y[0] = ...
.file "tmpxft_0033fd0e_00000000-6_cpu_vs_gpu.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 : _Z6log_1pddPd .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> __global__ void log1p(double p, double q, double * y) { y[0] = q + log1p(exp(p - q)); } __global__ void log_1p(double p, double q, double * y) { y[0] = q + log(1 + exp(p - q)); } int main(void) { double a, b; double * y; hipMallocManag...
.text .file "cpu_vs_gpu.hip" .globl _Z20__device_stub__log1pddPd # -- Begin function _Z20__device_stub__log1pddPd .type _Z20__device_stub__log1pddPd,@function _Z20__device_stub__log1pddPd: # @_Z20__device_stub__log1pddPd .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5log1pddPd ; -- Begin function _Z5log1pddPd .globl _Z5log1pddPd .p2align 8 .type _Z5log1pddPd,@function _Z5log1pddPd: ; @_Z5log1pddPd ; %bb.0: s_clause 0x1 s_load_b128 s[4:7], s[0:1], 0x0 s_load_b64 s[2:3], s[0:...
52d7f167e31a34710a5508004b26ab066cf9d262
/* This is the function you need to implement. Quick reference: - input rows: 0 <= y < ny - input columns: 0 <= x < nx - element at row y and column x is stored in data[x + y*nx] - correlation between rows i and row j has to be stored in result[i + j*ny] - only parts with 0 <= j <= i < ny need to be filled */ #include ...
.file "tmpxft_0023e57f_00000000-6_test.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4006: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endp...
code for sm_89 Function : _Z17padding_transposeiiPKfPfi .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 is the function you need to implement. Quick reference: - input rows: 0 <= y < ny - input columns: 0 <= x < nx - element at row y and column x is stored in data[x + y*nx] - correlation between rows i and row j has to be stored in result[i + j*ny] - only parts with 0 <= j <= i < ny need to be filled */ #include ...
.text .file "test.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z28__device_stub__correlate_gpuiiPKfPfi # -- Begin function _Z28__device_stub__correlate_gpuii...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13correlate_gpuiiPKfPfi ; -- Begin function _Z13correlate_gpuiiPKfPfi .globl _Z13correlate_gpuiiPKfPfi .p2align 8 .type _Z13correlate_gpuiiPKfPfi,@function _Z13correlate_gpuiiPKfPfi: ; @_Z13correlate_gpuiiPKfPfi ; %bb.0: v_dual_mov_b32 v...
c8ecac2e8d9f26481fc0ceff27da48fa73b91432
#include<stdio.h> #include<cuda.h> # define M 1000 # define N 1000 __global__ void mult( int * a, int * b, int * c) { unsigned int i= blockDim.x *blockIdx.x + threadIdx.x; unsigned int j= blockDim.y *blockIdx.y + threadIdx.y; int sum=0; if(i<M && j<N) { for(int k=0;k<N;k++) { sum+=(a[i*N+k]* b[k*N+j]); ...
.file "tmpxft_002c15d0_00000000-6_matrix_mul.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 : _Z4multPiS_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<stdio.h> #include<hip/hip_runtime.h> # define M 1000 # define N 1000 __global__ void mult( int * a, int * b, int * c) { unsigned int i= blockDim.x *blockIdx.x + threadIdx.x; unsigned int j= blockDim.y *blockIdx.y + threadIdx.y; int sum=0; if(i<M && j<N) { for(int k=0;k<N;k++) { sum+=(a[i*N+k]* b[...
.text .file "matrix_mul.hip" .globl _Z19__device_stub__multPiS_S_ # -- Begin function _Z19__device_stub__multPiS_S_ .type _Z19__device_stub__multPiS_S_,@function _Z19__device_stub__multPiS_S_: # @_Z19__device_stub__multPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z4multPiS_S_ ; -- Begin function _Z4multPiS_S_ .globl _Z4multPiS_S_ .p2align 8 .type _Z4multPiS_S_,@function _Z4multPiS_S_: ; @_Z4multPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 v_bfe_u32 v2, v0, 10, 10 v_and_b32_e...
abc96474d82df3da0c58902dd3ce78ed7d314cb1
#include "includes.h" /* #define N 512 #define N 2048 #define THREADS_PER_BLOCK 512 */ const int THREADS_PER_BLOCK = 32; const int N = 2048; __global__ void dotProd( int *a, int *b, int *c ) { __shared__ int temp[N]; temp[threadIdx.x] = a[threadIdx.x] * b[threadIdx.x]; __syncthreads(); // Evita condición de carr...
.file "tmpxft_003b53d4_00000000-6_dotProd.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 : _Z7dotProdPiS_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 "includes.h" /* #define N 512 #define N 2048 #define THREADS_PER_BLOCK 512 */ const int THREADS_PER_BLOCK = 32; const int N = 2048; __global__ void dotProd( int *a, int *b, int *c ) { __shared__ int temp[N]; temp[threadIdx.x] = a[threadIdx.x] * b[threadIdx.x]; __syncthreads...
.text .file "dotProd.hip" .globl _Z22__device_stub__dotProdPiS_S_ # -- Begin function _Z22__device_stub__dotProdPiS_S_ .type _Z22__device_stub__dotProdPiS_S_,@function _Z22__device_stub__dotProdPiS_S_: # @_Z22__device_stub__dotProdPiS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7dotProdPiS_S_ ; -- Begin function _Z7dotProdPiS_S_ .globl _Z7dotProdPiS_S_ .p2align 8 .type _Z7dotProdPiS_S_,@function _Z7dotProdPiS_S_: ; @_Z7dotProdPiS_S_ ; %bb.0: s_load_b128 s[4:7], s[0:1], 0x0 v_lshlrev_b32_e32 v1,...
74e6f76dbff8a55c55f412e2a67482da1200159e
__global__ void convolution2D(float *A,float *B,const int numRows,const int numCols) { int i = blockDim.x*blockIdx.x + threadIdx.x; int j = blockDim.y*blockIdx.y + threadIdx.y; if (i<numRows && j<numRows) { float pos1=0,pos2=0,pos3=0,pos4=0,pos5=0,pos6=0,pos7=0,pos8=0; if((i-1)>=0 &...
.file "tmpxft_001fd71d_00000000-6_Conv2D.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 : _Z13convolution2DPfS_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> __global__ void convolution2D(float *A,float *B,const int numRows,const int numCols) { int i = blockDim.x*blockIdx.x + threadIdx.x; int j = blockDim.y*blockIdx.y + threadIdx.y; if (i<numRows && j<numRows) { float pos1=0,pos2=0,pos3=0,pos4=0,pos5=0,pos6=0,pos7=0,p...
.text .file "Conv2D.hip" .globl _Z28__device_stub__convolution2DPfS_ii # -- Begin function _Z28__device_stub__convolution2DPfS_ii .type _Z28__device_stub__convolution2DPfS_ii,@function _Z28__device_stub__convolution2DPfS_ii: # @_Z28__device_stub__convolution2DPfS_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13convolution2DPfS_ii ; -- Begin function _Z13convolution2DPfS_ii .globl _Z13convolution2DPfS_ii .p2align 8 .type _Z13convolution2DPfS_ii,@function _Z13convolution2DPfS_ii: ; @_Z13convolution2DPfS_ii ; %bb.0: s_clause 0x1 s_load_b32 s...
f1fe5cbd0b5f818f9a18e753d37f9f02538ce1d6
/* Write GPU code to perform the step(s) involved in counting sort. Add additional kernels and device functions as needed. */ __global__ void counting_sort_kernel(int *input_array, int *sorted_array, int *histogram, int *scan, int num_elements, int range) { extern __shared__ int temp[]; int threadID = block...
.file "tmpxft_0035b9e6_00000000-6_counting_sort_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 ...
code for sm_89 Function : _Z21histogram_kernel_fastPiS_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> /* Write GPU code to perform the step(s) involved in counting sort. Add additional kernels and device functions as needed. */ __global__ void counting_sort_kernel(int *input_array, int *sorted_array, int *histogram, int *scan, int num_elements, int range) { extern __shared__ int temp...
.text .file "counting_sort_kernel.hip" .globl _Z35__device_stub__counting_sort_kernelPiS_S_S_ii # -- Begin function _Z35__device_stub__counting_sort_kernelPiS_S_S_ii .type _Z35__device_stub__counting_sort_kernelPiS_S_S_ii,@function _Z35__device_stub__counting_sort_kernelPiS_S_S_ii: # @_Z35__device_stub__counting_so...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z20counting_sort_kernelPiS_S_S_ii ; -- Begin function _Z20counting_sort_kernelPiS_S_S_ii .globl _Z20counting_sort_kernelPiS_S_S_ii .p2align 8 .type _Z20counting_sort_kernelPiS_S_S_ii,@function _Z20counting_sort_kernelPiS_S_S_ii: ; @_Z20counting_sor...
a898b15783c4930f78b3cc43dd2c51a77454a6cf
#include "includes.h" __global__ void BoxReciprocalGPU(double *gpu_prefact, double *gpu_sumRnew, double *gpu_sumInew, double *gpu_energyRecip, int imageSize) { int threadID = blockIdx.x * blockDim.x + threadIdx.x; if(threadID >= imageSize) return; gpu_energyRecip[threadID] = ((gpu_sumRnew[threadID] * gpu_sumRnew[threa...
.file "tmpxft_002c0746_00000000-6_BoxReciprocalGPU.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 : _Z16BoxReciprocalGPUPdS_S_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 "includes.h" __global__ void BoxReciprocalGPU(double *gpu_prefact, double *gpu_sumRnew, double *gpu_sumInew, double *gpu_energyRecip, int imageSize) { int threadID = blockIdx.x * blockDim.x + threadIdx.x; if(threadID >= imageSize) return; gpu_energyRecip[threadID] = ((gpu_sumRnew...
.text .file "BoxReciprocalGPU.hip" .globl _Z31__device_stub__BoxReciprocalGPUPdS_S_S_i # -- Begin function _Z31__device_stub__BoxReciprocalGPUPdS_S_S_i .type _Z31__device_stub__BoxReciprocalGPUPdS_S_S_i,@function _Z31__device_stub__BoxReciprocalGPUPdS_S_S_i: # @_Z31__device_stub__BoxReciprocalGPUPdS_S_S_i .cfi_sta...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16BoxReciprocalGPUPdS_S_S_i ; -- Begin function _Z16BoxReciprocalGPUPdS_S_S_i .globl _Z16BoxReciprocalGPUPdS_S_S_i .p2align 8 .type _Z16BoxReciprocalGPUPdS_S_S_i,@function _Z16BoxReciprocalGPUPdS_S_S_i: ; @_Z16BoxReciprocalGPUPdS_S_S_i ; %bb....
4a990959d6ea92cbf84dd129f4ccf972affbcc9a
#include "cuda_runtime.h" #include "device_launch_parameters.h" #include <cuda.h> #include <stdio.h> #include <device_functions.h> //#include "device_launch_parameters.h" #include <cuda_runtime_api.h> #include <iostream> #include <cstdlib> #include <fstream> #include <string> #include <cmath> #include <time.h> usi...
.file "tmpxft_002f1743_00000000-6_kernel.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3770: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_en...
code for sm_89 Function : _Z9calculatePfPiS_S_fffii .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 <hip/device_functions.h> //#include "device_launch_parameters.h" #include <hip/hip_runtime_api.h> #include <iostream> #include <cstdlib> #include <fstream> #include <string> #include <cmath> #include <time.h> using namespace std; const int range = 128; co...
.text .file "kernel.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z24__device_stub__calculatePfPiS_S_fffii # -- Begin function _Z24__device_stub__calculatePfP...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9calculatePfPiS_S_fffii ; -- Begin function _Z9calculatePfPiS_S_fffii .globl _Z9calculatePfPiS_S_fffii .p2align 8 .type _Z9calculatePfPiS_S_fffii,@function _Z9calculatePfPiS_S_fffii: ; @_Z9calculatePfPiS_S_fffii ; %bb.0: s_load_b32 s2, s...
90f2b241668ac5112c3bb2f1f3c7e90e85b489da
#include <iostream> #include <math.h> #include<cuda_profiler_api.h> //function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { for (int i = 0; i < n; i++) y[i] = x[i] + y[i]; } int main(void) { //cudaProfilerStart(); int N = 1<<20; //1M elements //int N = 100; //100 elements ...
.file "tmpxft_0034e8fb_00000000-6_add2.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 : _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> #include <iostream> #include <math.h> #include<hip/hip_runtime_api.h> //function to add the elements of two arrays __global__ void add(int n, float *x, float *y) { for (int i = 0; i < n; i++) y[i] = x[i] + y[i]; } int main(void) { //cudaProfilerStart(); int N = 1<<20; //1M elements ...
.text .file "add2.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addiPfS_ # -- Begin function _Z18__device_stub__addiPfS_ .type _Z18__de...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addiPfS_ ; -- Begin function _Z3addiPfS_ .globl _Z3addiPfS_ .p2align 8 .type _Z3addiPfS_,@function _Z3addiPfS_: ; @_Z3addiPfS_ ; %bb.0: s_load_b32 s4, s[0:1], 0x0 s_waitcnt lgkmcnt(0) s_cmp_lt_i32 s4, 1 s_cb...
50b2926f15d891de8d042c6e8e6d33393f08c45d
// // Created by Peter Rigole on 2019-04-17. // #include "NeuronProperties.cuh" NeuronProperties::NeuronProperties() : long_time_lambda(0.5), medium_time_lambda(0.5) {} // Copy constructor NeuronProperties::NeuronProperties(const NeuronProperties &neuronProperties) : lo...
.file "tmpxft_0035c7de_00000000-6_NeuronProperties.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2021: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2021: .size _ZL2...
code for sm_89
// // Created by Peter Rigole on 2019-04-17. // #include <hip/hip_runtime.h> #include "NeuronProperties.cuh" NeuronProperties::NeuronProperties() : long_time_lambda(0.5), medium_time_lambda(0.5) {} // Copy constructor NeuronProperties::NeuronProperties(const NeuronProperties &...
.text .file "NeuronProperties.hip" .globl _ZN16NeuronPropertiesC2Ev # -- Begin function _ZN16NeuronPropertiesC2Ev .p2align 1, 0x90 .type _ZN16NeuronPropertiesC2Ev,@function _ZN16NeuronPropertiesC2Ev: # @_ZN16NeuronPropertiesC2Ev .cfi_startproc # %bb.0: movabsq $4539628425446424576, %rax #...
.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-...
046608f409fd7d58096d629f704a33daa06c56ba
/* * BackpropagationCUDA.cu * * Created on: Jan 30, 2012 * Author: wchan */ /** * This file is needed because nvcc doesn't support C++0x yet... we can merge it back in later when nvcc adds support for the C++11 standard */ #include <thrust/device_ptr.h> #include <thrust/transform.h> void mult(double* x,...
.file "tmpxft_00322347_00000000-6_BackpropagationCU.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_conditio...
code for sm_89 Function : _ZN3cub17CUB_200700_890_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tElN6thrust20THRUST_200700_890_NS8cuda_cub11__transform18binary_transform_fINS7_10device_ptrIdEESC_SC_NS9_14no_stencil_tagENS7_10multipliesIdEENS9_21always_true_predicateEEEEEvT0_T1_ .headerflags @"EF...
/* * BackpropagationCUDA.cu * * Created on: Jan 30, 2012 * Author: wchan */ /** * This file is needed because nvcc doesn't support C++0x yet... we can merge it back in later when nvcc adds support for the C++11 standard */ #include <hip/hip_runtime.h> #include <thrust/device_ptr.h> #include <thrust/tran...
.text .file "BackpropagationCU.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z4multPdS_m # -- Begin function _Z4multPdS_m .type _Z4multPdS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._ZN6thrust11hip_rocprim14__parallel_for6kernelILj256ENS0_11__transform18binary_transform_fINS_10device_ptrIdEES6_S6_NS3_14no_stencil_tagENS_10multipliesIdEENS3_21always_true_predicateEEElLj1EEEvT0_T1_SD_,"axG",@progbits,_ZN6thrust11hip_rocprim14__paral...
39e950b4bb0be0e2443af9fc18bc707f40b36324
#include "includes.h" __global__ void copy_sort_int( const float *orig, const unsigned int *sort_idx, const unsigned int nitems, float *sorted ) { for( int i = 0; i < nitems; ++ i ) { sorted[sort_idx[i]] = orig[i]; } }
.file "tmpxft_00329471_00000000-6_copy_sort_int.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 : _Z13copy_sort_intPKfPKjjPf .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 copy_sort_int( const float *orig, const unsigned int *sort_idx, const unsigned int nitems, float *sorted ) { for( int i = 0; i < nitems; ++ i ) { sorted[sort_idx[i]] = orig[i]; } }
.text .file "copy_sort_int.hip" .globl _Z28__device_stub__copy_sort_intPKfPKjjPf # -- Begin function _Z28__device_stub__copy_sort_intPKfPKjjPf .type _Z28__device_stub__copy_sort_intPKfPKjjPf,@function _Z28__device_stub__copy_sort_intPKfPKjjPf: # @_Z28__device_stub__copy_sort_intPKfPKjjPf .cfi_startproc # %bb.0: p...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13copy_sort_intPKfPKjjPf ; -- Begin function _Z13copy_sort_intPKfPKjjPf .globl _Z13copy_sort_intPKfPKjjPf .p2align 8 .type _Z13copy_sort_intPKfPKjjPf,@function _Z13copy_sort_intPKfPKjjPf: ; @_Z13copy_sort_intPKfPKjjPf ; %bb.0: s_load_b32 ...
c0d655c24106dd6fc0e19a721a9066e4932a8aea
#include "includes.h" __global__ void LeftRightBound2D(double *Hs, double *Ztopo, double *K2e, double *K2w, int BC2D, int M, int N) { int tid = threadIdx.x + blockIdx.x * blockDim.x; while (tid < M) { // no-flow BCs if (BC2D == 0) { Hs[tid*N] = Hs[tid*N+1]; Hs[(tid+1)*N-1] = Hs[(tid+1)*N-2]; } else { // Critical de...
.file "tmpxft_0021f3ec_00000000-6_LeftRightBound2D.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 : _Z16LeftRightBound2DPdS_S_S_iii .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 LeftRightBound2D(double *Hs, double *Ztopo, double *K2e, double *K2w, int BC2D, int M, int N) { int tid = threadIdx.x + blockIdx.x * blockDim.x; while (tid < M) { // no-flow BCs if (BC2D == 0) { Hs[tid*N] = Hs[tid*N+1]; Hs[(tid+1)*N-1] = Hs[(tid+1)*N-2...
.text .file "LeftRightBound2D.hip" .globl _Z31__device_stub__LeftRightBound2DPdS_S_S_iii # -- Begin function _Z31__device_stub__LeftRightBound2DPdS_S_S_iii .type _Z31__device_stub__LeftRightBound2DPdS_S_S_iii,@function _Z31__device_stub__LeftRightBound2DPdS_S_S_iii: # @_Z31__device_stub__LeftRightBound2DPdS_S_S_iii...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16LeftRightBound2DPdS_S_S_iii ; -- Begin function _Z16LeftRightBound2DPdS_S_S_iii .globl _Z16LeftRightBound2DPdS_S_S_iii .p2align 8 .type _Z16LeftRightBound2DPdS_S_S_iii,@function _Z16LeftRightBound2DPdS_S_S_iii: ; @_Z16LeftRightBound2DPdS_S_S_...
a6de7411124f44b3d0380a4f8acf72c3d1934f1f
#include "includes.h" __global__ void imgGray(unsigned char * d_image, unsigned char* d_imagegray, int width, int height){ int row = blockIdx.y*blockDim.y+threadIdx.y; int col = blockIdx.x*blockDim.x+threadIdx.x; if ((width > col) && (height > row)){ d_imagegray[row*width+col]=d_image[(row*width+col)*3+2]*0.299+d_ima...
.file "tmpxft_0029af6c_00000000-6_imgGray.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 : _Z7imgGrayPhS_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 imgGray(unsigned char * d_image, unsigned char* d_imagegray, int width, int height){ int row = blockIdx.y*blockDim.y+threadIdx.y; int col = blockIdx.x*blockDim.x+threadIdx.x; if ((width > col) && (height > row)){ d_imagegray[row*width+col]=d_image[(r...
.text .file "imgGray.hip" .globl _Z22__device_stub__imgGrayPhS_ii # -- Begin function _Z22__device_stub__imgGrayPhS_ii .type _Z22__device_stub__imgGrayPhS_ii,@function _Z22__device_stub__imgGrayPhS_ii: # @_Z22__device_stub__imgGrayPhS_ii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7imgGrayPhS_ii ; -- Begin function _Z7imgGrayPhS_ii .globl _Z7imgGrayPhS_ii .p2align 8 .type _Z7imgGrayPhS_ii,@function _Z7imgGrayPhS_ii: ; @_Z7imgGrayPhS_ii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b64 ...
11b48c6eea1250d0e06094cf892f121fa7df5cb5
#include <iostream> #include "../include/lglist.h" #include <thrust/device_vector.h> #define def_dvec(t) thrust::device_vector<t> #define to_ptr(x) thrust::raw_pointer_cast(&x[0]) using namespace std; const int MAX_LENGTH = 170; __device__ void printList(gpu_linearized_stl::list<float, MAX_LENGTH> &l){ if(l.empty...
.file "tmpxft_0035765f_00000000-6_list_test.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_NS6detail8for_each13static_kernelINS2_12policy_hub_t12policy_350_tEmN6thrust20THRUST_200700_890_NS8cuda_cub20__uninitialized_fill7functorINS7_10device_ptrIfEEfEEEEvT0_T1_ .headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM89 EF_CUDA_VIRTUAL_SM(E...
#include <hip/hip_runtime.h> #include <iostream> #include "../include/lglist.h" #include <thrust/device_vector.h> #define def_dvec(t) thrust::device_vector<t> #define to_ptr(x) thrust::raw_pointer_cast(&x[0]) using namespace std; const int MAX_LENGTH = 170; __device__ void printList(gpu_linearized_stl::list<float, M...
.text .file "list_test.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z19__device_stub__testPf # -- Begin function _Z19__device_stub__testPf .type _Z19_...
.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...
6e7f200b905ee11af6c078b81df211df60d988f9
#include <stdio.h> #include <stdlib.h> #define MAXPOINTS 1000000 #define MAXSTEPS 1000000 #define MINPOINTS 20 #define PI 3.14159265 const int kThreadsPerBlock = 256; int nsteps, // Number of time steps tpoints; // Total points along string float values[MAXPOINTS + 2]; // Values at time t void check_p...
.file "tmpxft_00306b41_00000000-6_cuda_wave.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2033: .size _ZL26__cuda...
code for sm_89 Function : _Z15init_and_updatePfii .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 MAXPOINTS 1000000 #define MAXSTEPS 1000000 #define MINPOINTS 20 #define PI 3.14159265 const int kThreadsPerBlock = 256; int nsteps, // Number of time steps tpoints; // Total points along string float values[MAXPOINTS + 2]; // ...
.text .file "cuda_wave.hip" .globl _Z11check_paramv # -- Begin function _Z11check_paramv .type _Z11check_paramv,@function _Z11check_paramv: # @_Z11check_paramv .cfi_startproc # %bb.0: pushq %r14 .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 subq $24, %rsp .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15init_and_updatePfii ; -- Begin function _Z15init_and_updatePfii .globl _Z15init_and_updatePfii .p2align 8 .type _Z15init_and_updatePfii,@function _Z15init_and_updatePfii: ; @_Z15init_and_updatePfii ; %bb.0: s_clause 0x1 s_load_b32 s...
d3d0320dbb924e8b012b1fb43b07572b1412f3a5
#include "includes.h" __global__ void bcnn_backward_upsample_cuda_kernel(size_t dst_sz, float *src, int w, int h, int c, int n, int size, float *dst) { size_t i = (blockIdx.x + blockIdx.y * gridDim.x) * blockDim.x + threadIdx.x; if (i >= dst_sz) { return; } int dst_idx = i; int dst_w = i % (w * size); i = i / (w * size...
.file "tmpxft_003403b5_00000000-6_bcnn_backward_upsample_cuda_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 .LF...
code for sm_89 Function : _Z34bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ .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 bcnn_backward_upsample_cuda_kernel(size_t dst_sz, float *src, int w, int h, int c, int n, int size, float *dst) { size_t i = (blockIdx.x + blockIdx.y * gridDim.x) * blockDim.x + threadIdx.x; if (i >= dst_sz) { return; } int dst_idx = i; int dst_w = i %...
.text .file "bcnn_backward_upsample_cuda_kernel.hip" .globl _Z49__device_stub__bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ # -- Begin function _Z49__device_stub__bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ .type _Z49__device_stub__bcnn_backward_upsample_cuda_kernelmPfiiiiiS_,@function _Z49__device_stub__bcnn_back...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z34bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ ; -- Begin function _Z34bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ .globl _Z34bcnn_backward_upsample_cuda_kernelmPfiiiiiS_ .p2align 8 .type _Z34bcnn_backward_upsample_cuda_kernelmPfiiiiiS_,@function _Z3...
e03a0e794cb6fe94bbd8f30ee0eec8c56c2ae3d4
/* * reduce an array of 1's by the sum */ #include <stdio.h> #include <stdlib.h> void nonCudaReduce(float* out, float *in, int size); void startClock(char*); void stopClock(char*); void printClock(char*); int main(int argc, char** argv) { if (argc < 2) { printf("Usage: %s #-of-floats\n",argv[0]); exit(1); }...
.file "tmpxft_00223b43_00000000-6_reduce-noncuda.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
/* * reduce an array of 1's by the sum */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> void nonCudaReduce(float* out, float *in, int size); void startClock(char*); void stopClock(char*); void printClock(char*); int main(int argc, char** argv) { if (argc < 2) { printf("Usage: %s #-of-flo...
.text .file "reduce-noncuda.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 $16, %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-...
76cdf8ff651aaf6cf0e1e5555c64975e5081c0f5
#include "includes.h" __global__ void repack_input_kernel(float *input, float *re_packed_input, int w, int h, int c) { int index = blockIdx.x*blockDim.x + threadIdx.x; const int items_per_channel = w * h; int c_pack = index % 32; int chan_index = index / 32; int chan = (chan_index * 32) % c; int i = (chan_index * 32)...
.file "tmpxft_00381348_00000000-6_repack_input_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 _...
code for sm_89 Function : _Z19repack_input_kernelPfS_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 */ ...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void repack_input_kernel(float *input, float *re_packed_input, int w, int h, int c) { int index = blockIdx.x*blockDim.x + threadIdx.x; const int items_per_channel = w * h; int c_pack = index % 32; int chan_index = index / 32; int chan = (chan_index * 32) ...
.text .file "repack_input_kernel.hip" .globl _Z34__device_stub__repack_input_kernelPfS_iii # -- Begin function _Z34__device_stub__repack_input_kernelPfS_iii .type _Z34__device_stub__repack_input_kernelPfS_iii,@function _Z34__device_stub__repack_input_kernelPfS_iii: # @_Z34__device_stub__repack_input_kernelPfS_iii ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z19repack_input_kernelPfS_iii ; -- Begin function _Z19repack_input_kernelPfS_iii .globl _Z19repack_input_kernelPfS_iii .p2align 8 .type _Z19repack_input_kernelPfS_iii,@function _Z19repack_input_kernelPfS_iii: ; @_Z19repack_input_kernelPfS_iii ;...
df95a54a441f6454271b0567bde9791b00ca242b
#include<stdio.h> void cpu() { printf("cpu\n"); } __global__ void gpu() { printf("gpu\n"); } int main() { cpu(); gpu<<<1,1>>>(); cudaDeviceSynchronize(); }
.file "tmpxft_0023390d_00000000-6_01_print.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__cudaU...
code for sm_89 Function : _Z3gpuv .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> void cpu() { printf("cpu\n"); } __global__ void gpu() { printf("gpu\n"); } int main() { cpu(); gpu<<<1,1>>>(); hipDeviceSynchronize(); }
.text .file "01_print.hip" .globl _Z3cpuv # -- Begin function _Z3cpuv .type _Z3cpuv,@function _Z3cpuv: # @_Z3cpuv .cfi_startproc # %bb.0: movl $.Lstr, %edi jmp puts@PLT # TAILCALL .Lfunc_end0: .size _Z3cpuv, .Lfunc_end0-_Z3cpuv .cfi_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3gpuv ; -- Begin function _Z3gpuv .globl _Z3gpuv .p2align 8 .type _Z3gpuv,@function _Z3gpuv: ; @_Z3gpuv ; %bb.0: s_load_b64 s[2:3], s[0:1], 0x50 v_mbcnt_lo_u32_b32 v2, -1, 0 v_mov_b32_e32 v0, 0 v_mov_...
f2411e3691e31925ac6ee0c03a2ae87480536abd
#include "includes.h" __global__ void reduceSmemDyn(int *g_idata, int *g_odata, unsigned int n) { extern __shared__ int smem[]; // set thread ID unsigned int tid = threadIdx.x; int *idata = g_idata + blockIdx.x * blockDim.x; // set to smem by each threads smem[tid] = idata[tid]; __syncthreads(); // in-place reductio...
.file "tmpxft_0026189b_00000000-6_reduceSmemDyn.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 : _Z13reduceSmemDynPiS_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 reduceSmemDyn(int *g_idata, int *g_odata, unsigned int n) { extern __shared__ int smem[]; // set thread ID unsigned int tid = threadIdx.x; int *idata = g_idata + blockIdx.x * blockDim.x; // set to smem by each threads smem[tid] = idata[tid]; __syncth...
.text .file "reduceSmemDyn.hip" .globl _Z28__device_stub__reduceSmemDynPiS_j # -- Begin function _Z28__device_stub__reduceSmemDynPiS_j .type _Z28__device_stub__reduceSmemDynPiS_j,@function _Z28__device_stub__reduceSmemDynPiS_j: # @_Z28__device_stub__reduceSmemDynPiS_j .cfi_startproc # %bb.0: pushq %r15 .cfi_def...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13reduceSmemDynPiS_j ; -- Begin function _Z13reduceSmemDynPiS_j .globl _Z13reduceSmemDynPiS_j .p2align 8 .type _Z13reduceSmemDynPiS_j,@function _Z13reduceSmemDynPiS_j: ; @_Z13reduceSmemDynPiS_j ; %bb.0: s_clause 0x1 s_load_b32 s5, s...
506e5c6e2b3a899bfc5133e4f4927e95b8ba5ae0
#include<stdio.h> #include<iostream> #include<fstream> #include<cuda.h> #include<time.h> #include<sys/time.h> #define IMAGE_LENGTH 2000 #define KERNEL_LENGTH 5 #define MAX_NUMBER 12 #define NumOfBlocks IMAGE_LENGTH/16 #define NumOfThreads 16 using namespace std; ofstream fs("convolucion.txt"); void print_Matrix(int*...
.file "tmpxft_0032e0be_00000000-6_gpu_parallel_convolution.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3781: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatB...
code for sm_89 Function : _Z10convKernelPiS_iiiiS_ .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<iostream> #include<fstream> #include<hip/hip_runtime.h> #include<time.h> #include<sys/time.h> #define IMAGE_LENGTH 2000 #define KERNEL_LENGTH 5 #define MAX_NUMBER 12 #define NumOfBlocks IMAGE_LENGTH/16 #define NumOfThreads 16 using namespace std; ofstream fs("convolucion.txt"); void print_...
.text .file "gpu_parallel_convolution.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z12print_MatrixPPiii # -- Begin function _Z12print_MatrixPPiii ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z15convolucionCUDAPPiS0_S0_i ; -- Begin function _Z15convolucionCUDAPPiS0_S0_i .globl _Z15convolucionCUDAPPiS0_S0_i .p2align 8 .type _Z15convolucionCUDAPPiS0_S0_i,@function _Z15convolucionCUDAPPiS0_S0_i: ; @_Z15convolucionCUDAPPiS0_S0_i ; %bb....
ca32c3581e87e84803e6b04266515d7143a6047f
#include "includes.h" __global__ void ReturnFloat( float *sum, float *out, const float *pIn ) { out[threadIdx.x] = atomicAdd( &out[threadIdx.x], pIn[threadIdx.x] ); }
.file "tmpxft_003598e7_00000000-6_ReturnFloat.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 : _Z11ReturnFloatPfS_PKf .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 ReturnFloat( float *sum, float *out, const float *pIn ) { out[threadIdx.x] = atomicAdd( &out[threadIdx.x], pIn[threadIdx.x] ); }
.text .file "ReturnFloat.hip" .globl _Z26__device_stub__ReturnFloatPfS_PKf # -- Begin function _Z26__device_stub__ReturnFloatPfS_PKf .type _Z26__device_stub__ReturnFloatPfS_PKf,@function _Z26__device_stub__ReturnFloatPfS_PKf: # @_Z26__device_stub__ReturnFloatPfS_PKf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_c...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11ReturnFloatPfS_PKf ; -- Begin function _Z11ReturnFloatPfS_PKf .globl _Z11ReturnFloatPfS_PKf .p2align 8 .type _Z11ReturnFloatPfS_PKf,@function _Z11ReturnFloatPfS_PKf: ; @_Z11ReturnFloatPfS_PKf ; %bb.0: s_load_b128 s[0:3], s[0:1], 0x...
12e2fe0423fab569d09e4f177f9bb5af37b1b2a6
// https://devblogs.nvidia.com/even-easier-introduction-cuda // https://devblogs.nvidia.com/unified-memory-cuda-beginners #include <iostream> #include <math.h> // cuda kernel __global__ void add(size_t num_elements, const float* x, float* result) { size_t index = blockIdx.x * blockDim.x + threadIdx.x; size_t str...
.file "tmpxft_00302965_00000000-6_add_arrays.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 : _Z3addmPKfPf .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 */ ...
// https://devblogs.nvidia.com/even-easier-introduction-cuda // https://devblogs.nvidia.com/unified-memory-cuda-beginners #include <hip/hip_runtime.h> #include <iostream> #include <math.h> // cuda kernel __global__ void add(size_t num_elements, const float* x, float* result) { size_t index = blockIdx.x * blockDim...
.text .file "add_arrays.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z18__device_stub__addmPKfPf # -- Begin function _Z18__device_stub__addmPKfPf .type _...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z3addmPKfPf ; -- Begin function _Z3addmPKfPf .globl _Z3addmPKfPf .p2align 8 .type _Z3addmPKfPf,@function _Z3addmPKfPf: ; @_Z3addmPKfPf ; %bb.0: s_clause 0x1 s_load_b32 s8, s[0:1], 0x24 s_load_b128 s[4:7], s[0:1],...
360fa31f5607eaa80c6e839bc8e013a1b50ab044
__global__ void reduction_sum(float *A,int num_elements){ int i = blockIdx.x*blockDim.x + threadIdx.x; if(i<num_elements){ for(int stride = 1;stride<num_elements;stride*=2){ __syncthreads(); if(i%(2*stride) == 0){ float temp = 0; if(i+st...
.file "tmpxft_00337ab1_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 : _Z13reduction_sumPfi .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 reduction_sum(float *A,int num_elements){ int i = blockIdx.x*blockDim.x + threadIdx.x; if(i<num_elements){ for(int stride = 1;stride<num_elements;stride*=2){ __syncthreads(); if(i%(2*stride) == 0){ float tem...
.text .file "kernel.hip" .globl _Z28__device_stub__reduction_sumPfi # -- Begin function _Z28__device_stub__reduction_sumPfi .type _Z28__device_stub__reduction_sumPfi,@function _Z28__device_stub__reduction_sumPfi: # @_Z28__device_stub__reduction_sumPfi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13reduction_sumPfi ; -- Begin function _Z13reduction_sumPfi .globl _Z13reduction_sumPfi .p2align 8 .type _Z13reduction_sumPfi,@function _Z13reduction_sumPfi: ; @_Z13reduction_sumPfi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
8ead3897891d190285c080b5601a61044ec83ece
#include <cuda.h> #include <iostream> using namespace std; /** * C = A + B (one element per thread) */ __global__ void addMatricesElt(float* C, const float* A, const float* B, int dim) { int col = blockIdx.x * blockDim.x + threadIdx.x; int row = blockIdx.y * blockDim.y + threadIdx.y; if(col < dim && row < dim...
.file "tmpxft_0032abaf_00000000-6_main.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 : _Z14addMatricesColPfPKfS1_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 <iostream> using namespace std; /** * C = A + B (one element per thread) */ __global__ void addMatricesElt(float* C, const float* A, const float* B, int dim) { int col = blockIdx.x * blockDim.x + threadIdx.x; int row = blockIdx.y * blockDim.y + threadIdx.y; if(col < dim &...
.text .file "main.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z29__device_stub__addMatricesEltPfPKfS1_i # -- Begin function _Z29__device_stub__addMatricesEl...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14addMatricesEltPfPKfS1_i ; -- Begin function _Z14addMatricesEltPfPKfS1_i .globl _Z14addMatricesEltPfPKfS1_i .p2align 8 .type _Z14addMatricesEltPfPKfS1_i,@function _Z14addMatricesEltPfPKfS1_i: ; @_Z14addMatricesEltPfPKfS1_i ; %bb.0: s_clau...
831d04a2c667cc561b51bd4ed017791a548412b1
extern "C" __global__ void shift(float2* arr, int resx, int resy, int resz, int size) { int i = blockDim.x * blockIdx.x + threadIdx.x; int idx = resx / 2; int idy = resy / 2; int idz = resz / 2; float2 tmp; if (i / resy / resz < idx) { if (i / resz % resy < idy) { i...
.file "tmpxft_0028b36b_00000000-6_shift.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 : shift .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> extern "C" __global__ void shift(float2* arr, int resx, int resy, int resz, int size) { int i = blockDim.x * blockIdx.x + threadIdx.x; int idx = resx / 2; int idy = resy / 2; int idz = resz / 2; float2 tmp; if (i / resy / resz < idx) { if (i / resz...
.text .file "shift.hip" .globl __device_stub__shift # -- Begin function __device_stub__shift .type __device_stub__shift,@function __device_stub__shift: # @__device_stub__shift .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq %r13 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected shift ; -- Begin function shift .globl shift .p2align 8 .type shift,@function shift: ; @shift ; %bb.0: s_clause 0x1 s_load_b128 s[4:7], s[0:1], 0x8 s_load_b32 s2, s[0:1], 0x24 s_waitcnt lgkmcnt(0) ...
4a7d7c9abc3baf2d2bf408541c29ec7fde55a87c
#include "includes.h" __global__ void breadth_first_search_csr_gpu(unsigned int* cum_row_indexes, unsigned int* column_indexes, int* matrix_data, unsigned int* in_infections, unsigned int* out_infections, unsigned int rows) { unsigned int row = blockDim.x * blockIdx.x + threadIdx.x; if (row < rows) { if (in_infections...
.file "tmpxft_00261bf2_00000000-6_breadth_first_search_csr_gpu.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 : _Z28breadth_first_search_csr_gpuPjS_PiS_S_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 breadth_first_search_csr_gpu(unsigned int* cum_row_indexes, unsigned int* column_indexes, int* matrix_data, unsigned int* in_infections, unsigned int* out_infections, unsigned int rows) { unsigned int row = blockDim.x * blockIdx.x + threadIdx.x; if (r...
.text .file "breadth_first_search_csr_gpu.hip" .globl _Z43__device_stub__breadth_first_search_csr_gpuPjS_PiS_S_j # -- Begin function _Z43__device_stub__breadth_first_search_csr_gpuPjS_PiS_S_j .type _Z43__device_stub__breadth_first_search_csr_gpuPjS_PiS_S_j,@function _Z43__device_stub__breadth_first_search_csr_gpuPj...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z28breadth_first_search_csr_gpuPjS_PiS_S_j ; -- Begin function _Z28breadth_first_search_csr_gpuPjS_PiS_S_j .globl _Z28breadth_first_search_csr_gpuPjS_PiS_S_j .p2align 8 .type _Z28breadth_first_search_csr_gpuPjS_PiS_S_j,@function _Z28breadth_first_searc...
0333b3d0b61eba13edc4260f581168638adb1d7a
#include "includes.h" __global__ void ForwardLinear(float *A, float *W, float *b, int nRowsW, int nColsW, int nColsA, float *Z) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float ZValue = 0; if (row < nRowsW && col < nColsA) { for (int i = 0; i < nColsW; i++) { Z...
.file "tmpxft_0021d742_00000000-6_ForwardLinear.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 : _Z13ForwardLinearPfS_S_iiiS_ .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 ForwardLinear(float *A, float *W, float *b, int nRowsW, int nColsW, int nColsA, float *Z) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = blockIdx.x * blockDim.x + threadIdx.x; float ZValue = 0; if (row < nRowsW && col < nColsA) { for (i...
.text .file "ForwardLinear.hip" .globl _Z28__device_stub__ForwardLinearPfS_S_iiiS_ # -- Begin function _Z28__device_stub__ForwardLinearPfS_S_iiiS_ .type _Z28__device_stub__ForwardLinearPfS_S_iiiS_,@function _Z28__device_stub__ForwardLinearPfS_S_iiiS_: # @_Z28__device_stub__ForwardLinearPfS_S_iiiS_ .cfi_startproc #...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z13ForwardLinearPfS_S_iiiS_ ; -- Begin function _Z13ForwardLinearPfS_S_iiiS_ .globl _Z13ForwardLinearPfS_S_iiiS_ .p2align 8 .type _Z13ForwardLinearPfS_S_iiiS_,@function _Z13ForwardLinearPfS_S_iiiS_: ; @_Z13ForwardLinearPfS_S_iiiS_ ; %bb.0: s...
1434bd02eea6d1a65dfe123fa04ce919ab8d207c
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <math.h> #include <time.h> // Maximum value of the matrix element #define MAX 100 #define MAX_ITER 100 #define TOL 0.000001 // Generate a random float number with the maximum value of max float rand_float(int max) { return ...
.file "tmpxft_00323531_00000000-6_gs_cuda.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2049: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2049: .size _ZL26__cudaUn...
code for sm_89 Function : _Z6solverPPfS0_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 <stdbool.h> #include <unistd.h> #include <math.h> #include <time.h> // Maximum value of the matrix element #define MAX 100 #define MAX_ITER 100 #define TOL 0.000001 // Generate a random float number with the maximum value of max float ...
.text .file "gs_cuda.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function _Z10rand_floati .LCPI0_0: .long 0x30000000 # float 4.65661287E-10 .text .globl _Z10rand_floati .type _Z10rand_floati,@function _Z10rand_floati: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6solverPPfS0_i ; -- Begin function _Z6solverPPfS0_i .globl _Z6solverPPfS0_i .p2align 8 .type _Z6solverPPfS0_i,@function _Z6solverPPfS0_i: ; @_Z6solverPPfS0_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_load_b32 ...
006795a95e153aa059fee85c6b0027ff4ead93c8
//nvcc -ptx EM5.cu -ccbin "F:Visual Studio\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64" __device__ void EM1( double *r, double *z, double * ar0, double * br0, double * az0, double * bz0, const int...
.file "tmpxft_003300e8_00000000-6_EM5.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__cudaUnregi...
code for sm_89 Function : _Z24processMandelbrotElementPdS_S_S_S_S_iiidd .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> //nvcc -ptx EM5.cu -ccbin "F:Visual Studio\VC\Tools\MSVC\14.12.25827\bin\Hostx64\x64" __device__ void EM1( double *r, double *z, double * ar0, double * br0, double * az0, double * bz0, ...
.text .file "EM5.hip" .globl _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_iiidd # -- Begin function _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_iiidd .type _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_iiidd,@function _Z39__device_stub__processMandelbrotElementPdS_S_S_S_S_iiidd: # @_Z3...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z24processMandelbrotElementPdS_S_S_S_S_iiidd ; -- Begin function _Z24processMandelbrotElementPdS_S_S_S_S_iiidd .globl _Z24processMandelbrotElementPdS_S_S_S_S_iiidd .p2align 8 .type _Z24processMandelbrotElementPdS_S_S_S_S_iiidd,@function _Z24processMand...
fad908bf9b73cf15a78ac7458c67f807240a1e65
/************************************************************************ C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example : multiple-cuda-streams.cu Objective : Objective is to demonstrate multiple streams for addition of two...
.file "tmpxft_002ec0b6_00000000-6_multiple-cuda-streams.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...
code for sm_89 Function : _Z6kernelPiS_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 */ ...
/************************************************************************ C-DAC Tech Workshop : hyPACK-2013 October 15-18, 2013 Example : multiple-cuda-streams.cu Objective : Objective is to demonstrate multiple streams for addition of two...
.text .file "multiple-cuda-streams.hip" .globl _Z14CUDA_SAFE_CALL10hipError_t # -- Begin function _Z14CUDA_SAFE_CALL10hipError_t .type _Z14CUDA_SAFE_CALL10hipError_t,@function _Z14CUDA_SAFE_CALL10hipError_t: # @_Z14CUDA_SAFE_CALL10hipError_t .cfi_startproc # %bb.0: testl %edi, %edi jne .LBB0_2 # %bb.1: ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPiS_S_ ; -- Begin function _Z6kernelPiS_S_ .globl _Z6kernelPiS_S_ .p2align 8 .type _Z6kernelPiS_S_,@function _Z6kernelPiS_S_: ; @_Z6kernelPiS_S_ ; %bb.0: s_load_b32 s2, s[0:1], 0x24 s_waitcnt lgkmcnt(0) s_and_b...
1f275c0573b9ea84c7a1dea28a56c22a5a099c97
#include <stdio.h> int main() { int nDevices; cudaGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { cudaDeviceProp prop; cudaGetDeviceProperties(&prop, i); printf("Device Number: %d\n", i); printf(" Device name: %s\n", prop.name); printf(" Memory Clock Rate (KHz): %d\n", ...
.file "tmpxft_003ac132_00000000-6_deviceQuery.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__cu...
code for sm_89
#include <hip/hip_runtime.h> #include <stdio.h> int main() { int nDevices; hipGetDeviceCount(&nDevices); for (int i = 0; i < nDevices; i++) { hipDeviceProp_t prop; hipGetDeviceProperties(&prop, i); printf("Device Number: %d\n", i); printf(" Device name: %s\n", prop.name); printf(" Memory...
.text .file "deviceQuery.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: ...
.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-...
cdcd93f605d6d9719a1e6366e335b8228497b162
#include <stdio.h> #include <math.h> #include <cuda_runtime_api.h> #include <time.h> #include <errno.h> /****************************************************************************** * This program takes an initial estimate of m and c and finds the associated * rms error. It is then as a base to generate and eval...
.file "tmpxft_0037a0f6_00000000-6_culinear.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__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 <hip/hip_runtime_api.h> #include <time.h> #include <errno.h> /****************************************************************************** * This program takes an initial estimate of m and c and finds the associated * rms error. It is th...
.text .file "culinear.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 ;...
24c4b94632bc8e44d20f341f1479870eaa896c1a
#include <iostream> #include <math.h> #include <vector> #include <string> #include <algorithm> #include <random> #include <chrono> #include <stdio.h> #define NB_THREADS 1024 #define NB_NUMBERS 200 #define NB_EXPERIMENTS 100 void print_vector(int* array, int k) { for(size_t i=0; i < k; i++) { printf("%d ", arra...
.file "tmpxft_0022fbf0_00000000-6_gpu_sort.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB5057: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_...
code for sm_89 Function : _Z11bubble_sortPii .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> #include <math.h> #include <vector> #include <string> #include <algorithm> #include <random> #include <chrono> #include <stdio.h> #define NB_THREADS 1024 #define NB_NUMBERS 200 #define NB_EXPERIMENTS 100 void print_vector(int* array, int k) { for(size_t i=0; i < k;...
.text .file "gpu_sort.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z12print_vectorPii # -- Begin function _Z12print_vectorPii .type _Z12print_ve...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11bubble_sortPii ; -- Begin function _Z11bubble_sortPii .globl _Z11bubble_sortPii .p2align 8 .type _Z11bubble_sortPii,@function _Z11bubble_sortPii: ; @_Z11bubble_sortPii ; %bb.0: ; %.preheader36....
39dbf53052f760fe4cad20ccfd50f252e72df911
#include <stdio.h> #include <stdlib.h> // For the CUDA runtime routines (prefixed with "cuda_") #include <cuda_runtime.h> #include <sys/time.h> #include <cooperative_groups.h> //#include <helper_cuda.h> #define N_INPUTS 32 #define N_ARITH 74 __global__ void ac(float *A, const int *B, const int *C, const int *op_sel,...
.file "tmpxft_003bac59_00000000-6_ac_asia.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB6562: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE6562: .size _ZL26__cudaUn...
code for sm_89 Function : _Z2acPfPKiS1_S1_iiii .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 <stdlib.h> // For the CUDA runtime routines (prefixed with "cuda_") #include <hip/hip_runtime.h> #include <sys/time.h> #include <hip/hip_cooperative_groups.h> //#include <helper_cuda.h> #define N_INPUTS 32 #define N_ARITH 74 __global__ void ac(float *A, const int *B, const int *C, const i...
.text .file "ac_asia.hip" .globl _Z17__device_stub__acPfPKiS1_S1_iiii # -- Begin function _Z17__device_stub__acPfPKiS1_S1_iiii .type _Z17__device_stub__acPfPKiS1_S1_iiii,@function _Z17__device_stub__acPfPKiS1_S1_iiii: # @_Z17__device_stub__acPfPKiS1_S1_iiii .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offse...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z2acPfPKiS1_S1_iiii ; -- Begin function _Z2acPfPKiS1_S1_iiii .globl _Z2acPfPKiS1_S1_iiii .p2align 8 .type _Z2acPfPKiS1_S1_iiii,@function _Z2acPfPKiS1_S1_iiii: ; @_Z2acPfPKiS1_S1_iiii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
690269afe8d1347b634100c0b7374125edc01ef7
// includes, system #include <stdio.h> #include <assert.h> #include <stdlib.h> __global__ void notDivergent(int n) //The threads should perform the same work as //in divergent(), but the threads within a warp //should not diverge { } __global__ void divergent(int n) //The threads should perform the same work as ...
.file "tmpxft_00309234_00000000-6_divergent.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 : _Z9divergenti .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 */...
// includes, system #include <hip/hip_runtime.h> #include <stdio.h> #include <assert.h> #include <stdlib.h> __global__ void notDivergent(int n) //The threads should perform the same work as //in divergent(), but the threads within a warp //should not diverge { } __global__ void divergent(int n) //The threads sho...
.text .file "divergent.hip" .globl _Z27__device_stub__notDivergenti # -- Begin function _Z27__device_stub__notDivergenti .type _Z27__device_stub__notDivergenti,@function _Z27__device_stub__notDivergenti: # @_Z27__device_stub__notDivergenti .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12notDivergenti ; -- Begin function _Z12notDivergenti .globl _Z12notDivergenti .p2align 8 .type _Z12notDivergenti,@function _Z12notDivergenti: ; @_Z12notDivergenti ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align...
b82230425661ac88a4d547db40d81491ca7daf74
/** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relat...
.file "tmpxft_002272a7_00000000-6_main.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__cudaUnreg...
code for sm_89
/** * Copyright 1993-2012 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and relat...
.text .file "main.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %rax .cfi_def_cfa_offset 16 movabsq $4294967297, %rdi # imm = 0x100000001 movl $1, %esi movq %rdi, %rdx movl ...
.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-...
7d44c300d512faca4eda769d44991154ac4f13d3
// This example introduces CUDA's heterogeneous model of memory // by demonstrating the difference between the "host" and "device" // memory spaces. // #include stdlib.h for malloc/free #include <stdlib.h> // #include stdio.h for printf #include <stdio.h> // nvcc automatically #includes headers needed for cudaMalloc...
.file "tmpxft_00258509_00000000-6_cuda_memory_model.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
// This example introduces CUDA's heterogeneous model of memory // by demonstrating the difference between the "host" and "device" // memory spaces. // #include stdlib.h for malloc/free #include <hip/hip_runtime.h> #include <stdlib.h> // #include stdio.h for printf #include <stdio.h> // nvcc automatically #includes...
.text .file "cuda_memory_model.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r14 .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 pushq %rax .cfi_def_cfa_offset 32 .cfi_offset %...
.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-...
ae31b17b35ebbecf09746a6ae69ea7f2213b7da6
//合并 访存 #include<stdio.h> #include<math.h> #include<time.h> #include <stdlib.h> int Max=16384; int width=32; typedef struct { double A1; double A2; double A3; double A4; }stru; __global__ void multi(stru *A,stru *b,double *C,const int Max){ int idx = blockIdx.x * blockDim.x + threadIdx.x; int...
.file "tmpxft_0021afc6_00000000-6_ex7_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 _ZL26__cudaUnre...
code for sm_89 Function : _Z5multiP4struS0_Pdi .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<math.h> #include<time.h> #include <stdlib.h> int Max=16384; int width=32; typedef struct { double A1; double A2; double A3; double A4; }stru; __global__ void multi(stru *A,stru *b,double *C,const int Max){ int idx = blockIdx.x * blo...
.text .file "ex7_2.hip" .globl _Z20__device_stub__multiP4struS0_Pdi # -- Begin function _Z20__device_stub__multiP4struS0_Pdi .type _Z20__device_stub__multiP4struS0_Pdi,@function _Z20__device_stub__multiP4struS0_Pdi: # @_Z20__device_stub__multiP4struS0_Pdi .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z5multiP4struS0_Pdi ; -- Begin function _Z5multiP4struS0_Pdi .globl _Z5multiP4struS0_Pdi .p2align 8 .type _Z5multiP4struS0_Pdi,@function _Z5multiP4struS0_Pdi: ; @_Z5multiP4struS0_Pdi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0...
6b4d54843c1af8737054ad293fa4f7de1efd7663
#include<math.h> #include<time.h> #include<stdexcept> #include<iostream> #include<cstdlib> //for abs(x) #include<stdio.h> using namespace std; __global__ void kernel_multiplication( int* A, int* B, int* C,int N,int M); int main() { int NUMBER_OF_ELEMENTS; int VECTOR_SIZE; cout<<"Enter the vector size:"; cin>...
.file "tmpxft_0021250a_00000000-6_vectmul.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_e...
code for sm_89 Function : _Z21kernel_multiplicationPiS_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<math.h> #include<time.h> #include<stdexcept> #include<iostream> #include<cstdlib> //for abs(x) #include<stdio.h> using namespace std; __global__ void kernel_multiplication( int* A, int* B, int* C,int N,int M); int main() { int NUMBER_OF_ELEMENTS; int VECTOR_SIZE; cout<<"...
.text .file "vectmul.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 functio...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z21kernel_multiplicationPiS_S_ii ; -- Begin function _Z21kernel_multiplicationPiS_S_ii .globl _Z21kernel_multiplicationPiS_S_ii .p2align 8 .type _Z21kernel_multiplicationPiS_S_ii,@function _Z21kernel_multiplicationPiS_S_ii: ; @_Z21kernel_multiplic...
9ed2464ca8738f3e883a360007251b266b251695
#include <cuda.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #define STOP 0 #define START 1 /* Play with the following two values */ #define NB 1000000L //Size of array (long integer) #define MANY 200L //Number of transfers /* (over-)Simple chronometer function */ void chrono (int kind, float *time) ...
.file "tmpxft_002e23ad_00000000-6_bandwidth.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__cuda...
code for sm_89
#include <hip/hip_runtime.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #define STOP 0 #define START 1 /* Play with the following two values */ #define NB 1000000L //Size of array (long integer) #define MANY 200L //Number of transfers /* (over-)Simple chronometer function */ void chrono (int kind, fl...
.text .file "bandwidth.hip" .section .rodata.cst4,"aM",@progbits,4 .p2align 2, 0x0 # -- Begin function _Z6chronoiPf .LCPI0_0: .long 0x49742400 # float 1.0E+6 .text .globl _Z6chronoiPf .type _Z6chronoiPf,@function _Z6chronoiPf: # @_Z6chronoi...
.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-...
84fd2b210860c8f13a32cfe109e83f83c306f45c
#include "includes.h" __global__ void _segmentedScanBackKer(float *maxdist, int *maxdistidx, int *label, float *blockmaxdist, int *blocklabel, int *blockmaxdistidx, int numelements) { // 声明共享内存。用来存放中间结果小数组中的元素,也就是输入的原数组的每块最 // 后一个元素。共包含三个信息。 __shared__ float shdcurmaxdist[1]; __shared__ int shdcurlabel[1]; __shared__ i...
.file "tmpxft_002ba4a4_00000000-6__segmentedScanBackKer.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 : _Z21_segmentedScanBackKerPfPiS0_S_S0_S0_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 "includes.h" __global__ void _segmentedScanBackKer(float *maxdist, int *maxdistidx, int *label, float *blockmaxdist, int *blocklabel, int *blockmaxdistidx, int numelements) { // 声明共享内存。用来存放中间结果小数组中的元素,也就是输入的原数组的每块最 // 后一个元素。共包含三个信息。 __shared__ float shdcurmaxdist[1]; __shared__ in...
.text .file "_segmentedScanBackKer.hip" .globl _Z36__device_stub___segmentedScanBackKerPfPiS0_S_S0_S0_i # -- Begin function _Z36__device_stub___segmentedScanBackKerPfPiS0_S_S0_S0_i .type _Z36__device_stub___segmentedScanBackKerPfPiS0_S_S0_S0_i,@function _Z36__device_stub___segmentedScanBackKerPfPiS0_S_S0_S0_i: # @_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z21_segmentedScanBackKerPfPiS0_S_S0_S0_i ; -- Begin function _Z21_segmentedScanBackKerPfPiS0_S_S0_S0_i .globl _Z21_segmentedScanBackKerPfPiS0_S_S0_S0_i .p2align 8 .type _Z21_segmentedScanBackKerPfPiS0_S_S0_S0_i,@function _Z21_segmentedScanBackKerPfPiS0...
4dfb43029b6be9f7b403acc449a610b2b6de331a
#include "includes.h" __global__ void TemporalConvolutionTBC_bp_bias( float* matrix, float* target, int rows, int stride, float scale) { int i = blockIdx.x * 32 + threadIdx.x; float t = 0; for (int j = blockIdx.y; j < rows; j += gridDim.y) t += matrix[j * stride + i]; atomicAdd(&target[i], t * scale); }
.file "tmpxft_0020abab_00000000-6_TemporalConvolutionTBC_bp_bias.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 .LFE201...
code for sm_89 Function : _Z30TemporalConvolutionTBC_bp_biasPfS_iif .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 TemporalConvolutionTBC_bp_bias( float* matrix, float* target, int rows, int stride, float scale) { int i = blockIdx.x * 32 + threadIdx.x; float t = 0; for (int j = blockIdx.y; j < rows; j += gridDim.y) t += matrix[j * stride + i]; atomicAdd(&target[i],...
.text .file "TemporalConvolutionTBC_bp_bias.hip" .globl _Z45__device_stub__TemporalConvolutionTBC_bp_biasPfS_iif # -- Begin function _Z45__device_stub__TemporalConvolutionTBC_bp_biasPfS_iif .type _Z45__device_stub__TemporalConvolutionTBC_bp_biasPfS_iif,@function _Z45__device_stub__TemporalConvolutionTBC_bp_biasPfS_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z30TemporalConvolutionTBC_bp_biasPfS_iif ; -- Begin function _Z30TemporalConvolutionTBC_bp_biasPfS_iif .globl _Z30TemporalConvolutionTBC_bp_biasPfS_iif .p2align 8 .type _Z30TemporalConvolutionTBC_bp_biasPfS_iif,@function _Z30TemporalConvolutionTBC_bp_b...
1a644bb89074a3b8e2be01a1539b27e681333df6
#include <complex> #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <cuComplex.h> // Kernel Definitions /****************************************************************************** * Function: CUDAisInMandelbrotSet * * Authors: Elliott Rarden & Katie Macmillan * * Description...
.file "tmpxft_003b5ae6_00000000-6_mandelcuda.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB3965: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cf...
code for sm_89 Function : _Z9juliaCalcddPdS_Pii .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 <complex> #include <iostream> #include <cstdio> #include <cstdlib> #include <cmath> #include <hip/hip_complex.h> // Kernel Definitions /****************************************************************************** * Function: CUDAisInMandelbrotSet * * Authors: Elliott Rarden...
.text .file "mandelcuda.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z25__device_stub__mandelCalcPdS_Pii # -- Begin function _Z25__device_stub__mandelCalcPdS...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10mandelCalcPdS_Pii ; -- Begin function _Z10mandelCalcPdS_Pii .globl _Z10mandelCalcPdS_Pii .p2align 8 .type _Z10mandelCalcPdS_Pii,@function _Z10mandelCalcPdS_Pii: ; @_Z10mandelCalcPdS_Pii ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1...
7db6460526b158a442709946ec4a47fcc7c823ef
#include <cuda.h> #include <stdio.h> #include <stdlib.h> #define BLOCK_SIZE 32 #define GROUP_OF_PIXELS 1 __global__ void mandelKernel(float upperX, float upperY, float lowerX, float lowerY, int* img, int resX, int resY, int maxIterations) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = (blockIdx.x...
.file "tmpxft_0026d17d_00000000-6_kernel3.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__cudaUn...
code for sm_89 Function : _Z12mandelKernelffffPiiii .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 BLOCK_SIZE 32 #define GROUP_OF_PIXELS 1 __global__ void mandelKernel(float upperX, float upperY, float lowerX, float lowerY, int* img, int resX, int resY, int maxIterations) { int row = blockIdx.y * blockDim.y + threadIdx.y; int col = ...
.text .file "kernel3.hip" .globl _Z27__device_stub__mandelKernelffffPiiii # -- Begin function _Z27__device_stub__mandelKernelffffPiiii .type _Z27__device_stub__mandelKernelffffPiiii,@function _Z27__device_stub__mandelKernelffffPiiii: # @_Z27__device_stub__mandelKernelffffPiiii .cfi_startproc # %bb.0: pushq %r15 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12mandelKernelffffPiiii ; -- Begin function _Z12mandelKernelffffPiiii .globl _Z12mandelKernelffffPiiii .p2align 8 .type _Z12mandelKernelffffPiiii,@function _Z12mandelKernelffffPiiii: ; @_Z12mandelKernelffffPiiii ; %bb.0: s_clause 0x1 s_...
1e3d8f99cab14b9fe2f662f7273a6c93df4f6014
#include "plane.cuh" #include <stdio.h> __host__ __device__ Plane3::Plane3() { a = Vec3(); b = Vec3(); c = Vec3(); } __host__ __device__ Plane3::Plane3(Vec3 a, Vec3 b, Vec3 c) { this->a = a; this->b = b; this->c = c; } __host__ __device__ float determinant(Vec3 a, Vec3 b, Vec3 c) { retur...
.file "tmpxft_002931f0_00000000-6_plane.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2049: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2049: .size _ZL26__cudaUnre...
code for sm_89
#ifndef HEADER_PLANE #define HEADER_PLANE #include "vector.cuh" class Plane3 { public: __host__ __device__ Plane3(); __host__ __device__ Plane3(Vec3 a, Vec3 b, Vec3 c); Vec3 a; Vec3 b; Vec3 c; __host__ __device__ float outside(Vec3 point); __host__ __device__ Vec3 intersection_point(Vec3...
.text .file "plane.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 e5bf7e55c91490b07c49d8960fa79...
.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-...
182fa52d525337cb65df532c1dd59c87fe42d6a7
#include "cuda_runtime.h" #include <stdio.h> #include <time.h> //#define SIZE 1000 using namespace std; __global__ void Convolution1(int *a,int *filter,int *result,int size_a,int size_filter,int size_result) { int i=blockIdx.x; int j=blockIdx.y; if(i<size_result||j<size_result) { ...
.file "tmpxft_002f8670_00000000-6_convolution.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 : _Z12Convolution3PiS_S_iii .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 SIZE 1000 using namespace std; __global__ void Convolution1(int *a,int *filter,int *result,int size_a,int size_filter,int size_result) { int i=blockIdx.x; int j=blockIdx.y; if(i<size_result||j<size_result) { ...
.text .file "convolution.hip" .globl _Z27__device_stub__Convolution1PiS_S_iii # -- Begin function _Z27__device_stub__Convolution1PiS_S_iii .type _Z27__device_stub__Convolution1PiS_S_iii,@function _Z27__device_stub__Convolution1PiS_S_iii: # @_Z27__device_stub__Convolution1PiS_S_iii .cfi_startproc # %bb.0: pushq %r...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12Convolution1PiS_S_iii ; -- Begin function _Z12Convolution1PiS_S_iii .globl _Z12Convolution1PiS_S_iii .p2align 8 .type _Z12Convolution1PiS_S_iii,@function _Z12Convolution1PiS_S_iii: ; @_Z12Convolution1PiS_S_iii ; %bb.0: s_load_b128 s[4:...
34c64c1f8492a068a519f36ca4f453f8e4b3e6b3
#include <stdio.h> template <unsigned int blockSize> __device__ void warpReduce(volatile int* sdata, int tid) { if (blockSize >= 64) sdata[tid] += sdata[tid + 32]; if (blockSize >= 32) sdata[tid] += sdata[tid + 16]; if (blockSize >= 16) sdata[tid] += sdata[tid + 8]; if (blockSize >= 8) sdata[ti...
.file "tmpxft_003b9084_00000000-6_00_reduction_final.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2033: .size _Z...
code for sm_89 Function : _Z7reduce6ILj512EEvPiS0_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> template <unsigned int blockSize> __device__ void warpReduce(volatile int* sdata, int tid) { if (blockSize >= 64) sdata[tid] += sdata[tid + 32]; if (blockSize >= 32) sdata[tid] += sdata[tid + 16]; if (blockSize >= 16) sdata[tid] += sdata[tid + 8]; ...
.text .file "00_reduction_final.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 %r13 .cfi_def_cfa_offset 32 pushq %r12 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .section .text._Z7reduce6ILj512EEvPiS0_i,"axG",@progbits,_Z7reduce6ILj512EEvPiS0_i,comdat .protected _Z7reduce6ILj512EEvPiS0_i ; -- Begin function _Z7reduce6ILj512EEvPiS0_i .globl _Z7reduce6ILj512EEvPiS0_i .p2align 8 .type _Z7reduce6ILj512EEvPiS0_i,@function _Z7r...
5070bf64680f35b20d5a11e231c2afdc056e4049
/**** File: findRedsDriver.cu By: Ilya Nemtsov Compile: nvcc findRedsDriver.cu -o frgpu Run: ./frgpu ****/ #include <stdio.h> #include <math.h> #include <stdlib.h> #include <cuda.h> #define NUMPARTICLES 32768 #define NEIG...
.file "tmpxft_002e2112_00000000-6_findRedsDriver.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2033: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2033: .size _ZL26_...
code for sm_89 Function : _Z11findRedsGPUPfPi .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 */ ...
/**** File: findRedsDriver.cu By: Ilya Nemtsov Compile: nvcc findRedsDriver.cu -o frgpu Run: ./frgpu ****/ #include <stdio.h> #include <math.h> #include <stdlib.h> #include <hip/hip_runtime.h> #define NUMPARTICLES 32768 #...
.text .file "findRedsDriver.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 %rbx .cfi_def_cfa_offset 32 subq $48, %rsp ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z11findRedsGPUPfPi ; -- Begin function _Z11findRedsGPUPfPi .globl _Z11findRedsGPUPfPi .p2align 8 .type _Z11findRedsGPUPfPi,@function _Z11findRedsGPUPfPi: ; @_Z11findRedsGPUPfPi ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x1c ...
f41ce54f5311d5508ba51d5331484beadbbd66d1
#include <cuda.h> #include <stdio.h> __global__ void K1() { unsigned num = 0; unsigned id = blockIdx.x * blockDim.x + threadIdx.x; for (unsigned ii = 0; ii < id; ++ii) num += ii; printf("K1: %d\n", threadIdx.x); } __global__ void K2() { unsigned num = 0; unsigned id = blockIdx.x * blockDim.x + threadIdx.x; fo...
.file "tmpxft_0025a79a_00000000-6_stream3.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__cudaUn...
code for sm_89 Function : _Z2K3v .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> __global__ void K1() { unsigned num = 0; unsigned id = blockIdx.x * blockDim.x + threadIdx.x; for (unsigned ii = 0; ii < id; ++ii) num += ii; printf("K1: %d\n", threadIdx.x); } __global__ void K2() { unsigned num = 0; unsigned id = blockIdx.x * blockDim.x + threa...
.text .file "stream3.hip" .globl _Z17__device_stub__K1v # -- Begin function _Z17__device_stub__K1v .type _Z17__device_stub__K1v,@function _Z17__device_stub__K1v: # @_Z17__device_stub__K1v .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_offset 24 pushq...
.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...
2e8f172ce638c54d8a8ba2a4aa39e501b763e3cf
#include <stdio.h> #include <cuda.h> #include <cuda_runtime.h> //#include <cutil_inline.h> extern "C" void runCudaPart(float a[], float b[], float c[], int n); __global__ void myKernel(float *a, float *b, float *c, int n) { int idx = blockIdx.x*blockDim.x + threadIdx.x; //return; if (idx < n) { ...
.file "tmpxft_0038025e_00000000-6_mycuda.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 : _Z8myKernelPfS_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> //#include <cutil_inline.h> extern "C" void runCudaPart(float a[], float b[], float c[], int n); __global__ void myKernel(float *a, float *b, float *c, int n) { int idx = blockIdx.x*blockDim.x + threadIdx.x; //return; if (idx < n) { c[idx]...
.text .file "mycuda.hip" .globl _Z23__device_stub__myKernelPfS_S_i # -- Begin function _Z23__device_stub__myKernelPfS_S_i .type _Z23__device_stub__myKernelPfS_S_i,@function _Z23__device_stub__myKernelPfS_S_i: # @_Z23__device_stub__myKernelPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z8myKernelPfS_S_i ; -- Begin function _Z8myKernelPfS_S_i .globl _Z8myKernelPfS_S_i .p2align 8 .type _Z8myKernelPfS_S_i,@function _Z8myKernelPfS_S_i: ; @_Z8myKernelPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_l...
6b8c2948445d4fa3d725d5b6a302beaea0723911
#include "includes.h" float * g_outputs_d, *g_sweepers_d_2; __global__ void update_positions(float max_speed, float * outputs_d, float * sweepers_d) { int my_index = blockIdx.x * blockDim.x + threadIdx.x; sweepers_d[my_index] += (2 * outputs_d[my_index] * max_speed) - max_speed; }
.file "tmpxft_00225ae4_00000000-6_update_positions.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 : _Z16update_positionsfPfS_ .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" float * g_outputs_d, *g_sweepers_d_2; __global__ void update_positions(float max_speed, float * outputs_d, float * sweepers_d) { int my_index = blockIdx.x * blockDim.x + threadIdx.x; sweepers_d[my_index] += (2 * outputs_d[my_index] * max_speed) - max_speed; }
.text .file "update_positions.hip" .globl _Z31__device_stub__update_positionsfPfS_ # -- Begin function _Z31__device_stub__update_positionsfPfS_ .type _Z31__device_stub__update_positionsfPfS_,@function _Z31__device_stub__update_positionsfPfS_: # @_Z31__device_stub__update_positionsfPfS_ .cfi_startproc # %bb.0: pus...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z16update_positionsfPfS_ ; -- Begin function _Z16update_positionsfPfS_ .globl _Z16update_positionsfPfS_ .p2align 8 .type _Z16update_positionsfPfS_,@function _Z16update_positionsfPfS_: ; @_Z16update_positionsfPfS_ ; %bb.0: s_clause 0x2 s_...
440272d827d075d394c78e1389caed615fa57809
//============================================================================================= // Name : thread3dStl.cu // Author : Jose Refojo // Version : // Creation date : 26-02-2014 // Copyright : Copyright belongs to Trinity Centre for High Performance Computing // Description : This prog...
.file "tmpxft_0020f00a_00000000-6_thread3dStl.cudafe1.cpp" .text #APP .globl _ZSt21ios_base_library_initv #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB4021: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .c...
code for sm_89 Function : _Z23scanTheadInformationGPUPfiii .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 */ ...
//============================================================================================= // Name : thread3dStl.cu // Author : Jose Refojo // Version : // Creation date : 26-02-2014 // Copyright : Copyright belongs to Trinity Centre for High Performance Computing // Description : This prog...
.text .file "thread3dStl.hip" # Start of file scope inline assembly .globl _ZSt21ios_base_library_initv # End of file scope inline assembly .globl _Z38__device_stub__scanTheadInformationGPUPfiii # -- Begin function _Z38__device_stub__s...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23scanTheadInformationGPUPfiii ; -- Begin function _Z23scanTheadInformationGPUPfiii .globl _Z23scanTheadInformationGPUPfiii .p2align 8 .type _Z23scanTheadInformationGPUPfiii,@function _Z23scanTheadInformationGPUPfiii: ; @_Z23scanTheadInformation...
597afaaae836421064900d9b1eafb2f8a1e6142d
#include <stdio.h> #include <cuda.h> int main() { // get the range of stream priorities for this device int priority_high, priority_low; cudaDeviceGetStreamPriorityRange(&priority_low, &priority_high); // create streams with highest and lowest available priorities cudaStream_t st_high, st_low; cudaStreamCreateWithPrio...
.file "tmpxft_002d678e_00000000-6_streampriority.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
#include <stdio.h> #include <hip/hip_runtime.h> int main() { // get the range of stream priorities for this device int priority_high, priority_low; hipDeviceGetStreamPriorityRange(&priority_low, &priority_high); // create streams with highest and lowest available priorities hipStream_t st_high, st_low; hipStreamCreate...
.text .file "streampriority.hip" .globl main # -- Begin function main .type main,@function main: # @main .cfi_startproc # %bb.0: pushq %r14 .cfi_def_cfa_offset 16 pushq %rbx .cfi_def_cfa_offset 24 subq $24, %rsp .cfi_def_cfa_offset 48 .cfi_offset ...
.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-...
5f19d36c143a71858f79a0b127c74431a684b9f2
extern __device__ __constant__ int constNumber[4];
.file "tmpxft_00296bb2_00000000-6_due.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
#include <hip/hip_runtime.h> extern __device__ __constant__ int constNumber[4];
.text .file "due.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 e5bf7e55c91490b07c49d8960fa7983...
.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-...
a02492d98d249dad0c8d7734a47fe319a7200011
#define TILE_DIM 128 //template<typename T> //__device__ void sumColumns(const T* matrix, T* result, // const int rows, const int cols) { // // __shared__ T tile[TILE_DIM][TILE_DIM]; // // int by = blockIdx.y; // int ty = threadIdx.y; // int row = by * blockDim.y + ty; // T sum = 0; // /...
.file "tmpxft_002f2472_00000000-6_SumColumns.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> #define TILE_DIM 128 //template<typename T> //__device__ void sumColumns(const T* matrix, T* result, // const int rows, const int cols) { // // __shared__ T tile[TILE_DIM][TILE_DIM]; // // int by = blockIdx.y; // int ty = threadIdx.y; // int row = by * blockD...
.text .file "SumColumns.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 e5bf7e55c91490b07c49d896...
.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-...
dbd87ab2dc6b76da428e7b254dc2acea590942fa
/* This is a automatically generated test. Do not modify */ #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,int var_2,float var_3,int var_4,int var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,float var_12,float var_13,float var_14...
.file "tmpxft_0036f351_00000000-6_test.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 Function : _Z7computefiifiiffffffffffffffPfffffffffff .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 is a automatically generated test. Do not modify */ #include <hip/hip_runtime.h> #include <stdio.h> #include <stdlib.h> #include <math.h> __global__ void compute(float comp, int var_1,int var_2,float var_3,int var_4,int var_5,float var_6,float var_7,float var_8,float var_9,float var_10,float var_11,float va...
.text .file "test.hip" .globl _Z22__device_stub__computefiifiiffffffffffffffPfffffffffff # -- Begin function _Z22__device_stub__computefiifiiffffffffffffffPfffffffffff .type _Z22__device_stub__computefiifiiffffffffffffffPfffffffffff,@function _Z22__device_stub__computefiifiiffffffffffffffPfffffffffff: # @_Z22__devi...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z7computefiifiiffffffffffffffPfffffffffff ; -- Begin function _Z7computefiifiiffffffffffffffPfffffffffff .globl _Z7computefiifiiffffffffffffffPfffffffffff .p2align 8 .type _Z7computefiifiiffffffffffffffPfffffffffff,@function _Z7computefiifiifffffffffff...
39a94f8d8d280dea1896b3687db10c8d232a4a8b
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <assert.h> #ifndef THREADS_PER_BLOCK #define THREADS_PER_BLOCK 1024 #endif #define CUDA_ERROR_CHECK #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CudaCheckError() __cudaCheckError( __FILE__, __LINE__ ) inline voi...
.file "tmpxft_0029e988_00000000-6_bs.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__cudaUnregis...
code for sm_89 Function : _Z2bsPfS_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 <sys/time.h> #include <assert.h> #ifndef THREADS_PER_BLOCK #define THREADS_PER_BLOCK 1024 #endif #define CUDA_ERROR_CHECK #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CudaCheckError() __cudaCheckError( __...
.text .file "bs.hip" .globl _Z17__device_stub__bsPfS_S_i # -- Begin function _Z17__device_stub__bsPfS_S_i .type _Z17__device_stub__bsPfS_S_i,@function _Z17__device_stub__bsPfS_S_i: # @_Z17__device_stub__bsPfS_S_i .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 .cfi_def_cfa_off...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z2bsPfS_S_i ; -- Begin function _Z2bsPfS_S_i .globl _Z2bsPfS_S_i .p2align 8 .type _Z2bsPfS_S_i,@function _Z2bsPfS_S_i: ; @_Z2bsPfS_S_i ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x2c s_load_b32 s3, s[0:1], 0x18...
23cafe705fe6437bb207352a6adccafeea03436d
#include "includes.h" __global__ void copy_kernel_frombuf(char *dest, char *src, int rx_s, int rx_e, int ry_s, int ry_e, int rz_s, int rz_e, int x_step, int y_step, int z_step, int size_x, int size_y, int size_z, int buf_strides_x, int buf_strides_y, int buf_strides_z, int type_size, int dim, int OPS_soa) { int idx_z ...
.file "tmpxft_003b2fbe_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" __global__ void copy_kernel_frombuf(char *dest, char *src, int rx_s, int rx_e, int ry_s, int ry_e, int rz_s, int rz_e, int x_step, int y_step, int z_step, int size_x, int size_y, int size_z, int buf_strides_x, int buf_strides_y, int buf_strides_z, int type_size, int d...
.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...
424e4854900a93f62a3fca5dee4db534a1cf9feb
#include<stdio.h> __global__ void kernel (float *out) { // shared memory // the size is determined by the host application extern __shared__ float sdata[]; // access thread id const unsigned int tid = threadIdx.x; // access number of threads in this block const unsigned int num_threads ...
.file "tmpxft_0027d08e_00000000-6_hello_world_shared_0.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 : _Z6kernelPf .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 kernel (float *out) { // shared memory // the size is determined by the host application extern __shared__ float sdata[]; // access thread id const unsigned int tid = threadIdx.x; // access number of threads in this block c...
.text .file "hello_world_shared_0.hip" .globl _Z21__device_stub__kernelPf # -- Begin function _Z21__device_stub__kernelPf .type _Z21__device_stub__kernelPf,@function _Z21__device_stub__kernelPf: # @_Z21__device_stub__kernelPf .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq %r14 ....
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z6kernelPf ; -- Begin function _Z6kernelPf .globl _Z6kernelPf .p2align 8 .type _Z6kernelPf,@function _Z6kernelPf: ; @_Z6kernelPf ; %bb.0: s_load_b32 s2, s[0:1], 0x14 v_dual_mov_b32 v1, 0 :: v_dual_lshlrev_b32 v0...
fd222730493c8ba01c802e0ff060d63f0b031ab5
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <zlib.h> int hNumberOfReads = 0; // holds number of reads that are processed int hReadsWritten = 0; // number of reads written to output file char input_filename[400]="/home/linux/cuda-workspace/Prep...
.file "tmpxft_00312a07_00000000-6_PreprocessReads.cudafe1.cpp" .text #APP #NO_APP .type _ZL26__cudaUnregisterBinaryUtilv, @function _ZL26__cudaUnregisterBinaryUtilv: .LFB2056: .cfi_startproc endbr64 movq _ZL20__cudaFatCubinHandle(%rip), %rdi jmp __cudaUnregisterFatBinary@PLT .cfi_endproc .LFE2056: .size _ZL26...
code for sm_89 Function : _Z10TrimmQualsPcPsis .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 <string.h> #include <time.h> #include <zlib.h> int hNumberOfReads = 0; // holds number of reads that are processed int hReadsWritten = 0; // number of reads written to output file char input_filename[400]="/...
.text .file "PreprocessReads.hip" .globl _Z18SetAdaptorSequencePKcssss # -- Begin function _Z18SetAdaptorSequencePKcssss .type _Z18SetAdaptorSequencePKcssss,@function _Z18SetAdaptorSequencePKcssss: # @_Z18SetAdaptorSequencePKcssss .cfi_startproc # %bb.0: pushq %rbp .cfi_def_cfa_offset 16 pushq %r15 ...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z9Find_gRNAPcPsis ; -- Begin function _Z9Find_gRNAPcPsis .globl _Z9Find_gRNAPcPsis .p2align 8 .type _Z9Find_gRNAPcPsis,@function _Z9Find_gRNAPcPsis: ; @_Z9Find_gRNAPcPsis ; %bb.0: s_clause 0x1 s_load_b32 s2, s[0:1], 0x24 s_l...
4081ec35cfacddc66caaeeb5527fb9861349b31b
/* ============================================================================ Name : review_chp4_2.cu Author : freshield Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ============================================================================ */ #include...
.file "tmpxft_002cb6ad_00000000-6_review_chp4_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 _ZL26__...
code for sm_89 Function : _Z5set_bPi .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 */ ...
/* ============================================================================ Name : review_chp4_2.cu Author : freshield Version : Copyright : Your copyright notice Description : CUDA compute reciprocals ============================================================================ */ #includ...
.text .file "review_chp4_2.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_...
.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_cmpk_gt_i32 s15, 0x63 s_cbranch_scc1 .LBB0_2 ; %bb.1: s_clause 0x1...
d6e3a7231752c2b8b8d7dc1b6707952138dcaf54
#include "includes.h" __global__ void empty_kernel() { }
.file "tmpxft_002a948a_00000000-6_empty_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__c...
code for sm_89 Function : _Z12empty_kernelv .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 */ /* 0x000fe40000000f0...
#include <hip/hip_runtime.h> #include "includes.h" __global__ void empty_kernel() { }
.text .file "empty_kernel.hip" .globl _Z27__device_stub__empty_kernelv # -- Begin function _Z27__device_stub__empty_kernelv .type _Z27__device_stub__empty_kernelv,@function _Z27__device_stub__empty_kernelv: # @_Z27__device_stub__empty_kernelv .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cfa_offset 16 pushq...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z12empty_kernelv ; -- Begin function _Z12empty_kernelv .globl _Z12empty_kernelv .p2align 8 .type _Z12empty_kernelv,@function _Z12empty_kernelv: ; @_Z12empty_kernelv ; %bb.0: s_endpgm .section .rodata,"a",@progbits .p2align...
fc1cc6d97f8297d015c0762d9ec2f0ad75a8701b
#include<stdio.h> #include<stdlib.h> #include "cuda.h" __global__ void addVectors(int N, double *a, double *b, double *c) { int thread = threadIdx.x; int block = blockIdx.x; int blockSize = blockDim.x; int id = block*blockSize + thread; __shared__ double s_a[32]; __shared__ double s_b[32]; __shared__ ...
.file "tmpxft_00254c78_00000000-6_cudaAddVectors.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 : _Z10addVectorsiPdS_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<stdio.h> #include<stdlib.h> #include "hip/hip_runtime.h" __global__ void addVectors(int N, double *a, double *b, double *c) { int thread = threadIdx.x; int block = blockIdx.x; int blockSize = blockDim.x; int id = block*blockSize + thread; __shared__ double s_a[32]; __shared__ double s_b[32]; ...
.text .file "cudaAddVectors.hip" .globl _Z25__device_stub__addVectorsiPdS_S_ # -- Begin function _Z25__device_stub__addVectorsiPdS_S_ .type _Z25__device_stub__addVectorsiPdS_S_,@function _Z25__device_stub__addVectorsiPdS_S_: # @_Z25__device_stub__addVectorsiPdS_S_ .cfi_startproc # %bb.0: pushq %r15 .cfi_def_cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z10addVectorsiPdS_S_ ; -- Begin function _Z10addVectorsiPdS_S_ .globl _Z10addVectorsiPdS_S_ .p2align 8 .type _Z10addVectorsiPdS_S_,@function _Z10addVectorsiPdS_S_: ; @_Z10addVectorsiPdS_S_ ; %bb.0: s_clause 0x3 s_load_b32 s6, s[0:1...
17b00ef5c3b321ab0f6f6de662ceffaf4940197c
#define N 16 #include<stdio.h> #include<stdlib.h> __global__ void add(int *a, int *b, int *c){ c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x]; printf("%d blockIdx=%d\n", c[blockIdx.x], blockIdx.x); } void random_ints(int *array, int size){ int i; for(i = 0; i < size; i++) array[i] = rand() % 10; } int main(...
.file "tmpxft_00268d02_00000000-6_test.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 Function : _Z3addPiS_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 */ ...
#define N 16 #include <hip/hip_runtime.h> #include<stdio.h> #include<stdlib.h> __global__ void add(int *a, int *b, int *c){ c[blockIdx.x] = a[blockIdx.x] + b[blockIdx.x]; printf("%d blockIdx=%d\n", c[blockIdx.x], blockIdx.x); } void random_ints(int *array, int size){ int i; for(i = 0; i < size; i++) array[...
.text .file "test.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_o...
.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 0x1 s_load_b128 s[8:11], s[0:1], 0x0 s_load_b64 s[6:7], s[0...
84ec63d439443a4d4b30a9dc8fa52af95bba9ab8
#include "includes.h" __global__ void cudaAcc_GPS_kernel_mod3( int NumDataPoints, float2* FreqData, float* PowerSpectrum) { const int sidx = (blockIdx.x * blockDim.x + threadIdx.x); float ax,ay; if ( sidx < NumDataPoints ) { ax = FreqData[sidx].x; ay = FreqData[sidx].y; PowerSpectrum[sidx] = __fadd_rn( __fmul_rn(ax,...
.file "tmpxft_0022afbe_00000000-6_cudaAcc_GPS_kernel_mod3.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 : _Z23cudaAcc_GPS_kernel_mod3iP6float2Pf .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 cudaAcc_GPS_kernel_mod3( int NumDataPoints, float2* FreqData, float* PowerSpectrum) { const int sidx = (blockIdx.x * blockDim.x + threadIdx.x); float ax,ay; if ( sidx < NumDataPoints ) { ax = FreqData[sidx].x; ay = FreqData[sidx].y; PowerSpectrum[sid...
.text .file "cudaAcc_GPS_kernel_mod3.hip" .globl _Z38__device_stub__cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf # -- Begin function _Z38__device_stub__cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf .type _Z38__device_stub__cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf,@function _Z38__device_stub_...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z23cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf ; -- Begin function _Z23cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf .globl _Z23cudaAcc_GPS_kernel_mod3iP15HIP_vector_typeIfLj2EEPf .p2align 8 .type _Z23cudaAcc_GPS_kernel_mod3iP15HIP_vector...
bdbe2e703f696cf879f2175389d1bf071fc0fece
#include "includes.h" __device__ unsigned char value( float n1, float n2, int hue ) { if (hue > 360) hue -= 360; else if (hue < 0) hue += 360; if (hue < 60) return (unsigned char)(255 * (n1 + (n2-n1)*hue/60)); if (hue < 180) return (unsigned char)(255 * n2); if (hue < 240) return (unsigned char)(255 * (n1 + (n2...
.file "tmpxft_00232b40_00000000-6_float_to_color.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_...
code for sm_89 Function : _Z14float_to_colorPhPKf .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" __device__ unsigned char value( float n1, float n2, int hue ) { if (hue > 360) hue -= 360; else if (hue < 0) hue += 360; if (hue < 60) return (unsigned char)(255 * (n1 + (n2-n1)*hue/60)); if (hue < 180) return (unsigned char)(255 * n2); if (hue < 240) return (...
.text .file "float_to_color.hip" .globl _Z29__device_stub__float_to_colorPhPKf # -- Begin function _Z29__device_stub__float_to_colorPhPKf .type _Z29__device_stub__float_to_colorPhPKf,@function _Z29__device_stub__float_to_colorPhPKf: # @_Z29__device_stub__float_to_colorPhPKf .cfi_startproc # %bb.0: pushq %r15 .cf...
.text .amdgcn_target "amdgcn-amd-amdhsa--gfx1100" .protected _Z14float_to_colorPhPKf ; -- Begin function _Z14float_to_colorPhPKf .globl _Z14float_to_colorPhPKf .p2align 8 .type _Z14float_to_colorPhPKf,@function _Z14float_to_colorPhPKf: ; @_Z14float_to_colorPhPKf ; %bb.0: s_clause 0x1 s_load_b32 s...
b4e58af339b57a0a796880ee51b0e496caf67e49
#include "3d-test.cuh" #include<iostream> #include<stdio.h> __host__ __device__ void scalingFunction(int array[]) { for(int i=0; i<8; i++) { array[i] = array[i] * 2.0; } } __host__ __device__ void distributeFunction(pencilComputation& p1,int x,int y){ for(int z=0; z<8; z++) { ...
.file "tmpxft_0023c499_00000000-6_3d-test.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_e...
code for sm_89 Function : _Z25pencilComputationFunctionR17pencilComputation .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> // Size of our matrix: #define matrix_size 2 #define initial_value 1 class pencilComputation { public: int inputMatrix[matrix_size][matrix_size][matrix_size] = { { {initial_value} } }; int outputMatrix[matrix_size][matrix_size][matrix_size] = { { { 0 } } };...
.text .file "3d-test.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_cuid_: .byte ...
.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-...