update
This commit is contained in:
		
							parent
							
								
									c006ea10c6
								
							
						
					
					
						commit
						f877adcc3f
					
				| @ -1,6 +1,10 @@ | |||||||
| # 注意! | # 注意! | ||||||
|  | ## 项目前置 | ||||||
|  | >本项目使用了OpenMP进行并行化加速,默认开启,OpenMP在C++编译器中默认都装了的,请使用较新的编译器 | ||||||
|  | >在win平台上似乎无法使用mingw对OpenMP加速,但是Visual Studio(MSVC) 和 Clang 在win平台上都是可以编译的 | ||||||
|  | >不要使用Mingw编译,win上可以使用Clang,VS(MSVC),linux上使用gcc(g++)即可 | ||||||
| 
 | 
 | ||||||
| > ***请详细阅读xmake.lua项目配置文件,可能涉及到性能优化和计算精度的问题*** | ## ***请详细阅读xmake.lua项目配置文件,可能涉及到性能优化和计算精度的问题*** | ||||||
| > | > | ||||||
| > 最好不要使用mingw,使用mingw+clang(就是clang)或者msvc(visual studio) | > 最好不要使用mingw,使用mingw+clang(就是clang)或者msvc(visual studio) | ||||||
| > | > | ||||||
|  | |||||||
| @ -18,7 +18,8 @@ end | |||||||
| if is_plat("windows")then  | if is_plat("windows")then  | ||||||
|     add_cxxflags("/openmp") |     add_cxxflags("/openmp") | ||||||
| elseif is_plat("linux") or is_plat("mingw") or is_plat("clang")then  | elseif is_plat("linux") or is_plat("mingw") or is_plat("clang")then  | ||||||
|     add_cxflags("-fopenmp") |     add_cxxflags("-fopenmp") | ||||||
|  |     add_ldflags("-fopenmp") | ||||||
| end  | end  | ||||||
| 
 | 
 | ||||||
| add_includedirs("src/tools") | add_includedirs("src/tools") | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user