Posts by Tags

Mac Silicon

Installing and using GCC on Mac Silicon

less than 1 minute read

Published:


*[master][~/repositories/hepcpp/cpluspluscourse/exercises]$ type gcc
gcc is /usr/bin/gcc
*[master][~/repositories/hepcpp/cpluspluscourse/exercises]$ gcc --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Ubuntu

Use NoMachine to access VM

less than 1 minute read

Published:

A GUI is often needed when using VMs and ssh’ing into shell is insufficient. Windows Remote Desktop offers a ssh-based remote access method, but has a really slow GUI. I’ve found NoMachine to have a much faster response (which saves a lot of headaches).

c++

Installing and using GCC on Mac Silicon

less than 1 minute read

Published:


*[master][~/repositories/hepcpp/cpluspluscourse/exercises]$ type gcc
gcc is /usr/bin/gcc
*[master][~/repositories/hepcpp/cpluspluscourse/exercises]$ gcc --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

category1

Use LLVM/Clang as CMake compiler

1 minute read

Published:

Switch to LLVM/Clang compiler for CMake (Ubuntu 22.04 aarch64 on Apple Silicon via Multipass)

A package I work with compiles fine on Linux AMD, but crashes in a firey hell on my Mac.

find_package(OpenMP)
if (OPENMP_FOUND
    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()

Results in:

category2

Use LLVM/Clang as CMake compiler

1 minute read

Published:

Switch to LLVM/Clang compiler for CMake (Ubuntu 22.04 aarch64 on Apple Silicon via Multipass)

A package I work with compiles fine on Linux AMD, but crashes in a firey hell on my Mac.

find_package(OpenMP)
if (OPENMP_FOUND
    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()

Results in:

cool posts

Use LLVM/Clang as CMake compiler

1 minute read

Published:

Switch to LLVM/Clang compiler for CMake (Ubuntu 22.04 aarch64 on Apple Silicon via Multipass)

A package I work with compiles fine on Linux AMD, but crashes in a firey hell on my Mac.

find_package(OpenMP)
if (OPENMP_FOUND
    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()

Results in: