Is ISCP code running on AMD CPUs?

958 views
Skip to first unread message

Tomasz Koziara

unread,
Jun 17, 2013, 4:27:48 AM6/17/13
to ispc-...@googlegroups.com
Hi

Now I am just curious: Will the code generated by ISCP run on AMD processors?

Best regards,
Tomek

Dmitry Babokin

unread,
Jun 17, 2013, 6:04:18 AM6/17/13
to ispc-...@googlegroups.com
Hi,

ISPC was never tuned to run specifically on AMD CPUs, but if the processor supports appropriate instructuction set (SSE4/AVX, etc), the code should run without any problems and has good performance.

Best regards,
Dmitry.


--
You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ispc-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

qmo...@gmail.com

unread,
Jul 31, 2013, 6:17:32 AM7/31/13
to ispc-...@googlegroups.com
Hi, 

I also have the same question as Tomek, but I would like to know more detail if possible. 
For example, if the AMD CPU only support SSE2 or even no SSE, can I still run the code but it's slow or I totally cannot run the code?
And what do you mean by "good performance"? is it as good as Intel CPU or slower but faster than usual C code?

Best regards,
qmokid.

Dmitry Babokin於 2013年6月17日星期一UTC+8下午6時04分18秒寫道:

Matt Pharr

unread,
Jul 31, 2013, 9:10:17 AM7/31/13
to ispc-...@googlegroups.com
On x86 CPUs, ISPC requires at least SSE2 support.  However, both Intel's and AMD's CPUs have supported SSE2 for at least the last ten years; the two have generally adopted ISA extensions within a year or two of each other--recent AMD processors ship with AVX (but not yet AVX2, which the latest Intel ones support), for example.


I haven't checked this, but my guess would be that if a given AMD processor is, for example, generally half as fast as some other Intel processor for general workloads, it would also be half as fast when running ISPC code vs the Intel processor.

Or, put more positively: if something has a 3x speedup with some version of SSE on Intel CPUs, I'd expect about a 3x speedup with the same version of SSE on an AMD CPU (both versus a serial baseline on the corresponding CPU).

Matt

qmo...@gmail.com

unread,
Jul 31, 2013, 10:18:45 PM7/31/13
to ispc-...@googlegroups.com, ma...@pharr.org
Hi Matt,

Thank you for your nice and clear response!

Best regards,
qmokid

Matt Pharr於 2013年7月31日星期三UTC+8下午9時10分17秒寫道:

James Brodman

unread,
Aug 1, 2013, 10:50:24 AM8/1/13
to ispc-...@googlegroups.com, ma...@pharr.org
Matt said it pretty well :)

That being said - if you find any problems with ISPC on AMD, file a bug report!

-James
Reply all
Reply to author
Forward
0 new messages