|
7 | 7 | except: |
8 | 8 | # SConscript('../../api/c/SConstruct') |
9 | 9 | SConscript('../lexing/SConstruct') |
10 | | - # SConscript('../../su/lib/SConstruct') |
| 10 | + SConscript('../../su/lib/SConstruct') |
11 | 11 | glob_build = False # scons command launched in the local directory |
12 | 12 | srcroot = os.environ.get('RSFSRC', '../..') |
13 | 13 | bindir = libdir = pkgdir = None |
|
24 | 24 |
|
25 | 25 | cprogs = '''permwave2d''' |
26 | 26 | ccprogs = '''permlr2ddti''' |
27 | | -cuprogs = '''awefd3dgpu''' |
| 27 | +cuprogs = '' # '''awefd3dgpu''' <- problem compiling with CUDA 12 |
28 | 28 | cmpiprogs = '''mpitransp''' |
29 | 29 |
|
30 | 30 | #-------------------------------------------------------------------------- |
@@ -77,10 +77,11 @@ nvcc = env.get('NVCC') |
77 | 77 |
|
78 | 78 | env_cu.Replace(CXX=nvcc,CXXFLAGS=cuflags,LINKFLAGS=culinkflags,LIBS=culibs) |
79 | 79 | #------ |
80 | | -cutargets = bldutil.HuiSconsTargets(cufiles=cuprogs) |
81 | | -if nvcc: |
82 | | - cutargets.has_nvcc = True |
83 | | -cutargets.build_cu(env_cu, glob_build, srcroot, bindir, libdir, pkgdir) |
| 80 | +if cuprogs: |
| 81 | + cutargets = bldutil.HuiSconsTargets(cufiles=cuprogs) |
| 82 | + if nvcc: |
| 83 | + cutargets.has_nvcc = True |
| 84 | + cutargets.build_cu(env_cu, glob_build, srcroot, bindir, libdir, pkgdir) |
84 | 85 |
|
85 | 86 | # ------------------------ COMPILE C MPI PROGRAMS --------------------------- |
86 | 87 | cmpiflags = env.get('CFLAGS') |
|
0 commit comments