intel / intel/llvm

asm_multiple_instructions.cpp failing on gpu

Open
#16,412 0 comments 0 reactions 0 assignees View on GitHub
bug confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Describe the bug

The test `SYCL :: InlineAsm/asm_multiple_instructions.cpp` if failing on GPU. Upon resolution, please remove XFAIL from test.

### To reproduce

```
FAIL: SYCL :: InlineAsm/asm_multiple_instructions.cpp (1442 of 2242)
******************** TEST 'SYCL :: InlineAsm/asm_multiple_instructions.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp -DTO_PASS -o /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp -DTO_PASS -o /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# note: command had no output on stdout or stderr
# RUN: at line 4
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# note: command had no output on stdout or stderr
# RUN: at line 4
env ONEAPI_DEVICE_SELECTOR=opencl:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# executed command: env ONEAPI_DEVICE_SELECTOR=opencl:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out.pass
# note: command had no output on stdout or stderr
# RUN: at line 5
/__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp -o /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out
# executed command: /__w/llvm/llvm/toolchain/bin//clang++ -Werror -fsycl -fsycl-targets=spir64 /__w/llvm/llvm/llvm/sycl/test-e2e/InlineAsm/asm_multiple_instructions.cpp -o /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out
# note: command had no output on stdout or stderr
# RUN: at line 6
env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out
# executed command: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu /__w/llvm/llvm/build-e2e/InlineAsm/Output/asm_multiple_instructions.cpp.tmp.out
# .---command stderr------------
# | At index: 0 0 != 16
# `-----------------------------
# error: command failed with exit status: 1

