Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bug fix for Samples #2529

Open
Open
Labels
bugSomething isn't working
@Martin-HZK

Description

@Martin-HZK

Summary

In theDirectProgramming/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.oc++: 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 1make[2]:*** Waitingfor 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 1make[2]:*** [CMakeFiles/iso3dfd.dir/build.make:104: CMakeFiles/iso3dfd.dir/iso3dfd_verify.o] Error 1make[1]:*** [CMakeFiles/Makefile2:84: CMakeFiles/iso3dfd.dir/all] Error 2make:*** [Makefile:91: all] Error 2

In the CMakeLists file, the 3rd line should be changed fromset(CMAKE_CXX_COMPILER "icpx") toset(CMAKE_CXX_COMPILER icpx). Or we should explicitly declare the compiler options.

Version

c9c1625

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp