system stringclasses 7
values | input stringlengths 10 94.5k | output stringlengths 14 55.5k |
|---|---|---|
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include <cuda_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
cudaMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
cudaMemcpy(&result, gpu_result, sizeof(int), cudaM... | code for sm_80
Function : _Z15fdividef_globalffPf
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ MOV R2, c[0x0][0x164] ; /* 0x0000590000027a02 */
/* 0x000fe20000000f00 ... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <cuda_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
cudaMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
cudaMemcpy(&result, gpu_result, sizeof(int), cudaM... | .file "tmpxft_0008965d_00000000-6_div.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.cfi... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <cuda_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
cudaMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
cudaMemcpy(&result, gpu_result, sizeof(int), cudaM... | #include <hip/hip_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
hipMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
hipMemcpy(&result, gpu_result, sizeof(int), hipM... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
hipMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
hipMemcpy(&result, gpu_result, sizeof(int), hipM... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z14fdiv_rn_globalffPf
.globl _Z14fdiv_rn_globalffPf
.p2align 8
.type _Z14fdiv_rn_globalffPf,@function
_Z14fdiv_rn_globalffPf:
s_load_b128 s[0:3], s[0:1], 0x0
s_waitcnt lgkmcnt(0)
v_div_scale_f32 v0, null, s1, s1, s0
s_delay_alu instid0(VAL... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
__global__ void fdiv_rn_global(float x, float y, float *r)
{
*r = __fdiv_rn(x, y);
}
float cuda_fdiv_rn(float x, float y)
{
float *gpu_result, result;
hipMalloc((void **)&gpu_result, sizeof(float));
fdiv_rn_global<<<1, 1>>>(x, y, gpu_result);
hipMemcpy(&result, gpu_result, sizeof(int), hipM... | .text
.file "div.hip"
.globl _Z29__device_stub__fdiv_rn_globalffPf # -- Begin function _Z29__device_stub__fdiv_rn_globalffPf
.p2align 4, 0x90
.type _Z29__device_stub__fdiv_rn_globalffPf,@function
_Z29__device_stub__fdiv_rn_globalffPf: # @_Z29__device_stub__fdiv_rn_globalffPf
.cfi_startproc
# %bb.0:
subq $88, %rsp
.cfi... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z15fdividef_globalffPf
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ MOV R2, c[0x0][0x164] ; /* 0x0000590000027a02 */
/* 0x000fe20000000f00 ... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z14fdiv_rn_globalffPf
.globl _Z14fdiv_rn_globalffPf
.p2align 8
.type _Z14fdiv_rn_globalffPf,@function
_Z14fdiv_rn_globalffPf:
s_load_b128 s[0:3], s[0:1], 0x0
s_waitcnt lgkmcnt(0)
v_div_scale_f32 v0, null, s1, s1, s0
s_delay_alu instid0(VAL... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_0008965d_00000000-6_div.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2031:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.cfi... | .text
.file "div.hip"
.globl _Z29__device_stub__fdiv_rn_globalffPf # -- Begin function _Z29__device_stub__fdiv_rn_globalffPf
.p2align 4, 0x90
.type _Z29__device_stub__fdiv_rn_globalffPf,@function
_Z29__device_stub__fdiv_rn_globalffPf: # @_Z29__device_stub__fdiv_rn_globalffPf
.cfi_startproc
# %bb.0:
subq $88, %rsp
.cfi... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include <stdio.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] ... | code for sm_80
Function : _Z7szorzasi
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R2, SR_TID.X ; /* 0x0000000000027919 */
/* 0x000e220000002100 */
/*0020*/ HFMA2... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <stdio.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] ... | .file "tmpxft_00080910_00000000-6_1_1.cudafe1.cpp"
.text
#APP
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "%s\n"
.LC1:
.string "A[%d] : %d\n"
#NO_APP
.text
.type _ZL13print_resultsPiPKc, @function
_ZL13print_resultsPiPKc:
.LFB2057:
.cfi_startproc
pushq %r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
pushq %... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <stdio.h>
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] ... | #include <stdio.h>
#include "hip/hip_runtime.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] *= mennyivel;
}
static void print_r... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <stdio.h>
#include "hip/hip_runtime.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] *= mennyivel;
}
static void print_r... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z23szorzas_single_threadedv
.globl _Z23szorzas_single_threadedv
.p2align 8
.type _Z23szorzas_single_threadedv,@function
_Z23szorzas_single_threadedv:
v_mov_b32_e32 v0, 0
s_mov_b64 s[0:1], 0
.p2align 6
.LBB0_1:
s_ge... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <stdio.h>
#include "hip/hip_runtime.h"
static int const A[] = { 1, 2, 3, 4, 5 };
static __device__ int dev_A[5];
__global__ void szorzas_single_threaded() {
for(int i = 0; i < 5; i++) {
dev_A[i] *= 2;
}
}
__global__ void szorzas(int mennyivel) {
int i = threadIdx.x;
dev_A[i] *= mennyivel;
}
static void print_r... | .text
.file "1_1.hip"
.globl _Z38__device_stub__szorzas_single_threadedv # -- Begin function _Z38__device_stub__szorzas_single_threadedv
.p2align 4, 0x90
.type _Z38__device_stub__szorzas_single_threadedv,@function
_Z38__device_stub__szorzas_single_threadedv: # @_Z38__device_stub__szorzas_single_threadedv
.cfi_startproc... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z7szorzasi
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R2, SR_TID.X ; /* 0x0000000000027919 */
/* 0x000e220000002100 */
/*0020*/ HFMA2... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z23szorzas_single_threadedv
.globl _Z23szorzas_single_threadedv
.p2align 8
.type _Z23szorzas_single_threadedv,@function
_Z23szorzas_single_threadedv:
v_mov_b32_e32 v0, 0
s_mov_b64 s[0:1], 0
.p2align 6
.LBB0_1:
s_ge... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_00080910_00000000-6_1_1.cudafe1.cpp"
.text
#APP
.section .rodata.str1.1,"aMS",@progbits,1
.LC0:
.string "%s\n"
.LC1:
.string "A[%d] : %d\n"
#NO_APP
.text
.type _ZL13print_resultsPiPKc, @function
_ZL13print_resultsPiPKc:
.LFB2057:
.cfi_startproc
pushq %r12
.cfi_def_cfa_offset 16
.cfi_offset 12, -16
pushq %... | .text
.file "1_1.hip"
.globl _Z38__device_stub__szorzas_single_threadedv # -- Begin function _Z38__device_stub__szorzas_single_threadedv
.p2align 4, 0x90
.type _Z38__device_stub__szorzas_single_threadedv,@function
_Z38__device_stub__szorzas_single_threadedv: # @_Z38__device_stub__szorzas_single_threadedv
.cfi_startproc... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | /*
1.Input Data
2.What Need to be calculated
3.Design your threads and thread blocks
4. Implementation on CPU and GPU
5. Built in check points
6. Output data
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<cuda.h>
#include<cuda_runtime.h>
#include<time.h>
#define NumberOfELements 10... | .file "tmpxft_00190f2d_00000000-6_cudacourse.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2062:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %r... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | /*
1.Input Data
2.What Need to be calculated
3.Design your threads and thread blocks
4. Implementation on CPU and GPU
5. Built in check points
6. Output data
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<cuda.h>
#include<cuda_runtime.h>
#include<time.h>
#define NumberOfELements 10... | /*
1.Input Data
2.What Need to be calculated
3.Design your threads and thread blocks
4. Implementation on CPU and GPU
5. Built in check points
6. Output data
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<hip/hip_runtime.h>
#include<time.h>
#define NumberOfELements 100000
#define ... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | /*
1.Input Data
2.What Need to be calculated
3.Design your threads and thread blocks
4. Implementation on CPU and GPU
5. Built in check points
6. Output data
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<hip/hip_runtime.h>
#include<time.h>
#define NumberOfELements 100000
#define ... | .text
.file "cudacourse.hip"
.globl _Z11line_lengthP8_IO_FILE # -- Begin function _Z11line_lengthP8_IO_FILE
.p2align 4, 0x90
.type _Z11line_lengthP8_IO_FILE,@function
_Z11line_lengthP8_IO_FILE: # @_Z11line_lengthP8_IO_FILE
.cfi_startproc
# %bb.0:
pushq %r15
.cfi_def_cfa_offset 16
pushq %r14
.cfi_def_... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_00190f2d_00000000-6_cudacourse.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2062:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %r... | .text
.file "cudacourse.hip"
.globl _Z11line_lengthP8_IO_FILE # -- Begin function _Z11line_lengthP8_IO_FILE
.p2align 4, 0x90
.type _Z11line_lengthP8_IO_FILE,@function
_Z11line_lengthP8_IO_FILE: # @_Z11line_lengthP8_IO_FILE
.cfi_startproc
# %bb.0:
pushq %r15
.cfi_def_cfa_offset 16
pushq %r14
.cfi_def_... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void mandel_numpoints(int *d_np){... | code for sm_80
Function : _Z16mandel_numpointsPi
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */
/* 0x000fe400078e00ff */
/*0010*/ S2R R0, SR_CTAID.X ; /* 0x0000000000007919 */
/* 0x000e... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void mandel_numpoints(int *d_np){... | .file "tmpxft_001a88bb_00000000-6_mandel.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void mandel_numpoints(int *d_np){... | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z16mandel_numpointsPi
.globl _Z16mandel_numpointsPi
.p2align 8
.type _Z16mandel_numpointsPi,@function
_Z16mandel_numpointsPi:
s_load_b32 s2, s[0:1], 0x14
v_and_b32_e32 v1, 0x3ff, v0
v_bfe_u32 v0, v0, 10, 10
s_load_b64 s[0:1], s[0:1], 0x0
s... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | /*
* File: mandel.c
* Author: davidr
*
* Created on May 22, 2013, 9:42 AM
*/
#include <hip/hip_runtime.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
# define NPOINTS 2000
# define MAXITER 2000
struct complex{
double real;
double imag;
};
void checkCUDAError(const char*);
__global__ void... | .text
.file "mandel.hip"
.globl _Z31__device_stub__mandel_numpointsPi # -- Begin function _Z31__device_stub__mandel_numpointsPi
.p2align 4, 0x90
.type _Z31__device_stub__mandel_numpointsPi,@function
_Z31__device_stub__mandel_numpointsPi: # @_Z31__device_stub__mandel_numpointsPi
.cfi_startproc
# %bb.0:
subq $72, %rsp
.... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z16mandel_numpointsPi
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */
/* 0x000fe400078e00ff */
/*0010*/ S2R R0, SR_CTAID.X ; /* 0x0000000000007919 */
/* 0x000e... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z16mandel_numpointsPi
.globl _Z16mandel_numpointsPi
.p2align 8
.type _Z16mandel_numpointsPi,@function
_Z16mandel_numpointsPi:
s_load_b32 s2, s[0:1], 0x14
v_and_b32_e32 v1, 0x3ff, v0
v_bfe_u32 v0, v0, 10, 10
s_load_b64 s[0:1], s[0:1], 0x0
s... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_001a88bb_00000000-6_mandel.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.... | .text
.file "mandel.hip"
.globl _Z31__device_stub__mandel_numpointsPi # -- Begin function _Z31__device_stub__mandel_numpointsPi
.p2align 4, 0x90
.type _Z31__device_stub__mandel_numpointsPi,@function
_Z31__device_stub__mandel_numpointsPi: # @_Z31__device_stub__mandel_numpointsPi
.cfi_startproc
# %bb.0:
subq $72, %rsp
.... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include <vector>
#include <cmath>
#include <algorithm>
#include <cuda.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
case 0:
featur... | code for sm_80
Function : _Z12_cal_featurePfS_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */
/* 0x000fe400078e00ff */
/*0010*/ S2R R0, SR_TID.X ; /* 0x0000000000007919 */
/* 0x000e2200... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <vector>
#include <cmath>
#include <algorithm>
#include <cuda.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
case 0:
featur... | .file "tmpxft_000af925_00000000-6_cuda_cal_feature.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3153:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq ... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <vector>
#include <cmath>
#include <algorithm>
#include <cuda.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
case 0:
featur... | #include <vector>
#include <cmath>
#include <algorithm>
#include <hip/hip_runtime.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
cas... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <vector>
#include <cmath>
#include <algorithm>
#include <hip/hip_runtime.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
cas... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z12_cal_featurePfS_
.globl _Z12_cal_featurePfS_
.p2align 8
.type _Z12_cal_featurePfS_,@function
_Z12_cal_featurePfS_:
s_load_b128 s[4:7], s[0:1], 0x0
s_mov_b32 s0, exec_lo
v_cmpx_lt_i32_e32 2, v0
s_xor_b32 s2, exec_lo, s0
s_cbranch_exe... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <vector>
#include <cmath>
#include <algorithm>
#include <hip/hip_runtime.h>
// cuda 需要再其运算单元中放入进行运算的函数,我们用
// __global__ 进行指定,这个函数被称为 kernel
// https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#programming-model
__global__
void _cal_feature(float* e, float* features)
{
switch (threadIdx.x)
{
cas... | .text
.file "cuda_cal_feature.hip"
.globl _Z27__device_stub___cal_featurePfS_ # -- Begin function _Z27__device_stub___cal_featurePfS_
.p2align 4, 0x90
.type _Z27__device_stub___cal_featurePfS_,@function
_Z27__device_stub___cal_featurePfS_: # @_Z27__device_stub___cal_featurePfS_
.cfi_startproc
# %bb.0:
subq $88, %rsp... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000af925_00000000-6_cuda_cal_feature.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB3153:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq ... | .text
.file "cuda_cal_feature.hip"
.globl _Z27__device_stub___cal_featurePfS_ # -- Begin function _Z27__device_stub___cal_featurePfS_
.p2align 4, 0x90
.type _Z27__device_stub___cal_featurePfS_,@function
_Z27__device_stub___cal_featurePfS_: # @_Z27__device_stub___cal_featurePfS_
.cfi_startproc
# %bb.0:
subq $88, %rsp... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | # include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
printf("\"Hello Vector !\"\n ... | code for sm_80
Function : _Z3addPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e220000002100 */
/*0020*/ HFMA... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | # include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
printf("\"Hello Vector !\"\n ... | .file "tmpxft_000de2af_00000000-6_BlockThread.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | # include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
printf("\"Hello Vector !\"\n ... | #include <hip/hip_runtime.h>
# include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
# include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z3addPiS_S_
.globl _Z3addPiS_S_
.p2align 8
.type _Z3addPiS_S_,@function
_Z3addPiS_S_:
s_clause 0x2
s_load_b32 s2, s[0:1], 0x24
s_load_b128 s[4:7], s[0:1], 0x0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_and_b... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
# include <time.h>
# include <math.h>
# include <stdio.h>
__global__ void add( int *a , int *b , int *c)
{
int index= threadIdx.x + blockIdx.x * blockDim.x;
c[index] = a[index] +b[index];
}
//# define N 125
#define thread_count 10
void random_ints(int* a, int h)
{
}
int main(void){
int N;
... | .text
.file "BlockThread.hip"
.globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_
.p2align 4, 0x90
.type _Z18__device_stub__addPiS_S_,@function
_Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
movq... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z3addPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e220000002100 */
/*0020*/ HFMA... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z3addPiS_S_
.globl _Z3addPiS_S_
.p2align 8
.type _Z3addPiS_S_,@function
_Z3addPiS_S_:
s_clause 0x2
s_load_b32 s2, s[0:1], 0x24
s_load_b128 s[4:7], s[0:1], 0x0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_and_b... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000de2af_00000000-6_BlockThread.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %... | .text
.file "BlockThread.hip"
.globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_
.p2align 4, 0x90
.type _Z18__device_stub__addPiS_S_,@function
_Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
movq... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include<cuda.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di blocchi e num... | code for sm_80
Function : _Z27prodottoArrayCompPerCompGPUPiS_S_i
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e280... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include<cuda.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di blocchi e num... | .file "tmpxft_001a82ff_00000000-6_tempi.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2064:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.c... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include<cuda.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di blocchi e num... | #include<hip/hip_runtime.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di bl... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include<hip/hip_runtime.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di bl... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z27prodottoArrayCompPerCompGPUPiS_S_i
.globl _Z27prodottoArrayCompPerCompGPUPiS_S_i
.p2align 8
.type _Z27prodottoArrayCompPerCompGPUPiS_S_i,@function
_Z27prodottoArrayCompPerCompGPUPiS_S_i:
s_clause 0x1
s_load_b32 s2, s[0:1], 0x2c
s_load_b32 s3, s[0:1], 0x... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include<hip/hip_runtime.h>
#include<stdio.h>
void initializeArray(int*,int);
void stampaArray(int*, int);
void equalArray(int*, int*, int);
void prodottoArrayCompPerCompCPU(int *, int *, int *, int);
__global__ void prodottoArrayCompPerCompGPU(int*, int*, int*, int );
int main(int argn, char * argv[])
{
//numero di bl... | .text
.file "tempi.hip"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
pushq %r14
.cfi_def_cfa_offset 32
pushq %r13
.cfi_def_... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z27prodottoArrayCompPerCompGPUPiS_S_i
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e280... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z27prodottoArrayCompPerCompGPUPiS_S_i
.globl _Z27prodottoArrayCompPerCompGPUPiS_S_i
.p2align 8
.type _Z27prodottoArrayCompPerCompGPUPiS_S_i,@function
_Z27prodottoArrayCompPerCompGPUPiS_S_i:
s_clause 0x1
s_load_b32 s2, s[0:1], 0x2c
s_load_b32 s3, s[0:1], 0x... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_001a82ff_00000000-6_tempi.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2064:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.c... | .text
.file "tempi.hip"
.globl main # -- Begin function main
.p2align 4, 0x90
.type main,@function
main: # @main
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq %r15
.cfi_def_cfa_offset 24
pushq %r14
.cfi_def_cfa_offset 32
pushq %r13
.cfi_def_... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | /*
nvcc -o foo.out
*/
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d, rank: %d\n",n,d);
for (i=0;... | code for sm_80
Function : _Z22matrix_multiply_kernel6MatrixS_S_iiii
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R0, SR_CTAID.X ; /* 0x0000000000007919 */
/* 0x00... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | /*
nvcc -o foo.out
*/
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d, rank: %d\n",n,d);
for (i=0;... | .file "tmpxft_001a1dbb_00000000-6_CudaMatrixMultiply.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
add... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | /*
nvcc -o foo.out
*/
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d, rank: %d\n",n,d);
for (i=0;... | /*
nvcc -o foo.out
*/
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | /*
nvcc -o foo.out
*/
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z22matrix_multiply_kernel6MatrixS_S_iiii
.globl _Z22matrix_multiply_kernel6MatrixS_S_iiii
.p2align 8
.type _Z22matrix_multiply_kernel6MatrixS_S_iiii,@function
_Z22matrix_multiply_kernel6MatrixS_S_iiii:
s_clause 0x1
s_load_b32 s3, s[0:1], 0x30
s_load_b32 s2... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | /*
nvcc -o foo.out
*/
#include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
// global declarations
typedef struct {
int width;
int height;
float* elements;
} Matrix;
// functions
int print_mat_by_row(const Matrix M){
int i,j;
int n,d;
n = M.height;
d = M.width;
printf("\nprinting matrix rows -- size: %d... | .text
.file "CudaMatrixMultiply.hip"
.globl _Z16print_mat_by_row6Matrix # -- Begin function _Z16print_mat_by_row6Matrix
.p2align 4, 0x90
.type _Z16print_mat_by_row6Matrix,@function
_Z16print_mat_by_row6Matrix: # @_Z16print_mat_by_row6Matrix
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq ... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_001a1dbb_00000000-6_CudaMatrixMultiply.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2061:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
add... | .text
.file "CudaMatrixMultiply.hip"
.globl _Z16print_mat_by_row6Matrix # -- Begin function _Z16print_mat_by_row6Matrix
.p2align 4, 0x90
.type _Z16print_mat_by_row6Matrix,@function
_Z16print_mat_by_row6Matrix: # @_Z16print_mat_by_row6Matrix
.cfi_startproc
# %bb.0:
pushq %rbp
.cfi_def_cfa_offset 16
pushq ... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctime>
#include <bits/stdc++.h>
using namespace std;
#include <iostream>
//Function that verify cuda calls and return cuda error if any
#define gpuCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(cudaError_t code, const char *f... | #include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctime>
#include <bits/stdc++.h>
using namespace std;
#include <iostream>
//Function that verify cuda calls and return cuda error if any
#define gpuCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(hi... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <ctime>
#include <bits/stdc++.h>
using namespace std;
#include <iostream>
//Function that verify cuda calls and return cuda error if any
#define gpuCheck(ans) { gpuAssert((ans), __FILE__, __LINE__); }
inline void gpuAssert(hi... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z17mergeSmallBatch_kPiS_S_iiP15HIP_vector_typeIiLj2EES2_
.globl _Z17mergeSmallBatch_kPiS_S_iiP15HIP_vector_typeIiLj2EES2_
.p2align 8
.type _Z17mergeSmallBatch_kPiS_S_iiP15HIP_vector_typeIiLj2EES2_,@function
_Z17mergeSmallBatch_kPiS_S_iiP15HIP_vector_typeIiL... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <cuda.h>
extern "C" {
__global__ void computeRHS(const double *f_local_d,
double *rhs_d,
double dx,
int mx,
int npx)
{
/*
Computes the RHS for solving for the x-derivative
of a function f. f_local is the "local" part of
the function which includes ghost points.
dx is the spacing.
nx, ny, nz define the size of ... | .file "tmpxft_000fd7af_00000000-6_kernels.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <cuda.h>
extern "C" {
__global__ void computeRHS(const double *f_local_d,
double *rhs_d,
double dx,
int mx,
int npx)
{
/*
Computes the RHS for solving for the x-derivative
of a function f. f_local is the "local" part of
the function which includes ghost points.
dx is the spacing.
nx, ny, nz define the size of ... | #include <hip/hip_runtime.h>
extern "C" {
__global__ void computeRHS(const double *f_local_d,
double *rhs_d,
double dx,
int mx,
int npx)
{
/*
Computes the RHS for solving for the x-derivative
of a function f. f_local is the "local" part of
the function which includes ghost points.
dx is the spacing.
nx, ny, nz define t... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
extern "C" {
__global__ void computeRHS(const double *f_local_d,
double *rhs_d,
double dx,
int mx,
int npx)
{
/*
Computes the RHS for solving for the x-derivative
of a function f. f_local is the "local" part of
the function which includes ghost points.
dx is the spacing.
nx, ny, nz define t... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected computeRHS
.globl computeRHS
.p2align 8
.type computeRHS,@function
computeRHS:
s_clause 0x2
s_load_b64 s[4:5], s[0:1], 0x2c
s_load_b64 s[2:3], s[0:1], 0x10
s_load_b64 s[6:7], s[0:1], 0x20
v_bfe_u32 v1, v0, 20, 10
s_w... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
extern "C" {
__global__ void computeRHS(const double *f_local_d,
double *rhs_d,
double dx,
int mx,
int npx)
{
/*
Computes the RHS for solving for the x-derivative
of a function f. f_local is the "local" part of
the function which includes ghost points.
dx is the spacing.
nx, ny, nz define t... | .text
.file "kernels.hip"
.globl __device_stub__computeRHS # -- Begin function __device_stub__computeRHS
.p2align 4, 0x90
.type __device_stub__computeRHS,@function
__device_stub__computeRHS: # @__device_stub__computeRHS
.cfi_startproc
# %bb.0:
subq $120, %rsp
.cfi_def_cfa_offset 128
movq %rdi, 72(%rs... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000fd7af_00000000-6_kernels.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
... | .text
.file "kernels.hip"
.globl __device_stub__computeRHS # -- Begin function __device_stub__computeRHS
.p2align 4, 0x90
.type __device_stub__computeRHS,@function
__device_stub__computeRHS: # @__device_stub__computeRHS
.cfi_startproc
# %bb.0:
subq $120, %rsp
.cfi_def_cfa_offset 128
movq %rdi, 72(%rs... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include<stdio.h>
#include<stdlib.h>
__device__ int gpuHistogram[10];
__global__ void computeGpuHistogram(int *arr, int noOfElements)
{
//clear the global gpu Histogram array
if(blockIdx.x == 0 && threadIdx.x < 10)
gpuHistogram[threadIdx.x] = 0;
//force all threads to wait for the first 10 threads
__syncthreads();
//i... | .file "tmpxft_00027568_00000000-6_GPUHistogram.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2065:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, ... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include<stdio.h>
#include<stdlib.h>
__device__ int gpuHistogram[10];
__global__ void computeGpuHistogram(int *arr, int noOfElements)
{
//clear the global gpu Histogram array
if(blockIdx.x == 0 && threadIdx.x < 10)
gpuHistogram[threadIdx.x] = 0;
//force all threads to wait for the first 10 threads
__syncthreads();
//i... | #include <hip/hip_runtime.h>
#include<stdio.h>
#include<stdlib.h>
__device__ int gpuHistogram[10];
__global__ void computeGpuHistogram(int *arr, int noOfElements)
{
//clear the global gpu Histogram array
if(blockIdx.x == 0 && threadIdx.x < 10)
gpuHistogram[threadIdx.x] = 0;
//force all threads to wait for the first 10 ... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include<stdio.h>
#include<stdlib.h>
__device__ int gpuHistogram[10];
__global__ void computeGpuHistogram(int *arr, int noOfElements)
{
//clear the global gpu Histogram array
if(blockIdx.x == 0 && threadIdx.x < 10)
gpuHistogram[threadIdx.x] = 0;
//force all threads to wait for the first 10 ... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z19computeGpuHistogramPii
.globl _Z19computeGpuHistogramPii
.p2align 8
.type _Z19computeGpuHistogramPii,@function
_Z19computeGpuHistogramPii:
v_cmp_gt_u32_e32 vcc_lo, 10, v0
s_cmp_eq_u32 s15, 0
s_cselect_b32 s2, -1, 0
s_delay_alu instid0(SALU_C... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
#include<stdio.h>
#include<stdlib.h>
__device__ int gpuHistogram[10];
__global__ void computeGpuHistogram(int *arr, int noOfElements)
{
//clear the global gpu Histogram array
if(blockIdx.x == 0 && threadIdx.x < 10)
gpuHistogram[threadIdx.x] = 0;
//force all threads to wait for the first 10 ... | .text
.file "GPUHistogram.hip"
.globl _Z34__device_stub__computeGpuHistogramPii # -- Begin function _Z34__device_stub__computeGpuHistogramPii
.p2align 4, 0x90
.type _Z34__device_stub__computeGpuHistogramPii,@function
_Z34__device_stub__computeGpuHistogramPii: # @_Z34__device_stub__computeGpuHistogramPii
.cfi_startproc
... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_00027568_00000000-6_GPUHistogram.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2065:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, ... | .text
.file "GPUHistogram.hip"
.globl _Z34__device_stub__computeGpuHistogramPii # -- Begin function _Z34__device_stub__computeGpuHistogramPii
.p2align 4, 0x90
.type _Z34__device_stub__computeGpuHistogramPii,@function
_Z34__device_stub__computeGpuHistogramPii: # @_Z34__device_stub__computeGpuHistogramPii
.cfi_startproc
... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;
// declare pointers to thre... | code for sm_80
Function : _Z3addPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */
/* 0x000fe400078e00ff */
/*0010*/ IMAD.MOV.U32 R2, RZ, RZ, c[0x0][0x160] ; /* 0x00005800ff027624 */... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;
// declare pointers to thre... | .file "tmpxft_00093017_00000000-6_program.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2060:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;
// declare pointers to thre... | #include <hip/hip_runtime.h>
#include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z3addPiS_S_
.globl _Z3addPiS_S_
.p2align 8
.type _Z3addPiS_S_,@function
_Z3addPiS_S_:
s_clause 0x1
s_load_b128 s[4:7], s[0:1], 0x0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_load_b32 s2, s[4:5], 0x0
s_load_b... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
#include <stdio.h>
__global__ void add(int *a, int *b, int *c) {
// note that add has no variables in its scope, instead it reads and
// modifies variables that live elsewhere.
*c = *a + *b;
}
int main(void) {
// declare three integers in the host's memory space
int h_a;
int h_b;
int h_c;... | .text
.file "program.hip"
.globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_
.p2align 4, 0x90
.type _Z18__device_stub__addPiS_S_,@function
_Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
movq %rd... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z3addPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ IMAD.MOV.U32 R1, RZ, RZ, c[0x0][0x28] ; /* 0x00000a00ff017624 */
/* 0x000fe400078e00ff */
/*0010*/ IMAD.MOV.U32 R2, RZ, RZ, c[0x0][0x160] ; /* 0x00005800ff027624 */... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z3addPiS_S_
.globl _Z3addPiS_S_
.p2align 8
.type _Z3addPiS_S_,@function
_Z3addPiS_S_:
s_clause 0x1
s_load_b128 s[4:7], s[0:1], 0x0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_load_b32 s2, s[4:5], 0x0
s_load_b... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_00093017_00000000-6_program.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2060:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
... | .text
.file "program.hip"
.globl _Z18__device_stub__addPiS_S_ # -- Begin function _Z18__device_stub__addPiS_S_
.p2align 4, 0x90
.type _Z18__device_stub__addPiS_S_,@function
_Z18__device_stub__addPiS_S_: # @_Z18__device_stub__addPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
movq %rd... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
cudaMalloc((void**)&d_a,N*sizeof(int));
cudaMalloc((void**)... | code for sm_80
Function : _Z6VecAddPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e220000002100 */
/*0020*/ H... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
cudaMalloc((void**)&d_a,N*sizeof(int));
cudaMalloc((void**)... | .file "tmpxft_000b0c5b_00000000-6_vetAdd.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2060:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
cudaMalloc((void**)&d_a,N*sizeof(int));
cudaMalloc((void**)... | #include <hip/hip_runtime.h>
#include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
hipMalloc((void**)&d_a,N*sizeo... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
hipMalloc((void**)&d_a,N*sizeo... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z6VecAddPiS_S_
.globl _Z6VecAddPiS_S_
.p2align 8
.type _Z6VecAddPiS_S_,@function
_Z6VecAddPiS_S_:
s_load_b128 s[4:7], s[0:1], 0x0
v_lshlrev_b32_e32 v0, 2, v0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_clause 0x1
g... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
#include<stdio.h>
#define N 10000
// Kernel definition
__global__
void VecAdd(int* A, int* B, int* C)
{
int i = threadIdx.x;
C[i] = A[i] + B[i];
//printf("%i ",C[i]);
}
int main()
{
int A[N],B[N],C[N],*d_a,*d_b,*d_c;
int i;
for(i=0;i<N;i++){
A[i]=1;
B[i]=1;
}
hipMalloc((void**)&d_a,N*sizeo... | .text
.file "vetAdd.hip"
.globl _Z21__device_stub__VecAddPiS_S_ # -- Begin function _Z21__device_stub__VecAddPiS_S_
.p2align 4, 0x90
.type _Z21__device_stub__VecAddPiS_S_,@function
_Z21__device_stub__VecAddPiS_S_: # @_Z21__device_stub__VecAddPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z6VecAddPiS_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R6, SR_TID.X ; /* 0x0000000000067919 */
/* 0x000e220000002100 */
/*0020*/ H... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z6VecAddPiS_S_
.globl _Z6VecAddPiS_S_
.p2align 8
.type _Z6VecAddPiS_S_,@function
_Z6VecAddPiS_S_:
s_load_b128 s[4:7], s[0:1], 0x0
v_lshlrev_b32_e32 v0, 2, v0
s_load_b64 s[0:1], s[0:1], 0x10
s_waitcnt lgkmcnt(0)
s_clause 0x1
g... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000b0c5b_00000000-6_vetAdd.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2060:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %rsp
.... | .text
.file "vetAdd.hip"
.globl _Z21__device_stub__VecAddPiS_S_ # -- Begin function _Z21__device_stub__VecAddPiS_S_
.p2align 4, 0x90
.type _Z21__device_stub__VecAddPiS_S_,@function
_Z21__device_stub__VecAddPiS_S_: # @_Z21__device_stub__VecAddPiS_S_
.cfi_startproc
# %bb.0:
subq $104, %rsp
.cfi_def_cfa_offset 112
... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} | code for sm_80
Function : _Z17initialConditionsiPdS_S_S_S_S_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ EXIT ; /* 0x000000000000794d */
/* 0x000fea0003800000 */
/... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} | .file "tmpxft_000e7d0a_00000000-6_initialConditions.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} | #include <hip/hip_runtime.h>
#include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z17initialConditionsiPdS_S_S_S_S_S_
.globl _Z17initialConditionsiPdS_S_S_S_S_S_
.p2align 8
.type _Z17initialConditionsiPdS_S_S_S_S_S_,@function
_Z17initialConditionsiPdS_S_S_S_S_S_:
s_endpgm
.section .rodata,"a",@progbits
.p2align 6, 0x0
.amdhsa_kernel _... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
#include "includes.h"
__global__ void initialConditions(int n, double* x, double* y, double* z, double* vx, double* vy, double* vz, double* mass){
/* TODO */
} | .text
.file "initialConditions.hip"
.globl _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_ # -- Begin function _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_
.p2align 4, 0x90
.type _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_,@function
_Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_: # @_Z32__device... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80
Function : _Z17initialConditionsiPdS_S_S_S_S_S_
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ EXIT ; /* 0x000000000000794d */
/* 0x000fea0003800000 */
/... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z17initialConditionsiPdS_S_S_S_S_S_
.globl _Z17initialConditionsiPdS_S_S_S_S_S_
.p2align 8
.type _Z17initialConditionsiPdS_S_S_S_S_S_,@function
_Z17initialConditionsiPdS_S_S_S_S_S_:
s_endpgm
.section .rodata,"a",@progbits
.p2align 6, 0x0
.amdhsa_kernel _... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000e7d0a_00000000-6_initialConditions.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq... | .text
.file "initialConditions.hip"
.globl _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_ # -- Begin function _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_
.p2align 4, 0x90
.type _Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_,@function
_Z32__device_stub__initialConditionsiPdS_S_S_S_S_S_: # @_Z32__device... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | // REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %clang -v --target=i386-unknown-l... | code for sm_80 |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | // REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %clang -v --target=i386-unknown-l... | .file "tmpxft_000957f4_00000000-6_cuda-detect.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | // REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %clang -v --target=i386-unknown-l... | #include <hip/hip_runtime.h>
// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %cla... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %cla... | .text
.p2alignl 7, 3214868480
.fill 96, 4, 3214868480
.type __hip_cuid_,@object
.section .bss,"aw",@nobits
.globl __hip_cuid_
__hip_cuid_:
.byte 0
.size __hip_cuid_, 1
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7... |
You are a helpful coding assistant specialized in converting HIP source code to AMD host assembly. | #include <hip/hip_runtime.h>
// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: nvptx-registered-target
//
// # Check that we properly detect CUDA installation.
// RUN: %clang -v --target=i386-unknown-linux \
// RUN: --sysroot=%S/no-cuda-there 2>&1 | FileCheck %s -check-prefix NOCUDA
// RUN: %cla... | .text
.file "cuda-detect.hip"
.type __hip_cuid_,@object # @__hip_cuid_
.bss
.globl __hip_cuid_
__hip_cuid_:
.byte 0 # 0x0
.size __hip_cuid_, 1
.section ".linker-options","e",@llvm_linker_options
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-proj... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80 | .text
.p2alignl 7, 3214868480
.fill 96, 4, 3214868480
.type __hip_cuid_,@object
.section .bss,"aw",@nobits
.globl __hip_cuid_
__hip_cuid_:
.byte 0
.size __hip_cuid_, 1
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7... |
You are a helpful coding assistant specialized in converting from CUDA host assembly to AMD host assembly. | .file "tmpxft_000957f4_00000000-6_cuda-detect.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2029:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8, %... | .text
.file "cuda-detect.hip"
.type __hip_cuid_,@object # @__hip_cuid_
.bss
.globl __hip_cuid_
__hip_cuid_:
.byte 0 # 0x0
.size __hip_cuid_, 1
.section ".linker-options","e",@llvm_linker_options
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-proj... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <iostream>
#include <math.h>
#include <fstream>
// Set CIRCLE_BORDER to a negative value to activate normal mode instead
#define CIRCLE_BORDER -1
// If RANDOM_WALK is defined, the direction of a particle changes every tick
#define RANDOM_WALK
typedef struct {
float x;
float y;
float horizontal_speed;
float ver... | #include <hip/hip_runtime.h>
#include <iostream>
#include <math.h>
#include <fstream>
// Set CIRCLE_BORDER to a negative value to activate normal mode instead
#define CIRCLE_BORDER -1
// If RANDOM_WALK is defined, the direction of a particle changes every tick
#define RANDOM_WALK
typedef struct {
float x;
float y;
floa... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, const char* argv[])
{
ifstream datafile;
datafile.open("data.csv");
string fileline;
int count = 0;
int imagenumber = 0;
... | code for sm_80 |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include "cuda_runtime.h"
#include "device_launch_parameters.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, const char* argv[])
{
ifstream datafile;
datafile.open("data.csv");
string fileline;
int count = 0;
int imagenumber = 0;
... | #include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, const char* argv[])
{
ifstream datafile;
datafile.open("data.csv");
string fileline;
int count = 0;
int imagenumber = 0;
int num;
vector<int> imagerow;
vect... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include "hip/hip_runtime.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
int main(int argc, const char* argv[])
{
ifstream datafile;
datafile.open("data.csv");
string fileline;
int count = 0;
int imagenumber = 0;
int num;
vector<int> imagerow;
vect... | .text
.p2alignl 7, 3214868480
.fill 96, 4, 3214868480
.type __hip_cuid_,@object
.section .bss,"aw",@nobits
.globl __hip_cuid_
__hip_cuid_:
.byte 0
.size __hip_cuid_, 1
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7... |
You are a helpful coding assistant specialized in converting from CUDA device assembly to AMD device assembly. | code for sm_80 | .text
.p2alignl 7, 3214868480
.fill 96, 4, 3214868480
.type __hip_cuid_,@object
.section .bss,"aw",@nobits
.globl __hip_cuid_
__hip_cuid_:
.byte 0
.size __hip_cuid_, 1
.ident "AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA device assembly. | #include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cstdio>
constexpr size_t BLOCKSIZE_x = 16;
constexpr size_t BLOCKSIZE_y = 16;
constexpr size_t N = 32;
constexpr size_t M = 16;
constexpr size_t W = 4;
//////////////////
// cuda_err_chk //
//////////////////
#define cuda_err_ch... | code for sm_80
Function : _Z14test_kernel_3d14cudaPitchedPtr
.headerflags @"EF_CUDA_TEXMODE_UNIFIED EF_CUDA_64BIT_ADDRESS EF_CUDA_SM80 EF_CUDA_VIRTUAL_SM(EF_CUDA_SM80)"
/*0000*/ MOV R1, c[0x0][0x28] ; /* 0x00000a0000017a02 */
/* 0x000fe40000000f00 */
/*0010*/ S2R R2, SR_CTAID.Y ; /* 0x0000000000027919 */
/* 0x000e22000... |
You are a helpful coding assistant specialized in converting CUDA source code to CUDA host assembly. | #include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cstdio>
constexpr size_t BLOCKSIZE_x = 16;
constexpr size_t BLOCKSIZE_y = 16;
constexpr size_t N = 32;
constexpr size_t M = 16;
constexpr size_t W = 4;
//////////////////
// cuda_err_chk //
//////////////////
#define cuda_err_ch... | .file "tmpxft_000adc3b_00000000-6_scratchpad-04.cudafe1.cpp"
.text
#APP
#NO_APP
.type _ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2062:
.cfi_startproc
endbr64
subq $8, %rsp
.cfi_def_cfa_offset 16
movq _ZL20__cudaFatCubinHandle(%rip), %rdi
call __cudaUnregisterFatBinary@PLT
addq $8,... |
You are a helpful coding assistant specialized in converting CUDA source code to HIP/AMD source code. | #include <cuda.h>
#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <cstdio>
constexpr size_t BLOCKSIZE_x = 16;
constexpr size_t BLOCKSIZE_y = 16;
constexpr size_t N = 32;
constexpr size_t M = 16;
constexpr size_t W = 4;
//////////////////
// cuda_err_chk //
//////////////////
#define cuda_err_ch... | #include <hip/hip_runtime.h>
#include <cstdio>
constexpr size_t BLOCKSIZE_x = 16;
constexpr size_t BLOCKSIZE_y = 16;
constexpr size_t N = 32;
constexpr size_t M = 16;
constexpr size_t W = 4;
//////////////////
// cuda_err_chk //
//////////////////
#define cuda_err_chk(ans) \
{ \
gpu_assert((ans), __FILE__, __LINE__); \... |
You are a helpful coding assistant specialized in converting HIP source code to AMD device assembly. | #include <hip/hip_runtime.h>
#include <cstdio>
constexpr size_t BLOCKSIZE_x = 16;
constexpr size_t BLOCKSIZE_y = 16;
constexpr size_t N = 32;
constexpr size_t M = 16;
constexpr size_t W = 4;
//////////////////
// cuda_err_chk //
//////////////////
#define cuda_err_chk(ans) \
{ \
gpu_assert((ans), __FILE__, __LINE__); \... | .text
.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
.protected _Z14test_kernel_3d13hipPitchedPtr
.globl _Z14test_kernel_3d13hipPitchedPtr
.p2align 8
.type _Z14test_kernel_3d13hipPitchedPtr,@function
_Z14test_kernel_3d13hipPitchedPtr:
s_clause 0x1
s_load_b32 s4, s[0:1], 0x2c
s_load_b128 s[0:3], s[0:1], 0x0
v_bfe_u3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.