Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cscs-checks/mch/automatic_arrays_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause

import reframe as rfm
import reframe.utility.os_ext as os_ext
import reframe.utility.sanity as sn


Expand Down Expand Up @@ -87,6 +88,9 @@ def cray_linker_workaround(self):

@rfm.run_before('compile')
def cdt2006_pgi_workaround(self):
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-pgi'):
cdt = os_ext.cray_cdt_version()
if not cdt:
return

if (self.current_environ.name == 'PrgEnv-pgi' and cdt == '20.06'):
self.variables.update({'CUDA_HOME': '$CUDATOOLKIT_HOME'})
8 changes: 6 additions & 2 deletions cscs-checks/mch/gpu_direct_acc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import os
import reframe as rfm
import reframe.utility.os_ext as os_ext
import reframe.utility.sanity as sn


Expand Down Expand Up @@ -83,6 +84,9 @@ def cray_linker_workaround(self):

@rfm.run_before('compile')
def cdt2006_pgi_workaround(self):
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-pgi'):
cdt = os_ext.cray_cdt_version()
if not cdt:
return

if (self.current_environ.name == 'PrgEnv-pgi' and cdt == '20.06'):
self.variables['CUDA_HOME'] = '$CUDATOOLKIT_HOME'
8 changes: 6 additions & 2 deletions cscs-checks/mch/openacc_cuda_mpi_cppstd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause

import reframe as rfm
import reframe.utility.os_ext as os_ext
import reframe.utility.sanity as sn


Expand Down Expand Up @@ -93,6 +94,9 @@ def setflags(self):

@rfm.run_before('compile')
def cdt2006_pgi_workaround(self):
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-pgi'):
cdt = os_ext.cray_cdt_version()
if not cdt:
return

if (self.current_environ.name == 'PrgEnv-pgi' and cdt == '20.06'):
self.variables.update({'CUDA_HOME': '$CUDATOOLKIT_HOME'})
8 changes: 6 additions & 2 deletions cscs-checks/prgenv/openacc_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: BSD-3-Clause

import reframe as rfm
import reframe.utility.os_ext as os_ext
import reframe.utility.sanity as sn


Expand Down Expand Up @@ -77,6 +78,9 @@ def cray_linker_workaround(self):

@rfm.run_before('compile')
def cdt2006_pgi_workaround(self):
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-pgi'):
cdt = os_ext.cray_cdt_version()
if not cdt:
return

if (self.current_environ.name == 'PrgEnv-pgi' and cdt == '20.06'):
self.variables.update({'CUDA_HOME': '$CUDATOOLKIT_HOME'})
8 changes: 6 additions & 2 deletions cscs-checks/prgenv/opencl_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import os

import reframe as rfm
import reframe.utility.os_ext as os_ext
import reframe.utility.sanity as sn


Expand All @@ -31,6 +32,9 @@ def setflags(self):

@rfm.run_before('compile')
def cdt2006_pgi_workaround(self):
if (self.current_system.name == 'dom' and
self.current_environ.name == 'PrgEnv-pgi'):
cdt = os_ext.cray_cdt_version()
if not cdt:
return

if (self.current_environ.name == 'PrgEnv-pgi' and cdt == '20.06'):
self.variables.update({'CUDA_HOME': '$CUDATOOLKIT_HOME'})