Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
specx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRAMAS Berenger
specx
Commits
4f2adfa8
Commit
4f2adfa8
authored
7 months ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
Update cmake
parent
e9671084
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Benchmark/cholesky_gemm/CMakeLists.txt
+22
-6
22 additions, 6 deletions
Benchmark/cholesky_gemm/CMakeLists.txt
with
22 additions
and
6 deletions
Benchmark/cholesky_gemm/CMakeLists.txt
+
22
−
6
View file @
4f2adfa8
...
@@ -14,12 +14,28 @@ find_package(BLAS)
...
@@ -14,12 +14,28 @@ find_package(BLAS)
find_package
(
LAPACK
)
find_package
(
LAPACK
)
if
(
BLAS_FOUND AND LAPACK_FOUND
)
if
(
BLAS_FOUND AND LAPACK_FOUND
)
# If libs is related to MKL
# If libs are related to MKL
if
(
${
BLAS_LIBRARIES
}
MATCHES
"mkl"
)
if
(
"
${
BLAS_LIBRARIES
}
"
MATCHES
"mkl"
)
# We replace "intel_thread" by "sequential"
# Create new variables to store the modified lists
string
(
REPLACE
"intel_thread"
"sequential"
BLAS_LIBRARIES
${
BLAS_LIBRARIES
}
)
set
(
MODIFIED_BLAS_LIBRARIES
""
)
string
(
REPLACE
"intel_thread"
"sequential"
LAPACK_LIBRARIES
${
LAPACK_LIBRARIES
}
)
set
(
MODIFIED_LAPACK_LIBRARIES
""
)
endif
()
# Loop over each BLAS library and perform the replacement
foreach
(
lib
${
BLAS_LIBRARIES
}
)
string
(
REPLACE
"intel_thread"
"sequential"
modified_lib
${
lib
}
)
list
(
APPEND MODIFIED_BLAS_LIBRARIES
${
modified_lib
}
)
endforeach
()
# Loop over each LAPACK library and perform the replacement
foreach
(
lib
${
LAPACK_LIBRARIES
}
)
string
(
REPLACE
"intel_thread"
"sequential"
modified_lib
${
lib
}
)
list
(
APPEND MODIFIED_LAPACK_LIBRARIES
${
modified_lib
}
)
endforeach
()
# Replace original variables with the modified lists
set
(
BLAS_LIBRARIES
${
MODIFIED_BLAS_LIBRARIES
}
)
set
(
LAPACK_LIBRARIES
${
MODIFIED_LAPACK_LIBRARIES
}
)
endif
()
if
(
$ENV{VERBOSE}
)
if
(
$ENV{VERBOSE}
)
MESSAGE
(
STATUS
"Benchmark CHOLESKY_GEMM -- BLAS_LIBRARIES :
${
BLAS_LIBRARIES
}
"
)
MESSAGE
(
STATUS
"Benchmark CHOLESKY_GEMM -- BLAS_LIBRARIES :
${
BLAS_LIBRARIES
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment