Skip to content

Commit

Permalink
cmake : remove obsolete sycl compile flags (ggml-org#5581)
Browse files Browse the repository at this point in the history
* rm unwanted sycl compile options

* fix bug

* fix bug

* format fix
  • Loading branch information
abhilash1910 authored Feb 19, 2024
1 parent f53119c commit 13e2c77
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,6 @@ function(get_flags CCID CCVER)
if (CCVER VERSION_GREATER_EQUAL 8.1.0)
list(APPEND CXX_FLAGS -Wextra-semi)
endif()
elseif (CCID MATCHES "Intel")
if (NOT LLAMA_SYCL)
# enable max optimization level when using Intel compiler
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)
add_link_options(-fuse-ld=lld -static-intel)
endif()
endif()

set(GF_C_FLAGS ${C_FLAGS} PARENT_SCOPE)
Expand Down

0 comments on commit 13e2c77

Please sign in to comment.