Error while compiling VASP 6.2.1 GPU_ACC mode execution

Questions regarding the compilation of VASP on various platforms: hardware, compilers and libraries, etc.


Moderators: Global Moderator, Moderator

Message
Author
rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Error while compiling VASP 6.2.1 GPU_ACC mode execution

#1 Post by rishikanta_m » Tue Jun 21, 2022 2:55 am

Hi
I got errors while compiling VASP 6.2.1 GPU_ACC mode. Please help.
The make and error files are attached herewith.
You do not have the required permissions to view the files attached to this post.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#2 Post by fabien_tran1 » Tue Jun 21, 2022 8:09 am

Hi,

In the error file there is "/bin/sh: 1: nvfortran: not found", which means that the NVIDIA Fortran compiler nvfortran can not be found. First, make sure that it is available on your system. If yes, then you need either (a) to configure your environment (in .bashrc or with "module load ...") so that the path of nvfortran is known (you can check this by executing "which nvfortran") or (b) to specify the full path of nvfortran in makefile.include.

For (b) it would mean to have something like this:
CPP = /opt/share/.../compilers/bin/nvfortran -Mpreprocess -Mfree ...

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#3 Post by rishikanta_m » Tue Jun 21, 2022 10:36 am

Thanks Fabien.

Earlier, I already installed HPC_SDK 20.9 and nvfortran exists. As suggested, I followed option (b). After the make command, it ran into an error. Please advise me.
You do not have the required permissions to view the files attached to this post.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#4 Post by fabien_tran1 » Tue Jun 21, 2022 11:08 am

According to
https://askubuntu.com/questions/482670/ ... n-makefile
https://stackoverflow.com/questions/137 ... ator-error
the problem may be due to the use of spaces instead of a tab. If this is the case it should be in makefile (and not in makefile.include). Did you previously modify makefile manually?

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#5 Post by rishikanta_m » Tue Jun 21, 2022 12:03 pm

I have also gone through the links you have mentioned earlier. Thought the separator issue was in the makefile.include.
No, I have not modified the makefile. The makefile is attached
You do not have the required permissions to view the files attached to this post.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#6 Post by fabien_tran1 » Tue Jun 21, 2022 12:36 pm

If I understand correctly, the problem with "missing separator" is solved, but now there is another problem ("Unable to open MODULE file preclib.mod"). Is that right?

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#7 Post by rishikanta_m » Tue Jun 21, 2022 12:49 pm

No, it is not solved. I tried but could not.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#8 Post by fabien_tran1 » Tue Jun 21, 2022 12:53 pm

In your previous post, you provided again makefile.include instead of makefile, and make.txt shows another error.

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#9 Post by rishikanta_m » Tue Jun 21, 2022 1:14 pm

Ohh.. sorry. my mistake. The makefile is attached here.
You do not have the required permissions to view the files attached to this post.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#10 Post by fabien_tran1 » Tue Jun 21, 2022 1:24 pm

The makefile looks ok. But this is not clear what are the problems: still "missing separator" or "Unable to open MODULE file preclib.mod". What command did you issue to compile the code? Could you compile the code without problem for the non-GPU case?

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#11 Post by rishikanta_m » Tue Jun 21, 2022 1:33 pm

I used:
"make DEPS=1 -j4 all" to compile

Sorry I didn't try for the non-GPU case.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#12 Post by fabien_tran1 » Tue Jun 21, 2022 1:40 pm

I suggest that you try first to compile the code for normal CPUs. Here https://www.vasp.at/forum/viewtopic.php?f=2&t=18500 it was suggested to do "make veryclean".

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#13 Post by rishikanta_m » Tue Jun 21, 2022 1:49 pm

Okay. I will . Thank you

rishikanta_m
Jr. Member
Jr. Member
Posts: 72
Joined: Wed Jun 15, 2022 5:52 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#14 Post by rishikanta_m » Fri Jun 24, 2022 4:10 am

Hi

I am trying to compile only with CPU. I have installed intel-oneapi-base kit and intel-oneapi-hpc-kit. Then, activated the intel compilers using command "$ source /opt/intel/oneapi/setvars.sh".

Now, I got this error while compiling with command "make DEPS=1 -j".

ifort: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc'
ifort: error #10417: Problem setting up the Intel(R) Compiler compilation environment. Requires 'install path' setting gathered from 'gcc'

Please advise me how to rectify it.
You do not have the required permissions to view the files attached to this post.

fabien_tran1
Global Moderator
Global Moderator
Posts: 417
Joined: Mon Sep 13, 2021 11:02 am

Re: Error while compiling VASP 6.2.1 GPU_ACC mode execution

#15 Post by fabien_tran1 » Fri Jun 24, 2022 7:44 am

Have you tried what is proposed here:
https://bbs.archlinux.org/viewtopic.php?id=239492
https://community.intel.com/t5/Intel-C- ... -p/1133324
which is "export LC_MESSAGES=en_US.UTF-8"

Post Reply