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

BM: Add CMake build support #408

Merged
merged 1 commit into from
Sep 29, 2024
Merged

BM: Add CMake build support #408

merged 1 commit into from
Sep 29, 2024

Conversation

haoliang-Zhu
Copy link
Contributor

  1. This commit introduces CMakeLists.txt files across the BM and its subdirectories: amx/tmul avx512vbmi cet cmpccxadd pt splitlock telemetry th tools/cpuid_check tools/pcie umip xsave. Each CMakeLists.txt is configured to build the corresponding component of the project.
  2. For amx/tmul and avx512vbmi, instruction set detection has been added to the CMakeLists.txt. If the target CPU does not support the corresponding instruction sets, the build will be skipped.
  3. For features such as cet, umip, pt, etc., specific checks have also been added to the CMakeLists.txt. If necessary files or kernel modules are missing, the build will be skipped.
  4. The installation process has been updated. You can now create a build directory within the BM directory, configure the project with CMake, compile it, and install it.
    For example,
mkdir build
cd build
cmake ..
make
sudo make install
  1. The CMakeLists.txt in the workload-xsave directory has been updated to ensure a consistent style.

1. This commit introduces CMakeLists.txt files across the BM and its subdirectories: amx/tmul avx512vbmi cet cmpccxadd pt splitlock telemetry th tools/cpuid_check tools/pcie umip xsave. Each CMakeLists.txt is configured to build the corresponding component of the project.
2. For amx/tmul and avx512vbmi, instruction set detection has been added to the CMakeLists.txt. If the target CPU does not support the corresponding instruction sets, the build will be skipped.
3. For features such as cet, umip, pt, etc., specific checks have also been added to the CMakeLists.txt. If necessary files or kernel modules are missing, the build will be skipped.
4. The installation process has been updated. You can now create a build directory within the BM directory, configure the project with CMake, compile it, and install it.
5. The CMakeLists.txt in the workload-xsave directory has been updated to ensure a consistent style.

Signed-off-by: Haoliang Zhu <[email protected]>
@ysun ysun merged commit 9210779 into intel:main Sep 29, 2024
5 checks passed
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.

2 participants