Skip to content

Commit

Permalink
fixing rocm_agent_enumerator for jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
guacamoleo committed Oct 6, 2017
1 parent a0f4ebb commit 59cc6d9
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 33 deletions.
14 changes: 7 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,23 @@ def docker_build_inside_image( def build_image, compiler_data compiler_args, doc
tensile ${rel_path_to_src}/Tensile/Configs/test_dgemm_defaults.yaml dgemm_defaults
# thorough tests
tensile --runtime-language=HIP --kernel-language=HIP ${rel_path_to_src}/Tensile/Configs/test_hgemm.yaml hgemm
tensile --runtime-language=HIP --kernel-language=HIP ${rel_path_to_src}/Tensile/Configs/test_sgemm.yaml sgemm
tensile ${rel_path_to_src}/Tensile/Configs/test_hgemm.yaml hgemm
tensile ${rel_path_to_src}/Tensile/Configs/test_sgemm.yaml sgemm
# vectors
tensile --runtime-language=HIP --kernel-language=HIP ${rel_path_to_src}/Tensile/Configs/test_hgemm_vectors.yaml hgemm_vectors
tensile --runtime-language=HIP --kernel-language=HIP ${rel_path_to_src}/Tensile/Configs/test_sgemm_vectors.yaml sgemm_vectors
tensile ${rel_path_to_src}/Tensile/Configs/test_hgemm_vectors.yaml hgemm_vectors
tensile ${rel_path_to_src}/Tensile/Configs/test_sgemm_vectors.yaml sgemm_vectors
# tensor contractions
tensile --runtime-language=HIP --kernel-language=HIP ${rel_path_to_src}/Tensile/Configs/tensor_contraction.yaml tensor_contraction
tensile ${rel_path_to_src}/Tensile/Configs/tensor_contraction.yaml tensor_contraction
# assembly
tensile ${rel_path_to_src}/Tensile/Configs/sgemm_asm.yaml sgemm_asm
"""

// TODO re-enable when jenkins supports opencl
//sh "tensile --runtime-language=OCL --kernel-language=OCL ../../Tensile/Configs/test_sgemm_vectors.yaml sgemm_vectors"
//sh "tensile --runtime-language=OCL --kernel-language=OCL ${rel_path_to_src}/Tensile/Configs/convolution.yaml tensor_contraction"
//sh "tensile --runtime-language=OCL ../../Tensile/Configs/test_sgemm_vectors.yaml sgemm_vectors"
//sh "tensile --runtime-language=OCL ${rel_path_to_src}/Tensile/Configs/convolution.yaml tensor_contraction"

archiveArtifacts artifacts: "${paths.project_build_prefix}/dist/*.egg", fingerprint: true
}
Expand Down
6 changes: 2 additions & 4 deletions Tensile/Common.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
# Default Analysis Parameters
################################################################################
defaultAnalysisParameters = {
"ScheduleName": "Default",
"ScheduleName": "Tensile",
"DeviceNames": ["Unspecified"],
#"BranchPenalty": 0, # microseconds / kernel
"SolutionImportanceMin": 0.01, # = 0.01=1% total time saved by keeping this solution
Expand Down Expand Up @@ -315,9 +315,7 @@ def assignGlobalParameters( config ):

# read current gfx version
if os.name != "nt":
#cmdStr = ["/opt/rocm/bin/rocm_agent_enumerator"]
cmdStr = ["echo hi"]
process = Popen(["rocm_agent_enumerator", "-t", "GPU"], cwd="/opt/rocm/bin/", stdout=PIPE)
process = Popen(["/opt/rocm/bin/rocm_agent_enumerator", "-t", "GPU"], stdout=PIPE)
line = process.stdout.readline()
while line != "":
gfxIdx = line.find("gfx")
Expand Down
2 changes: 0 additions & 2 deletions Tensile/Configs/rocblas_cgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,5 @@ BenchmarkProblems:
- Range: [ [32, 32, 32, 400], [32, 32, 32, 400], [2], [1536] ]

LibraryLogic:
ScheduleName: Fiji
DeviceNames: ["R9 Nano"]

LibraryClient:
2 changes: 0 additions & 2 deletions Tensile/Configs/rocblas_dgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,5 @@ BenchmarkProblems:
- Range: [ [32, 32, 32, 2000], [32, 32, 32, 2000], [2], [1536] ]

LibraryLogic:
ScheduleName: Fiji
DeviceNames: ["R9 Nano"]

LibraryClient:
2 changes: 0 additions & 2 deletions Tensile/Configs/rocblas_hgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,5 @@ BenchmarkProblems:
- Range: [ [32, 32, 32, 4000], [32, 32, 32, 4000], [1], [256, 256, 0, 512] ]

LibraryLogic:
ScheduleName: Fiji
DeviceNames: ["R9 Nano"]

LibraryClient:
2 changes: 0 additions & 2 deletions Tensile/Configs/rocblas_sgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,5 @@ BenchmarkProblems:
- Range: [ [32, 32, 32, 4000], [32, 32, 32, 4000], [1], [2880] ]

LibraryLogic:
ScheduleName: Fiji
DeviceNames: ["R9 Nano"]

LibraryClient:
2 changes: 0 additions & 2 deletions Tensile/Configs/rocblas_zgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,5 @@ BenchmarkProblems:
- Range: [ [32, 32, 32, 2000], [32, 32, 32, 2000], [2], [1536] ]

LibraryLogic:
ScheduleName: Fiji
DeviceNames: ["R9 Nano"]

LibraryClient:
4 changes: 1 addition & 3 deletions Tensile/Configs/test_hgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,5 @@ BenchmarkProblems:
- Range: [ [8, 32, 0, 75], [8, 32, 0, 75], [63, 1, 64] ]

LibraryLogic:
ScheduleName: Test
DeviceNames: ["Unknown"]
LibraryClient:

LibraryClient:
4 changes: 1 addition & 3 deletions Tensile/Configs/test_hgemm_vectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,5 @@ BenchmarkProblems:
- Range: [ [8, 32, 0, 75], [8, 32, 0, 75], [63, 1, 64] ]

LibraryLogic:
ScheduleName: Test
DeviceNames: ["Unknown"]
LibraryClient:

LibraryClient:
4 changes: 1 addition & 3 deletions Tensile/Configs/test_sgemm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,5 @@ BenchmarkProblems:
- Range: [ [8, 32, 0, 75], [8, 32, 0, 75], [63, 1, 64] ]

LibraryLogic:
ScheduleName: Test
DeviceNames: ["Unknown"]
LibraryClient:

LibraryClient:
4 changes: 1 addition & 3 deletions Tensile/Configs/test_sgemm_vectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,5 @@ BenchmarkProblems:
- Range: [ [8, 32, 0, 75], [8, 32, 0, 75], [63, 1, 64] ]

LibraryLogic:
ScheduleName: Test
DeviceNames: ["Unknown"]
LibraryClient:

LibraryClient:

0 comments on commit 59cc6d9

Please sign in to comment.