Skip to content

Commit 0ec8606

Browse files
Fixed issues with mandelbrot/montecarlopi in debug/release
1 parent ebf9c44 commit 0ec8606

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

DirectProgramming/DPC++/CombinationalLogic/mandelbrot/mandelbrot.vcxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
<ConformanceMode>true</ConformanceMode>
146146
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
147147
<SYCLWarningLevel>Level3</SYCLWarningLevel>
148+
<AdditionalIncludeDirectories>$(ONEAPI_ROOT)dev-utilities\latest\include</AdditionalIncludeDirectories>
148149
</ClCompile>
149150
<Link>
150151
<SubSystem>Console</SubSystem>
@@ -156,4 +157,4 @@
156157
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
157158
<ImportGroup Label="ExtensionTargets">
158159
</ImportGroup>
159-
</Project>
160+
</Project>

DirectProgramming/DPC++/MapReduce/MonteCarloPi/MonteCarloPi.sln

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Global
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1616
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Debug|x64.ActiveCfg = Debug|x64
17-
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Debug|x64.Build.0 = Debug|x64s
17+
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Debug|x64.Build.0 = Debug|x64
18+
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Debug|x86.ActiveCfg = Debug|x64
1819
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Release|x64.ActiveCfg = Release|x64
1920
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Release|x64.Build.0 = Release|x64
21+
{6A16FACB-3C03-4F07-9F42-EF01B9827515}.Release|x86.ActiveCfg = Release|x64
2022
EndGlobalSection
2123
GlobalSection(SolutionProperties) = preSolution
2224
HideSolutionNode = FALSE

DirectProgramming/DPC++/MapReduce/MonteCarloPi/MonteCarloPi.vcxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,19 @@
4444
<Optimization>Disabled</Optimization>
4545
<SuppressStartupBanner>false</SuppressStartupBanner>
4646
</ClCompile>
47+
<Link>
48+
<SpecifyDevCmplAdditionalOptions>/Od</SpecifyDevCmplAdditionalOptions>
49+
</Link>
4750
</ItemDefinitionGroup>
4851
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
4952
<ClCompile>
5053
<AdditionalIncludeDirectories>$(ONEAPI_ROOT)dev-utilities\latest\include</AdditionalIncludeDirectories>
5154
<SYCLOptimization>MaxSpeed</SYCLOptimization>
5255
<SuppressStartupBanner>false</SuppressStartupBanner>
5356
</ClCompile>
57+
<Link>
58+
<SpecifyDevCmplAdditionalOptions>/Od</SpecifyDevCmplAdditionalOptions>
59+
</Link>
5460
</ItemDefinitionGroup>
5561
<ItemGroup>
5662
<ClCompile Include="src\monte_carlo_pi.cpp" />
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup />
4+
</Project>

DirectProgramming/DPC++/MapReduce/MonteCarloPi/src/monte_carlo_pi.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,6 @@ int main() {
160160
std::cout
161161
<< "The simulation plot graph has been written to 'MonteCarloPi.bmp'\n";
162162

163+
getchar();
163164
return 0;
164165
}

0 commit comments

Comments
 (0)