Skip to content

Commit

Permalink
Fix the osx-arm64 build (#45)
Browse files Browse the repository at this point in the history
* Fix the osx-arm64 build

The arm64 mac has `$(uname -m)` as `arm64` not `arm`

* increment build number

---------

Co-authored-by: Mark Abraham <Mark.J.Abraham@gmail.com>
  • Loading branch information
xiki-tempula and mabraham committed May 6, 2024
1 parent c731f63 commit 7a9b8d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ esac
function _gromacs_bin_dir() {
local simdflavor
local uname=\$(uname -m)
if [[ "\$uname" == "arm" ]]; then
if [[ "\$uname" == "arm64" ]]; then
# Assume ARM Mac
test -d "${PREFIX}/bin.ARM_NEON_ASIMD" && \
simdflavor='ARM_NEON_ASIMD'
Expand Down Expand Up @@ -199,7 +199,7 @@ EOF
#! /bin/tcsh
setenv uname `uname -m`
if ( `uname -m` == "arm" && -d "${PREFIX}/bin.ARM_NEON_ASIMD" ) then ) then
if ( `uname -m` == "arm64" && -d "${PREFIX}/bin.ARM_NEON_ASIMD" ) then
setenv simdflavor ARM_NEON_ASIMD
else
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://manual.gromacs.org/documentation/
{% set name = "gromacs" %}
{% set version = "2023.4" %}
{% set build = 2 %}
{% set build = 3 %}
{% set build = build + 100 %} # [mpi == 'nompi' and double == 'no' and cuda_compiler_version == "None"]

package:
Expand Down

0 comments on commit 7a9b8d3

Please sign in to comment.