[arrow] added cuda variant (#18715)

This commit is contained in:
Jen Herting 2020-09-17 16:26:51 -04:00 committed by GitHub
parent 4b41d56bc3
commit e329e13f32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@
from spack import *
class Arrow(CMakePackage):
class Arrow(CMakePackage, CudaPackage):
"""A cross-language development platform for in-memory data.
This package contains the C++ bindings.
@ -59,6 +59,8 @@ def cmake_args(self):
"-DARROW_WITH_BROTLI=OFF",
"-DARROW_WITH_LZ4=OFF",
]
if self.spec.satisfies('+cuda'):
args.append('-DARROW_CUDA:BOOL=ON')
if self.spec.satisfies('+python'):
args.append("-DARROW_PYTHON:BOOL=ON")
if self.spec.satisfies('+parquet'):