```

### Environment

- OS: Any
- Target device and vendor: Gen12 GPU
- DPC++ version: da317d04df8c6ffc873dfe1943c1c7c26e8de1e5
- Dependencies version:
```
- 2024-12-17T21:51:30.1075190Z sycl-ls --verbose
2024-12-17T21:51:30.1075783Z shell: sh -e {0}
2024-12-17T21:51:30.1076177Z env:
2024-12-17T21:51:30.1076424Z CMAKE_PREFIX_PATH: /runtimes/oneapi-tbb/env/..
2024-12-17T21:51:30.1076649Z CPATH: /runtimes/oneapi-tbb/env/../include
2024-12-17T21:51:30.1076986Z LD_LIBRARY_PATH: /__w/llvm/llvm/toolchain/lib/:/runtimes/oneapi-tbb/env/../lib/intel64/gcc4.8
2024-12-17T21:51:30.1077357Z LIBRARY_PATH: /runtimes/oneapi-tbb/env/../lib/intel64/gcc4.8
2024-12-17T21:51:30.1077630Z PKG_CONFIG_PATH: /runtimes/oneapi-tbb/env/../lib/pkgconfig
2024-12-17T21:51:30.1077880Z TBBROOT: /runtimes/oneapi-tbb/env/..
2024-12-17T21:51:30.1078200Z PATH: /__w/llvm/llvm/toolchain/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-12-17T21:51:30.1078501Z ##[endgroup]
2024-12-17T21:51:30.1612404Z [level_zero:gpu][level_zero:0] Intel(R) oneAPI Unified Runtime over Level-Zero, Intel(R) Iris(R) Xe Graphics 12.0.0 [1.6.31294.120000]
2024-12-17T21:51:30.1613084Z [opencl:gpu][opencl:0] Intel(R) OpenCL Graphics, Intel(R) Iris(R) Xe Graphics OpenCL 3.0 NEO [24.39.31294.12]
2024-12-17T21:51:30.1613732Z [opencl:cpu][opencl:1] Intel(R) OpenCL, 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz OpenCL 3.0 (Build 0) [2024.18.10.0.08_160000]
2024-12-17T21:51:30.1614989Z [opencl:fpga][opencl:2] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2024.18.10.0.08_160000]
2024-12-17T21:51:30.1615427Z [native_cpu:cpu][native_cpu:0] SYCL_NATIVE_CPU, SYCL Native CPU 0.1 [0.0.0]
2024-12-17T21:51:30.1615629Z
2024-12-17T21:51:30.1615688Z Platforms: 5
2024-12-17T21:51:30.1615830Z Platform [#1]:
2024-12-17T21:51:30.1615968Z Version : 1.6
2024-12-17T21:51:30.1616159Z Name : Intel(R) oneAPI Unified Runtime over Level-Zero
2024-12-17T21:51:30.1616387Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1616556Z Devices : 1
2024-12-17T21:51:30.1616700Z Device [#0]:
2024-12-17T21:51:30.1616849Z Type : gpu
2024-12-17T21:51:30.1617012Z Version : 12.0.0
2024-12-17T21:51:30.1617207Z Name : Intel(R) Iris(R) Xe Graphics
2024-12-17T21:51:30.1617419Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1617639Z Driver : 1.6.31294.120000
2024-12-17T21:51:30.1617832Z UUID : 13412873154100002000000
2024-12-17T21:51:30.1618021Z DeviceID : 39497
2024-12-17T21:51:30.1618189Z Num SubDevices : 0
2024-12-17T21:51:30.1618358Z Num SubSubDevices : 0
2024-12-17T21:51:30.1619973Z Aspects : gpu fp16 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations ext_intel_pci_address ext_intel_gpu_eu_count ext_intel_gpu_eu_simd_width ext_intel_gpu_slices ext_intel_gpu_subslices_per_slice ext_intel_gpu_eu_count_per_subslice atomic64 ext_intel_device_info_uuid ext_intel_gpu_hw_threads_per_eu ext_intel_device_id ext_intel_memory_clock_rate ext_intel_memory_bus_width ext_intel_legacy_image ext_intel_esimd ext_oneapi_ballot_group ext_oneapi_fixed_size_group ext_oneapi_opportunistic_group ext_oneapi_tangle_group ext_oneapi_limited_graph ext_oneapi_private_alloca ext_oneapi_queue_profiling_tag ext_oneapi_virtual_mem ext_oneapi_virtual_functions
2024-12-17T21:51:30.1625013Z info::device::sub_group_sizes: 8 16 32
2024-12-17T21:51:30.1625235Z Architecture: intel_gpu_tgllp
2024-12-17T21:51:30.1625412Z Platform [#2]:
2024-12-17T21:51:30.1625555Z Version : OpenCL 3.0
2024-12-17T21:51:30.1625722Z Name : Intel(R) OpenCL Graphics
2024-12-17T21:51:30.1625907Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1626077Z Devices : 1
2024-12-17T21:51:30.1626211Z Device [#0]:
2024-12-17T21:51:30.1626354Z Type : gpu
2024-12-17T21:51:30.1626524Z Version : OpenCL 3.0 NEO
2024-12-17T21:51:30.1626875Z Name : Intel(R) Iris(R) Xe Graphics
2024-12-17T21:51:30.1627089Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1627284Z Driver : 24.39.31294.12
2024-12-17T21:51:30.1627484Z UUID : 13412873154100002000000
2024-12-17T21:51:30.1627673Z DeviceID : 39497
2024-12-17T21:51:30.1627857Z Num SubDevices : 0
2024-12-17T21:51:30.1628022Z Num SubSubDevices : 0
2024-12-17T21:51:30.1629335Z Aspects : gpu fp16 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations ext_intel_pci_address ext_intel_gpu_eu_count ext_intel_gpu_slices ext_intel_gpu_subslices_per_slice ext_intel_gpu_eu_count_per_subslice atomic64 ext_intel_device_info_uuid ext_oneapi_srgb ext_intel_gpu_hw_threads_per_eu ext_intel_device_id ext_intel_legacy_image ext_intel_esimd ext_oneapi_ballot_group ext_oneapi_fixed_size_group ext_oneapi_opportunistic_group ext_oneapi_tangle_group ext_oneapi_private_alloca ext_oneapi_atomic16 ext_oneapi_virtual_functions
2024-12-17T21:51:30.1630679Z info::device::sub_group_sizes: 8 16 32
2024-12-17T21:51:30.1630880Z Architecture: intel_gpu_tgllp
2024-12-17T21:51:30.1631062Z Platform [#3]:
2024-12-17T21:51:30.1631202Z Version : OpenCL 3.0 LINUX
2024-12-17T21:51:30.1631373Z Name : Intel(R) OpenCL
2024-12-17T21:51:30.1631613Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1631785Z Devices : 1
2024-12-17T21:51:30.1631921Z Device [#1]:
2024-12-17T21:51:30.1632063Z Type : cpu
2024-12-17T21:51:30.1632239Z Version : OpenCL 3.0 (Build 0)
2024-12-17T21:51:30.1632476Z Name : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
2024-12-17T21:51:30.1632707Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1632911Z Driver : 2024.18.10.0.08_160000
2024-12-17T21:51:30.1633102Z DeviceID : 526017
2024-12-17T21:51:30.1827965Z Num SubDevices : 0
2024-12-17T21:51:30.1829863Z Num SubSubDevices : 0
2024-12-17T21:51:30.1832153Z Aspects : cpu fp16 fp64 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations usm_system_allocations ext_intel_gpu_slices ext_intel_gpu_subslices_per_slice ext_intel_gpu_eu_count_per_subslice usm_atomic_host_allocations usm_atomic_shared_allocations atomic64 ext_oneapi_srgb ext_oneapi_native_assert ext_intel_gpu_hw_threads_per_eu ext_intel_device_id ext_intel_legacy_image ext_oneapi_ballot_group ext_oneapi_fixed_size_group ext_oneapi_opportunistic_group ext_oneapi_tangle_group ext_oneapi_private_alloca ext_oneapi_virtual_functions
2024-12-17T21:51:30.1834682Z info::device::sub_group_sizes: 4 8 16 32 64
2024-12-17T21:51:30.1835108Z Architecture: x86_64
2024-12-17T21:51:30.1835412Z Platform [#4]:
2024-12-17T21:51:30.1835723Z Version : OpenCL 1.2 Intel(R) FPGA SDK for OpenCL(TM), Version 20.3
2024-12-17T21:51:30.1836134Z Name : Intel(R) FPGA Emulation Platform for OpenCL(TM)
2024-12-17T21:51:30.1836452Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1836702Z Devices : 1
2024-12-17T21:51:30.1836901Z Device [#2]:
2024-12-17T21:51:30.1837116Z Type : fpga
2024-12-17T21:51:30.1837360Z Version : OpenCL 1.2
2024-12-17T21:51:30.1837674Z Name : Intel(R) FPGA Emulation Device
2024-12-17T21:51:30.1837981Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.1838268Z Driver : 2024.18.10.0.08_160000
2024-12-17T21:51:30.1838542Z DeviceID : 526017
2024-12-17T21:51:30.2033942Z Num SubDevices : 0
2024-12-17T21:51:30.2035033Z Num SubSubDevices : 0
2024-12-17T21:51:30.2042153Z Aspects : accelerator fp64 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations ext_intel_gpu_slices ext_intel_gpu_subslices_per_slice ext_intel_gpu_eu_count_per_subslice usm_atomic_host_allocations usm_atomic_shared_allocations ext_oneapi_srgb ext_intel_gpu_hw_threads_per_eu ext_intel_device_id ext_oneapi_ballot_group ext_oneapi_fixed_size_group ext_oneapi_opportunistic_group ext_oneapi_tangle_group ext_intel_fpga_task_sequence ext_oneapi_private_alloca
2024-12-17T21:51:30.2047622Z info::device::sub_group_sizes: 4 8 16 32 64
2024-12-17T21:51:30.2048390Z Architecture: unknown
2024-12-17T21:51:30.2048993Z Platform [#5]:
2024-12-17T21:51:30.2049493Z Version : 0.1
2024-12-17T21:51:30.2050034Z Name : SYCL_NATIVE_CPU
2024-12-17T21:51:30.2050649Z Vendor : tbd
2024-12-17T21:51:30.2051144Z Devices : 1
2024-12-17T21:51:30.2051644Z Device [#0]:
2024-12-17T21:51:30.2052188Z Type : cpu
2024-12-17T21:51:30.2052785Z Version : 0.1
2024-12-17T21:51:30.2053711Z Name : SYCL Native CPU
2024-12-17T21:51:30.2054465Z Vendor : Intel(R) Corporation
2024-12-17T21:51:30.2055171Z Driver : 0.0.0
2024-12-17T21:51:30.2055803Z DeviceID : UNKNOWN
2024-12-17T21:51:30.2056446Z Num SubDevices : 0
2024-12-17T21:51:30.2057017Z Num SubSubDevices : 0
2024-12-17T21:51:30.2058986Z Aspects : cpu fp16 fp64 online_compiler online_linker queue_profiling usm_device_allocations usm_host_allocations usm_shared_allocations usm_system_allocations usm_atomic_host_allocations usm_atomic_shared_allocations atomic64
2024-12-17T21:51:30.2061316Z info::device::sub_group_sizes: 1
2024-12-17T21:51:30.2061931Z Architecture: unknown
2024-12-17T21:51:30.2063108Z default_selector() : gpu, Intel(R) oneAPI Unified Runtime over Level-Zero, Intel(R) Iris(R) Xe Graphics 12.0.0 [1.6.31294.120000]
2024-12-17T21:51:30.2065064Z accelerator_selector() : fpga, Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2024.18.10.0.08_160000]
2024-12-17T21:51:30.2066930Z cpu_selector() : cpu, Intel(R) OpenCL, 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz OpenCL 3.0 (Build 0) [2024.18.10.0.08_160000]
2024-12-17T21:51:30.2068592Z gpu_selector() : gpu, Intel(R) oneAPI Unified Runtime over Level-Zero, Intel(R) Iris(R) Xe Graphics 12.0.0 [1.6.31294.120000]
2024-12-17T21:51:30.2070341Z custom_selector(gpu) : gpu, Intel(R) oneAPI Unified Runtime over Level-Zero, Intel(R) Iris(R) Xe Graphics 12.0.0 [1.6.31294.120000]
2024-12-17T21:51:30.2072088Z custom_selector(cpu) : cpu, Intel(R) OpenCL, 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz OpenCL 3.0 (Build 0) [2024.18.10.0.08_160000]
2024-12-17T21:51:30.2073940Z custom_selector(acc) : fpga, Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2024.18.10.0.08_160000]

```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.