Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling with GPU support #107

Open
ipcamit opened this issue May 22, 2019 · 1 comment
Open

Compiling with GPU support #107

ipcamit opened this issue May 22, 2019 · 1 comment

Comments

@ipcamit
Copy link

ipcamit commented May 22, 2019

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?

@KapilS25
Copy link

KapilS25 commented Dec 16, 2021

Hi,
I got the same error, then i switched from latte 1.2.2 to latte 1.2.1 & the error no longer persist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants