Why is it not recommended to use -march=native? Why is AVX bad?
I want to use -march=rocketlake and -mtune=rocketlake for example. I'd really like to know.
Git Clone URL: | https://aur.archlinux.org/dxvk-mingw.git (read-only, click to copy) |
---|---|
Package Base: | dxvk-mingw |
Description: | Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine, MingW version |
Upstream URL: | https://github.com/doitsujin/dxvk |
Licenses: | zlib/libpng |
Conflicts: | dxvk |
Provides: | dxvk |
Submitter: | loathingkernel |
Maintainer: | loathingkernel |
Last Packager: | loathingkernel |
Votes: | 11 |
Popularity: | 0.52 |
First Submitted: | 2019-12-16 17:34 (UTC) |
Last Updated: | 2025-01-15 21:21 (UTC) |
Why is it not recommended to use -march=native? Why is AVX bad?
I want to use -march=rocketlake and -mtune=rocketlake for example. I'd really like to know.
Thank you for the clarification @loathingkernel
I know some projects set a default optimization level and I agree that using developer's/upstream preference makes the most sense!
I feel genuinely blind, where does DXVK set -O3 optimization level as the default?
@GrabbenD no, because this package builds Windows binaries through cross-compilation. Some compiler and linker options from makepkg.conf
are not supported by MingW. So this package cannot use any compiler/linker options from it.
At the same time, because it is meant to be loaded by Wine, certain combinations will interfere with that. As such this package inherits only -march
from makepkg.conf
at this moment. -O3
is the default from DXVK and that is why it is forced instead of -O2
How come this package forces O3? Isn't it more intuitive to use user's /etc/makepkg.conf (like march=native)?
@reteo you can edit the pkgbuild and replace the first checksum with 'SKIP'
Is there anything I can do to fix this, or should I wait for an update for pacman
?
@reteo This is due to recent changes in pacman and Manjaro being outdated.
When attempting to install the 2.3.1-1 update, I'm getting the following:
==> Validating source files with sha256sums...
dxvk ... NOT FOUND
dxvk-extraopts.patch ... Passed
setup_dxvk.sh ... Passed
setup_dxvk ... Passed
==> ERROR: One or more files did not pass the validity check!
@patlefort, good lord, there is no consistency with that repo... also hosting tarballs in the git repo? what the hell. I low key feel like I don't want to adapt to it as a protest. The handling is just stupid...
dxvk async patches have moved to a patches
subdir: https://gitlab.com/Ph42oN/dxvk-gplasync/-/commit/d7c7228e73a70befe1fc2752058adb75b2f723bc
Pinned Comments
loathingkernel commented on 2019-12-16 19:48 (UTC) (edited on 2019-12-16 19:49 (UTC) by loathingkernel)
This package contains three patches which are not applied by default. Feel free to read the documentation inside the PKGBUILD on what they do and how to enable them.
Don't report issues with these patches enabled to the dxvk creator before posting here. If you do, please be aware that they will probably close your issue nevertheless.