oneapi-src / oneapi-src/oneAPI-samples

Does Intel oneAPI support 32bit library with CMake?

Open
#2,101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C++
Stars
1.2k
Forks
745
PR merge metrics
No merged PRs in 30d

Description

Hi authors,

I've ever used both GCC and ICC successfully to build a 32bit C++ library with CMake on Linux 64bit.
But when switch to oneAPI (icx/icpx), it will be error when run: cmake -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ..
If I remove -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32", it will run normally.

So, my question is: Does Intel oneAPI support 32bit library with CMake?
If yes, could you please help me about flags or settings to build?

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported CMake invocation on 64-bit Linux with icx/icpx, comparing it with the working GCC and ICC builds. Check the oneAPI compiler and CMake configuration guidance for 32-bit support; done means documenting whether the build is supported and identifying the required flags or settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp, linux
Domain
build-system, compilers, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.