Update CMakeLists.txt
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
f707051066
commit
45b0618078
1 changed files with 4 additions and 4 deletions
|
@ -516,10 +516,10 @@ function(get_flags CCID CCVER)
|
||||||
endif()
|
endif()
|
||||||
elseif (CCID MATCHES "Intel")
|
elseif (CCID MATCHES "Intel")
|
||||||
if (NOT LLAMA_SYCL)
|
if (NOT LLAMA_SYCL)
|
||||||
# enable max optimization level when using Intel compiler
|
# enable max optimization level when using Intel compiler
|
||||||
set(C_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector)
|
set(C_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector)
|
||||||
set(CXX_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector)
|
set(CXX_FLAGS -ipo -O3 -static -fp-model=fast -flto -fno-stack-protector)
|
||||||
add_link_options(-fuse-ld=lld -static-intel)
|
add_link_options(-fuse-ld=lld -static-intel)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue