Justin Fargnoli
9475f6af81
Reland "[NVPTX] Validate user-specified PTX version against SM version" ( #180116 )
...
Previous commit message:
>Previous commit message:
>
>> Original commit message:
>>
>>>When users explicitly specify a PTX version via -mattr=+ptxNN that's
insufficient for their target SM, we now emit a fatal error. Previously,
we silently upgraded the PTX version to the minimum required for the
target SM.
>>>
>>>When no SM or PTX version is specified, we now use PTX 3.2 (the
minimum for the default SM 3.0) instead of PTX 6.0.
>>
>>The following commits should fix the failures that arose when I
previously tried to land this commit:
>>
>>
>>9fc5fd0ad6
should address the llvm-nvptx*-nvidia-* build failures:
https://github.com/llvm/llvm-project/pull/174834#issuecomment-3742242651
>>
>>
>>600514a637
should address the MLIR failures
>
>The previous commit was reverted with
d23cb79ba4
because the
[mlir-nvidia](https://lab.llvm.org/buildbot/#/builders/138/builds/24797 )
and
[mlir-nvidia-gcc7](https://lab.llvm.org/buildbot/#/builders/116/builds/23929 )
Buildbots were failing.
>
>Those tests failed because MLIR's default SM was 5.0, which caused
NVPTX
to target PTX ISA v4.0, which did not support the intrinsics used in the
failing tests.
>
>243f011577
should address this by bumping MLIR's default SM to 7.5. Now, using
MLIR's new default SM, NVPTX
targets the PTX ISA v6.3, which supports the intrinsics used in the
failing tests.
---
The previous commit was reverted with
e9b578a4d77025e18318efedd0f3f3764338d859
[because](https://github.com/llvm/llvm-project/pull/179304#issuecomment-3856301333 )
the clang driver set the default PTX ISA version to v4.2 when no CUDA
installation is found. However, given our patch, we should not set a
default; instead, let the LLVM backend select the appropriate PTX ISA
version for the target SM.
2026-02-10 18:11:54 +00:00
..
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-04-09 14:21:12 -07:00
2025-05-10 08:26:26 -07:00
2025-01-20 09:09:22 -08:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-08-21 10:30:36 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-06-27 09:26:10 -07:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-28 10:41:46 -07:00
2026-02-04 16:15:49 -08:00
2026-02-04 16:15:49 -08:00
2026-02-04 16:15:49 -08:00
2026-02-04 16:15:49 -08:00
2025-11-24 09:27:25 +08:00
2026-02-04 16:15:49 -08:00
2025-09-02 10:42:25 -07:00
2026-02-04 16:15:49 -08:00
2025-09-02 10:42:25 -07:00
2025-12-19 05:53:49 -08:00
2025-11-20 12:13:46 -05:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-11-20 12:13:46 -05:00
2025-05-10 08:26:26 -07:00
2025-08-20 11:09:39 +05:30
2025-09-02 10:42:25 -07:00
2025-02-03 16:36:01 +00:00
2024-12-15 10:45:11 -08:00
2025-08-12 18:15:01 -07:00
2024-12-15 10:45:11 -08:00
2025-11-24 16:11:05 -08:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-11-20 12:13:46 -05:00
2025-09-30 11:44:34 +08:00
2025-08-25 22:11:18 +00:00
2025-06-17 09:00:18 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-07-28 10:41:51 -07:00
2025-07-28 10:41:51 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-06-25 18:46:39 -07:00
2025-09-02 10:42:25 -07:00
2026-02-10 18:11:54 +00:00
2025-09-02 10:42:25 -07:00
2026-02-04 08:50:55 -08:00
2026-02-04 08:50:55 -08:00
2026-02-04 08:50:55 -08:00
2025-11-04 17:54:43 +00:00
2025-09-02 10:42:25 -07:00
2026-02-04 08:50:55 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-01-08 09:27:40 -08:00
2025-09-25 10:23:56 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-06-27 09:26:10 -07:00
2024-12-15 10:45:11 -08:00
2025-06-25 11:42:21 -07:00
2025-09-02 10:42:25 -07:00
2025-06-27 09:26:10 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-11-19 13:03:33 +05:30
2025-11-19 13:03:33 +05:30
2025-11-18 09:29:10 +05:30
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-02-10 18:11:54 +00:00
2026-02-10 18:11:54 +00:00
2025-05-21 11:33:57 -07:00
2025-11-13 15:33:46 +05:30
2025-09-02 10:42:25 -07:00
2025-10-31 18:54:43 +05:30
2025-10-31 18:54:43 +05:30
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-10-31 18:54:43 +05:30
2025-10-31 18:54:43 +05:30
2025-10-31 18:54:43 +05:30
2025-06-12 15:20:39 +05:30
2025-10-31 18:54:43 +05:30
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-19 12:27:46 -07:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2026-01-22 18:26:55 +00:00
2025-06-25 18:46:39 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2026-02-04 16:15:49 -08:00
2024-12-15 10:45:11 -08:00
2026-02-05 13:31:26 +00:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-05-13 09:56:41 -07:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2026-01-22 21:28:07 +01:00
2025-05-10 08:26:26 -07:00
2025-08-19 12:27:46 -07:00
2025-09-02 10:42:25 -07:00
2026-01-20 17:56:55 +05:30
2025-11-01 17:51:17 +00:00
2025-12-17 22:03:01 +01:00
2026-01-20 17:56:55 +05:30
2026-01-20 17:56:55 +05:30
2025-12-17 22:03:01 +01:00
2026-02-10 18:11:54 +00:00
2025-09-02 10:42:25 -07:00
2025-10-02 13:13:36 -07:00
2026-02-05 13:31:26 +00:00
2025-09-02 10:42:25 -07:00
2026-02-05 13:31:26 +00:00
2024-12-15 10:45:11 -08:00
2026-02-04 08:50:55 -08:00
2026-02-04 08:50:55 -08:00
2025-11-19 06:50:54 +05:30
2025-11-19 06:50:54 +05:30
2025-11-19 06:50:54 +05:30
2025-09-02 10:42:25 -07:00
2025-11-19 06:50:54 +05:30
2026-02-04 08:50:55 -08:00
2026-02-10 18:11:54 +00:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2026-02-10 18:11:54 +00:00
2025-10-22 15:40:31 +08:00
2025-09-02 10:42:25 -07:00
2026-01-20 17:56:55 +05:30
2026-02-06 13:32:12 +08:00
2025-08-14 08:42:29 +08:00
2025-06-27 09:26:10 -07:00
2025-08-19 12:27:46 -07:00
2025-09-22 14:01:14 +01:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-19 12:27:46 -07:00
2025-06-25 11:42:21 -07:00
2025-12-15 16:28:23 +05:30
2025-09-02 10:42:25 -07:00
2025-05-21 11:33:57 -07:00
2025-12-15 16:28:23 +05:30
2025-05-21 11:33:57 -07:00
2025-08-08 11:09:34 +02:00
2025-08-14 08:42:29 +08:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-04-17 13:19:48 -07:00
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-03-12 09:20:48 -07:00
2025-05-10 08:26:26 -07:00
2025-01-07 18:24:50 -08:00
2025-06-17 09:00:18 -07:00
2025-01-07 18:24:50 -08:00
2025-06-27 09:26:10 -07:00
2025-05-21 11:33:57 -07:00
2025-06-25 18:46:39 -07:00
2025-01-07 18:24:50 -08:00
2025-11-20 12:13:46 -05:00
2025-05-10 08:26:26 -07:00
2025-08-25 09:15:44 -07:00
2025-11-20 12:13:46 -05:00
2025-09-02 10:42:25 -07:00
2025-10-16 13:25:34 -07:00
2025-08-19 12:27:46 -07:00
2024-12-15 10:45:11 -08:00
2025-06-27 09:26:10 -07:00
2025-07-28 10:41:51 -07:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2026-02-10 18:11:54 +00:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-05-29 12:24:31 -07:00
2024-12-15 10:45:11 -08:00
2025-10-29 09:46:01 -07:00
2025-05-05 16:22:25 -07:00
2025-09-02 10:42:25 -07:00
2025-12-21 19:29:24 +05:30
2025-09-02 10:42:25 -07:00
2025-12-21 19:29:24 +05:30
2024-12-15 10:45:11 -08:00
2025-12-12 11:36:15 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-19 12:27:46 -07:00
2025-09-02 10:42:25 -07:00
2025-11-25 10:26:15 -06:00
2025-07-13 15:06:53 -07:00
2025-08-21 10:30:36 -07:00
2025-06-27 09:26:10 -07:00
2025-06-27 09:26:10 -07:00
2025-05-10 08:26:26 -07:00
2026-02-04 16:15:49 -08:00
2025-05-10 08:26:26 -07:00
2025-09-26 13:52:11 -07:00
2025-09-26 13:52:11 -07:00
2025-08-28 14:43:54 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-26 13:52:11 -07:00
2025-07-13 15:06:53 -07:00
2025-08-21 10:30:36 -07:00
2026-01-22 18:26:55 +00:00
2025-09-02 10:42:25 -07:00
2026-02-04 13:35:13 +01:00
2025-06-25 18:46:39 -07:00
2025-08-19 11:13:57 -05:00
2025-08-27 16:32:28 -07:00
2025-08-19 11:13:57 -05:00
2025-11-20 12:13:46 -05:00
2025-10-08 18:13:48 -05:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2025-11-25 10:26:15 -06:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-12-08 15:57:17 -06:00
2025-11-25 12:27:31 -06:00
2025-11-25 12:27:31 -06:00
2025-11-25 12:27:31 -06:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-02-05 13:31:26 +00:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-02-05 13:31:26 +00:00
2024-12-15 10:45:11 -08:00
2025-02-26 08:45:27 -08:00
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-10-27 14:23:40 +05:30
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-08-25 09:15:44 -07:00
2025-08-19 12:27:46 -07:00
2025-12-15 16:28:23 +05:30
2024-12-15 10:45:11 -08:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-08-25 09:15:44 -07:00
2025-06-25 11:42:21 -07:00
2025-09-02 10:42:25 -07:00
2025-03-23 14:53:00 -07:00
2025-08-21 10:30:36 -07:00
2026-01-18 07:12:17 +01:00
2025-05-22 19:38:10 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-03-25 13:46:16 -07:00
2025-04-22 15:14:39 -07:00
2025-12-09 22:39:11 +05:30
2026-02-05 13:31:26 +00:00
2025-05-07 16:59:33 -07:00
2026-02-10 18:11:54 +00:00
2025-01-21 13:25:04 -06:00
2025-01-21 13:25:04 -06:00
2025-01-07 14:45:03 -06:00
2025-04-10 18:33:37 -07:00
2025-01-07 14:45:03 -06:00
2025-11-19 06:50:54 +05:30
2025-09-02 10:42:25 -07:00
2025-12-03 16:21:47 +01:00
2025-06-25 18:46:39 -07:00
2025-08-21 10:30:36 -07:00
2025-09-02 10:42:25 -07:00
2025-12-08 19:35:02 -06:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2026-02-03 07:49:58 +01:00
2025-07-01 14:55:04 -07:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-24 15:29:41 +05:30
2025-09-24 15:29:41 +05:30
2025-07-17 11:10:23 -07:00
2025-06-12 23:09:55 -07:00
2025-06-27 09:26:10 -07:00
2025-11-25 10:26:15 -06:00
2026-02-10 18:11:54 +00:00
2025-05-21 11:33:57 -07:00
2025-08-21 10:30:36 -07:00
2025-09-26 13:52:11 -07:00
2026-01-08 06:34:29 +05:30
2025-09-02 10:42:25 -07:00
2025-01-07 18:24:50 -08:00
2025-01-07 18:24:50 -08:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2026-02-05 13:31:26 +00:00
2026-02-10 18:11:54 +00:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2025-05-10 08:26:26 -07:00
2026-01-08 06:34:29 +05:30
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-05-21 11:33:57 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-05-21 11:33:57 -07:00
2025-12-17 12:13:36 -08:00
2025-01-14 21:28:29 -08:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2026-02-10 18:11:54 +00:00
2026-02-05 13:31:26 +00:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-01-12 10:01:57 +01:00
2025-09-02 10:42:25 -07:00
2025-05-10 08:26:26 -07:00
2025-07-28 10:41:51 -07:00
2025-08-19 12:27:46 -07:00
2025-05-21 11:33:57 -07:00
2026-02-10 18:11:54 +00:00
2025-08-19 12:27:46 -07:00
2025-02-14 18:45:14 -08:00
2025-12-03 15:55:59 +00:00
2025-12-12 11:36:15 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-05-21 11:33:57 -07:00
2025-09-02 10:42:25 -07:00
2025-10-13 19:26:32 +05:30
2025-10-13 19:26:32 +05:30
2025-10-13 19:26:32 +05:30
2025-10-13 19:26:32 +05:30
2026-01-19 14:36:55 +05:30
2025-10-13 19:26:32 +05:30
2025-09-24 06:35:35 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2025-09-24 06:35:35 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2025-09-24 06:35:35 +05:30
2025-09-24 06:35:35 +05:30
2026-01-08 06:34:29 +05:30
2025-11-17 09:00:40 -08:00
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2025-10-13 19:26:32 +05:30
2025-10-13 19:26:32 +05:30
2026-01-01 11:19:26 +05:30
2026-01-02 16:34:06 +05:30
2026-01-01 12:30:01 -05:00
2026-01-02 16:34:06 +05:30
2025-08-19 12:27:46 -07:00
2025-05-21 11:33:57 -07:00
2025-08-19 12:27:46 -07:00
2025-11-19 06:50:54 +05:30
2025-07-09 11:16:48 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-19 12:27:46 -07:00
2025-06-24 16:02:13 -04:00
2025-09-02 10:42:25 -07:00
2025-02-06 11:17:55 -08:00
2025-08-27 16:32:28 -07:00
2025-12-08 19:35:02 -06:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-08-08 11:09:34 +02:00
2025-05-10 08:26:26 -07:00
2025-08-21 10:30:36 -07:00
2025-07-11 11:50:50 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-08-25 22:11:18 +00:00
2025-06-27 09:26:10 -07:00
2025-09-02 10:42:25 -07:00
2025-08-21 10:30:36 -07:00
2025-05-10 08:26:26 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2024-12-15 10:45:11 -08:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2025-09-02 10:42:25 -07:00
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2026-01-08 06:34:29 +05:30
2024-12-15 10:45:11 -08:00