Skip to content

Commit a1e3fa2

Browse files
authored
Merge pull request #2 from mohanmithur/MS5_changes
MS5 changes
2 parents 08aff27 + 2626a5c commit a1e3fa2

40 files changed

+1311
-194
lines changed

cfg.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
ROCM_PATH = None
4343

4444
# None/offload target
45-
build_for_target = None
45+
build_for_gfx_target = None
46+
build_for_cuda_target = "compute_70"
4647

4748
# -I.
4849
# None/List of paths
@@ -107,11 +108,11 @@
107108
"quicksilver": {
108109
"repo_url": "https://github.com/LLNL/Quicksilver.git",
109110
"branch": "AMD-HIP",
110-
"commit_id": "bf073887bf73ef34de8025adaba51c6ad7fb15be"
111+
"commit_id": "3eddfc36003de27ee404499923b18e04efef8dad"
111112
},
112113
"gridtools": {
113114
"repo_url": "https://github.com/GridTools/gridtools.git",
114-
"branch": None,
115+
"branch": "v1.1.3",
115116
"commit_id": "d33fa6fecee0a7bd9e080212c1038f0dbd31fe97"
116117
},
117118
"gtbench": {
@@ -126,8 +127,8 @@
126127
},
127128
"mfem": {
128129
"repo_url": "https://github.com/mfem/mfem.git ./mfem",
129-
"branch": None,
130-
"commit_id": "a3f0a5bb7ca874ec260d6f85afa3693cd6542497"
130+
"branch": "amd",
131+
"commit_id": "1ded8554ea470e2018284a881594b888b938ed0b"
131132
},
132133
"Laghos": {
133134
"repo_url": "https://github.com/CEED/Laghos.git",

src/hiptestsuite/Test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ def loadConfig(self):
8585
class CompileData(AMDObject):
8686
def __init__(self):
8787
AMDObject.__init__(self)
88-
self.build_for_target: Union[None, Set[Target]] = None
88+
self.build_for_gfx_target: Union[None, Set[Target]] = None
89+
self.build_for_cuda_target: Union[None, Set[Target]] = None
8990

9091

9192
class GitData(AMDObject):
@@ -145,7 +146,7 @@ def __init__(self):
145146
self.CUDA_PATH: Union[None, str] = None
146147
self.ROCM_PATH: Union[None, str] = None
147148

148-
# if self.build_for_target, then --offload_arch=
149+
# if self.build_for_gfx_target, then --offload_arch=
149150

150151
# -I ./
151152
self.includes_path: Union[None, List[str]] = None
@@ -193,7 +194,8 @@ def loadConfig(self):
193194
self.ROCM_PATH = self.config.ROCM_PATH
194195
self.CUDA_PATH = self.config.CUDA_PATH
195196

196-
self.build_for_target = self.config.build_for_target
197+
self.build_for_gfx_target = self.config.build_for_gfx_target
198+
self.build_for_cuda_target = self.config.build_for_cuda_target
197199
self.includes_path = self.config.includes_path
198200
self.link_libs = self.config.link_libs
199201
self.link_libs_path = self.config.link_libs_path

src/hiptestsuite/applications/cuda_grep/cuda_grep_build_amd.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
# THE SOFTWARE.
2020

2121
import os
22-
from hiptestsuite.common.hip_shell import execshellcmd
22+
import tempfile
23+
from hiptestsuite.common.hip_shell import *
2324
from hiptestsuite.applications.cuda_grep.cuda_grep_parser_common import CudaGrepParser
2425

2526
class BuildRunAmd():
@@ -52,7 +53,10 @@ def buildtest(self):
5253
def runtest(self):
5354
print("Running cuda_grep..")
5455
cmdexc = "cd " + self.runpath + ";" + "./runtests.sh;"
55-
execshellcmd(cmdexc, self.logFile, None)
56+
envtoset = os.environ.copy()
57+
runlogdump = tempfile.TemporaryFile("w+")
58+
execshellcmd_largedump(cmdexc, self.logFile, runlogdump, envtoset)
59+
runlogdump.close()
5660

5761
def clean(self):
5862
print("Cleaning cuda_grep..")

src/hiptestsuite/applications/cuda_grep/cuda_grep_build_nvidia.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
# THE SOFTWARE.
2020

2121
import os
22-
from hiptestsuite.common.hip_shell import execshellcmd
22+
import tempfile
23+
from hiptestsuite.common.hip_shell import *
2324
from hiptestsuite.applications.cuda_grep.cuda_grep_parser_common import CudaGrepParser
2425

2526
class BuildRunNvidia():
@@ -61,7 +62,10 @@ def runtest(self):
6162
print("Running cuda_grep..")
6263
env = self.getenvironmentvariables()
6364
cmdexc = "cd " + self.runpath + ";" + "./runtests.sh;"
64-
execshellcmd(cmdexc, self.logFile, env)
65+
runlogdump = tempfile.TemporaryFile("w+")
66+
execshellcmd_largedump(cmdexc, self.logFile, runlogdump, env)
67+
runlogdump.close()
68+
6569

6670
def clean(self):
6771
print("Cleaning cuda_grep..")

0 commit comments

Comments
 (0)