Here is some tuning i did on Redcore linux,
its rather self explaining.
Purpose I want to do same on FreeBSD.
Please advice actions to take
redcorelinux /etc/portage/make.conf # cat 09custom
redcorelinux /etc/portage/make.conf # cat 00-cpuflags
redcorelinux /etc/portage/package.use # cat 00cpu-flags
Build llama-cpp
its rather self explaining.
Purpose I want to do same on FreeBSD.
Please advice actions to take
redcorelinux /etc/portage/make.conf # cat 09custom
Code:
LC_MESSAGES="C.UTF-8"
VIDEO_CARDS="nvidia"
MAKEOPTS="-j10 -l10"
NINJAOPTS="-j10"
CFLAGS="${CFLAGS} -mtune=native"
CXXFLAGS="${CXXFLAGS} -mtune=native"
redcorelinux /etc/portage/make.conf # cat 00-cpuflags
Code:
# This file has been automatically generated, do not edit.
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3"
redcorelinux /etc/portage/package.use # cat 00cpu-flags
Code:
*/* CPU_FLAGS_X86: aes avx avx2 avx_vnni bmi1 bmi2 f16c fma3 mmx
mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3 vpclmulqdq
Build llama-cpp
Code:
[ebuild N ] sci-misc/llama-cpp-0.7.0::guru
USE="cuda openmp openssl -blas -blis -examples -flexiblas -openblas -opencl -rocm -test -vulkan"
AMDGPU_TARGETS="gfx90a gfx908 gfx942 gfx1030 gfx1100 gfx1101 gfx1200 gfx1201
-gfx803 -gfx900 -gfx906 -gfx940 -gfx941 -gfx1010 -gfx1011 -gfx1012 -gfx1031 -gfx1102 -gfx1103 -gfx1150 -gfx1151"
CPU_FLAGS_X86="avx avx2 avx_vnni bmi2 f16c fma3 sse4_2 -amx_bf16 -amx_int8 -amx_tile
-avx512_bf16 -avx512_vnni -avx512f -avx512vbmi"