rocm_configure: delete dead code

PiperOrigin-RevId: 293811564
Change-Id: Iffbddb90dade4d4a574f058fc21741ee6e267790
This commit is contained in:
A. Unique TensorFlower 2020-02-07 07:41:30 -08:00 committed by TensorFlower Gardener
parent bb275635d1
commit f6c196f73a

View File

@ -637,21 +637,6 @@ def _genrule(src_dir, genrule_name, command, outs):
")\n"
)
def _read_dir(repository_ctx, src_dir):
"""Returns a string with all files in a directory.
Finds all files inside a directory, traversing subfolders and following
symlinks. The returned string contains the full path of all files
separated by line breaks.
"""
find_result = _execute(
repository_ctx,
["find", src_dir, "-follow", "-type", "f"],
empty_stdout_fine = True,
)
result = find_result.stdout
return result
def _compute_rocm_extra_copts(repository_ctx, amdgpu_targets):
if False:
amdgpu_target_flags = ["--amdgpu-target=" +