Skip to content

Commit

Permalink
[HIPIFY][tests][fix] Exclude cusparse2rocsparse_11010_12000.cu from…
Browse files Browse the repository at this point in the history
… running against CUDA 11.1.x

[Reason]
cmake doesn't load lib VERSIONs, including CUSPARSE_VERSION, which equals 11200 for CUDA 11.1.0 and 11300 for CUDA 11.1.1.
Both CUDA 11.1.0 CUDA 11.1.1 have the same CUDA_VERSION 11010, and we can't distinguish them, thus exclude the `cusparse2rocsparse_11010_12000.cu` tests from both 11.1.0 and 11.1.1.
  • Loading branch information
emankov committed Jan 23, 2024
1 parent d1ea6fb commit 7ea7cca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ if config.cuda_version_major < 10 or (config.cuda_version_major == 10 and config
if config.cuda_version_major < 11 and sys.platform in ['win32']:
config.excludes.append('cusparse2rocsparse_10010_12000.cu')

if config.cuda_version_major < 11 or (config.cuda_version_major == 11 and config.cuda_version_minor < 1) or config.cuda_version_major >= 12:
# [NOTE] cmake doesn't load lib VERSIONs, including CUSPARSE_VERSION, which equals 11200 for CUDA 11.1.0 and 11300 for CUDA 11.1.1
# [NOTE] Both CUDA 11.1.0 CUDA 11.1.1 have the same CUDA_VERSION 11010, and we can't distinguish them, thus exclude the below tests from both 11.1.0 and 11.1.1
if config.cuda_version_major < 11 or (config.cuda_version_major == 11 and config.cuda_version_minor <= 1) or config.cuda_version_major >= 12:
config.excludes.append('cusparse2rocsparse_11010_12000.cu')

if config.cuda_version_major <= 10:
Expand Down

0 comments on commit 7ea7cca

Please sign in to comment.