Skip to content

Commit aa9d6a7

Browse files
authored
FIX: Allow a force build for AVX512fp16 and AVX512 (#31)
* FIX: Allow a force build for AVX512fp16 and AVX512 FIX: Allow a force build for `AVX512fp16` and `AVX512` by using `-DENABLE_AVX512FP16=ON` and `-DENABLE_AVX512=ON` flags Signed-off-by: Miłosz Linkiewicz <[email protected]> * Add: Mandatory changes for ENABLE_AVX512 and ENABLE_AVX512FP16 Add: Mandatory changes for flags `ENABLE_AVX512` and `ENABLE_AVX512FP16` to work as intended. Signed-off-by: Miłosz Linkiewicz <[email protected]> --------- Signed-off-by: Miłosz Linkiewicz <[email protected]>
1 parent ee57946 commit aa9d6a7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/build-baremetal-coverity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
8686
build_language: 'cxx'
8787
build_platform: 'linux64'
88-
command: ${{ github.workspace }}/./build.sh -DENABLE_RAISR_OPENCL=ON -DCMAKE_LIBRARY_PATH="/opt/intel/oneapi/ipp/latest/lib;${PREFIX}/lib;" -DCMAKE_C_FLAGS="-I/opt/intel/oneapi/ipp/latest/include -I/opt/intel/oneapi/ipp/latest/include/ipp" -DCMAKE_CXX_FLAGS="-I/opt/intel/oneapi/ipp/latest/include -I/opt/intel/oneapi/ipp/latest/include/ipp"
88+
command: ${{ github.workspace }}/./build.sh -DENABLE_RAISR_OPENCL=ON -DENABLE_AVX512FP16=ON -DENABLE_AVX512=ON
8989

9090
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
9191
with:

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,15 @@ if (ENABLE_RAISR_OPENCL)
8181
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_RAISR_OPENCL")
8282
endif()
8383

84+
option( ENABLE_AVX512FP16 "Build AVX512fp16 despite test results" OFF )
85+
if (ENABLE_AVX512FP16)
86+
set(HAVE_AVX512FP16 ON)
87+
endif()
8488

89+
option( ENABLE_AVX512 "Build AVX512 despite test results" OFF )
90+
if (ENABLE_AVX512)
91+
set(HAVE_AVX512 ON)
92+
endif()
8593
# Intel Library for Video Super Resolution
8694
add_subdirectory(Library)
8795

0 commit comments

Comments
 (0)