Skip to content

Commit 92cd5db

Browse files
committed
remove ArrayFire dependency. release v0.10.5 patch.
1 parent 47d0643 commit 92cd5db

4 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/NumSharp.Core/Backends/BackendFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public static ITensorEngine GetEngine(BackendType backendType = BackendType.Defa
2222
case BackendType.MKL:
2323
case BackendType.SIMD:
2424
return cache[backendType] = new SimdEngine();
25-
case BackendType.ArrayFire:
26-
return cache[backendType] = new ArrayFireEngine();
25+
//case BackendType.ArrayFire:
26+
//return cache[backendType] = new ArrayFireEngine();
2727
default:
2828
throw new NotImplementedException($"Storage {backendType} not found.");
2929
}

src/NumSharp.Core/Backends/BackendType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ public enum BackendType
2020
/// </summary>
2121
SIMD = 3,
2222

23-
ArrayFire = 4
23+
// ArrayFire = 4
2424
}
2525
}

src/NumSharp.Core/NumSharp.Core.csproj

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
8: Add np.expand_dims.
2323
9: Add nd.negative/ nd.positive.
2424
10: Add nd.negate.
25-
11: Fix mgrid.</PackageReleaseNotes>
26-
<AssemblyVersion>0.10.4.0</AssemblyVersion>
27-
<FileVersion>0.10.4.0</FileVersion>
25+
11: Fix mgrid.
26+
12: Remove ArrayFire dependency.</PackageReleaseNotes>
27+
<AssemblyVersion>0.10.5.0</AssemblyVersion>
28+
<FileVersion>0.10.5.0</FileVersion>
2829
<RepositoryType>git</RepositoryType>
2930
<PackageTags>NumPy, NumSharp, MachineLearning, Math, Scientific, Numeric</PackageTags>
3031
<PackageLicenseUrl></PackageLicenseUrl>
@@ -34,7 +35,7 @@
3435
<Product>NumSharp</Product>
3536
<Company>SciSharp STACK</Company>
3637
<RootNamespace>NumSharp</RootNamespace>
37-
<Version>0.10.4</Version>
38+
<Version>0.10.5</Version>
3839
<Version Condition=" '$(VersionSuffix)' != '' ">$(Version)-$(VersionSuffix)</Version>
3940
<SignAssembly>false</SignAssembly>
4041
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
@@ -74,6 +75,13 @@
7475
</ItemGroup>
7576

7677
<ItemGroup>
78+
<Compile Remove="Backends\ArrayFire\**" />
79+
<EmbeddedResource Remove="Backends\ArrayFire\**" />
80+
<None Remove="Backends\ArrayFire\**" />
81+
</ItemGroup>
82+
83+
<ItemGroup>
84+
<Compile Remove="Casting\Implicit\NDArray.Implicit.ArrayFire.cs" />
7785
<Compile Remove="Operations\NdArray.ElementsWise.cs" />
7886
</ItemGroup>
7987

@@ -86,7 +94,6 @@
8694
</Target>
8795

8896
<ItemGroup>
89-
<PackageReference Include="ArrayFire" Version="0.0.2" />
9097
<PackageReference Include="System.Memory" Version="4.5.3" />
9198
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
9299
</ItemGroup>

src/NumSharp.Python/numpy.array.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using NumSharp;
33
using System.Linq;
44
using System.Collections.Generic;
5-
using NumSharp;
65

76
public static partial class numpy
87
{

0 commit comments

Comments
 (0)