Propagate the CUDA toolkit directory into the lit tests
Allows the tests to actually run... :D
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// RUN: hipify "%s" -o=%t --
|
||||
// RUN: hipify "%s" -o=%t -- %cuda_args
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
@@ -46,3 +46,5 @@ if obj_root is not None:
|
||||
|
||||
config.substitutions.append(("hipify", obj_root+"/hipify-clang"))
|
||||
|
||||
# Clang args for CUDA...
|
||||
config.substitutions.append(("%cuda_args", "-x cuda --cuda-path=%s --cuda-gpu-arch=sm_30" % config.cuda_root))
|
||||
|
||||
@@ -2,6 +2,7 @@ import sys
|
||||
|
||||
config.llvm_tools_dir = "@LLVM_TOOLS_BINARY_DIR@"
|
||||
config.obj_root = "@BINARY_DIR@"
|
||||
config.cuda_root = "@CUDA_TOOLKIT_ROOT_DIR@"
|
||||
|
||||
# Support substitution of the tools and libs dirs with user parameters. This is
|
||||
# used when we can't determine the tool dir at configuration time.
|
||||
|
||||
Reference in New Issue
Block a user