Search found 6 matches

by huangguiyang
Thu Oct 17, 2019 12:30 pm
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 713

Re: Compilation problem of magma on ibm power 9 for olcf summit system

The error only happened at the testing stage.

If "make -j 8 lib" first
Then replace O3 by O2 to do the test.

There is no error.

Using O3, can not pass the testing stage. Some function can be found.
by huangguiyang
Thu Oct 17, 2019 12:21 pm
Forum: User discussion
Topic: Problem of xlf+xlc for magma has been resolved.
Replies: 3
Views: 382

Re: Problem of xlf+xlc for magma has been resolved.

magma is a c or c++ code program. If a Fortran code want to use the magma, a fortran-c interface is necessary. However, it is possible that the included fortran-c interface has a trailing underscore. For pgi or gnu compiler, it will add an underscore to the Fortran function name automatically. Then ...
by huangguiyang
Thu Sep 26, 2019 1:51 pm
Forum: User discussion
Topic: Problem of xlf+xlc for magma has been resolved.
Replies: 3
Views: 382

Problem of xlf+xlc for magma has been resolved.

xlf does not add underscore to the function name. If the code which is using magma included an interface for magma, it may still use the name convection with underscores. When gnu or pgi compiler is used, it is ok. But for xl compiler, it would have errors. The solution is adding underscores to the ...
by huangguiyang
Wed Sep 18, 2019 10:24 am
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 713

Re: Compilation problem of magma on ibm power 9 for olcf summit system

When I removed all " -qsmp=omp", "-O3" can be used to compile the magma. If "-qsmp=omp" is kept, only "-O2" can be sued to compile magma. Otherwise, it will show undefined errors Maybe, although the make.inc contains "-qsmp=omp", the compiled version has deleted "-qsmp=omp", or some other configurat...
by huangguiyang
Tue Sep 17, 2019 11:32 am
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 713

Re: Compilation problem of magma on ibm power 9 for olcf summit system

When I saw the "copysignf" undefined, I have already added -lm to library line. It has no effect. Because it is "__copysignf", not "copysignf". When I used nm to check the libtest.a, it shows __copysignf is undefined. "U" I found when I changed "-O3" to "-O2", the compilation can finish without show...
by huangguiyang
Mon Sep 16, 2019 6:29 pm
Forum: User discussion
Topic: Compilation problem of magma on ibm power 9 for olcf summit system
Replies: 5
Views: 713

Compilation problem of magma on ibm power 9 for olcf summit system

There exists compiled magma on summit. But when I try to use the xl compiled magma, it shows segmentation fault errors. On the other hand, the pgi compiled version and gcc compiled version has no problem. I doubt it may have not been compiled correctly. When I used the included make.inc at the corre...