<div dir="ltr">Hi Abhishek,<br><br>I suspect your problem is caused by a bug in ifort. Can you try a newer version of ifort, or gfortran?<br><br>-Ole<br><span class="c"><br></span><span class="nv">dbcsr_memtype_type</span><span class="p">(</span><span class="nv">pool</span><span class="o">=</span><span class="nv">Null</span><span class="p">())</span><br><br>On Wednesday, September 17, 2014 10:10:51 PM UTC+2, Abhishek Bagusetty wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">Hi Users and Developers,<br><br>I am trying to compile and build a CUDA build of CP2K and end up getting these annoying errors.<br><br><b>dbcsr_types.f90(275): error #7747: Invalid parameter expression.   [DBCSR_MEMTYPE_TYPE]<br>  TYPE(dbcsr_memtype_type), PARAMETER :: dbcsr_memtype_default = dbcsr_memtype_type(pool=Null()<wbr>)<br>------------------------------<wbr>------------------------------<wbr>-----^<br>dbcsr_types.f90(276): error #7747: Invalid parameter expression.   [DBCSR_MEMTYPE_TYPE]<br>  TYPE(dbcsr_memtype_type), PARAMETER :: dbcsr_memtype_MPI = dbcsr_memtype_type(mpi=.TRUE., pool=Null())<br>------------------------------<wbr>------------------------------<wbr>-^<br>dbcsr_types.f90(303): error #7367: The data value NULL() can only be assigned to a Fortran POINTER.<br>     TYPE(dbcsr_memtype_type)      <wbr>           :: memory_type = dbcsr_memtype_default</b><br><br>Here is the ARCH (Linux-x86-64-cuda.sopt) file that I used.<br><br>PERL     = perl<br>CC       = gcc<br>CPP      = cpp<br>NVCC     = nvcc<br>FC       = ifort -FR<br>LD       = ifort -i-static -openmp<br>AR       = ar -r<br>DFLAGS   = -D__INTEL -D__FFTSG -D__FFTW3 -D__FFTMKL -D__PW_CUDA -D__DBCSR_CUDA -D__SCALAPACK -D__BLACS<br>CFLAGS   =  -O2<br>CPPFLAGS = -traditional -C $(DFLAGS) -P -I/opt/intel/mkl/<a href="http://10.2.5.035/include/fftw" target="_blank" onmousedown="this.href='http://10.2.5.035/include/fftw';return true;" onclick="this.href='http://10.2.5.035/include/fftw';return true;">10.2.5.035/<wbr>include/fftw</a><br>NVFLAGS  = $(DFLAGS) -g -arch sm_30<br>FCFLAGS  = $(DFLAGS) -O2 -xW<br>MKLPATH  = /opt/intel/mkl/<a href="http://10.2.5.035/lib/em64t/" target="_blank" onmousedown="this.href='http://10.2.5.035/lib/em64t/';return true;" onclick="this.href='http://10.2.5.035/lib/em64t/';return true;">10.2.5.035/lib/<wbr>em64t/</a><br>CUDAPATH = /usr/local/cuda/lib/<br>LDFLAGS  = $(FCFLAGS)<br>LIBS     = -L$(MKLPATH)\<br>           $(MKLPATH)/libmkl_em64t.a\<br>           $(MKLPATH)/libmkl_lapack.a\<br>           $(MKLPATH)/libguide.a\<br>           $(CUDAPATH)/libcudart.so\<br>           $(CUDAPATH)/libcufft.so\<br>           $(CUDAPATH)/libcublas.so\<br>           /usr/lib64/libfftw3f.so.3\<br>           -lpthread<br><br>I am pretty sure that something might have gone wrong with the flags. It would be great, if there are any pointers that can help me to fix this issue. <br><br>Appreciate your time and effort.<br><br>Thanks,<br>Abhishek<br><br><span><div><div dir="ltr"><div><div><div><div><div><div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------<br>Abhishek Bagusetty<br></span></span></font></div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">PhD Student, Computational Modeling & Simulation<br></span></span></font></div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">Center for Simulation and Modeling<br></span></span></font></div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">Department of Chemical & Petroleum Engineering<br></span></span></font></div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">University of Pittsburgh</span><br><span style="color:rgb(0,0,255)">Pittsburgh, PA - 15261</span></span></font></div><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">Office : 920 Benedum Hall<br></span></span></font></div><span style="font-family:verdana,sans-serif"><font><span style="color:rgb(0,0,255)"><font size="1"><span style="font-family:georgia,serif">Email : <a href="javascript:" target="_blank" gdf-obfuscated-mailto="Qc6InwzfnmUJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">ab...@pitt.edu</a></span></font><br></span></font></span><div><div><span style="font-family:verdana,sans-serif"><font><span style="color:rgb(0,0,255)"></span></font></span><font size="1"><span style="font-family:georgia,serif"><span style="color:rgb(0,0,255)">------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>-----------------</span></span></font></div></div></div></div></span><br><br></div></blockquote></div>