Skip to content

Commit

Permalink
Add description of parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Parzival-05 committed Dec 24, 2024
1 parent fb3674a commit b2add77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions VSharp.API/VSharpOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ public readonly record struct VSharpOptions
/// <param name="stepsLimit">Number of symbolic machine steps to stop execution after. Zero value means no limit.</param>
/// <param name="aiAgentTrainingOptions">Settings for AI searcher training.</param>
/// <param name="pathToModel">Path to ONNX file with model to use in AI searcher.</param>
/// <param name="useGPU">Enables GPU processing.</param>
/// <param name="optimize">Optimize.</param>
/// <param name="useGPU">Specifies whether the ONNX execution session should use a CUDA-enabled GPU.</param>
/// <param name="optimize">Enabling options like parallel execution and various graph transformations to enhance performance of ONNX.</param>
public VSharpOptions(
int timeout = DefaultTimeout,
int solverTimeout = DefaultSolverTimeout,
Expand Down
15 changes: 10 additions & 5 deletions VSharp.ML.GameServer.Runner/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type CliArguments =
| [<Unique>] StepsToSerialize of uint
| [<Unique>] UseGPU
| [<Unique>] Optimize

interface IArgParserTemplate with
member s.Usage =
match s with
Expand All @@ -54,8 +55,9 @@ type CliArguments =
"Mode to run application. Server --- to train network, Generator --- to generate data for training."
| OutFolder _ -> "Folder to store generated data."
| StepsToSerialize _ -> "Maximal number of steps for each method to serialize."
| UseGPU -> "Enables GPU processing."
| Optimize -> "Optimize."
| UseGPU -> "Specifies whether the ONNX execution session should use a CUDA-enabled GPU."
| Optimize ->
"Enabling options like parallel execution and various graph transformations to enhance performance of ONNX."

let mutable inTrainMode = true

Expand Down Expand Up @@ -293,11 +295,14 @@ let main args =
| Some steps -> steps
| None -> 500u

let useGPU = (args.TryGetResult <@ UseGPU @>).IsSome
let useGPU =
(args.TryGetResult <@ UseGPU @>).IsSome

let optimize = (args.TryGetResult <@ Optimize @>).IsSome
let optimize =
(args.TryGetResult <@ Optimize @>).IsSome

let outputDirectory = Path.Combine(Directory.GetCurrentDirectory(), string port)
let outputDirectory =
Path.Combine (Directory.GetCurrentDirectory (), string port)

if Directory.Exists outputDirectory then
Directory.Delete (outputDirectory, true)
Expand Down

0 comments on commit b2add77

Please sign in to comment.