Skip to content

Commit

Permalink
CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomel committed Oct 30, 2024
1 parent 33b027e commit 9109bf9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions user/hwang/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ try:
except:
# SConscript('../../api/c/SConstruct')
SConscript('../lexing/SConstruct')
# SConscript('../../su/lib/SConstruct')
SConscript('../../su/lib/SConstruct')
glob_build = False # scons command launched in the local directory
srcroot = os.environ.get('RSFSRC', '../..')
bindir = libdir = pkgdir = None
Expand All @@ -24,7 +24,7 @@ else:

cprogs = '''permwave2d'''
ccprogs = '''permlr2ddti'''
cuprogs = '''awefd3dgpu'''
cuprogs = '' # '''awefd3dgpu''' <- problem compiling with CUDA 12
cmpiprogs = '''mpitransp'''

#--------------------------------------------------------------------------
Expand Down Expand Up @@ -77,10 +77,11 @@ nvcc = env.get('NVCC')

env_cu.Replace(CXX=nvcc,CXXFLAGS=cuflags,LINKFLAGS=culinkflags,LIBS=culibs)
#------
cutargets = bldutil.HuiSconsTargets(cufiles=cuprogs)
if nvcc:
cutargets.has_nvcc = True
cutargets.build_cu(env_cu, glob_build, srcroot, bindir, libdir, pkgdir)
if cuprogs:
cutargets = bldutil.HuiSconsTargets(cufiles=cuprogs)
if nvcc:
cutargets.has_nvcc = True
cutargets.build_cu(env_cu, glob_build, srcroot, bindir, libdir, pkgdir)

# ------------------------ COMPILE C MPI PROGRAMS ---------------------------
cmpiflags = env.get('CFLAGS')
Expand Down

0 comments on commit 9109bf9

Please sign in to comment.