diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 813380be944..7ab114132c3 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -1501,7 +1501,6 @@ if(NOT INTERN_BUILD_MOBILE) endif() list(APPEND CUDA_NVCC_FLAGS ${TORCH_NVCC_FLAGS}) - list(APPEND CUDA_NVCC_FLAGS ${NVCC_FLAGS_EXTRA}) if(CMAKE_POSITION_INDEPENDENT_CODE AND NOT MSVC) list(APPEND CUDA_NVCC_FLAGS "-Xcompiler" "-fPIC") endif() diff --git a/test/run_test.py b/test/run_test.py index 7c3fd0fc98b..35a320d676e 100755 --- a/test/run_test.py +++ b/test/run_test.py @@ -217,7 +217,7 @@ def get_executable_command(options, allow_pytest): def run_test(test_module, test_directory, options, launcher_cmd=None, extra_unittest_args=None): - unittest_args = options.additional_unittest_args + unittest_args = options.additional_unittest_args.copy() if options.verbose: unittest_args.append('--verbose') if test_module in RUN_PARALLEL_BLOCKLIST: