Is there a drop-in replacement to glibc's libm (and headers?) for x86_64-linux that is faster?
对于x86_64-linux,glibc的libm(以及标题?)是否有更快的替代品?
3 个解决方案
#1
2
The math library distributed with ICC is substantially faster for many of the libm functions, but does require purchasing ICC. I believe you can download a free trial version if you're curious about it. I know that they support Linux, and believe that they try to be drop-in compatible with the GCC library. ICC also includes vectorized implementations of many of the libm functions in the Math Kernel Library, which may be useful to you.
与ICC一起分发的数学库对于许多libm函数来说要快得多,但确实需要购买ICC。如果您对它感到好奇,我相信您可以下载免费试用版。我知道他们支持Linux,并且相信他们会尝试与GCC库兼容。 ICC还包括Math Kernel Library中许多libm函数的向量化实现,这可能对您有用。
#2
1
Both AMD and Intel have heavily optimized math libraries available for their CPUs. They are not free.
AMD和英特尔都为其CPU提供了大量优化的数学库。他们不是免费的。
They don't implement simple stuff. These libraries are for fast Fourier transforms, huge matrix problems and other things.
他们没有实现简单的东西。这些库用于快速傅立叶变换,巨大的矩阵问题和其他事情。
The fast-math compiler option will speed up floating point math a lot. However, you will be responsible for your own error checking.
快速数学编译器选项将加速浮点数学运算。但是,您将负责自己的错误检查。
#3
-1
Depending on what exact math functions you are wanting to run and how large of a data set you will be running them on, you may want to take a look at something like CUDA which will let you use the speedy mathematical capabilities of your graphics chip to do your processing.
根据您想要运行的精确数学函数以及运行它们的数据集的大小,您可能需要查看类似CUDA的内容,它可以让您使用图形芯片的快速数学功能做你的处理。
#1
2
The math library distributed with ICC is substantially faster for many of the libm functions, but does require purchasing ICC. I believe you can download a free trial version if you're curious about it. I know that they support Linux, and believe that they try to be drop-in compatible with the GCC library. ICC also includes vectorized implementations of many of the libm functions in the Math Kernel Library, which may be useful to you.
与ICC一起分发的数学库对于许多libm函数来说要快得多,但确实需要购买ICC。如果您对它感到好奇,我相信您可以下载免费试用版。我知道他们支持Linux,并且相信他们会尝试与GCC库兼容。 ICC还包括Math Kernel Library中许多libm函数的向量化实现,这可能对您有用。
#2
1
Both AMD and Intel have heavily optimized math libraries available for their CPUs. They are not free.
AMD和英特尔都为其CPU提供了大量优化的数学库。他们不是免费的。
They don't implement simple stuff. These libraries are for fast Fourier transforms, huge matrix problems and other things.
他们没有实现简单的东西。这些库用于快速傅立叶变换,巨大的矩阵问题和其他事情。
The fast-math compiler option will speed up floating point math a lot. However, you will be responsible for your own error checking.
快速数学编译器选项将加速浮点数学运算。但是,您将负责自己的错误检查。
#3
-1
Depending on what exact math functions you are wanting to run and how large of a data set you will be running them on, you may want to take a look at something like CUDA which will let you use the speedy mathematical capabilities of your graphics chip to do your processing.
根据您想要运行的精确数学函数以及运行它们的数据集的大小,您可能需要查看类似CUDA的内容,它可以让您使用图形芯片的快速数学功能做你的处理。