Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Tests should not assume that feature are available if no compute arch…
Browse files Browse the repository at this point in the history
… is specified
  • Loading branch information
wmaxey committed Feb 10, 2022
1 parent 2fe968f commit 3e28816
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .upstream-tests/utils/libcudacxx/test/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,12 @@ def configure_compile_flags(self):
self.config.available_features.add("pre-sm-70")
if pre_sm_80:
self.config.available_features.add("pre-sm-80")
else : # Default assume that no features are available
self.config.available_features.add("pre-sm-32")
self.config.available_features.add("pre-sm-60")
self.config.available_features.add("pre-sm-80")
self.config.available_features.add("pre-sm-70")

def configure_default_compile_flags(self):
nvcc_host_compiler = self.get_lit_conf('nvcc_host_compiler')
if nvcc_host_compiler and self.cxx.type == 'nvcc':
Expand Down

0 comments on commit 3e28816

Please sign in to comment.