Posted
Filed under Computer/HPC
컴파일 할때 아래와 같은 에러가 난다면... 다음처럼 해준다.

/opt/intel/Compiler/11.1/059/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
/opt/intel/Compiler/11.1/059/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-11_1/20091013_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'
make[2]: *** [dexe.grd] Error 1
make[2]: Leaving directory `/root/kage/hpl/testing/ptest/amd64'
make[1]: *** [build_tst] Error 2
make[1]: Leaving directory `/root/kage/hpl'
make: *** [build] Error 2

ifort를 이용한 mpif90으로 컴파일하는 옵션을 아래처럼 "-nofor-main"을 추가해준다.
#LINKFLAGS = $(HPL_DEFS) -O3
LINKFLAGS = $(HPL_DEFS) -O3 -nofor-main

그러면 "MAIN__" 에 대한 에러가 사라진다.

이렇게 하여 hpl 2.0을 ACML를 이용하여 돌릴수가 있다.



참조 :
http://developer.amd.com/cpu/libraries/acml/Pages/default.aspx
http://developer.amd.com/cpu/Libraries/acml/onlinehelp/Documents/Linking_002fLinux.html#Linking_002fLinux
2010/03/31 17:39 2010/03/31 17:39
[로그인][오픈아이디란?]