[llvm] r233583 - [NVPTX] Associate a minimum PTX version for each SM architecture
Artem Belevich
tra at google.com
Thu Apr 2 10:55:43 PDT 2015
Hi,
On Mon, Mar 30, 2015 at 12:30 PM, Justin Holewinski <jholewinski at nvidia.com>
wrote:
> Author: jholewinski
> Date: Mon Mar 30 14:30:55 2015
> New Revision: 233583
>
> URL: http://llvm.org/viewvc/llvm-project?rev=233583&view=rev
> Log:
> [NVPTX] Associate a minimum PTX version for each SM architecture
>
> ...
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTX.td?rev=233583&r1=233582&r2=233583&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/NVPTX/NVPTX.td (original)
> +++ llvm/trunk/lib/Target/NVPTX/NVPTX.td Mon Mar 30 14:30:55 2015
> @@ -46,10 +46,6 @@ def SM53 : SubtargetFeature<"sm_53", "Sm
> "Target SM 5.3">;
>
> // PTX Versions
> -def PTX30 : SubtargetFeature<"ptx30", "PTXVersion", "30",
> - "Use PTX version 3.0">;
> -def PTX31 : SubtargetFeature<"ptx31", "PTXVersion", "31",
> - "Use PTX version 3.1">;
> def PTX32 : SubtargetFeature<"ptx32", "PTXVersion", "32",
> "Use PTX version 3.2">;
> def PTX40 : SubtargetFeature<"ptx40", "PTXVersion", "40",
> @@ -69,12 +65,12 @@ class Proc<string Name, list<SubtargetFe
> def : Proc<"sm_20", [SM20]>;
> def : Proc<"sm_21", [SM21]>;
> def : Proc<"sm_30", [SM30]>;
> -def : Proc<"sm_32", [SM32]>;
> +def : Proc<"sm_32", [SM32, PTX40]>;
> def : Proc<"sm_35", [SM35]>;
>
Does it mean that SM35/SM37 would still be using PTX3.2?
libdevice.compute_35.10.bc that ships with CUDA-7.0 uses
"rsqrt.approx.ftz.f64". That instruction was added in PTX4.0 which suggests
that SM35/37 may have to bumped to PTX 4.0, too.
--Artem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150402/1d9eb6ff/attachment.html>
More information about the llvm-commits
mailing list