From 6d6e1c6f9ef2e990433a7e750b546006064c114a Mon Sep 17 00:00:00 2001 From: Emily Lo Date: Fri, 15 Nov 2024 14:30:47 -0500 Subject: [PATCH] Remove last commit --- .../Custom Node Sorter/CustomNodeSorter.sln | 25 ++++ .../CustomNodeSorter/CustomNodeSorter.cs | 13 ++ .../CustomNodeSorter/CustomNodeSorter.csproj | 131 ++++++++++++++++++ .../Properties/AssemblyInfo.cs | 33 +++++ .../CustomNodeSorter/packages.config | 20 +++ Scheduler/Filters/readme.md | 3 + 6 files changed, 225 insertions(+) create mode 100644 Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter.sln create mode 100644 Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.cs create mode 100644 Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.csproj create mode 100644 Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/Properties/AssemblyInfo.cs create mode 100644 Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/packages.config diff --git a/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter.sln b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter.sln new file mode 100644 index 0000000..f5f9815 --- /dev/null +++ b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.11.35327.3 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomNodeSorter", "CustomNodeSorter\CustomNodeSorter.csproj", "{C6217D9C-65FC-48C4-A2B2-D2F1791B9B45}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C6217D9C-65FC-48C4-A2B2-D2F1791B9B45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6217D9C-65FC-48C4-A2B2-D2F1791B9B45}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6217D9C-65FC-48C4-A2B2-D2F1791B9B45}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6217D9C-65FC-48C4-A2B2-D2F1791B9B45}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6708FE86-7AE9-4AAB-990B-31CEDED904B3} + EndGlobalSection +EndGlobal diff --git a/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.cs b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.cs new file mode 100644 index 0000000..b37f992 --- /dev/null +++ b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.cs @@ -0,0 +1,13 @@ +using Microsoft.Hpc.Scheduler.AddInFilter.HpcClient; + +namespace NodeSorter +{ + public class NodeSorter : INodeSorter + { + public int Compare(string nodeX, string nodeY) + { + var result = nodeY.CompareTo(nodeX); + return result; + } + } +} \ No newline at end of file diff --git a/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.csproj b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.csproj new file mode 100644 index 0000000..4a02718 --- /dev/null +++ b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/CustomNodeSorter.csproj @@ -0,0 +1,131 @@ + + + + + Debug + AnyCPU + {C6217D9C-65FC-48C4-A2B2-D2F1791B9B45} + Library + Properties + CustomNodeSorter + CustomNodeSorter + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\BrokerBase.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\CcpApi.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\HpcCommon.dll + + + ..\packages\Microsoft.Azure.KeyVault.Core.1.0.0\lib\net40\Microsoft.Azure.KeyVault.Core.dll + + + ..\packages\Microsoft.Data.Edm.5.8.2\lib\net40\Microsoft.Data.Edm.dll + + + ..\packages\Microsoft.Data.OData.5.8.2\lib\net40\Microsoft.Data.OData.dll + + + ..\packages\Microsoft.Data.Services.Client.5.8.2\lib\net40\Microsoft.Data.Services.Client.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.AADAuthUtil.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Azure.DataMovement.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Azure.FileStaging.Client.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Diagnostics.Helpers.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Excel.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Excel.Internal.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Scheduler.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Scheduler.Properties.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Scheduler.Session.dll + + + ..\packages\Microsoft.HPC.SDK.6.2.7756\lib\net472\Microsoft.Hpc.Scheduler.Store.dll + + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.16.0\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.3.16.0\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.Platform.dll + + + ..\packages\Microsoft.IdentityModel.Protocol.Extensions.1.0.4.403061554\lib\net45\Microsoft.IdentityModel.Protocol.Extensions.dll + + + ..\packages\WindowsAzure.Storage.8.4.0\lib\net45\Microsoft.WindowsAzure.Storage.dll + + + ..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll + + + + + ..\packages\System.IdentityModel.Tokens.Jwt.4.0.4.403061554\lib\net45\System.IdentityModel.Tokens.Jwt.dll + + + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.9\lib\net45\System.Net.Http.Formatting.dll + + + ..\packages\System.Spatial.5.8.2\lib\net40\System.Spatial.dll + + + ..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll + True + True + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/Properties/AssemblyInfo.cs b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9b50dbc --- /dev/null +++ b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("CustomNodeSorter")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("CustomNodeSorter")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("c6217d9c-65fc-48c4-a2b2-d2f1791b9b45")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/packages.config b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/packages.config new file mode 100644 index 0000000..e54fed2 --- /dev/null +++ b/Scheduler/Filters/dll/Custom Node Sorter/CustomNodeSorter/packages.config @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Scheduler/Filters/readme.md b/Scheduler/Filters/readme.md index 1b6b17f..a506fa1 100644 --- a/Scheduler/Filters/readme.md +++ b/Scheduler/Filters/readme.md @@ -12,6 +12,9 @@ Samples for each type of HPC Scheduler filter technology are provided: - Submission JobSize A sample submission filter that changes the job based on its size. + + - Custom Node Sorter + A sample custom node sorter that sorts nodes based on reverse lexicographical order. - exe: - Activation FlexLM