Skip to content
Snippets Groups Projects
Commit a820ba0c authored by Michael Kuron's avatar Michael Kuron :mortar_board: Committed by Markus Holzer
Browse files

Apple ARM64 support

parent 18b704a2
Branches
Tags
No related merge requests found
...@@ -137,7 +137,7 @@ stream_hydro = create_lb_update_rule(stencil=stencil_hydro, ...@@ -137,7 +137,7 @@ stream_hydro = create_lb_update_rule(stencil=stencil_hydro,
# GENERATE SWEEPS # # GENERATE SWEEPS #
################### ###################
cpu_vec = {'instruction_set': 'sse', 'assume_inner_stride_one': True, 'nontemporal': True} cpu_vec = {'assume_inner_stride_one': True, 'nontemporal': True}
vp = [('int32_t', 'cudaBlockSize0'), vp = [('int32_t', 'cudaBlockSize0'),
('int32_t', 'cudaBlockSize1')] ('int32_t', 'cudaBlockSize1')]
......
...@@ -150,7 +150,7 @@ stream_hydro = create_lb_update_rule(stencil=stencil_hydro, ...@@ -150,7 +150,7 @@ stream_hydro = create_lb_update_rule(stencil=stencil_hydro,
################### ###################
# GENERATE SWEEPS # # GENERATE SWEEPS #
################### ###################
cpu_vec = {'instruction_set': 'sse', 'assume_inner_stride_one': True, 'nontemporal': True} cpu_vec = {'assume_inner_stride_one': True, 'nontemporal': True}
vp = [('int32_t', 'cudaBlockSize0'), vp = [('int32_t', 'cudaBlockSize0'),
('int32_t', 'cudaBlockSize1')] ('int32_t', 'cudaBlockSize1')]
......
...@@ -40,8 +40,6 @@ method = create_lb_method(**options) ...@@ -40,8 +40,6 @@ method = create_lb_method(**options)
setter_assignments = macroscopic_values_setter(method, velocity=velocity_field.center_vector, setter_assignments = macroscopic_values_setter(method, velocity=velocity_field.center_vector,
pdfs=pdfs, density=1) pdfs=pdfs, density=1)
# opt = {'instruction_set': 'sse', 'assume_aligned': True, 'nontemporal': False, 'assume_inner_stride_one': True}
update_rule = create_lb_update_rule(lb_method=method, **options) update_rule = create_lb_update_rule(lb_method=method, **options)
info_header = f""" info_header = f"""
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
# builds the test # builds the test
if ( WALBERLA_CXX_COMPILER_IS_GNU OR WALBERLA_CXX_COMPILER_IS_CLANG ) if ( WALBERLA_CXX_COMPILER_IS_GNU OR (WALBERLA_CXX_COMPILER_IS_CLANG AND (NOT CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR NOT CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "arm64")) )
set( MarchNativeString "-march=native" ) set( MarchNativeString "-march=native" )
endif() endif()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment