Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Chameleon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
835c7d62
Commit
835c7d62
authored
Apr 28, 2015
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make cublas available if found when CHAMELEON_USE_CUDA is ON
parent
d01cef39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
CMakeLists.txt
CMakeLists.txt
+8
-5
No files found.
CMakeLists.txt
View file @
835c7d62
...
...
@@ -410,6 +410,13 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
endif
()
set
(
CMAKE_REQUIRED_INCLUDES
"
${
saved_include
}
"
)
set
(
CMAKE_REQUIRED_LIBRARIES
"
${
saved_libs
}
"
)
# Add cublas if found
if
(
CUDA_CUBLAS_LIBRARIES
)
message
(
"--
${
Blue
}
Add definition CHAMELEON_USE_CUBLAS"
" - Use GPU kernels from cuBLAS
${
ColourReset
}
"
)
add_definitions
(
-DCHAMELEON_USE_CUBLAS
)
list
(
APPEND EXTRA_LIBRARIES
${
CUDA_CUBLAS_LIBRARIES
}
)
endif
()
#FindHeader(CUDA cublas_v2.h)
#if(CUDA_cublas_v2.h_DIRS)
#add_definitions(-DCHAMELEON_USE_CUBLAS_V2)
...
...
@@ -424,13 +431,9 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
set
(
CHAMELEON_MAGMA_VERSION
"1.4"
CACHE STRING
"oldest MAGMA version desired"
)
find_package
(
MAGMA
${
CHAMELEON_MAGMA_VERSION
}
)
if
(
MAGMA_FOUND
)
message
(
"--
${
Blue
}
Add definition CHAMELEON_USE_CUBLAS"
" - Use GPU kernels from cuBLAS
${
ColourReset
}
"
)
add_definitions
(
-DCHAMELEON_USE_CUBLAS
)
message
(
"--
${
Blue
}
Add definition CHAMELEON_USE_MAGMA"
" - Use GPU kernels from MAGMA
${
ColourReset
}
"
)
add_definitions
(
-DCHAMELEON_USE_MAGMA
)
list
(
APPEND EXTRA_LIBRARIES
${
CUDA_CUBLAS_LIBRARIES
}
)
include_directories
(
${
MAGMA_INCLUDE_DIRS
}
)
if
(
MAGMA_LIBRARY_DIRS
)
# the RPATH to be used when installing
...
...
@@ -711,7 +714,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
endif
()
list
(
REMOVE_DUPLICATES CMAKE_EXE_LINKER_FLAGS
)
string
(
REPLACE
";"
""
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
"
)
string
(
REPLACE
";"
"
"
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
"
)
# Add define for Fortran Mangling (should be defined somewhere else)
# ------------------------------------------------------------------
...
...
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