Skip to content

Commit

Permalink
compiler: comments on dpcpp compiler, no need for cpp=False
Browse files Browse the repository at this point in the history
  • Loading branch information
u83311 committed Feb 14, 2022
1 parent f8afece commit b65f0f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devito/arch/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,11 +459,13 @@ def __lookup_cmds__(self):
class DPCPPCompiler(Compiler):

def __init__(self, *args, **kwargs):
super().__init__(*args, cpp=False, **kwargs)
super().__init__(*args, **kwargs)

self.cflags += ['-qopenmp', '-fopenmp-targets=spir64']

def __lookup_cmds__(self):
# OneAPI Base Kit comes with dpcpp/icpx, both are clang++,
# and icx, which is clang
self.CC = 'icx'
self.CXX = 'icpx'
self.MPICC = 'mpic++'
Expand Down

0 comments on commit b65f0f0

Please sign in to comment.