Restore struct residue args and add residue benchmark project

This commit is contained in:
Marek Lemańczyk committed 2025-09-21 05:29:13 +02:00
1 parent 4fe701425e
commit 5ab69f8c01
10 files changed
+326 -165

No files matched your search

+31 -3
View File
@@ -7,7 +7,8 @@
"description": "Select project to run",
"options": [
"EvenPerfectBitScanner",
"EvenPerfectBitScanner.ResultsParser"
"EvenPerfectBitScanner.ResultsParser",
"EvenPerfectBitScanner.Benchmarks"
],
"default": "EvenPerfectBitScanner"
}
@@ -20,7 +21,7 @@
"preLaunchTask": "Build Debug",
"program": "${workspaceFolder}/${input:projectName}/bin/Debug/net8.0/${input:projectName}.dll",
"args": [
"--increment=add --mersenne=residue --threads=128 --gpu-scan-batch=512000 --primes-device=gpu --mersenne-device=gpu --mod-reduction=barrett128 --block-size=10000000 --gpu-prime-threads=32 --write-batch-size=10000 --divisor-cycles-device=gpu"
"--increment=add --mersenne=residue --threads=128 --gpu-scan-batch=512000 --primes-device=gpu --mersenne-device=gpu --mod-reduction=barrett128 --block-size=10000000 --gpu-prime-threads=32 --write-batch-size=10000 --divisor-cycles-device=gpu"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
@@ -93,6 +94,33 @@
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"justMyCode": false
},
{
"name": "Run EvenPerfectBitScanner.Benchmarks",
"type": "coreclr",
"request": "launch",
"noDebug": true,
"preLaunchTask": "Build EvenPerfectBitScanner.Benchmarks Release",
"program": "${workspaceFolder}/EvenPerfectBitScanner.Benchmarks/bin/Release/net8.0/EvenPerfectBitScanner.Benchmarks.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"justMyCode": false
},
{
"name": "Debug EvenPerfectBitScanner.Benchmarks",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "Build EvenPerfectBitScanner.Benchmarks Debug",
"program": "${workspaceFolder}/EvenPerfectBitScanner.Benchmarks/bin/Debug/net8.0/EvenPerfectBitScanner.Benchmarks.dll",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"justMyCode": false
}
]
}
}
+124 -79
View File
@@ -1,66 +1,66 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectScanner.sln",
"--configuration",
"Debug",
"--framework",
"net8.0"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": "$msCompile"
},
{
"label": "Build Release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectScanner.sln",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Build EvenPerfectBitScanner Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner/EvenPerfectBitScanner.csproj",
"--configuration",
"Debug",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
"version": "2.0.0",
"tasks": [
{
"label": "Build Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectScanner.sln",
"--configuration",
"Debug",
"--framework",
"net8.0"
],
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": "$msCompile"
},
{
"label": "Build Release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectScanner.sln",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Build EvenPerfectBitScanner Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner/EvenPerfectBitScanner.csproj",
"--configuration",
"Debug",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Build EvenPerfectBitScanner Release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner/EvenPerfectBitScanner.csproj",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner/EvenPerfectBitScanner.csproj",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
@@ -97,16 +97,16 @@
{
"label": "Run EvenPerfectBitScanner",
"type": "process",
"command": "dotnet",
"command": "dotnet",
"args": [
"run",
"--project",
"${workspaceFolder}/EvenPerfectBitScanner/EvenPerfectBitScanner.csproj",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"--configuration",
"Release",
"--framework",
"net8.0"
],
"problemMatcher": []
},
{
@@ -124,18 +124,63 @@
],
"problemMatcher": []
},
{
"label": "Run Release (no debug)",
"type": "process",
"command": "dotnet",
"args": [
"run",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"problemMatcher": []
}
]
}
{
"label": "Run Release (no debug)",
"type": "process",
"command": "dotnet",
"args": [
"run",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"problemMatcher": []
},
{
"label": "Build EvenPerfectBitScanner.Benchmarks Debug",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner.Benchmarks/EvenPerfectBitScanner.Benchmarks.csproj",
"--configuration",
"Debug",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Build EvenPerfectBitScanner.Benchmarks Release",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/EvenPerfectBitScanner.Benchmarks/EvenPerfectBitScanner.Benchmarks.csproj",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"group": "build",
"problemMatcher": "$msCompile"
},
{
"label": "Run EvenPerfectBitScanner.Benchmarks",
"type": "process",
"command": "dotnet",
"args": [
"run",
"--project",
"${workspaceFolder}/EvenPerfectBitScanner.Benchmarks/EvenPerfectBitScanner.Benchmarks.csproj",
"--configuration",
"Release",
"--framework",
"net8.0"
],
"problemMatcher": []
}
]
}