Skip to content

Commit 740cc9c

Browse files
wormhole_filename(): tweaks to make it work on Raspberry Pi ARM7
1 parent 95089e0 commit 740cc9c

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: future.p2p
22
Title: A Peer-to-Peer Compute Cluster via Futureverse
3-
Version: 0.3.0-9029
3+
Version: 0.3.0-9030
44
Description: Implementation of the 'Future' API <doi:10.32614/RJ-2021-048> that resolves futures on a peer-to-peer ('P2P') compute environment. By using this future backend, you and your friends can share your spare compute resources with each other.
55
Imports:
66
future (>= 1.67.0),

R/wormhole.R

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,25 @@ wormhole_call <- function(command = c("send", "receive"), ..., input = NULL, rsh
184184
}
185185

186186

187-
wormhole_filename <- function(sysname = Sys.info()[["sysname"]], arch = R.version[["arch"]]) {
187+
wormhole_filename <- function(sysname = Sys.info()[["sysname"]], machine = Sys.info()[["machine"]]) {
188188
sysname <- tolower(sysname)
189189

190190
if (sysname %in% c("linux", "darwin")) {
191-
if (arch == "x86_64") arch <- "amd64"
191+
if (machine == "x86_64") {
192+
machine <- "amd64"
193+
} else if (machine == "armv7l") {
194+
## e.g. Raspberry Pi
195+
machine <- "arm7"
196+
}
192197
ext <- ""
193198
} else if (sysname == "windows") {
194-
arch <- "386"
199+
machine <- "386"
195200
ext <- ".exe"
196201
} else {
197202
stop(sprintf("Unknown system: %s", sysname))
198203
}
199204

200-
sprintf("wormhole-william-%s-%s%s", sysname, arch, ext)
205+
sprintf("wormhole-william-%s-%s%s", sysname, machine, ext)
201206
} ## wormhole_filename()
202207

203208

0 commit comments

Comments
 (0)