Skip to content

Commit 851f488

Browse files
committed
docker: Push icx image with icc tag
1 parent aa0d199 commit 851f488

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.github/workflows/docker-bases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
dockerfile: './docker/Dockerfile.cpu'
6767
runner: ubuntu-latest
6868

69-
- tag: 'devitocodes/bases:cpu-icc'
69+
- tag: 'devitocodes/bases:cpu-icc, devitocodes/bases:cpu-icx'
7070
arch: 'arch=icc'
7171
version: ''
7272
dockerfile: './docker/Dockerfile.cpu'

.github/workflows/pytest-core-nompi.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,20 @@ jobs:
9696
python-version: '3.7'
9797
os: ubuntu-latest
9898
arch: "gcc"
99-
tag: "gcc"
10099
language: "openmp"
101100
sympy: "1.10"
102101

103102
- name: pytest-docker-py37-icc-omp
104103
python-version: '3.7'
105104
os: ubuntu-22.04
106105
arch: "icc"
107-
tag: "icc"
108106
language: "openmp"
109107
sympy: "1.11"
110108

111109
- name: pytest-docker-py38-icx-omp
112110
python-version: '3.8'
113111
os: ubuntu-22.04
114112
arch: "icx"
115-
tag: "icc"
116113
language: "openmp"
117114
sympy: "1.11"
118115

@@ -139,7 +136,7 @@ jobs:
139136
- name: Build docker image
140137
if: contains(matrix.name, 'docker')
141138
run: |
142-
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.tag }}
139+
docker build . --file docker/Dockerfile.devito --tag devito_img --build-arg base=devitocodes/bases:cpu-${{ matrix.arch }}
143140
144141
- name: Set run prefix
145142
run: |

devito/arch/compiler.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def __init__(self, *args, **kwargs):
424424
class ClangCompiler(Compiler):
425425

426426
def __init__(self, *args, **kwargs):
427-
super(ClangCompiler, self).__init__(*args, **kwargs)
427+
super().__init__(*args, **kwargs)
428428

429429
self.cflags += ['-Wno-unused-result', '-Wno-unused-variable']
430430
if not configuration['safe-math']:
@@ -491,7 +491,7 @@ class AOMPCompiler(Compiler):
491491
"""AMD's fork of Clang for OpenMP offloading on both AMD and NVidia cards."""
492492

493493
def __init__(self, *args, **kwargs):
494-
super(AOMPCompiler, self).__init__(*args, **kwargs)
494+
super().__init__(*args, **kwargs)
495495

496496
self.cflags += ['-Wno-unused-result', '-Wno-unused-variable']
497497
if not configuration['safe-math']:
@@ -541,7 +541,7 @@ def __lookup_cmds__(self):
541541
class PGICompiler(Compiler):
542542

543543
def __init__(self, *args, **kwargs):
544-
super(PGICompiler, self).__init__(*args, cpp=True, **kwargs)
544+
super().__init__(*args, cpp=True, **kwargs)
545545

546546
self.cflags.remove('-std=c99')
547547
self.cflags.remove('-O3')
@@ -681,7 +681,7 @@ def __lookup_cmds__(self):
681681
class IntelCompiler(Compiler):
682682

683683
def __init__(self, *args, **kwargs):
684-
super(IntelCompiler, self).__init__(*args, **kwargs)
684+
super().__init__(*args, **kwargs)
685685

686686
self.cflags.append("-xHost")
687687
platform = kwargs.pop('platform', configuration['platform'])
@@ -728,7 +728,7 @@ def __lookup_cmds__(self):
728728
class IntelKNLCompiler(IntelCompiler):
729729

730730
def __init__(self, *args, **kwargs):
731-
super(IntelKNLCompiler, self).__init__(*args, **kwargs)
731+
super().__init__(*args, **kwargs)
732732

733733
self.cflags.append('-xMIC-AVX512')
734734

@@ -741,7 +741,7 @@ def __init__(self, *args, **kwargs):
741741
class OneapiCompiler(IntelCompiler):
742742

743743
def __init__(self, *args, **kwargs):
744-
super(OneapiCompiler, self).__init__(*args, **kwargs)
744+
super().__init__(*args, **kwargs)
745745

746746
platform = kwargs.pop('platform', configuration['platform'])
747747
language = kwargs.pop('language', configuration['language'])

0 commit comments

Comments
 (0)