きょうは近くの本流に。
お昼ぐらいから雨が降ったり、⛈だったりとあまり良くない天気。
その分、朝方は活性がたかかったのかも。
ニジマス、ヤマメ。ヤマメは久々だな〜。
全然わからん、、、
きょうは近くの本流に。
お昼ぐらいから雨が降ったり、⛈だったりとあまり良くない天気。
その分、朝方は活性がたかかったのかも。
ニジマス、ヤマメ。ヤマメは久々だな〜。
全然わからん、、、
$ sudo dnf install java-11-openjdk-devel $ wget https://github.com/bazelbuild/bazel/releases/download/5.1.1/bazel-5.1.1-dist.zip $ unzip -qq bazel-5.1.1-dist.zip $ env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh $ sudo cp output/bazel /usr/local/bin/
$ wget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.gz
$ tar xf gcc-11.2.0.tar.gz
$ gcc-11.2.0/
$ ./contrib/download_prerequisites
$ mkdir build && cd build
$ ../configure \
--enable-bootstrap \
--enable-languages=c,c++ \
--prefix=/home/USER/gcc/11.2 \
--enable-shared \
--enable-threads=posix \
--enable-checking=release \
--disable-multilib \
--with-system-zlib \
--enable-__cxa_atexit \
--disable-libunwind-exceptions \
--enable-gnu-unique-object \
--enable-linker-build-id \
--with-gcc-major-version-only \
--with-linker-hash-style=gnu \
--enable-plugin \
--enable-initfini-array \
--with-isl \
--enable-libmpx \
--enable-gnu-indirect-function \
--build=x86_64-redhat-linux
$ make -j$(nproc)
$ make install
$ /home/USER/gcc/11.2/bin/gcc -dumpspecs > specs
$ vi specs
# before
*link_libgcc:
%D
# after
*link_libgcc:
%{!static:%{!static-libgcc:-rpath /home/USER/gcc/11.2/lib64/}} %D
$ mv specs /home/USER/gcc/11.2/lib/gcc/x86_64-redhat-linux/11/
$ mkvirtualenv tf2.9rc2 $ pip install pip numpy wheel $ pip install keras_preprocessing --no-deps $ pip install packaging
$ python
Python 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 12.0.1 20220308 (Red Hat 12.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /home/USER/gcc/11.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/__init__.py", line 37, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/__init__.py", line 36, in <module>
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
File "/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 77, in <module>
raise ImportError(
ImportError: Traceback (most recent call last):
File "/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/pywrap_tensorflow.py", line 62, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: /home/USER/gcc/11.2/lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors for some common causes and solutions.
If you need help, create an issue at https://github.com/tensorflow/tensorflow/issues and include the entire stack trace above this error message.
$ ./configure
You have bazel 5.1.1- (@non-git) installed.
Please specify the location of python. [Default is /home/USER/.virtualenvs/tf2.9rc2/bin/python3]:
Found possible Python library paths:
/home/USER/.virtualenvs/tf2.9rc2/lib/python3.10/site-packages
/home/USER/.virtualenvs/tf2.9rc2/lib64/python3.10/site-packages
Please input the desired Python library path to use. Default is [/home/USER/.virtualenvs/tf2.9rc2/lib/python3.10/site-packages]
Do you wish to build TensorFlow with ROCm support? [y/N]:
No ROCm support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Do you wish to build TensorFlow with TensorRT support? [y/N]:
No TensorRT support will be enabled for TensorFlow.
Found CUDA 11.6 in:
/usr/local/cuda-11.6/targets/x86_64-linux/lib
/usr/local/cuda-11.6/targets/x86_64-linux/include
Found cuDNN 8 in:
/usr/local/cuda-11.6/targets/x86_64-linux/lib
/usr/local/cuda-11.6/targets/x86_64-linux/include
Please specify a list of comma-separated CUDA compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus. Each capability can be specified as "x.y" or "compute_xy" to include both virtual and binary GPU code, or as "sm_xy" to only include the binary code.
Please note that each additional compute capability significantly increases your build time and binary size, and that TensorFlow only supports compute capabilities >= 3.5 [Default is: 6.1]:
Do you want to use clang as CUDA compiler? [y/N]:
nvcc will be used as CUDA compiler.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]: /home/USER/gcc/11.2/bin/gcc
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details.
--config=mkl # Build with MKL support.
--config=mkl_aarch64 # Build with oneDNN and Compute Library for the Arm Architecture (ACL).
--config=monolithic # Config for mostly static monolithic build.
--config=numa # Build with NUMA support.
--config=dynamic_kernels # (Experimental) Build kernels into separate shared objects.
--config=v1 # Build with TensorFlow 1 API instead of TF 2 API.
Preconfigured Bazel build configs to DISABLE default on features:
--config=nogcp # Disable GCP support.
--config=nonccl # Disable NVIDIA NCCL support.
Configuration finished
$ bazel build \
--config=cuda \
--config=v2 \
--config=nonccl \
--config=opt \
--cxxopt="-std=gnu++14" \
//tensorflow/tools/pip_package:build_pip_package
$ ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
$ cp /tmp/tensorflow_pkg/tensorflow-2.9.0rc2-cp310-cp310-linux_x86_64.whl ./
$ pip3 install tensorflow-2.9.0rc2-cp310-cp310-linux_x86_64.whl
Fedora 36でTensorFlow 2.9-rc2、CUDA11.6でビルドできたよ。
— nb.o (@Nextremer_nb_o) May 14, 2022
これでFedora 36の環境はまずまずかなぁ pic.twitter.com/o8YByJiv5B
ようやくyocto kirkstoneでqemuriscv64のtensorflow lite v2.8が動いたよ💯💯💯💯💯💯💯💯💯💯💯💯 pic.twitter.com/VxupFga22b
— nb.o (@Nextremer_nb_o) May 7, 2022
ERROR: python3-tensorflow-lite-2.8.0-r0 do_fetch: Bitbake Fetcher Error: FetchError("Recipe uses a floating tag/branch without a fixed SRCREV yet doesn't call bb.fetch2.get_srcrev() (use SRCPV in PV for OE).", None)
これ、下記でしのげたりしません?
— みつきん (@yusuke_mitsuki) April 29, 2022
do_configure[network] = "1"
cmake.bbclass 1⃣でオプションにFETCHCONTENT_FULLY_DISCONNECTED 2⃣の指定がこの挙動を起こしているようです(kirkstoneで追加)。
— nb.o (@Nextremer_nb_o) May 1, 2022
これでFetchContentで一切ダウンロードされない&[network] = "1"でもオプションが変更されないようです。
1⃣https://t.co/19TDGsoqA2
2⃣https://t.co/6oZgE6aozh
EXTRA_OECMAKE:append = " -DFETCHCONTENT_FULLY_DISCONNECTED=OFF" do_configure[network] = "1"
meta-tensorflow-liteにtensorflow liteのbenchmark_modelのレシピを追加。これでいろいろとできるようになった(と思う)。
— nb.o (@Nextremer_nb_o) February 24, 2022
さて、Kirkstoneに向けてやってみよう。https://t.co/nW38OdO5KQ
$ git clone -b 1.52 https://github.com/openembedded/bitbake.git $ git clone -b honister https://github.com/openembedded/openembedded-core.git $ git clone -b honister https://github.com/openembedded/meta-openembedded.git $ git clone -b honister https://github.com/riscv/meta-riscv.git $ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git $ cd meta-tensorflow-lite $ git checkout eae1cb93a12fcb1ade71197b99111c2f02f515ef $ cd ..
$ . ./meta-riscv/setup.sh
$ bitbake-layers add-layer ../meta-tensorflow-lite/
USER_CLASSES:remove = "image-prelink" IMAGE_INSTALL:append = " python3-tensorflow-lite \ libtensorflow-lite \ python3-tensorflow-lite-example \ tensorflow-lite-label-image \ tensorflow-lite-minimal \ tensorflow-lite-benchmark"
$ MACHINE=qemuriscv64 bitbake core-image-full-cmdline
$ MACHINE=qemuriscv64 bitbake core-image-full-cmdline Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. Parsing recipes: 100% |#######################################################################################################################################################################################################| Time: 0:00:36 Parsing of 2428 .bb files complete (0 cached, 2428 parsed). 3767 targets, 165 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.52.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "fedora-35" TARGET_SYS = "riscv64-oe-linux" MACHINE = "qemuriscv64" DISTRO = "nodistro" DISTRO_VERSION = "nodistro.0" TUNE_FEATURES = "riscv64" meta = "honister:eeae63c343c8ebd418679915ee20aa8c02fa0fdc" meta-oe meta-python meta-multimedia meta-networking = "honister:0fb490a08ce30b47a5ccd2fdc3448b08e0d9e4e9" meta-riscv = "honister:9561639c61663a10d8c9c23d26173db499f4c39b" meta-tensorflow-lite = "main:eae1cb93a12fcb1ade71197b99111c2f02f515ef" NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/3.5/x86_64-nativesdk-libc-3.5.tar.xz;sha256sum=e8047a5748e6f266165da141eb6d08b23674f30e477b0e5505b6403d50fbc4b2 (will check PREMIRRORS first) Initialising tasks: 100% |####################################################################################################################################################################################################| Time: 0:00:05 Sstate summary: Wanted 1403 Local 0 Network 0 Missed 1403 Current 0 (0% match, 0% complete) NOTE: Executing Tasks WARNING: mtools-native-4.0.35-r0 do_fetch: Failed to fetch URL https://ftp.gnu.org/gnu/mtools/mtools-4.0.35.tar.bz2, attempting MIRRORS if available NOTE: Tasks Summary: Attempted 4090 tasks of which 0 didn't need to be rerun and all succeeded. NOTE: Writing buildhistory NOTE: Writing buildhistory took: 79 seconds NOTE: Build completion summary: NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 267 scratch) NOTE: do_package_qa: 0.0% sstate reuse(0 setscene, 192 scratch) NOTE: do_package: 0.0% sstate reuse(0 setscene, 192 scratch) NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 192 scratch) NOTE: do_package_write_ipk: 0.0% sstate reuse(0 setscene, 192 scratch) NOTE: do_populate_lic: 0.0% sstate reuse(0 setscene, 360 scratch) Summary: There was 1 WARNING message shown.
$ MACHINE=qemuriscv64 runqemu nographic
OpenSBI v0.9
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : riscv-virtio,qemu
Platform Features : timer,mfdeleg
Platform HART Count : 4
Firmware Base : 0x80000000
Firmware Size : 124 KB
Runtime SBI Version : 0.2
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*,1*,2*,3*
Domain0 Region00 : 0x0000000080000000-0x000000008001ffff ()
Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200000
Domain0 Next Arg1 : 0x0000000082200000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcsu
Boot HART Features : scounteren,mcounteren,time
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 54
Boot HART MHPM Count : 0
Boot HART MHPM Count : 0
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
[ 0.000000] Linux version 5.14.21-yocto-standard (oe-user@oe-host) (riscv64-oe-linux-gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.37.20210721) #1 SMP PREEMPT Wed Mar 2 12:59:31 UTC 2022
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] Machine model: riscv-virtio,qemu
[ 0.000000] Memory limited to 256MB
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x000000008fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000008fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000008fffffff]
[ 0.000000] SBI specification v0.2 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x9
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] SBI v0.2 HSM extension detected
[ 0.000000] riscv: ISA extensions acdfimsu
[ 0.000000] riscv: ELF capabilities acdfim
OpenEmbedded nodistro.0 qemuriscv64 ttyS0 qemuriscv64 login: root root@qemuriscv64:~#
# cd /usr/share/tensorflow/lite/examples/python/ # python3 label_image.py \ --image ./grace_hopper.bmp \ --model_file ./mobilenet_v1_1.0_224.tflite \ --label_file ./labels.txt
0.919720: 653:military uniform 0.017762: 907:Windsor tie 0.007507: 668:mortarboard 0.005419: 466:bulletproof vest 0.003828: 458:bow tie, bow-tie, bowtie time: 4925.118ms
# cd /usr/share/tensorflow/lite/examples/label_image/ # ./label_image \ --tflite_model ./mobilenet_v1_1.0_224.tflite \ --labels ./labels.txt \ --image ./grace_hopper.bmp
INFO: Loaded model ./mobilenet_v1_1.0_224.tflite INFO: resolved reporter INFO: invoked INFO: average time: 2973.11 ms INFO: 0.860174: 653 653:military uniform INFO: 0.0481021: 907 907:Windsor tie INFO: 0.00786705: 466 466:bulletproof vest INFO: 0.00644936: 514 514:cornet, horn, trumpet, trump INFO: 0.00608029: 543 543:drumstick
# cd /usr/share/tensorflow/lite/examples/minimal/ # ./minimal ./mobilenet_v1_1.0_224.tflite
=== Pre-invoke Interpreter State === Interpreter has 1 subgraphs. -----------Subgraph-0 has 103 tensors and 31 nodes------------ 1 Inputs: [87] -> 602112B (0.57MB) 1 Outputs: [86] -> 4004B (0.00MB) Tensor ID Name Type AllocType Size (Bytes/MB) Shape MemAddr-Offset Tensor 0 MobilenetV1/Conv2d_0/w... kTfLiteFloat32 kTfLiteMmapRo 3456 / 0.00 [32,3,3,3] [16842720, 16846176) Tensor 1 MobilenetV1/Conv2d_10_... kTfLiteFloat32 kTfLiteMmapRo 18432 / 0.02 [1,3,3,512] [6423008, 6441440) Tensor 2 MobilenetV1/Conv2d_10_... kTfLiteFloat32 kTfLiteMmapRo 1048576 / 1.00 [512,1,1,512] [10624920, 11673496) ... Execution plan as the list of 31 nodes invoked in-order: [0-30] --------------Subgraph-0 dump has completed--------------
# cd /usr/share/tensorflow/lite/tools/benchmark/ # ./benchmark_model \ --graph=./mobilenet_v1_1.0_224.tflite \ --num_threads=4 \ --enable_op_profiling=true
STARTING! Log parameter values verbosely: [0] Num threads: [4] Graph: [./mobilenet_v1_1.0_224.tflite] Enable op profiling: [1] #threads used for CPU inference: [4] Loaded model ./mobilenet_v1_1.0_224.tflite The input model file size (MB): 16.9008 Initialized session in 83.064ms. Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds. count=1 curr=3470145 ... Number of nodes executed: 31 ============================== Summary by node type ============================== [Node type] [count] [avg ms] [avg %] [cdf %] [mem KB] [times called] CONV_2D 15 2554.810 89.801% 89.801% 0.000 15 DEPTHWISE_CONV_2D 13 289.070 10.161% 99.962% 0.000 13 AVERAGE_POOL_2D 1 0.846 0.030% 99.991% 0.000 1 SOFTMAX 1 0.226 0.008% 99.999% 0.000 1 SQUEEZE 1 0.019 0.001% 100.000% 0.000 1 Timings (microseconds): count=50 first=2936299 curr=2869577 min=2657264 max=3069766 avg=2.84499e+06 std=82794 Memory (bytes): count=0 31 nodes observed
https://t.co/aKPbQR5B0U
— nb.o (@Nextremer_nb_o) January 30, 2022
Microchip Technology PolarFire® SoC FPGA Icicleキット
ほーん。6万弱。
リードタイム34週間って...
$ mkdir yocto-dev $ cd yocto-dev $ repo init -u https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp.git -b master -m tools/manifests/riscv-yocto.xml $ repo sync $ repo rebase
$ git clone https://github.com/NobuoTsukamoto/meta-tensorflow-lite.git $ cd meta-tensorflow-lite/ $ git checkout b20bc554a30933a65648ee4557ebb48aacd4db54 $ cd ..
$ . ./meta-polarfire-soc-yocto-bsp/polarfire-soc_yocto_setup.sh
$ bitbake-layers add-layer ../meta-tensorflow-lite/
$ vi conf/auto.conf # 最終行に以下を追加 IMAGE_INSTALL:append = " python3-tensorflow-lite"
$ MACHINE=icicle-kit-es bitbake mpfs-dev-cli Loading cache: 100% |#########################################################################################################| Time: 0:00:00 Loaded 3774 entries from dependency cache. Parsing recipes: 100% |#######################################################################################################| Time: 0:00:01 Parsing of 2437 .bb files complete (2434 cached, 3 parsed). 3777 targets, 169 skipped, 1 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.52.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "riscv64-oe-linux" MACHINE = "icicle-kit-es" DISTRO = "nodistro" DISTRO_VERSION = "nodistro.0" TUNE_FEATURES = "riscv64" meta = "HEAD:63a235d86edb5ca628c8601ed06fb04da3186141" meta-oe meta-python meta-multimedia meta-networking = "HEAD:77718718cf0eec2c7119d101a353f343e2769b1b" meta-riscv = "HEAD:47faa008327abc388c52246b24a8a458b30b6f0d" meta-polarfire-soc-yocto-bsp = "HEAD:02cb81741a5e1b37f89318d04ebc6b2854bfe736" meta-tensorflow-lite = "HEAD:b20bc554a30933a65648ee4557ebb48aacd4db54" Initialising tasks: 100% |####################################################################################################| Time: 0:00:05 Sstate summary: Wanted 1379 Local 0 Network 0 Missed 1379 Current 1506 (0% match, 52% complete) NOTE: Executing Tasks NOTE: Tasks Summary: Attempted 6955 tasks of which 4502 didn't need to be rerun and all succeeded. NOTE: Writing buildhistory NOTE: Writing buildhistory took: 110 seconds NOTE: Build completion summary: NOTE: do_populate_sysroot: 0.0% sstate reuse(0 setscene, 106 scratch) NOTE: do_package_qa: 0.0% sstate reuse(0 setscene, 351 scratch) NOTE: do_package: 0.0% sstate reuse(0 setscene, 281 scratch) NOTE: do_packagedata: 0.0% sstate reuse(0 setscene, 285 scratch) NOTE: do_package_write_ipk: 0.0% sstate reuse(0 setscene, 351 scratch)
Yocto、conf/auto.confに設定をかけるのか。conf/local.confだけだと思っていた。知らないことありすぎる。
— nb.o (@Nextremer_nb_o) January 31, 2022
conf/site.confってのもありますね
— みつきん (@yusuke_mitsuki) February 1, 2022
あ!
— nb.o (@Nextremer_nb_o) February 1, 2022
site.conf、こんな使い方(Proxyの設定)があるんですね。これもっと前に知りたかった内容です(過去の自分に教えたい)。なるほど、これは便利ですね。
(今は必要ないんですがね😅)https://t.co/xJEJ3nY826https://t.co/GZGnJVFK9w
$ MACHINE=qemuriscv64 bitbake mpfs-dev-cli
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
WARNING: /work/yocto-dev/openembedded-core/meta/recipes-bsp/u-boot/u-boot_2021.07.bb: Unable to get checksum for u-boot SRC_URI entry .txt: file could not be found
WARNING: /work/yocto-dev/meta-polarfire-soc-yocto-bsp/recipes-bsp/hss/hss.bb: Unable to get checksum for hss SRC_URI entry ${HSS_PAYLOAD}.yaml: file could not be found
Parsing recipes: 100% |#######################################################################################################| Time: 0:00:30
Parsing of 2437 .bb files complete (0 cached, 2437 parsed). 3777 targets, 168 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'opensbi'. Close matches:
opensc
openssh
openssl
ERROR: Required build target 'mpfs-dev-cli' has no buildable providers.
Missing or unbuildable dependency chain was: ['mpfs-dev-cli', 'opensbi']
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
$ apt-get install -y sudo gawk wget git diffstat unzip texinfo gcc build-essenn tial chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutt ils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylinn t3 xterm python3-subunit mesa-common-dev vim locales zstd liblz4-tool pythoo n curl
$ mkdir ~/bin
$ curl https://storage.googleapis.com/git-repo-doo
wnloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ PATH="${HOME}/bin:${PATH}"
$ mkdir riscv-sifive $ cd riscv-sifive $ repo init -u git://github.com/NobuoTsukamoto/freedom-u-sdk -b 2021.12_tf-lite2.7 -m tools/manifests/sifive.xml $ repo sync
$ . ./freedom-u-sdk/setup.sh
$ MACHINE=qemuriscv64 bitbake demo-coreip-cli
$ MACHINE=qemuriscv64 runqemu nographic slirp ... ... ... FreedomUSDK 2021.12.00 qemuriscv64 ttyS0 qemuriscv64 login:
# cd /usr/share/doc/python3-tensorflow-lite-demo/example # python3 mnist.py
いったーーーーーーーーーーーー!!!!!!!
— nb.o (@Nextremer_nb_o) January 30, 2022
SiFive Freedom Unleashed SDK + meta-tensorflow-lite v2.7
qemuriscv64でtensorflow-lite v2.7がうごいたー
ながかったーーーーーー
(freedom-u-sdkにあるexampleがうごいた) pic.twitter.com/feNQyHCipq
/usr/lib/python3.10/site-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so: undefined symbol: __atomic_compare_exchange_1
error: 'numeric_limits' is not a member of 'std'
Upstream XNNPACK supports RISC-V, the version in TFLite 2.7 most likely doesn't
— Marat Dukhan (@MaratDukhan) January 29, 2022
sudo dnf install python3.9 mkvirtualenv --python=python3.9 open3d_p39
external/ruy/ruy/block_map.cc: In function ‘void ruy::MakeBlockMap(int, int, int, int, int, int, int, int, const ruy::CpuCacheParams&, ruy::BlockMap*)’:
external/ruy/ruy/block_map.cc:395:25: error: ‘numeric_limits’ is not a member of ‘std’
395 | int best_score = std::numeric_limits<int>::min();
| ^~~~~~~~~~~~~~
external/ruy/ruy/block_map.cc:395:40: error: expected primary-expression before ‘int’
395 | int best_score = std::numeric_limits<int>::min();
| ^~~
Target //tensorflow/tools/pip_package:build_pip_package failed to build
sudo dnf install nodejs sudo npm install -g yarn pip install yapf pip install jupyter_packaging ipywidgets jupyterlab
git clone https://github.com/NobuoTsukamoto/Open3D.git cd Open3D git ckeckout fedora_cuda_build cd .. git clone https://github.com/isl-org/Open3D-ML.git mkdir build cd build
cmake ../Open3D \ -DBUILD_TENSORFLOW_OPS=ON \ -DBUILD_BENCHMARKS=ON \ -DBUILD_CUDA_MODULE=ON \ -DBUNDLE_OPEN3D_ML=ON \ -DBUILD_JUPYTER_EXTENSION=ON \ -DBUILD_WEBRTC=ON \ -DOPEN3D_ML_ROOT=/home/xxxxx/WorkSpace/open3d/Open3D-ML/ \ -DCMAKE_CXX_STANDARD=14 \ -DCMAKE_CUDA_HOST_COMPILER=/home/xxxxx/gcc/11.1/bin/gcc
make -j$(nproc) sudo make install make pip-package pip install lib/python_package/pip_package/open3d-0.14.1+3d75e332f-cp39-cp39-manylinux_2_34_x86_64.whl
cd ../Open3D python examples/python/gui/tensorboard_tensorflow.py small_scale tensorboard --logdir demo_logs/tf
Open3D for TensorBoard
— nb.o (@Nextremer_nb_o) December 25, 2021
Fedora 35 + TensorFlow + CUDAでできたよ🎉 pic.twitter.com/rlrYycPD8n