Welcome! Log In Create A New Profile

Advanced

Patch for Icc v11.1 compile

Posted by nightsailer 
nightsailer
Patch for Icc v11.1 compile
November 23, 2009 12:46PM
Hi, I've tried compile php-fpm with intel icc compiler v11.1,but make
error:
fpm_atomic.h(116): catastrophic error: #error directive: unsupported
architecture. please write a patch and send it in
#error unsupported architecture. please write a patch and send it in


so, I check it, and fix it:

@@ -37,7 +37,7 @@
return res;
}

-#elif ( __amd64__ || __amd64 )
+#elif ( __amd64__ || __amd64 || __x86_64__ )

typedef int64_t atomic_int_t;
typedef uint64_t atomic_uint_t;



make again, all's ok!
Re: Patch for Icc v11.1 compile
November 23, 2009 06:04PM
nice - and it runs without any issues?

On Mon, Nov 23, 2009 at 9:41 AM, nightsailer <nightsailer@gmail.com> wrote:
> Hi, I've tried compile php-fpm with intel icc compiler v11.1,but make
> error:
> fpm_atomic.h(116): catastrophic error: #error directive: unsupported
> architecture. please write a patch and send it in
>  #error unsupported architecture. please write a patch and send it in
>
>
> so, I check it, and fix it:
>
> @@ -37,7 +37,7 @@
>     return res;
>  }
>
> -#elif ( __amd64__ || __amd64 )
> +#elif ( __amd64__ || __amd64 || __x86_64__  )
>
>  typedef int64_t                     atomic_int_t;
>  typedef uint64_t                    atomic_uint_t;
>
>
>
> make again, all's ok!
>
nightsailer
Re: Patch for Icc v11.1 compile
November 24, 2009 12:46AM
Yes, works fine.
Intel EM64T is compatible with AMD64.


On Nov 24, 7:03 am, Michael Shadle <mike...@gmail.com> wrote:
> nice - and it runs without any issues?
>
>
>
> On Mon, Nov 23, 2009 at 9:41 AM, nightsailer <nightsai...@gmail.com> wrote:
> > Hi, I've tried compile php-fpm with intel icc compiler v11.1,but make
> > error:
> > fpm_atomic.h(116): catastrophic error: #error directive: unsupported
> > architecture. please write a patch and send it in
> >  #error unsupported architecture. please write a patch and send it in
>
> > so, I check it, and fix it:
>
> > @@ -37,7 +37,7 @@
> >     return res;
> >  }
>
> > -#elif ( __amd64__ || __amd64 )
> > +#elif ( __amd64__ || __amd64 || __x86_64__  )
>
> >  typedef int64_t                     atomic_int_t;
> >  typedef uint64_t                    atomic_uint_t;
>
> > make again, all's ok!
Re: Patch for Icc v11.1 compile
November 24, 2009 03:02AM
Oh yeah. I know that. For some reason I always associate icc with IA64.

Durrr. Cool. We'll get this fixed soon. If you submitted a ticket for
it with the resolution it helps for accounting

Sent from my iPhone

On Nov 23, 2009, at 9:45 PM, nightsailer <nightsailer@gmail.com> wrote:

> Yes, works fine.
> Intel EM64T is compatible with AMD64.
>
>
> On Nov 24, 7:03 am, Michael Shadle <mike...@gmail.com> wrote:
>> nice - and it runs without any issues?
>>
>>
>>
>> On Mon, Nov 23, 2009 at 9:41 AM, nightsailer
>> <nightsai...@gmail.com> wrote:
>>> Hi, I've tried compile php-fpm with intel icc compiler v11.1,but
>>> make
>>> error:
>>> fpm_atomic.h(116): catastrophic error: #error directive: unsupported
>>> architecture. please write a patch and send it in
>>> #error unsupported architecture. please write a patch and send it
>>> in
>>
>>> so, I check it, and fix it:
>>
>>> @@ -37,7 +37,7 @@
>>> return res;
>>> }
>>
>>> -#elif ( __amd64__ || __amd64 )
>>> +#elif ( __amd64__ || __amd64 || __x86_64__ )
>>
>>> typedef int64_t atomic_int_t;
>>> typedef uint64_t atomic_uint_t;
>>
>>> make again, all's ok!
Re: Patch for Icc v11.1 compile
November 25, 2009 07:29AM
another hack is here, Note: not my idea:
modify the following code in the sapi/cgi/fpm/fpm_atomic.h file:
[code]
#elif ( __amd64__ || __amd64 )
[/code]

to:
[code]
#elif ( __amd64__ || __amd64 || _M_X64 || __x86_64__ )
[/code]


But I recommended you compile your application with ICC 10.1.025. I compiled some applicationes with ICC 10.1.025, such as openssl, prce, curl, php, mysql, and more.
But when I compiled these applicationes with ICC 11, I had got some errors. So I think the best choice is ICC 10.1.025, the last version of ICC10. and the download link is
http://registrationcenter-download.intel.com/akdlm/irc_nas/1569/l_cc_p_10.1.025_intel64.tar.gz
ks
Re: Patch for Icc v11.1 compile
November 25, 2009 08:22AM
Are there considerable benefits, when using Intel's compiler versus stock
compiler?
Do you have any benchmark to share?

