Skip to content

Commit

Permalink
add -flax-vector-conversions to dbarts compiler flags when building f…
Browse files Browse the repository at this point in the history
…or Arm CPUs
  • Loading branch information
bedroge committed Mar 28, 2024
1 parent a4ccf3a commit 1819c2b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions easybuild/easyconfigs/r/R/R-4.2.0-foss-2021b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ exts_default_options = {
'source_tmpl': '%(name)s_%(version)s.tar.gz',
}

# the dbarts extension needs an additional compiler flag on Arm systems to prevent "incompatible types" errors
# cfr. https://github.com/vdorie/dbarts/issues/66
if ARCH == 'aarch64':
local_dbarts_preinstallopts = 'sed -i "s|-c partition_neon.c|-flax-vector-conversions -c partition_neon.c|"'
local_dbarts_preinstallopts += ' src/misc/Makefile && '
else:
local_dbarts_preinstallopts = ''

# !! order of packages is important !!
# packages updated on 27th April 2022
exts_list = [
Expand Down Expand Up @@ -2796,6 +2804,7 @@ exts_list = [
}),
('dbarts', '0.9-22', {
'checksums': ['68fa2bfe274811c91ea7b67da46c4ffe527eb662d75edbec26ffe934ddc7150a'],
'preinstallopts': local_dbarts_preinstallopts,
}),
('proftools', '0.99-3', {
'checksums': ['e034eb1531af54013143da3e15229e1d4c2260f8eb79c93846014db3bdefb724'],
Expand Down
9 changes: 9 additions & 0 deletions easybuild/easyconfigs/r/R/R-4.2.1-foss-2022a.eb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ exts_default_options = {
'source_tmpl': '%(name)s_%(version)s.tar.gz',
}

# the dbarts extension needs an additional compiler flag on Arm systems to prevent "incompatible types" errors
# cfr. https://github.com/vdorie/dbarts/issues/66
if ARCH == 'aarch64':
local_dbarts_preinstallopts = 'sed -i "s|-c partition_neon.c|-flax-vector-conversions -c partition_neon.c|"'
local_dbarts_preinstallopts += ' src/misc/Makefile && '
else:
local_dbarts_preinstallopts = ''

# !! order of packages is important !!
# packages updated on 23rd June 2022
exts_list = [
Expand Down Expand Up @@ -2797,6 +2805,7 @@ exts_list = [
}),
('dbarts', '0.9-22', {
'checksums': ['68fa2bfe274811c91ea7b67da46c4ffe527eb662d75edbec26ffe934ddc7150a'],
'preinstallopts': local_dbarts_preinstallopts,
}),
('proftools', '0.99-3', {
'checksums': ['e034eb1531af54013143da3e15229e1d4c2260f8eb79c93846014db3bdefb724'],
Expand Down
9 changes: 9 additions & 0 deletions easybuild/easyconfigs/r/R/R-4.2.2-foss-2022b.eb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ exts_default_options = {
'source_tmpl': '%(name)s_%(version)s.tar.gz',
}

# the dbarts extension needs an additional compiler flag on Arm systems to prevent "incompatible types" errors
# cfr. https://github.com/vdorie/dbarts/issues/66
if ARCH == 'aarch64':
local_dbarts_preinstallopts = 'sed -i "s|-c partition_neon.c|-flax-vector-conversions -c partition_neon.c|"'
local_dbarts_preinstallopts += ' src/misc/Makefile && '
else:
local_dbarts_preinstallopts = ''

# !! order of packages is important !!
# packages updated on 17th March 2023
exts_list = [
Expand Down Expand Up @@ -2856,6 +2864,7 @@ exts_list = [
}),
('dbarts', '0.9-23', {
'checksums': ['e1ac65fd89c321895d4f0e77d9cd8dcda5f1103485008afd4e19e6c9137557a3'],
'preinstallopts': local_dbarts_preinstallopts,
}),
('proftools', '0.99-3', {
'checksums': ['e034eb1531af54013143da3e15229e1d4c2260f8eb79c93846014db3bdefb724'],
Expand Down

0 comments on commit 1819c2b

Please sign in to comment.