forked from tiermak/cuq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
33 lines (27 loc) · 987 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from conans import ConanFile, CMake
class Conan(ConanFile):
name = "cuq"
url = "https://github.com/biocad/cuq"
description = "CUDA multi-GPU concurrent tasks queue"
settings = "os", "build_type", "arch", "compiler", "CUDA"
generators = "cmake"
exports_sources = "*"
def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()
cmake.parallel = False
cmake.test()
def package(self):
cmake = CMake(self)
cmake.configure()
cmake.install()
def package_info(self):
self.cpp_info.libs = ["cuq"]
# users will be able to link statically with our library
# but this requires the following system libraries
self.cpp_info.system_libs = ["cudart", "nvidia-ml", "stdc++"]
self.cpp_info.libdirs.append("/usr/local/cuda/lib64")
def deploy(self):
self.copy("*", dst="include", src="include")
self.copy("*", dst="lib", src="lib")