thanks,
Khazret

On Wed, Nov 25, 2009 at 7:29 AM, filebackup <nginx-forum@nginx.us> wrote:

> another hack is here, Note: not my idea:
> modify the following code in the sapi/cgi/fpm/fpm_atomic.h file:
>
> #elif ( __amd64__ || __amd64 )
>
>
> to:
>
> #elif ( __amd64__ || __amd64 || _M_X64 || __x86_64__ )
>
>
>
> But I recommended you compile your application with ICC 10.1.025. I
> compiled some applicationes with ICC 10.1.025, such as openssl, prce, curl,
> php, mysql, and more.
> But when I compiled these applicationes with ICC 11, I had got some
> errors. So I think the best choice is ICC 10.1.025, the last version of
> ICC10. and the download link is
>
> http://registrationcenter-download.intel.com/akdlm/irc_nas/1569/l_cc_p_10.1.025_intel64.tar.gz
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?3,25051,25500#msg-25500
>
>
Re: Patch for Icc v11.1 compile
November 25, 2009 10:10AM
Sorry!

For benchmark, you can google it, or can visit the forum of intel corp, the link is http://software.intel.com/en-us/forums/intel-c-compiler/
nightsailer
Re: Patch for Icc v11.1 compile
November 25, 2009 01:16PM
I've been used icc from v8.x to v10.x, now it's v11.1.
And, I've compiled PHP/MYSQL/NGINX (etc..) success with ICC v11.x.
It works fine for me.

Icc v10.x is ok, but it also has some problem when compile some
applications, but v11.x works fine.
So, you should tune compile flags,options, it's hard work, but the
benefit is worth, I hope ;-)

On Nov 25, 8:29 pm, "filebackup" <nginx-fo...@nginx.us> wrote:
> another hack is here, Note: not my idea:
> modify the following code in the sapi/cgi/fpm/fpm_atomic.h file:
>
> #elif ( __amd64__ || __amd64 )
>
> to:
>
> #elif ( __amd64__ || __amd64 || _M_X64 || __x86_64__ )
>
> But I recommended you compile your application with ICC 10.1.025. I compiled some applicationes with ICC 10.1.025, such as openssl, prce, curl, php, mysql, and more.
> But when I compiled these applicationes with  ICC 11, I had got some errors. So I think the best choice is  ICC 10.1.025, the last version of ICC10. and the download link ishttp://registrationcenter-download.intel.com/akdlm/irc_nas/1569/l_cc_...
>
> Posted at Nginx Forum:http://forum.nginx.org/read.php?3,25051,25500#msg-25500
nightsailer
Re: Patch for Icc v11.1 compile
November 25, 2009 01:28PM
Ok, I've submitted.

https://bugs.launchpad.net/php-fpm/+bug/488361


On Nov 24, 4:01 pm, Michael Shadle <mike...@gmail.com> wrote:
> Oh yeah. I know that. For some reason I always associate icc with IA64.
>
> Durrr. Cool. We'll get this fixed soon. If you submitted a ticket for  
> it with the resolution it helps for accounting
>
> Sent from my iPhone
>
> On Nov 23, 2009, at 9:45 PM, nightsailer <nightsai...@gmail.com> wrote:
>
>
>
> > Yes, works fine.
> > Intel EM64T is compatible with AMD64.
>
> > On Nov 24, 7:03 am, Michael Shadle <mike...@gmail.com> wrote:
> >> nice - and it runs without any issues?
>
> >> On Mon, Nov 23, 2009 at 9:41 AM, nightsailer  
> >> <nightsai...@gmail.com> wrote:
> >>> Hi, I've tried compile php-fpm with intel icc compiler v11.1,but  
> >>> make
> >>> error:
> >>> fpm_atomic.h(116): catastrophic error: #error directive: unsupported
> >>> architecture. please write a patch and send it in
> >>>  #error unsupported architecture. please write a patch and send it  
> >>> in
>
> >>> so, I check it, and fix it:
>
> >>> @@ -37,7 +37,7 @@
> >>>     return res;
> >>>  }
>
> >>> -#elif ( __amd64__ || __amd64 )
> >>> +#elif ( __amd64__ || __amd64 || __x86_64__  )
>
> >>>  typedef int64_t                     atomic_int_t;
> >>>  typedef uint64_t                    atomic_uint_t;
>
> >>> make again, all's ok!
ks
Re: Patch for Icc v11.1 compile
November 25, 2009 09:38PM
Not a problem.

I've seen several recommendations and benchmarks on Intel compiler for
number of products(MySQL recommended it heavily awhile ago), even compiled
some code for my Fortran and C programs several years ago.

I just wondered why would [php]people choose ICC vs stock and what are
benefits and tradeoffs, so everyone see real numbers behind blind belief or
intuition.

On Wed, Nov 25, 2009 at 10:10 AM, filebackup <nginx-forum@nginx.us> wrote:

> Sorry!
>
> For benchmark, you can google it, or can visit the forum of intel corp, the
> link is http://software.intel.com/en-us/forums/intel-c-compiler/
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?3,25051,25526#msg-25526
>
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 349
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready