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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Cpuinfo(CMakePackage):
"""cpuinfo is a library to detect essential
for performance optimization information about host CPU."""
homepage = "https://github.com/Maratyszcza/cpuinfo/"
git = "https://github.com/Maratyszcza/cpuinfo.git"
version('master', branch='master')
version('2020-12-17', commit='5916273f79a21551890fd3d56fc5375a78d1598d') # py-torch@1.8:1.9
version('2020-06-11', commit='63b254577ed77a8004a9be6ac707f3dccc4e1fd9') # py-torch@1.6:1.7
version('2020-01-21', commit='0e6bde92b343c5fbcfe34ecd41abf9515d54b4a7') # py-torch@1.5
version('2019-01-17', commit='89fe1695edf9ee14c22f815f24bac45577a4f135') # py-torch@1.0.1:1.4
version('2018-10-05', commit='c342292afb040c868849bc15e96ab894dceba2bc') # py-torch@1.0.0
version('2018-05-13', commit='1e6c8c99d27f2b5eb9d2e6231055c6a4115b85e5') # py-torch@0.4.1
version('2018-04-04', commit='831dc28341b5f20d13e840caf87eaba644d82643') # py-torch@:0.4.0
depends_on('cmake@3.5:', type='build')
depends_on('ninja', type='build')
resource(
name='googletest',
url='https://github.com/google/googletest/archive/release-1.10.0.zip',
sha256='94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91',
destination='deps',
placement='googletest',
)
resource(
name='googlebenchmark',
url='https://github.com/google/benchmark/archive/v1.2.0.zip',
sha256='cc463b28cb3701a35c0855fbcefb75b29068443f1952b64dd5f4f669272e95ea',
destination='deps',
placement='googlebenchmark',
)
generator = 'Ninja'
def cmake_args(self):
return [
self.define('GOOGLETEST_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'googletest')),
self.define('GOOGLEBENCHMARK_SOURCE_DIR',
join_path(self.stage.source_path, 'deps', 'googlebenchmark')),
]
|