oneapi-src / oneapi-src/oneAPI-samples

Unable to run sample SYCL program

Đang mở
#1,337 7 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug
Ngôn ngữ chính
C++
Star
1.2k
Fork
745
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Summary

I have built SYCL compiler from the source. I was trying out the example given in the below documentation :
https://intel.github.io/llvm-docs/GetStartedGuide.html#run-simple-dpc-application

After building the compiler from source, I have updated my environment as suggested

export PATH=$DPCPP_HOME/llvm/build/bin:$PATH
export LD_LIBRARY_PATH=$DPCPP_HOME/llvm/build/lib:$LD_LIBRARY_PATH

I could build the binary successfully, however on running that executable , I am getting below error

Command used to generate binary
clang++ -fsycl simple_sycl.cpp -o syc

./syc
terminate called after throwing an instance of 'sycl::_V1::runtime_error'
  what():  No device of requested type available. -1 (PI_ERROR_DEVICE_NOT_FOUND)
Aborted (core dumped)

Version

Tip commit of git
3df87e20569ea63d0a74de525b6d19788dd8afca

Environment

OS
Ubuntu 20.04.3 LTS

CPU information

Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   43 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              1
Core(s) per socket:              1
Socket(s):                       12
NUMA node(s):                    1
Vendor ID:                       GenuineIntel
CPU family:                      6
Model:                           85
Model name:                      Intel(R) Xeon(R) Gold 5220R CPU @ 2.20GHz
Stepping:                        0
CPU MHz:                         2194.844

Steps to reproduce

Command used to generate binary
clang++ -fsycl simple_sycl.cpp -o syc
./syc

Observed behavior

I am suspecting missing runtime libraries.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với GetStartedGuide được liên kết trong issue, sau đó xem xét các lệnh được sử dụng để build và chạy simple_sycl.cpp cùng thông báo PI_ERROR_DEVICE_NOT_FOUND được báo cáo. Xác nhận liệu môi trường và các thư viện runtime được tài liệu hóa có cung cấp một thiết bị có thể sử dụng trên hệ thống Ubuntu CPU đã nêu hay không; hoàn thành có nghĩa là executable mẫu chạy thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp, ubuntu
Lĩnh vực
developer-experience, operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.