Oops - send the wrong asm code.
While "=S" is correct for the second constraint, I meant to send a version
that had "=r" because it allows the compiler more choices.

-Paul

On Mon, Jul 20, 2015 at 11:12 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:

> PGI-14.10 for 32-bit targets fails in the same manner as 13.7, 13.9 and
> 13.10.
>
> I believe the following inline x86 asm is correct and more robust than the
> existing code that pgi appears to reject:
>
> #elif defined(HWLOC_X86_32_ARCH)
>   __asm__(
>   "xchg %%ebx,%1\n\t"
>   "cpuid\n\t"
>   "xchg %%ebx,%1\n\t"
>   : "=a" (*eax), "=S" (*ebx), "=c" (*ecx), "=d" (*edx)
>   : "0" (*eax), "2" (*ecx));
> #else
>
> -Paul
>
> On Mon, Jul 20, 2015 at 9:50 PM, Paul Hargrove <phhargr...@lbl.gov> wrote:
>
>> Pavan,
>>
>> I can confirm that I see the same with PGI-13.10.
>>
>> I have a couple systems with 14.x installed but neither with 32-bit
>> support.
>> I am downloading 32-bit support now (which I am assuming will work with
>> the existing license) and will report back.
>>
>> -Paul
>>
>> On Mon, Jul 20, 2015 at 9:00 PM, Balaji, Pavan <bal...@anl.gov> wrote:
>>
>>> Hello,
>>>
>>> The hwloc-1.11 build seems to fail with the pgi compiler on 32-bit
>>> platforms.  I see the following error:
>>>
>>> ----8<----
>>>   CC       topology-x86.lo
>>> PGC-F-0000-Internal compiler error. unable to allocate a register
>>>  8 (topology-x86.c: 87)
>>> PGC/x86 Linux 13.9-0: compilation aborted
>>> ----8<----
>>>
>>> I only tried pgi-13.7 and 13.9 (I don't have access to later compiler
>>> versions).  It looks like the compiler doesn't like the assembly code in
>>> include/private/cpuid-x86.h for 32-bit platforms.
>>>
>>>
>>>
>>> Thanks,
>>>
>>>   -- Pavan
>>>
>>> _______________________________________________
>>> hwloc-devel mailing list
>>> hwloc-de...@open-mpi.org
>>> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-devel
>>> Link to this post:
>>> http://www.open-mpi.org/community/lists/hwloc-devel/2015/07/4501.php
>>>
>>
>>
>>
>> --
>> Paul H. Hargrove                          phhargr...@lbl.gov
>> Computer Languages & Systems Software (CLaSS) Group
>> Computer Science Department               Tel: +1-510-495-2352
>> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>>
>
>
>
> --
> Paul H. Hargrove                          phhargr...@lbl.gov
> Computer Languages & Systems Software (CLaSS) Group
> Computer Science Department               Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
>



-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department               Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to