by claude
Jetson Nano 사양 Compute Capability: 5.3
Jetson Nano는 Maxwell 아키텍처 기반 GPU(128 CUDA 코어)를 사용하며, compute capability는 5.3입니다.
CUDA 버전
Jetson Nano는 JetPack 버전에 따라 CUDA 버전이 결정됩니다. Nano에서 지원되는 마지막(최신) JetPack은 JetPack 4.6.x 계열이며, 이때 CUDA 10.2가 탑재됩니다. 참고로 Jetson Nano는 32비트 시절부터 나온 구형 라인업(2019년 출시)이라 JetPack 5.x(CUDA 11.x 이상)는 지원하지 않습니다. JetPack 5 이상은 Xavier, Orin 계열부터 지원됩니다 |
netson nano / maxwell 기반 128 cuda core
GPU NVIDIA Maxwell architecture with 128 NVIDIA CUDA® cores CPU Quad-core ARM Cortex-A57 MPCore processor Memory 4 GB 64-bit LPDDR4, 1600MHz 25.6 GB/s |
[링크 : https://developer.nvidia.com/embedded/jetson-nano]
맥스웰 compute capability - 5.x
| all compute-capability 3.x (Kepler) devices but are not supported on compute-capability 5.x (Maxwell) |
[링크 : https://docs.nvidia.com/cuda/maxwell-compatibility-guide/]
cuda 10.2
$ cat /etc/nv_tegra_release # R32 (release), REVISION: 7.1, GCID: 29818004, BOARD: t210ref, EABI: aarch64, DATE: Sat Feb 19 17:05:08 UTC 2022
$ nvcc --version nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Sun_Feb_28_22:34:44_PST_2021 Cuda compilation tools, release 10.2, V10.2.300 Build cuda_10.2_r440.TC440_70.29663091_0 |
b10068 인데 cuda 12 와 cuda 13에 대해서 지원한다.
소스에서 빌드한다고 해서 될 게 아닌듯..
Windows:
Windows x64 (CPU) Windows arm64 (CPU) Windows arm64 (OpenCL Adreno) Windows x64 (CUDA 12) - CUDA 12.4 DLLs Windows x64 (CUDA 13) - CUDA 13.3 DLLs Windows x64 (Vulkan) Windows x64 (OpenVINO) Windows x64 (SYCL) Windows x64 (HIP) |
[링크 : https://github.com/ggml-org/llama.cpp/releases]
+
이건 컴파일러 버전이 낮아서라고.. 에라이
[ 5%] Building CXX object tools/ui/CMakeFiles/llama-ui-embed.dir/embed.cpp.o /home/jetson/src/llama.cpp/tools/ui/embed.cpp:17:10: fatal error: filesystem: No such file or directory #include <filesystem> ^~~~~~~~~~~~ compilation terminated. |
filesystem은 c+17에 도입되었고 8.x 부터 지원.
[링크 : https://jtrimind.github.io/troubleshooting/filesystem/]
$ g++ --version g++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ sudo apt install gcc-8 g++-8
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 update-alternatives: using /usr/bin/gcc-8 to provide /usr/bin/gcc (gcc) in auto mode
$ g++ --version g++ (Ubuntu/Linaro 8.4.0-1ubuntu1~18.04) 8.4.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
cmake 깔고 이상한짓 해도 안되서 포기. vulkan도 잘 안되는 것 같고 머지..?
sudo apt-get install libssl-dev libssl1.1 /opt/cmake/bin/cmake -B build -DLLAMA_BUILD_SERVER=ON -DLLAMA_BUILD_TOOLS=OFF -DLLAMA_BUILD_UI=OFF /opt/cmake/bin/cmake --build build -j4 |
sharerc 빌드하고 하려니 이 난리. 에라이
/home/jetson/src/shaderc/third_party/abseil_cpp/absl/base/policy_checks.h:59:2: error: #error "This package requires GCC 10 or higher." #error "This package requires GCC 10 or higher." |