Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Install tools
run: dotnet tool restore
- name: Build and Test
run: dotnet test -c Release
- name: Pack
run: dotnet pack -c Release
- name: Build docs
run: dotnet fsdocs build --properties Configuration=Release
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages
force_orphan: true
- name: Publish NuGets (if this version not published before)
run: dotnet nuget push src/SIMDArray/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_ORG_TOKEN_2022 }} --skip-duplicate

# NUGET_ORG_TOKEN_2022 is listed in "Repository secrets" in https://github.com/fsprojects/SIMDArray/settings/secrets/actions
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,8 @@ docs/content/license.md
docs/content/release-notes.md
.fake
docs/tools/FSharp.Formatting.svclog
.idea/
.idea/

/.fsdocs
/.config
/output
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<Project>
<Import Project="version.props" />

</Project>
25 changes: 12 additions & 13 deletions docs/content/index.fsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
(*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use
// This block of code is omitted in the generated HTML documentation. Use
// it to define helpers that you do not want to show in the documentation.
#r "System.Numerics"
#r @"../../bin/SIMDArray/SIMDArray.dll"
#r @"../../bin/SIMDArray/System.Numerics.Vectors.dll"
#I "../../src/SIMDArray/bin/Release/netstandard2.1"
#r "SIMDArray.dll"

(**
SIMDArray
Expand All @@ -30,7 +29,7 @@ This example demonstrates using a function defined in this sample library.
*)

let inline testMap (array:'T[]) =
let a = array |> Array.SIMD.map (fun x -> x*x)
let a = array |> Array.SIMD.map (fun x -> x*x) (fun x -> x*x)
let b = array |> Array.map (fun x -> x*x)
()

Expand All @@ -41,27 +40,27 @@ Some more info
Samples & documentation
-----------------------

The library comes with comprehensible documentation.
It can include tutorials automatically generated from `*.fsx` files in [the content folder][content].
The library comes with comprehensible documentation.
It can include tutorials automatically generated from `*.fsx` files in [the content folder][content].
The API reference is automatically generated from Markdown comments in the library implementation.

* [Tutorial](tutorial.html) contains a further explanation of this sample library.

* [API Reference](reference/index.html) contains automatically generated documentation for all types, modules
and functions in the library. This includes additional brief samples on using most of the
functions.

Contributing and copyright
--------------------------

The project is hosted on [GitHub][gh] where you can [report issues][issues], fork
the project and submit pull requests. If you're adding a new public API, please also
The project is hosted on [GitHub][gh] where you can [report issues][issues], fork
the project and submit pull requests. If you're adding a new public API, please also
consider adding [samples][content] that can be turned into a documentation. You might
also want to read the [library design notes][readme] to understand how it works.

The library is available under Public Domain license, which allows modification and
redistribution for both commercial and non-commercial purposes. For more information see the
[License file][license] in the GitHub repository.
The library is available under Public Domain license, which allows modification and
redistribution for both commercial and non-commercial purposes. For more information see the
[License file][license] in the GitHub repository.

[content]: https://github.com/fsprojects/SIMDArray/tree/master/docs/content
[gh]: https://github.com/fsprojects/SIMDArray
Expand Down
10 changes: 4 additions & 6 deletions docs/content/tutorial.fsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
(*** hide ***)
// This block of code is omitted in the generated HTML documentation. Use
// This block of code is omitted in the generated HTML documentation. Use
// it to define helpers that you do not want to show in the documentation.
#r "System.Numerics"
#r @"../../bin/SIMDArray/SIMDArray.dll"
#r @"../../bin/SIMDArray/System.Numerics.Vectors.dll"

#I "../../src/SIMDArray/bin/Release/netstandard2.1"
#r "SIMDArray.dll"

(**
Introducing your project
Expand All @@ -15,7 +13,7 @@ Say more
*)

let inline testMap (array:'T[]) =
let a = array |> Array.SIMD.map (fun x -> x*x)
let a = array |> Array.SIMD.map (fun x -> x*x) (fun x -> x*x)
let b = array |> Array.map (fun x -> x*x)
()

Expand Down
145 changes: 0 additions & 145 deletions docs/tools/generate.fsx

This file was deleted.

58 changes: 0 additions & 58 deletions docs/tools/templates/template.cshtml

This file was deleted.

16 changes: 0 additions & 16 deletions src/SIMDArray/AssemblyInfo.fs

This file was deleted.

12 changes: 11 additions & 1 deletion src/SIMDArray/SIMDArray.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,20 @@
<SchemaVersion>2.0</SchemaVersion>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<ProjectGuid>aed427e4-ce8c-47fc-8918-2bac5d4d3d35</ProjectGuid>
<Authors>Jack Mott, delneg</Authors>
<Summary></Summary>
<Description>SIMD and other Performance enhanced Array operations for F#</Description>
<PackageProjectUrl>https://github.com/fsprojects/SIMDArray</PackageProjectUrl>
<PackageTags>F#;SIMD</PackageTags>
<IncludeSymbols>true</IncludeSymbols>
<RepositoryUrl>https://github.com/fsprojects/SIMDArray</RepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryType>git</RepositoryType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<EnableSourceLink>true</EnableSourceLink>
<WarningLevel>5</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.fs" />
<Compile Include="SIMDArrayUtils.fs" />
<Compile Include="PerformanceArray.fs" />
<Compile Include="SIMDArray.fs" />
Expand Down
2 changes: 1 addition & 1 deletion src/SIMDArray/SIMDArrayParrallel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ let inline mapi
/// </summary>
/// <param name="f">The folding function</param>
/// <param name="vcombiner">Function to combine the parallel Vector states when parallel process ends</param>
/// <param name="scombiner">Function to combine the elements of the final SIMD vector/param>
/// <param name="scombiner">Function to combine the elements of the final SIMD vector</param>
/// <param name="acc">Initial value to accumulate from</param>
/// <param name="array">Source array</param>
let inline fold
Expand Down
5 changes: 5 additions & 0 deletions version.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.1-beta</Version>
</PropertyGroup>
</Project>