NAMD: FIX build +cuda and mpi ~smp (#20778)

* NAMD: FIX build +cuda

Hi,
If I try to compile NAMD with CUDA support, it fails because cannot file the file "{self.arch}.cuda" because it is undet the "arch" folder.

* NAMD: FIX mpi ~smp

Fix `spack install namd ^charmpp backend=mpi ~smp`
This commit is contained in:
yellowhat 2021-01-19 05:12:06 +00:00 committed by GitHub
parent a36c40b61d
commit 83eec2d170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ def _edit_arch_generic(self, spec, prefix):
else:
optims_opts = {
'gcc': m64 + '-O3 -fexpensive-optimizations \
-ffast-math ' + archopt,
-ffast-math -lpthread ' + archopt,
'intel': '-O2 -ip ' + archopt,
'aocc': m64 + '-O3 -ffp-contract=fast \
-ffast-math ' + archopt}
@ -226,7 +226,7 @@ def edit(self, spec, prefix):
self._append_option(opts, 'cuda')
filter_file('^CUDADIR=.*$',
'CUDADIR={0}'.format(spec['cuda'].prefix),
self.arch + '.cuda')
join_path('arch', self.arch + '.cuda'))
config = Executable('./config')