Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,19 @@ public string EdgeFactor
}
}

/// <summary>
/// The compilerFlags that are used for make command in compiling Graph500 using mpicc compiler.
/// Mpich installs a specific version of mpicc compiler by default.
/// </summary>
public string CompilerFlags
{
get
{
this.Parameters.TryGetValue(nameof(Graph500Executor.CompilerFlags), out IConvertible compilerFlags);
return compilerFlags?.ToString();
}
}

/// <summary>
/// The path to the Graph500 executable file.
/// </summary>
Expand Down Expand Up @@ -95,7 +108,7 @@ protected override async Task ExecuteAsync(EventContext telemetryContext, Cancel
{
using (BackgroundOperations profiling = BackgroundOperations.BeginProfiling(this, cancellationToken))
{
await this.ExecuteCommandAsync("make", null, this.PackageDirectory, cancellationToken);
await this.ExecuteCommandAsync("make", this.CompilerFlags, this.PackageDirectory, cancellationToken);

using (IProcessProxy process = await this.ExecuteCommandAsync(this.ExecutableFilePath, this.Scale + " " + this.EdgeFactor, this.PackageDirectory, telemetryContext, cancellationToken))
{
Expand Down
21 changes: 11 additions & 10 deletions src/VirtualClient/VirtualClient.Main/profiles/PERF-GRAPH500.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@
"SupportedPlatforms": "linux-x64,linux-arm64",
"SupportedOperatingSystems": "CBL-Mariner,CentOS,Debian,RedHat,Suse,Ubuntu"
},
"Parameters": {
"Scale": "10",
"EdgeFactor": "16"
},
"Parameters": {
"Scale": "10",
"EdgeFactor": "16"
},
"Actions": [
{
"Type": "Graph500Executor",
"Parameters": {
"Scenario": "GraphAlgorithms",
"PackageName": "graph500",
"Scale": "$.Parameters.Scale",
"EdgeFactor": "$.Parameters.EdgeFactor"
}
"Parameters": {
"Scenario": "GraphAlgorithms",
"PackageName": "graph500",
"Scale": "$.Parameters.Scale",
"EdgeFactor": "$.Parameters.EdgeFactor",
"CompilerFlags": "LDFLAGS=\"-lpthread -fcommon\""
}
}
],
"Dependencies": [
Expand Down