Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bug of compiler wrong set in sample cmakelists #2530

Open
wants to merge 66 commits into
base: main
Choose a base branch
from

Conversation

Martin-HZK
Copy link

Existing Sample Changes

Description

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.

Fixes Issue#

External Dependencies

List any external dependencies created as a result of this change.

Type of change

Please delete options that are not relevant. Add a 'X' to the one that is applicable.

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Implement fixes for ONSAM Jiras

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [x ] Command Line
  • oneapi-cli
  • Visual Studio
  • Eclipse IDE
  • VSCode
  • When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

jimmytwei and others added 30 commits June 20, 2024 09:09
* Update README.md

* Update sample.json

* Update sample.json
)

This update contains a rewritten README.md file for the
`guided_matrix_mult_InvalidContexts` sample. It also adds two screenshots
(png files) that accompany the rewritten README.me file. The previous
version of this README.md did not include screenshots
* Update README.md

* Update README.md

* Update README.md

* Update lu_solve_omp_offload_optimized.F90

* FPGA: Revert "Remove fpga_register annotations from fifo_sort" (oneapi-src#2370)

This reverts commit 75397ca that initially went in to prevent an error from being emitted to customers.

* Update openmp_sample.f90

* Update openmp_sample.f90 (oneapi-src#2371)

* Update requirements.txt

* Update inc_sample_tensorflow.ipynb

* Update inc_quantize_model.py

* Update README.md

* Update release.json

* Fix ONSAM-1905 (oneapi-src#2376)

* FPGA: re-enable the fft2d sample (oneapi-src#2381)

This sample is previously disabled in oneapi-src#2355.
Re-enabling for better test coverage of the sample.

* FPGA: Bug fixes for the fft2d sample (oneapi-src#2382)

1. Fix array index out of bound in function `ReorderData`
2. Fix use of uninitialized array `fft_delay_elements`

* Add explicit header (oneapi-src#2367)

* “inlinePTX_with_codepin” (oneapi-src#2372)

Signed-off-by: AvijitBag07 <[email protected]>
Co-authored-by: AvijitBag07 <[email protected]>

* Adding 2 new openACC-openMP migrated samples (oneapi-src#2373)

* New openmp samples

* Updated New samples

* Adding pSTL-offload sample (oneapi-src#2374)

* pSTL offload sample

* pSTL offload sample

* minor fixes to multi-gpu training (oneapi-src#2377)

* Fix crashes in f_use_device_addr_01, dgemm_pad_f_01, dgemm_dispatch_f (oneapi-src#2378)

* Fix crashes in f_use_device_addr_01, dgemm_pad_f_01, and dgemm_dispatch_f (ONSAM-1918).

* Fix crashes in f_use_device_addr_01, dgemm_pad_f_01, dgemm_dispatch_f

* Fix crashes in f_use_device_addr_01, dgemm_pad_f_01, dgemm_dispatch_f

* Add explicit headers (oneapi-src#2366)

* FPGA: correct 'categories' for hls flow/interfaces code samples (oneapi-src#2383)

Correct 'categories' for hls flow/interfaces code samples so they group together nicely in the sample browser

* FPGA: Remove unused memory allocation in the gzip sample (oneapi-src#2386)

The gzip code sample included a memory allocation of the size of the file to be compressed, which was issued for every repeated iteration of the kernel.
This led to increasingly large host memory allocation when the file to compress was increasing in size.
However, the allocated memory was never used.
This change therefore removes the unneeded allocation.

* FPGA: Update gzip throughput experiment date

* FPGA: Correct performance testing date in PCA

* FPGA: Correct performance testing date in matmul

* FPGA: Correct performance testing date in CRR

* FPGA: Correct performance testing date in QRD

* FPGA: Correct performance testing date in Cholesky inversion

* FPGA: Correct performance testing date in Cholesky

* FPGA: Add missing cmath include in the hardware_reuse sample (oneapi-src#2387)

* Update sample.json and remove unused code

* forgot this requirements.txt earlier

* Update README.md

* Update README.md

* Update sample.json

* Update sample.json

---------

Signed-off-by: AvijitBag07 <[email protected]>
Co-authored-by: Jimmy Wei <[email protected]>
Co-authored-by: Justin Rosner <[email protected]>
Co-authored-by: Zhiqiang Ma <[email protected]>
Co-authored-by: intel-jisheng1 <[email protected]>
Co-authored-by: IgorOchocki <[email protected]>
Co-authored-by: AvijitBag07 <[email protected]>
Co-authored-by: AvijitBag07 <[email protected]>
Co-authored-by: vidyalathabadde <[email protected]>
Co-authored-by: Shwetha-Selma <[email protected]>
Co-authored-by: Rakshith <[email protected]>
Co-authored-by: nawalcopty <[email protected]>
Co-authored-by: Paul White <[email protected]>
Co-authored-by: yuguen-intel <[email protected]>
* added `trust_remote_code=True` HF load_dataset

* updated numba_dpex kernel call to use new API

* fix numba_dpex typo

* Updated TF & TF_hub api, deleted `models` directory.
jimmytwei and others added 28 commits August 7, 2024 14:04
…erving_release

[release/2024.2_AITools] Remove TF Serving
…Tools

removed notebook execution command
…arted

[release/2024.2_AITools] updated ITEX Getting Started sample
…ools

2024.2 AI Tools second set of updates
…ools

README updates for 2024.2 AI Tools release
…atch

Remove deprecated target variant dispatch from oneMKL sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.