Skip to content

Commit

Permalink
Added Cuda ISA 7.5, ISA 7.6 and SM 8.7. (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ committed Mar 28, 2022
1 parent 40da1a3 commit 7dc8697
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Src/ILGPU/Backends/PTX/PTXCodeGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2018-2021 ILGPU Project
// Copyright (c) 2018-2022 ILGPU Project
// www.ilgpu.net
//
// File: PTXCodeGenerator.cs
Expand Down Expand Up @@ -40,6 +40,8 @@ public static readonly IImmutableSet<CudaInstructionSet>
SupportedInstructionSets = ImmutableSortedSet.Create(
Comparer<CudaInstructionSet>.Create((first, second) =>
second.CompareTo(first)),
CudaInstructionSet.ISA_76,
CudaInstructionSet.ISA_75,
CudaInstructionSet.ISA_74,
CudaInstructionSet.ISA_73,
CudaInstructionSet.ISA_72,
Expand Down
7 changes: 6 additions & 1 deletion Src/ILGPU/Runtime/Cuda/CudaArchitecture.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2021 ILGPU Project
// Copyright (c) 2021-2022 ILGPU Project
// www.ilgpu.net
//
// File: CudaArchitecture.cs
Expand Down Expand Up @@ -98,6 +98,11 @@ namespace ILGPU.Runtime.Cuda
/// </summary>
public static readonly CudaArchitecture SM_86 = new CudaArchitecture(8, 6);

/// <summary>
/// The 8.7 architecture.
/// </summary>
public static readonly CudaArchitecture SM_87 = new CudaArchitecture(8, 7);

#endregion

#region Instance
Expand Down
5 changes: 4 additions & 1 deletion Src/ILGPU/Runtime/Cuda/CudaDriverVersion.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2019-2021 ILGPU Project
// Copyright (c) 2019-2022 ILGPU Project
// www.ilgpu.net
//
// File: CudaDriverVersion.cs
Expand Down Expand Up @@ -257,6 +257,7 @@ private static readonly Dictionary<

{ CudaArchitecture.SM_80, CudaDriverVersion.FromMajorMinor(11, 0) },
{ CudaArchitecture.SM_86, CudaDriverVersion.FromMajorMinor(11, 1) },
{ CudaArchitecture.SM_87, CudaDriverVersion.FromMajorMinor(11, 4) },
};

/// <summary>
Expand Down Expand Up @@ -290,6 +291,8 @@ private static readonly Dictionary<
{ CudaInstructionSet.ISA_72, CudaDriverVersion.FromMajorMinor(11, 2) },
{ CudaInstructionSet.ISA_73, CudaDriverVersion.FromMajorMinor(11, 3) },
{ CudaInstructionSet.ISA_74, CudaDriverVersion.FromMajorMinor(11, 4) },
{ CudaInstructionSet.ISA_75, CudaDriverVersion.FromMajorMinor(11, 5) },
{ CudaInstructionSet.ISA_76, CudaDriverVersion.FromMajorMinor(11, 6) },
};

/// <summary>
Expand Down
12 changes: 11 additions & 1 deletion Src/ILGPU/Runtime/Cuda/CudaInstructionSet.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ---------------------------------------------------------------------------------------
// ILGPU
// Copyright (c) 2021 ILGPU Project
// Copyright (c) 2021-2022 ILGPU Project
// www.ilgpu.net
//
// File: CudaInstructionSet.cs
Expand Down Expand Up @@ -119,6 +119,16 @@ namespace ILGPU.Runtime.Cuda
/// </summary>
public static readonly CudaInstructionSet ISA_74 = new CudaInstructionSet(7, 4);

/// <summary>
/// The 7.5 ISA.
/// </summary>
public static readonly CudaInstructionSet ISA_75 = new CudaInstructionSet(7, 5);

/// <summary>
/// The 7.6 ISA.
/// </summary>
public static readonly CudaInstructionSet ISA_76 = new CudaInstructionSet(7, 6);

#endregion

#region Instance
Expand Down

0 comments on commit 7dc8697

Please sign in to comment.