Skip to content

Commit 9109bf9

Browse files
committed
CUDA
1 parent 33b027e commit 9109bf9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

user/hwang/SConstruct

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ try:
77
except:
88
# SConscript('../../api/c/SConstruct')
99
SConscript('../lexing/SConstruct')
10-
# SConscript('../../su/lib/SConstruct')
10+
SConscript('../../su/lib/SConstruct')
1111
glob_build = False # scons command launched in the local directory
1212
srcroot = os.environ.get('RSFSRC', '../..')
1313
bindir = libdir = pkgdir = None
@@ -24,7 +24,7 @@ else:
2424

2525
cprogs = '''permwave2d'''
2626
ccprogs = '''permlr2ddti'''
27-
cuprogs = '''awefd3dgpu'''
27+
cuprogs = '' # '''awefd3dgpu''' <- problem compiling with CUDA 12
2828
cmpiprogs = '''mpitransp'''
2929

3030
#--------------------------------------------------------------------------
@@ -77,10 +77,11 @@ nvcc = env.get('NVCC')
7777

7878
env_cu.Replace(CXX=nvcc,CXXFLAGS=cuflags,LINKFLAGS=culinkflags,LIBS=culibs)
7979
#------
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)
8485

8586
# ------------------------ COMPILE C MPI PROGRAMS ---------------------------
8687
cmpiflags = env.get('CFLAGS')

0 commit comments

Comments
 (0)