Andrew Moa Blog Site

Compiling C/C++ Projects Using xmake

I was accustomed to using CMake and vcpkg on Windows to compile C/C++ programs. However, vcpkg has a drawback: each time it is updated, it requires downloading the source code from GitHub to compile the library files. For large libraries like Qt, the compilation alone can take an entire day, which is impractical, not to mention connection issues caused by DNS problems.

First, let’s outline the requirements. The main requirements for a C/C++ package manager are as follows:

10 minutes to read
Andrew Moa

Use pyinstaller to package Windows executable files

The executable program compiled using the Qt dynamic link library will rely on a large number of dynamic link library files. If you want to publish the program written on your local computer to other people’s computers, you need to package and publish the dependent dynamic link library files together with the executable program. There are many ways to package and publish, and the principle is the same. The executable program and the dependent files are packaged and compressed into a separate executable file through a compression program. When the user executes the executable file, it is automatically decompressed and run.
7 minutes to read
Andrew Moa

Compile rocblas-rocm-6.2.4 under Windows

When I was demonstrating matrix operation acceleration before, I wanted to try AMD’s own ROCm. After compiling and running the program, I encountered an error:

rocBLAS error: Cannot read D:\example\efficiency_v3\rocm\build\Release\/rocblas/library/TensileLibrary.dat: No such file or directory for GPU arch : gfx1150
 List of available TensileLibrary Files : 

According to the official website, ROCm does not support Radeon 880M integrated graphics (AI H 365w processor)1. Unless you compile rocblas yourself, it will not work.

12 minutes to read
Andrew Moa