AVX2 issues

Discussions related to using VirtualBox on Windows hosts.
Post Reply
hold_the_reins
Posts: 1
Joined: 17. Dec 2017, 13:18

AVX2 issues

Post by hold_the_reins »

I've been struggling to use scipy on VMs in VirtualBox because it requires AVX/AVX2 support. When I run a very basic scipy.optimize.leastsq() routine, I get an error: "

Code: Select all

Illegal Instruction (core dumped)
". I believe I've traced this to an AVX/AVX2 issue. My host is a Windows 10 with an Intel Core i7-6500U CPU. I've tried both Fedora 26 32-bit and Ubuntu 16 32-bit guests and both get the same error. In both, running

Code: Select all

grep flags /proc/cpuinfo
shows that avx and avx2 are not enabled. I tried enabling them from the host command prompt with

Code: Select all

VBoxManage.exe setextradata "$VMname" VBoxInternal/CPUM/IsaExts/AVX2 1
, as was suggested in an askubuntu post that I can't link to because I'm a new member. The variable changes, as confirmed by

Code: Select all

getextradata enumerate
, but in both VMs, the list of flags in

Code: Select all

/proc/cpuinfo
does not change. My question is: is this the right VBoxManage key to be setting, or is there another key I should try? If it's the right key, why is it not enabling AVX2 in the guests flags?

Somewhat separately, is there a way to disable the need for AVX/AVX2 support from scipy? I understand this may be a little off-topic, and not suitable for this community, but if anyone has solved this previously, that would solve my problem.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: AVX2 issues

Post by mpack »

There have been previous discussions of this issue, e.g. here: viewtopic.php?f=6&t=84213.

If you need to continue this discussion then please provide a VM log file. With the VM fully shut down, right click it in the GUI. Select "Show Log" and save "VBox.log" (ONLY) to a zip file. Attach the zip here.
Post Reply