Open Prephi opened 6 months ago
Experiencing same issue on an NVIDIA Jetson Nano
NEON DOT product ISA extension not recognized. Try upgrade gcc version - upgrade OS ubuntu 22.04, or use a docker image
I had the same issue on NVIDIA Jetson Nano, and it helped to update gcc to version 8.5 and to use CMake. It might also work with gcc-9, which is much easier to install than gcc-8.5.
This takes several hours, so it might be a good idea to try installing gcc-9 first (see Option 2)
Create some temporary directory and navigate to it
mkdir ~/aux
cd ~/aux
Download gcc-8.5.0
wget https://ftp.gnu.org/gnu/gcc/gcc-8.5.0/gcc-8.5.0.tar.gz
Compile gcc-8.5.0 according to https://gcc.gnu.org/wiki/InstallingGCC
tar -xzf gcc-8.5.0.tar.gz
cd gcc-8.5.0
./contrib/download_prerequisites
mkdir objdir
cd objdir
$PWD/../gcc-8.5.0/configure --enable-languages=c,c++,fortran
make
sudo make install
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9 g++-9
whisper_cpp
repoBuild with CMake:
mkdir build
cd build
cmake -DWHISPER_CUBLAS=1 -DCMAKE_C_COMPILER=<path-to-gcc> -DCMAKE_CXX_COMPILER=<path-to-g++> -DCMAKE_LINKER=<path-to-g++> ..
make -j4
You can find the gcc
and g++
paths by running which gcc
(or which gcc-<version>
). If everything is correct, you should be able to see the new gcc
and g++
version when building Whisper:
-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is GNU 8.5.0
Also, I am not really sure if this part in the cmake
command is needed:
-DCMAKE_LINKER=<path-to-g++>
Excuse the question, I'm trying for several days now and I'm really inexperienced with the makefile scripts. I know that the compilation should work (as seen with the User FlippFuzz - but he already merged his solution for the Oracle Ampere)
I'm trying to build the main example, the make clean/ make output is as follows
The system is the standard Oracle free tier: Shape: VM.Standard.A1.Flex OCPU count: 4 Image: Canonical-Ubuntu-18.04-aarch64-2023.05.10-0
The error -for me- seems like the system is not recognized and wrong declarations are used. I tried to change the declarations manually, but am a bit overwhelmed by the declarations in the makefile. The building process was never successful.
Do you have an idea, that I could try?