Skip to content

Commit

Permalink
Merge pull request #2 from mohanmithur/MS5_changes
Browse files Browse the repository at this point in the history
MS5 changes
  • Loading branch information
mohanmithur authored Feb 17, 2022
2 parents 08aff27 + 2626a5c commit a1e3fa2
Show file tree
Hide file tree
Showing 40 changed files with 1,311 additions and 194 deletions.
11 changes: 6 additions & 5 deletions cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
ROCM_PATH = None

# None/offload target
build_for_target = None
build_for_gfx_target = None
build_for_cuda_target = "compute_70"

# -I.
# None/List of paths
Expand Down Expand Up @@ -107,11 +108,11 @@
"quicksilver": {
"repo_url": "https://github.com/LLNL/Quicksilver.git",
"branch": "AMD-HIP",
"commit_id": "bf073887bf73ef34de8025adaba51c6ad7fb15be"
"commit_id": "3eddfc36003de27ee404499923b18e04efef8dad"
},
"gridtools": {
"repo_url": "https://github.com/GridTools/gridtools.git",
"branch": None,
"branch": "v1.1.3",
"commit_id": "d33fa6fecee0a7bd9e080212c1038f0dbd31fe97"
},
"gtbench": {
Expand All @@ -126,8 +127,8 @@
},
"mfem": {
"repo_url": "https://github.com/mfem/mfem.git ./mfem",
"branch": None,
"commit_id": "a3f0a5bb7ca874ec260d6f85afa3693cd6542497"
"branch": "amd",
"commit_id": "1ded8554ea470e2018284a881594b888b938ed0b"
},
"Laghos": {
"repo_url": "https://github.com/CEED/Laghos.git",
Expand Down
8 changes: 5 additions & 3 deletions src/hiptestsuite/Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def loadConfig(self):
class CompileData(AMDObject):
def __init__(self):
AMDObject.__init__(self)
self.build_for_target: Union[None, Set[Target]] = None
self.build_for_gfx_target: Union[None, Set[Target]] = None
self.build_for_cuda_target: Union[None, Set[Target]] = None


class GitData(AMDObject):
Expand Down Expand Up @@ -145,7 +146,7 @@ def __init__(self):
self.CUDA_PATH: Union[None, str] = None
self.ROCM_PATH: Union[None, str] = None

# if self.build_for_target, then --offload_arch=
# if self.build_for_gfx_target, then --offload_arch=

# -I ./
self.includes_path: Union[None, List[str]] = None
Expand Down Expand Up @@ -193,7 +194,8 @@ def loadConfig(self):
self.ROCM_PATH = self.config.ROCM_PATH
self.CUDA_PATH = self.config.CUDA_PATH

self.build_for_target = self.config.build_for_target
self.build_for_gfx_target = self.config.build_for_gfx_target
self.build_for_cuda_target = self.config.build_for_cuda_target
self.includes_path = self.config.includes_path
self.link_libs = self.config.link_libs
self.link_libs_path = self.config.link_libs_path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
# THE SOFTWARE.

import os
from hiptestsuite.common.hip_shell import execshellcmd
import tempfile
from hiptestsuite.common.hip_shell import *
from hiptestsuite.applications.cuda_grep.cuda_grep_parser_common import CudaGrepParser

class BuildRunAmd():
Expand Down Expand Up @@ -52,7 +53,10 @@ def buildtest(self):
def runtest(self):
print("Running cuda_grep..")
cmdexc = "cd " + self.runpath + ";" + "./runtests.sh;"
execshellcmd(cmdexc, self.logFile, None)
envtoset = os.environ.copy()
runlogdump = tempfile.TemporaryFile("w+")
execshellcmd_largedump(cmdexc, self.logFile, runlogdump, envtoset)
runlogdump.close()

def clean(self):
print("Cleaning cuda_grep..")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
# THE SOFTWARE.

import os
from hiptestsuite.common.hip_shell import execshellcmd
import tempfile
from hiptestsuite.common.hip_shell import *
from hiptestsuite.applications.cuda_grep.cuda_grep_parser_common import CudaGrepParser

class BuildRunNvidia():
Expand Down Expand Up @@ -61,7 +62,10 @@ def runtest(self):
print("Running cuda_grep..")
env = self.getenvironmentvariables()
cmdexc = "cd " + self.runpath + ";" + "./runtests.sh;"
execshellcmd(cmdexc, self.logFile, env)
runlogdump = tempfile.TemporaryFile("w+")
execshellcmd_largedump(cmdexc, self.logFile, runlogdump, env)
runlogdump.close()


def clean(self):
print("Cleaning cuda_grep..")
Expand Down
Loading

0 comments on commit a1e3fa2

Please sign in to comment.