Add Vector type in SPMD to total of load vector size * lane width of number into memory for simd calculation.
This commit is contained in:
13
Misaki.HighPerformance.Mathematics.SPMD/Templates/Vector3.tt
Normal file
13
Misaki.HighPerformance.Mathematics.SPMD/Templates/Vector3.tt
Normal file
@@ -0,0 +1,13 @@
|
||||
<#@ template debug="false" hostspecific="false" language="C#" #>
|
||||
<#@ assembly name="System.Core" #>
|
||||
<#@ include file="Vector{T}Helper.ttinclude" #>
|
||||
<#@ output extension=".gen.cs" #>
|
||||
<#
|
||||
var code = GenerateVectorType(3);
|
||||
#>
|
||||
using System.Diagnostics;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Misaki.HighPerformance.Mathematics.SPMD;
|
||||
<#= code #>
|
||||
Reference in New Issue
Block a user