You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is as close as I can get to cpu native before it crashes (e.g. the following runs fine unless i add avx, or set it to native or ivybridge):
rustflags = "-C target-cpu=x86-64 -C target-feature=+mmx,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+aes,+clflushopt,+cmov,+cx16,+cx8,+ermsb,+fxsr,+mwaitx,+popcnt,+fsgsbase,+rdrnd"
Also, opt-level = 1 will not crash with avx cpu feature enabled.
I don't understand what avx has to do with grabbing an opengl context. Weird.
The text was updated successfully, but these errors were encountered:
Nevermind I guess.
It magically started working (even simply using target-cpu=native or ivybridge). The only thing I changed is adding more code to the project. Coinflip odds on it hanging (0% cpu usage) when building glfw-sys with +avx -- I just ctrl-c and rerun "cargo build --release" and it then builds fine. No idea why.
Immediate crash when avx cpu feature is enabled when calling glfw::init:
the line: let mut glfw = glfw::init(glfw::FAIL_ON_ERRORS.clone()).unwrap();
error: process didn't exit successfully:
z:/rust_target\release\binary.exe
(exit code: 0xc0000005, STATUS_ACCESS_VIOLATION)cpu: ivybridge (3570k)
target: stable-x86_64-pc-windows-msvc (default)
rustc version: rustc 1.42.0 (b8cedc004 2020-03-09)
[profile.release]
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
lto = true
panic = 'abort'
incremental = false
codegen-units = 1
This is as close as I can get to cpu native before it crashes (e.g. the following runs fine unless i add avx, or set it to native or ivybridge):
rustflags = "-C target-cpu=x86-64 -C target-feature=+mmx,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+aes,+clflushopt,+cmov,+cx16,+cx8,+ermsb,+fxsr,+mwaitx,+popcnt,+fsgsbase,+rdrnd"
Also, opt-level = 1 will not crash with avx cpu feature enabled.
I don't understand what avx has to do with grabbing an opengl context. Weird.
The text was updated successfully, but these errors were encountered: