You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using both mpif90, or mpiifort compilers with GPUOPT=ON, gives following error during linking (truncated output, actual one repeats for like 100s of lines):
...
flcnnono.F90:(.text+0x1e2): undefined reference to __kmpc_fork_call' ... flcnnono_sp.F90:(.text+0x219): undefined reference to __kmpc_end_serialized_parallel'
...
kflcnnono.F90:(.text+0x1461): undefined reference to __kmpc_end_reduce_nowait' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to omp_get_nested'
: undefined reference to GOMP_ordered_start' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to GOMP_loop_ordered_dynamic_next'
/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to GOMP_loop_guided_next' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to GOMP_sections_end'
/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to `GOMP_atomic_end'
...
to counter it i added -lgomp and -liomp5 flag. Following which the error message becomes:
deorthomyrho.o: In function deorthomyrho_': deorthomyrho.F90:(.text+0x45): undefined reference to mmlatte_'
deorthomyrho.F90:(.text+0x79): undefined reference to mmlatte_' deorthomyrho.F90:(.text+0xb0): undefined reference to mmlatte_'
deorthomyrho.F90:(.text+0xe4): undefined reference to mmlatte_' deorthomyrho.F90:(.text+0x116): undefined reference to mmlatte_'
deorthomyrho.o:deorthomyrho.F90:(.text+0x14a): more undefined references to `mmlatte_' follow
Makefile:88: recipe for target 'latte' failed
How to compile for GPU?
The text was updated successfully, but these errors were encountered:
when using both mpif90, or mpiifort compilers with GPUOPT=ON, gives following error during linking (truncated output, actual one repeats for like 100s of lines):
...
flcnnono.F90:(.text+0x1e2): undefined reference to
__kmpc_fork_call' ... flcnnono_sp.F90:(.text+0x219): undefined reference to
__kmpc_end_serialized_parallel'...
kflcnnono.F90:(.text+0x1461): undefined reference to
__kmpc_end_reduce_nowait' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to
omp_get_nested': undefined reference to
GOMP_ordered_start' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to
GOMP_loop_ordered_dynamic_next'/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to
GOMP_loop_guided_next' /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to
GOMP_sections_end'/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so: undefined reference to `GOMP_atomic_end'
...
to counter it i added -lgomp and -liomp5 flag. Following which the error message becomes:
deorthomyrho.o: In function
deorthomyrho_': deorthomyrho.F90:(.text+0x45): undefined reference to
mmlatte_'deorthomyrho.F90:(.text+0x79): undefined reference to
mmlatte_' deorthomyrho.F90:(.text+0xb0): undefined reference to
mmlatte_'deorthomyrho.F90:(.text+0xe4): undefined reference to
mmlatte_' deorthomyrho.F90:(.text+0x116): undefined reference to
mmlatte_'deorthomyrho.o:deorthomyrho.F90:(.text+0x14a): more undefined references to `mmlatte_' follow
Makefile:88: recipe for target 'latte' failed
How to compile for GPU?
The text was updated successfully, but these errors were encountered: