Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
LLama_fastertransformer
Commits
d676654e
Commit
d676654e
authored
May 24, 2024
by
zhuwenwen
Browse files
Update CMakeLists.txt
parent
cdd4dc9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
CMakeLists.txt
+4
-4
No files found.
CMakeLists.txt
View file @
d676654e
...
@@ -16,10 +16,10 @@ project(FasterTransformer LANGUAGES CXX CUDA)
...
@@ -16,10 +16,10 @@ project(FasterTransformer LANGUAGES CXX CUDA)
find_package
(
CUDA 10.2 REQUIRED
)
find_package
(
CUDA 10.2 REQUIRED
)
if
(
${
CUDA_VERSION_MAJOR
}
VERSION_GREATER_EQUAL
"11"
)
#
if(${CUDA_VERSION_MAJOR} VERSION_GREATER_EQUAL "11")
add_definitions
(
"-DENABLE_BF16"
)
#
add_definitions("-DENABLE_BF16")
message
(
"CUDA_VERSION
${
CUDA_VERSION_MAJOR
}
.
${
CUDA_VERSION_MINOR
}
is greater or equal than 11.0, enable -DENABLE_BF16 flag"
)
#
message("CUDA_VERSION ${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} is greater or equal than 11.0, enable -DENABLE_BF16 flag")
endif
()
#
endif()
if
((
${
CUDA_VERSION_MAJOR
}
VERSION_GREATER_EQUAL
"11"
AND
${
CUDA_VERSION_MINOR
}
VERSION_GREATER_EQUAL
"8"
)
OR
(
${
CUDA_VERSION_MAJOR
}
VERSION_GREATER_EQUAL
"12"
))
if
((
${
CUDA_VERSION_MAJOR
}
VERSION_GREATER_EQUAL
"11"
AND
${
CUDA_VERSION_MINOR
}
VERSION_GREATER_EQUAL
"8"
)
OR
(
${
CUDA_VERSION_MAJOR
}
VERSION_GREATER_EQUAL
"12"
))
add_definitions
(
"-DENABLE_FP8"
)
add_definitions
(
"-DENABLE_FP8"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment