Bug fix for Samples
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cmake, cpp
- Lĩnh vực
- build-system
Hướng nghiên cứu
Mở DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload/src/CMakeLists.txt và kiểm tra thiết lập trình biên dịch ở dòng 3. Trước tiên, hãy tái hiện cấu hình cmake -DVERIFY_RESULTS=0 .. được ghi trong tài liệu và lệnh make -j. Được xem là hoàn tất khi sample được cấu hình và build mà không gặp các lỗi tùy chọn trình biên dịch đã báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
In the DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload/src/CMakeLists.txt, the default cmake instructions shown in the official guidance cmake -DVERIFY_RESULTS=0 .. cannot really successfully make-build the project successfully and report the below messages, indicating that the compiler is not set properly.
~/Documents/oneAPI-samples/DirectProgramming/C++/StructuredGrids/iso3dfd_omp_offload/src/build$ make -j
[ 25%] Building CXX object CMakeFiles/iso3dfd.dir/utils.o
[ 50%] Building CXX object CMakeFiles/iso3dfd.dir/iso3dfd.o
[ 75%] Building CXX object CMakeFiles/iso3dfd.dir/iso3dfd_verify.o
c++: error: unrecognized command-line option ‘-fiopenmp’; did you mean ‘-fopenmp’?
c++: error: unrecognized command-line option ‘-fiopenmp’; did you mean ‘-fopenmp’?
c++: error: unrecognized command-line option ‘-fiopenmp’; did you mean ‘-fopenmp’?
c++: error: unrecognized command-line option ‘-fopenmp-targets=spir64’
make[2]: *** [CMakeFiles/iso3dfd.dir/build.make:90: CMakeFiles/iso3dfd.dir/utils.o] Error 1
make[2]: *** Waiting for unfinished jobs....
c++: error: unrecognized command-line option ‘-fopenmp-targets=spir64’
c++: error: unrecognized command-line option ‘-fopenmp-targets=spir64’
make[2]: *** [CMakeFiles/iso3dfd.dir/build.make:76: CMakeFiles/iso3dfd.dir/iso3dfd.o] Error 1
make[2]: *** [CMakeFiles/iso3dfd.dir/build.make:104: CMakeFiles/iso3dfd.dir/iso3dfd_verify.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/iso3dfd.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
In the CMakeLists file, the 3rd line should be changed from set(CMAKE_CXX_COMPILER "icpx") to set(CMAKE_CXX_COMPILER icpx). Or we should explicitly declare the compiler options.
Version
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của oneapi-src/oneAPI-samples
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
oneapi-src/oneAPI-samples#2764 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
oneapi-src/oneAPI-samples#2748 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
oneapi-src/oneAPI-samples#2746 ·
-
Lenovo Thinkpad T440p Ethernet issue warning sign show install multiple times but same issue face Đang mởquestion
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
oneapi-src/oneAPI-samples#2739 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
oneapi-src/oneAPI-samples#2705 ·
Tất cả issue của oneapi-src/oneAPI-samples
Issue tương tự
-
ai_reviewed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ydb-platform/ydb#53869 · 3 bình luận ·
-
bug cert blocker needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
project-chip/connectedhomeip#74373 ·
-
[request] tracy/0.14.1 Đang mởupstream update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
conan-io/conan-center-index#31035 ·
-
Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
vllm-project/vllm-ascend#17329 ·