From 7c630aac80d6326bd5dd569bce343e386123fdac Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Thu, 8 Dec 2011 19:16:43 +0000 Subject: Scons/CUDA * Added missing bitness info to the nvcc_flags. This makes sure that the nvcc compiler builds the correct cubins. --- SConstruct | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index fd99933e976..0bd7dc70446 100644 --- a/SConstruct +++ b/SConstruct @@ -119,6 +119,12 @@ tempbitness = int(B.arguments.get('BF_BITNESS', bitness)) # default to bitness f if tempbitness in (32, 64): # only set if 32 or 64 has been given bitness = int(tempbitness) +if bitness: + B.bitness = bitness +else: + B.bitness = tempbitness + + # first check cmdline for toolset and we create env to work on quickie = B.arguments.get('BF_QUICK', None) quickdebug = B.arguments.get('BF_QUICKDEBUG', None) -- cgit v1.2.3