On 6 April 2014 09:53, Денис Крыськов <crazzy.y...@gmail.com> wrote:

>
>
> On Sunday, April 6, 2014 10:12:36 AM UTC+4, 袁轶君 wrote:
>>
>> Well, I solved my problem. MPIR can only be built in a pure ASCII
>> path...No UNICODE characters is allowed. Besides that ,I have a question.
>> What's the difference between lib_mpir_core2
>>
>
> Can't confirm the statement about unicode. Looks like MPIR likes Russian
> more than Chinese (or maybe MPIR likes Linux better than Windoz).
> Successfully built in /tmp/ы where ы is a Russian letter.
>

This is likely a problem with Visual Studio. The linux build process is
completely different.  But thanks for checking.


>
> *g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../tests    -m64 -O2
> -march=corei7-avx -mtune=corei7-avx -c -o t-unary.o t-unary.cc*
> */bin/sh ../../libtool --tag=CXX   --mode=link g++  -m64 -O2
> -march=corei7-avx -mtune=corei7-avx   -o t-unary t-unary.o -L../../.libs
> ../../tests/libtests.la <http://libtests.la> ../../libmpirxx.la
> <http://libmpirxx.la> ../../libmpir.la <http://libmpir.la> *
> *libtool: link: g++ -m64 -O2 -march=corei7-avx -mtune=corei7-avx -o
> .libs/t-unary t-unary.o  -L../../.libs ../../tests/.libs/libtests.a
> /tmp/ы/mpir-2.7.0/.libs/libmpir.so -lm ../../.libs/libmpirxx.so
> ../../.libs/libmpir.so*
> *make[4]: Leaving directory `/tmp/ы/mpir-2.7.0/tests/cxx'*
> *make  check-TESTS*
> *make[4]: Entering directory `/tmp/ы/mpir-2.7.0/tests/cxx'*
> *make[5]: Entering directory `/tmp/ы/mpir-2.7.0/tests/cxx'*
> *PASS: t-assign*
> *PASS: t-binary*
> *PASS: t-cast*
> *PASS: t-constr*
> *PASS: t-headers*
> *PASS: t-istream*
> *PASS: t-locale*
> *PASS: t-misc*
> *PASS: t-ops*
> *PASS: t-ostream*
> *PASS: t-prec*
> *PASS: t-rand*
> *PASS: t-ternary*
> *PASS: t-unary*
> *===================*
> *All 14 tests passed*
> *===================*
>
> I wonder is this correct that -march=corei7-avx instead of corei5 (I got
> Intel(R) Core(TM) i5-2500K)?
>

I think so. If you tell me the result of

cat /proc/cpuinfo

in particular the line that starts "model name", I will check and make sure
it is correct.


> Has anybody benchmarked MPIR-2.6.0 against GMP in integer arithmetic under
> amd64/Linux? Is it possible to use MPIR instead of GMP for Sage/FLINT under
> Linux?
>

Sage uses MPIR by default, and flint 2.4 supports GMP and MPIR. We have
done some limited benchmarking. On a 2008 AMD Opteron, MPIR was faster than
GMP for many things. But we expect GMP to be faster for very recent chips
with avx (we don't have access to really recent chips, so we can't even
check this).

We should compare some more architectures. I think on Intel penryn
architecture some things are faster in GMP some faster in MPIR.


>
> Please forgive me if the questions sound silly. I can't sleep at night
> knowing that my program runs slower than it could.
>

Of course.

Bill.

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mpir-devel+unsubscr...@googlegroups.com.
To post to this group, send email to mpir-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/mpir-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to