gpu library

Hi,

I was trying to build gpu library to use it with lammps I got the following messages…

~/Desktop/lammps/src$ sudo ./Make.py -p gpu -gpu mode=single arch=35 -o gpu -a lib-gpu file mpi

Installing packages …

Action lib-gpu …

building gpu library …

Traceback (most recent call last):

File “./Make.py”, line 2302, in

if action.startswith(“lib-”): actions.lib(action[4:])

File “./Make.py”, line 234, in lib

exec(str)

File “”, line 1, in

File “./Make.py”, line 1301, in build

if “shannon” in os.environ.get(“HOST”): make = “srun make”

TypeError: argument of type ‘NoneType’ is not iterable

I think it has to do python…I have python 2.7 installed…

I appreciate any help…

Hi,
I was trying to build gpu library to use it with lammps I got the following
messages...

~/Desktop/lammps/src$ sudo ./Make.py -p gpu -gpu mode=single arch=35 -o gpu
-a lib-gpu file mpi

Installing packages ...

Action lib-gpu ...

building gpu library ...

Traceback (most recent call last):

File "./Make.py", line 2302, in <module>

if action.startswith("lib-"): actions.lib(action[4:])

File "./Make.py", line 234, in lib

exec(str)

File "<string>", line 1, in <module>

File "./Make.py", line 1301, in build

if "shannon" in os.environ.get("HOST"): make = "srun make"

TypeError: argument of type 'NoneType' is not iterable

I think it has to do python...I have python 2.7 installed....

no. it is sloppy (python) programming in Make.py. :wink:

please try applying the following change to your copy of Make.py

diff --git a/src/Make.py b/src/Make.py
index 81d0c65..8c46cfc 100755
--- a/src/Make.py
+++ b/src/Make.py
@@ -5,7 +5,7 @@
# Syntax: Make.py -h (for help)
# Notes: needs python 2.7 (not Python 3)

-import sys,os,commands,re,copy,subprocess
+import sys,os,commands,re,copy,subprocess,platform

# switch abbrevs
# switch classes = created class for each switch
@@ -1298,7 +1298,7 @@ class GPU:
     # this is b/c Cuda libs are not all available on host

     make = "make"
- if "shannon" in os.environ.get("HOST"): make = "srun make"
+ if "shannon" == platform.node() : make = "srun make"

     commands.getoutput("cd %s; s \-f Makefile\.auto clean&quot; (libdir,make))
     if jmake: str = "cd %s; %s -j d \-f Makefile\.auto&quot; (libdir,make,jmake.n)

you can also try building the conventional way using makefiles directly.

axel.