Skip to content

Commit

Permalink
allow compilation Intel+CUDA, adding LDFLAGS_C for .cu files
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/cp2k/code/trunk@18365 bac0169d-1eea-4375-b5f6-f89d2ced9994
  • Loading branch information
alazzaro committed Apr 5, 2018
1 parent faf021e commit 4714fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cp2k/tools/build_utils/makedep.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def main():
deps = collect_pkg_deps(packages, p)
makefile += " ".join(["$(LIBDIR)/"+a+archive_ext for a in deps]) + "\n"
makefile += "\t" + "$(LD) $(LDFLAGS)"
if(fn.endswith(".c")):
if(fn.endswith(".c") or fn.endswith(".cu")):
makefile += " $(LDFLAGS_C)"
makefile += " -L$(LIBDIR) -o $@ %s.o "%bfn
makefile += "$(EXTERNAL_OBJECTS) "
Expand Down

0 comments on commit 4714fdf

Please sign in to comment.