File tree Expand file tree Collapse file tree 5 files changed +9
-17
lines changed
Expand file tree Collapse file tree 5 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 2121 path = third-party/mxnet
2222 url = https://github.com/faasm/incubator-mxnet
2323 branch = faasm
24- [submodule "third-party/cffi "]
25- path = third-party/cffi
26- url = https://github.com/faasm/cffi-mirror.git
27- branch = faasm
2824[submodule "third-party/libffi "]
2925 path = third-party/libffi
3026 url = https://github.com/faasm/libffi.git
Original file line number Diff line number Diff line change 11# Faasm CPython WebAssembly build
22
33This build cross-compiles CPython and a number of Python modules to WebAssembly
4- for use in [ Faasm] ( https://github.com/lsds /faasm ) .
4+ for use in [ Faasm] ( https://github.com/faasm /faasm ) .
55
66You can try to install arbitrary packages, but the ones that definitely work
77can be listed with:
@@ -136,7 +136,7 @@ inv libs.install --experimental
136136inv libs.install --name numpy
137137
138138# (Attempt) to install arbitrary module
139- inv libs.install < module_name>
139+ inv libs.install --name < module_name>
140140```
141141
142142Libraries will then be installed to
@@ -174,8 +174,8 @@ Then we can install mxnet and horovod:
174174
175175```
176176. ./cross_venv/bin/activate
177- inv libs.install --name= mxnet
178- inv libs.install --name= horovod
177+ inv libs.install --name mxnet
178+ inv libs.install --name horovod
179179```
180180
181181### Cleaning and uninstalling
Original file line number Diff line number Diff line change @@ -45,4 +45,3 @@ echo "python3.8 is: $(which python3.8)"
4545
4646popd >> /dev/null
4747
48-
Original file line number Diff line number Diff line change 11import os
22
33from copy import copy
4+ from faasmcli .util .toolchain import (
5+ CMAKE_TOOLCHAIN_FILE ,
6+ WASM_LIB_INSTALL ,
7+ )
48from os .path import join
59from subprocess import run
610from tasks .env import USABLE_CPUS , THIRD_PARTY_DIR , CROSSENV_DIR
711from invoke import task , Failure
812
9- MXNET_LIB = "/usr/local/faasm/llvm-sysroot/lib/wasm32-wasi/libmxnet.so"
10- CMAKE_TOOLCHAIN_FILE = (
11- "/usr/local/code/faasm/third-party/faasm-toolchain/WasiToolchain.cmake"
12- )
13+ MXNET_LIB = join (WASM_LIB_INSTALL , "libmxnet.so" )
1314
1415# Modified libs
1516MODIFIED_LIBS = {
1617 "numpy" : {
1718 "env" : {"NPY_NUM_BUILD_JOBS" : USABLE_CPUS },
1819 },
19- "cffi" : {
20-
21- },
2220}
2321
2422MODIFIED_LIBS_EXPERIMENTAL = {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments