Skip to content

Commit

Permalink
Replace OpenMP in pt with C++11 threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbikker committed Dec 12, 2024
1 parent 6fd0a78 commit f090fe7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ The cross-platform fenster-based single-source **bitmap renderer** can be compil

```g++ -std=c++20 -mavx -O3 -framework Cocoa tiny_bvh_fenster.cpp -o tiny_bvh_fenster``` (on macOS)

The multi-threaded **ambient occlusion** demo can be compiled with
The multi-threaded **path tracing** demo can be compiled with

````g++ -std=c++20 -mavx -mwindows -fopenmp -O3 tiny_bvh_pt.cpp -o tiny_bvh_pt```` (on windows)
````g++ -std=c++20 -mavx -mwindows -O3 tiny_bvh_pt.cpp -o tiny_bvh_pt```` (on windows)

The **performance measurement tool** uses OpenMP and can be compiled with:

Expand Down
2 changes: 0 additions & 2 deletions vcproj/tiny_bvh_anim.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>..\external\embree\include</AdditionalIncludeDirectories>
<OpenMPSupport>false</OpenMPSupport>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -137,7 +136,6 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>..\external\embree\include</AdditionalIncludeDirectories>
<OpenMPSupport>true</OpenMPSupport>
<Optimization>Full</Optimization>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
Expand Down
2 changes: 0 additions & 2 deletions vcproj/tiny_bvh_pt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>..\external\embree\include</AdditionalIncludeDirectories>
<OpenMPSupport>false</OpenMPSupport>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -137,7 +136,6 @@
<ConformanceMode>true</ConformanceMode>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>..\external\embree\include</AdditionalIncludeDirectories>
<OpenMPSupport>true</OpenMPSupport>
<Optimization>Full</Optimization>
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<EnableEnhancedInstructionSet>AdvancedVectorExtensions</EnableEnhancedInstructionSet>
Expand Down

0 comments on commit f090fe7

Please sign in to comment.