Final cleanup and added last run configs

This commit is contained in:
Samuele Lorefice
2025-04-07 09:55:17 +02:00
parent f342a2158b
commit 1defbd66ff
6 changed files with 4 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run SDF Tool" type="DotNetProject" factoryName=".NET Project" focusToolWindowBeforeRun="true">
<configuration default="false" name="Run SDF Tool [Debug, 8 pic]" type="DotNetProject" factoryName=".NET Project" focusToolWindowBeforeRun="true">
<option name="EXE_PATH" value="$PROJECT_DIR$/SDFMapCreator/bin/Release/net8.0/SDFMapTool" />
<option name="PROGRAM_PARAMETERS" value="-d -D &quot;./images&quot; -o &quot;./sdf.png&quot; -i &quot;01.png;02.png;03.png;04.png;05.png;06.png;07.png;08.png&quot;" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/SDFMapCreator/bin/Release/net8.0" />

View File

@@ -66,15 +66,6 @@
<None Update="images\spherehalf32.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="images\TestPattern.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="images\1.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
<None Update="images\2.png">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

View File

@@ -25,19 +25,19 @@ public partial class SdfKernels {
Console.WriteLine("Reading available accelerators (CUDA only)...");
foreach (var device in gpuContext.GetCudaDevices()) {
using var accelerator = device.CreateAccelerator(gpuContext);
Console.WriteLine($"Found accelerator: {accelerator.Name} {accelerator.AcceleratorType}");
Console.WriteLine($"Found accelerator: {accelerator.Name} ({accelerator.AcceleratorType})");
}
Console.WriteLine("Reading available accelerators (OpenCL only)...");
foreach (var device in gpuContext.GetCLDevices()) {
using var accelerator = device.CreateAccelerator(gpuContext);
Console.WriteLine($"Found accelerator: {accelerator.Name} {accelerator.AcceleratorType}");
Console.WriteLine($"Found accelerator: {accelerator.Name} ({accelerator.AcceleratorType})");
}
Console.WriteLine("Reading available accelerators (CPU only)...");
foreach (var device in gpuContext.GetCPUDevices()) {
using var accelerator = device.CreateAccelerator(gpuContext);
Console.WriteLine($"Found accelerator: {accelerator.Name} {accelerator.AcceleratorType}");
Console.WriteLine($"Found accelerator: {accelerator.Name} ({accelerator.AcceleratorType})");
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB