Skip to content

Commit

Permalink
Added Velocity accelerator AcceleratorType enumeration and extension …
Browse files Browse the repository at this point in the history
…providers.
  • Loading branch information
m4rs-mt committed Nov 26, 2022
1 parent 3fc9810 commit 6ac1306
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Src/ILGPU/Runtime/Accelerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public enum AcceleratorType : int
/// </summary>
CPU,

/// <summary>
/// Represents a SIMD CPU performance accelerator.
/// </summary>
Velocity,

/// <summary>
/// Represents a Cuda accelerator.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions Src/ILGPU/Runtime/IAcceleratorExtensionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using ILGPU.Runtime.CPU;
using ILGPU.Runtime.Cuda;
using ILGPU.Runtime.OpenCL;
using ILGPU.Runtime.Velocity;

namespace ILGPU.Runtime
{
Expand All @@ -28,6 +29,13 @@ public interface IAcceleratorExtensionProvider<TExtension>
/// <returns>The created extension.</returns>
TExtension CreateCPUExtension(CPUAccelerator accelerator);

/// <summary>
/// Creates an extension for a Velocity accelerator.
/// </summary>
/// <param name="accelerator">The target accelerator.</param>
/// <returns>The created extension.</returns>
TExtension CreateVelocityExtension(VelocityAccelerator accelerator);

/// <summary>
/// Creates an extension for a Cuda accelerator.
/// </summary>
Expand Down

0 comments on commit 6ac1306

Please sign in to comment.