Please install Ubuntu on WSL2.
I have executed the following procedures on Ubuntu 22.04 of WSL2.
- https://docs.m5stack.com/en/module/Module-llm
- M5Stack LLM モジュールドキュメント
- https://github.com/m5stack/M5Module-LLM
- M5Stack LLM モジュールリポジトリ
$ pixi list
Package Version Build Size Kind Source
adwaita-icon-theme 48.0 unix_0 596.1 KiB conda https://conda.anaconda.org/conda-forge/
aiohappyeyeballs 2.6.1 pyhd8ed1ab_0 19.3 KiB conda https://conda.anaconda.org/conda-forge/
aiohttp 3.11.16 py311h4921393_0 873 KiB conda https://conda.anaconda.org/conda-forge/
aiosignal 1.3.2 pyhd8ed1ab_0 12.9 KiB conda https://conda.anaconda.org/conda-forge/
ampl-asl 1.0.0 h286801f_2 402.3 KiB conda https://conda.anaconda.org/conda-forge/
aom 3.9.1 h7bae524_0 2.1 MiB conda
$ pixi list
Package Version Build Size Kind Source
aiohappyeyeballs 2.6.1 pyhd8ed1ab_0 19.3 KiB conda https://conda.anaconda.org/conda-forge/
aiohttp 3.11.16 py311h4921393_0 873 KiB conda https://conda.anaconda.org/conda-forge/
aiosignal 1.3.2 pyhd8ed1ab_0 12.9 KiB conda https://conda.anaconda.org/conda-forge/
aom 3.9.1 h7bae524_0 2.1 MiB conda https://conda.anaconda.org/conda-forge/
argcomplete 3.6.2 pyhd8ed1ab_0 41.2 KiB conda https://conda.anaconda.org/conda-forge/
assimp 5.4.3 ha9c0b8d_0 2.4 MiB conda https://conda.anaconda.org/
$ pixi list
Package Version Build Size Kind Source
adwaita-icon-theme 48.0 unix_0 596.1 KiB conda https://conda.anaconda.org/conda-forge/
aiohappyeyeballs 2.6.1 pyhd8ed1ab_0 19.3 KiB conda https://conda.anaconda.org/conda-forge/
aiohttp 3.11.16 py312h998013c_0 871.2 KiB conda https://conda.anaconda.org/conda-forge/
aiosignal 1.3.2 pyhd8ed1ab_0 12.9 KiB conda https://conda.anaconda.org/conda-forge/
aom 3.9.1 h7bae524_0 2.1 MiB conda https://conda.anaconda.org/conda-forge/
argcomplete 3.6.2 pyhd8ed1ab_0 41.2 KiB conda https://conda.anaconda.org/conda-forge/
a
You need to disable System Integrity Protection(SIP)
.
https://docs.ros.org/en/humble/Installation/Alternatives/macOS-Development-Setup.html#disable-system-integrity-protection-sip
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> $HOME/.zprofile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message(STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}\n") | |
message(STATUS "CMAKE_C_COMPILER_ID: ${CMAKE_C_COMPILER_ID}") | |
message(STATUS "CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}\n") | |
message(STATUS "CMAKE_C_COMPILER_VERSION: ${CMAKE_C_COMPILER_VERSION}") | |
message(STATUS "CMAKE_CXX_COMPILER_VERSION: ${CMAKE_CXX_COMPILER_VERSION}\n") | |
if(MSVC) | |
message(STATUS "MSVC_VERSION: ${MSVC_VERSION}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/ocl/ocl.hpp> | |
// cl_mem構造体を参照するためにインクルード | |
#if defined __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nvidia/cuda:11.1-cudnn8-devel-ubuntu20.04 | |
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all} | |
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics | |
# add new sudo user | |
ENV USERNAME autoware | |
ENV HOME /home/$USERNAME | |
RUN useradd -m $USERNAME && \ | |
echo "$USERNAME:$USERNAME" | chpasswd && \ |
NewerOlder