Skip to content

Commit 60b422a

Browse files
Published 0.2.0
1 parent c7687bd commit 60b422a

File tree

4 files changed

+22
-8
lines changed

4 files changed

+22
-8
lines changed

Examples/SuperchargedArray.Testing/PerfTest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PerfTest
1212
{
1313
public void Run()
1414
{
15-
int count = 30000000;
15+
int count = 10000000;
1616
Random rnd = new Random();
1717

1818
//Create variable A with random values
@@ -88,12 +88,13 @@ public void RunArrayAccelerated(int count, SuperArray a, SuperArray b, int devic
8888
sw.Stop();
8989

9090
Console.WriteLine("With Accelerator (in ms): " + sw.ElapsedMilliseconds);
91-
Accelerator.Dispose();
9291
}
9392
catch(Exception ex)
9493
{
9594
Console.WriteLine("Error: " + ex.Message);
9695
}
96+
97+
Accelerator.Dispose();
9798
}
9899
}
99100
}

SuperchargedArray/Ops/BaseOps.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public SuperArray Repeat(SuperArray x, int reps)
9797
/// <param name="lhs">The LHS.</param>
9898
/// <param name="rhs">The RHS.</param>
9999
/// <returns></returns>
100-
public ValueTuple<SuperArray, SuperArray> BroadcastTensor(SuperArray lhs, SuperArray rhs)
100+
public Tuple<SuperArray, SuperArray> BroadcastTensor(SuperArray lhs, SuperArray rhs)
101101
{
102102
if (!lhs.IsSameSizeAs(rhs))
103103
{
@@ -154,7 +154,7 @@ public ValueTuple<SuperArray, SuperArray> BroadcastTensor(SuperArray lhs, SuperA
154154
}
155155
}
156156

157-
return (lhs, rhs);
157+
return new Tuple<SuperArray, SuperArray>(lhs, rhs);
158158
}
159159
}
160160
}

SuperchargedArray/SuperchargedArray.csproj

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>net46;netstandard2.0</TargetFrameworks>
55
<Platforms>AnyCPU;x64</Platforms>
66
<Version>0.2.0</Version>
77
<Authors>Deepak Batini</Authors>
88
<Company>Tech-Quantum</Company>
99
<Description>An extended version of the Array to accelerate operation, easy to use, multi dimensional. With SuperchargedArray.Accelerated namespace you will unlock SIMD potential to run the Array operation on any hardware like Intel CPU/GPU, NVIDIA, AMD etc.</Description>
10-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1110
<PackageProjectUrl>https://github.com/tech-quantum/SuperchargedArray</PackageProjectUrl>
1211
<RepositoryUrl>https://github.com/tech-quantum/SuperchargedArray</RepositoryUrl>
1312
<RepositoryType>git</RepositoryType>
1413
<PackageTags>array-manipulations, array, fast array, ndarray, multi dimension array, tensor</PackageTags>
1514
<PackageIconUrl>https://raw.githubusercontent.com/tech-quantum/Arithmetica/master/icon128.png</PackageIconUrl>
1615
<Title>SuperchargedArray</Title>
1716
<PackageLicenseUrl>https://raw.githubusercontent.com/tech-quantum/SuperchargedArray/master/LICENSE</PackageLicenseUrl>
17+
<Product>Supercharged Array</Product>
1818
</PropertyGroup>
1919

2020
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
2121
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
22-
<DefineConstants>TRACE;DEBUG;NETSTANDARD;NETSTANDARD2_0;WIN</DefineConstants>
22+
<DefineConstants>TRACE;DEBUG;NETSTANDARD;NETSTANDARD2_0;</DefineConstants>
2323
</PropertyGroup>
2424

2525
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -29,8 +29,9 @@
2929

3030
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
3131
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
32-
<DefineConstants>TRACE;RELEASE;NETSTANDARD;NETSTANDARD2_0;OSX</DefineConstants>
32+
<DefineConstants>TRACE;RELEASE;NETSTANDARD;NETSTANDARD2_0;</DefineConstants>
3333
<DebugType>portable</DebugType>
34+
<Optimize>false</Optimize>
3435
</PropertyGroup>
3536

3637
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -63,4 +64,10 @@
6364
</EmbeddedResource>
6465
</ItemGroup>
6566

67+
<ItemGroup>
68+
<None Update="SuperchargedArray.dll.config">
69+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
70+
</None>
71+
</ItemGroup>
72+
6673
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<dllmap os="linux" dll="OpenCL.dll" target="libOpenCL.so"/>
4+
<dllmap os="osx" dll="OpenCL.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL" />
5+
<dllmap os="darwin" dll="OpenCL.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL" />
6+
</configuration>

0 commit comments

Comments
 (0)