05-10-2014
Welcome to the forum.
Your post is devoid of specifics, so don't expect much targeted advice.
Are you using the CPUID instruction to detect AVX? That should work. For the specifics, there are posts on intel's site (and probably other places) demonstrating what to write/read from which registers.
However, if you actually want to use AVX, simply detecting CPU support is insufficient. Even if the CPU implements AVX, it cannot be used without operating system support (e.g. to save/restore the registers across context switches).
Regards,
Alister
This User Gave Thanks to alister For This Post:
8 More Discussions You Might Find Interesting
1. Programming
edit: skip this post...the next is a better explaination of my issue. (2 Replies)
Discussion started by: DreamWarrior
2 Replies
2. Gentoo
hi all,
i have a 64 bit linux machine.
$uname -a
Linux SVRDELLD30 2.6.9-42.ELsmp #1 SMP Tue Aug 15 10:35:26 BST 2006 x86_64 x86_64 x86_64 GNU/Linux
here by default gcc creates 64 bit executable. but for some reason i want to create 32bit executable.
first i want to create 32 bit object... (3 Replies)
Discussion started by: uttamhoode
3 Replies
3. Red Hat
Hi all,
I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html
I've done... (0 Replies)
Discussion started by: philrau
0 Replies
4. Red Hat
Hello All,
We have a new project in place that calls for RHEL 5.2 64 bit version. This is our first 5.2 as well as 64 bit exposure. On our other Solaris and RHEL 4 systems we used a stats gathering software called ORCA. We are running into problems however trying to install it on RHEL 5.2 64... (0 Replies)
Discussion started by: dchitus
0 Replies
5. Red Hat
Friends ,
Would u plz tell me what is the difference between 32-bit Linux o/s and the 64 bit Linux o/s .
Is there any RAM limitation in this two types of o/s .
Waiting for kind reply ... ... (7 Replies)
Discussion started by: shipon_97
7 Replies
6. UNIX for Advanced & Expert Users
Hi.
I need to migrate the whole unix environment from a Unix mp-ras 32 bit to a Linux Suse 64 bit.
1) can i use cpio to copy the data?
2) can i just copy the users from unix to linux or do i have to create them by hand
3) are there any other concerns i should worry about?
thanx (1 Reply)
Discussion started by: mrodrig
1 Replies
7. Post Here to Contact Site Administrators and Moderators
Hi,
I had done a long post here about the PCLinuxOS distribution but when I clicked on "submit" I got a message saying the post was too short : coming back has shown that my message disappeared : would you check how this forum is setup ?
Thanks
Mélodie (5 Replies)
Discussion started by: melodie
5 Replies
8. Shell Programming and Scripting
Hi, Can somebody tell me which command will help me find whether the OS is 32 bit or 64 bit. OS is LInux
Thanks (3 Replies)
Discussion started by: aish11
3 Replies
LEARN ABOUT FREEBSD
cpucontrol
CPUCONTROL(8) BSD System Manager's Manual CPUCONTROL(8)
NAME
cpucontrol -- control utility for the cpuctl(4) device
SYNOPSIS
cpucontrol [-vh] -m msr device
cpucontrol [-vh] -m msr=value device
cpucontrol [-vh] -m msr&=mask device
cpucontrol [-vh] -m msr|=mask device
cpucontrol [-vh] -i level device
cpucontrol [-vh] -i level,level_type device
cpucontrol [-vh] [-d datadir] -u device
DESCRIPTION
The cpucontrol utility can be used to read and write arbitrary machine-specific CPU registers via the cpuctl(4) special device. It can also
be used to apply CPU firmware updates.
The following options are available:
-d datadir
Where to look for microcode images. The option can be specified multiple times.
-m msr[=value]
Show value of the specified MSR. MSR register number should be given as a hexadecimal number.
-m msr=value
Store the value in the specified MSR register. The value argument can be prefixed with ~ operator. In this case the inverted value
of argument will be stored in the register.
-m msr&=mask
Store the result of bitwise AND operation between mask and the current MSR value in the MSR register. The mask argument can be pre-
fixed with ~ operator. In this case the inverted value of mask will be used.
-m msr|=mask
Store the result of bitwise OR operation between mask and the current MSR value in the MSR register. The mask argument can be pre-
fixed with ~ operator. In this case the inverted value of mask will be used.
-i level
Retrieve CPUID info. Level should be given as a hex number.
-i level,level_type
Retrieve CPUID info. Level and level_type should be given as hex numbers.
-u Apply CPU firmware updates. The cpucontrol utility will walk through the configured data directories and apply all firmware updates
available for this CPU.
-v Increase the verbosity level.
-h Show help message.
EXIT STATUS
The cpucontrol utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
The command
``cpucontrol -m 0x10 /dev/cpuctl0''
will read the contents of TSC MSR from CPU 0.
To set the CPU 0 TSC MSR register value to 0x1 issue
``cpucontrol -m 0x10=0x1 /dev/cpuctl0''.
The following command will clear the second bit of TSC register:
``cpucontrol -m 0x10&=~0x02 /dev/cpuctl0''.
The following command will set the forth and second bit of TSC register:
``cpucontrol -m 0x10|=0x0a /dev/cpuctl0''.
The command
``cpucontrol -i 0x1 /dev/cpuctl1''
will retrieve the CPUID level 0x1 from CPU 1.
To perform firmware updates on CPU 0 from images located at /usr/local/share/cpuctl/ use the following command:
``cpucontrol -d /usr/local/share/cpuctl/ -u /dev/cpuctl0''
SEE ALSO
cpuctl(4)
HISTORY
The cpucontrol utility first appeared in FreeBSD 7.2.
AUTHORS
The cpucontrol utility and this manual page was written by Stanislav Sedov <stas@FreeBSD.org>.
BUGS
Yes, probably, report if any.
BSD
June 30, 2009 BSD