]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cmake : remove obsolete sycl compile flags (#5581)
authorAbhilash Majumder <redacted>
Mon, 19 Feb 2024 09:15:18 +0000 (14:45 +0530)
committerGitHub <redacted>
Mon, 19 Feb 2024 09:15:18 +0000 (11:15 +0200)
* rm unwanted sycl compile options

* fix bug

* fix bug

* format fix

CMakeLists.txt

index f5e7f2980b04e388aa6e0ab59f21427d50910b6f..40a098d01d21b3e14731c5211bff61b00aa0d2cb 100644 (file)
@@ -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)