Skip to content

Commit 4bdbe80

Browse files
committed
Try run benchmarks
1 parent a80901c commit 4bdbe80

File tree

7 files changed

+520
-512
lines changed

7 files changed

+520
-512
lines changed

.config/dotnet-tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
]
1616
},
1717
"paket": {
18-
"version": "7.2.0",
18+
"version": "8.0.3",
1919
"commands": [
2020
"paket"
2121
]
@@ -35,8 +35,8 @@
3535
"fantomas-tool": {
3636
"version": "4.5.4",
3737
"commands": [
38-
"fantomas"
38+
"fantomas"
3939
]
4040
}
4141
}
42-
}
42+
}

.paket/Paket.Restore.targets

Lines changed: 500 additions & 497 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
wing.mtx
1+
!wing.mtx
22
coAuthorsCiteseer.mtx
33
!hollywood-2009.mtx
4-
roadNet-CA.mtx
5-
belgium_osm.mtx
6-
road_central.mtx
7-
coPapersDBLP.mtx
4+
!roadNet-CA.mtx
5+
!belgium_osm.mtx
6+
!road_central.mtx
7+
!coPapersDBLP.mtx
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
AMD*
1+
NVIDIA*
22
Gpu
33
64

benchmarks/GraphBLAS-sharp.Benchmarks/Helpers.fs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,20 @@ open System.Text.RegularExpressions
1111
open GraphBLAS.FSharp.Tests
1212
open FsCheck
1313
open Expecto
14+
open System.Runtime.CompilerServices
1415

1516
module Utils =
1617
type BenchmarkContext =
1718
{ ClContext: Brahma.FSharp.ClContext
1819
Queue: RawCommandQueue }
1920

21+
22+
let relativePath = System.Environment.GetEnvironmentVariable "BENCH_ROOT_PATH" // Path.Combine [| whereAmI("") ;"""../../../"""|]
23+
24+
2025
let getMatricesFilenames configFilename =
2126
let getFullPathToConfig filename =
22-
Path.Combine [| __SOURCE_DIRECTORY__
27+
Path.Combine [| relativePath
2328
"Configs"
2429
filename |]
2530
|> Path.GetFullPath
@@ -31,14 +36,14 @@ module Utils =
3136
|> Seq.filter (fun line -> not <| line.StartsWith "!")
3237

3338
let getFullPathToMatrix datasetsFolder matrixFilename =
34-
Path.Combine [| __SOURCE_DIRECTORY__
39+
Path.Combine [| relativePath
3540
"Datasets"
3641
datasetsFolder
3742
matrixFilename |]
3843

3944
let availableContexts =
4045
let pathToConfig =
41-
Path.Combine [| __SOURCE_DIRECTORY__
46+
Path.Combine [| relativePath
4247
"Configs"
4348
"Context.txt" |]
4449
|> Path.GetFullPath

build/build.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let isRelease (targets : Target list) =
101101
let invokeAsync f = async { f () }
102102

103103
let configuration (targets : Target list) =
104-
let defaultVal = if isRelease targets then "Release" else "Debug"
104+
let defaultVal = "Release"// if isRelease targets then "Release" else "Debug"
105105
match Environment.environVarOrDefault "CONFIGURATION" defaultVal with
106106
| "Debug" -> DotNet.BuildConfiguration.Debug
107107
| "Release" -> DotNet.BuildConfiguration.Release
@@ -734,7 +734,7 @@ let initTargets () =
734734
==> "CheckFormatCode"
735735
==> "DotnetBuild"
736736
//==> "FSharpAnalyzers"
737-
==> "DotnetTest"
737+
//==> "DotnetTest"
738738
=?> ("GenerateCoverageReport", not disableCodeCoverage)
739739
==> "DotnetPack"
740740
==> "SourceLinkTest"

paket.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ NUGET
747747
System.Xml.XmlDocument (>= 4.3) - restriction: && (< monoandroid) (< monotouch) (< net45) (>= netstandard1.3) (< win8) (< wpa81) (< xamarinios) (< xamarinmac) (< xamarintvos) (< xamarinwatchos)
748748
TypeShape (9.0)
749749
FSharp.Core (>= 4.3.2) - restriction: >= netstandard2.0
750-
YC.OpenCL.NET (2.0.5) - restriction: >= net7.0
750+
YC.OpenCL.NET (3.0.0-alpha1.5) - restriction: >= net7.0
751751
ExtraConstraints.Fody (1.14) - restriction: >= net7.0
752752
Microsoft.Build.Framework (16.10) - restriction: >= net7.0
753753
System.CodeDom (>= 7.0) - restriction: >= net7.0

0 commit comments

Comments
 (0)