Commit eaa3de6c authored by Andreas Marek's avatar Andreas Marek
Browse files

Exclude analytic test for FUGAKU

parent 58afb0bd
......@@ -200,7 +200,6 @@ for lang, m, g, gid, q, t, p, d, s, lay, spl in product(sorted(language_flag.key
if (m == "analytic"):
print("if BUILD_FUGAKU")
print("")
print("else")
print("if BUILD_KCOMPUTER")
print("bin_PROGRAMS += " + name)
......@@ -215,44 +214,91 @@ for lang, m, g, gid, q, t, p, d, s, lay, spl in product(sorted(language_flag.key
print("noinst_PROGRAMS += " + name)
print("endif")
if lay == "square" or t == "generalized":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_default.sh")
elif lay == "all_layouts":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_extended.sh")
else:
raise Exception("Unknown layout {0}".format(lay))
if lang == "Fortran":
print(name + "_SOURCES = test/Fortran/test.F90")
print(name + "_LDADD = $(test_program_ldadd)")
print(name + "_FCFLAGS = $(test_program_fcflags) \\")
elif lang == "C":
print(name + "_SOURCES = test/C/test.c")
print(name + "_LDADD = $(test_program_ldadd) $(FCLIBS)")
print(name + "_CFLAGS = $(test_program_cflags) \\")
if (m == "analytic"):
print("if BUILD_FUGAKU")
print("else")
if lay == "square" or t == "generalized":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_default.sh")
elif lay == "all_layouts":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_extended.sh")
else:
raise Exception("Unknown layout {0}".format(lay))
if lang == "Fortran":
print(name + "_SOURCES = test/Fortran/test.F90")
print(name + "_LDADD = $(test_program_ldadd)")
print(name + "_FCFLAGS = $(test_program_fcflags) \\")
elif lang == "C":
print(name + "_SOURCES = test/C/test.c")
print(name + "_LDADD = $(test_program_ldadd) $(FCLIBS)")
print(name + "_CFLAGS = $(test_program_cflags) \\")
else:
raise Exception("Unknown language")
print(" -DTEST_CASE=\\\"{0}\\\" \\".format(name))
print(" " + " \\\n ".join([
domain_flag[d],
prec_flag[p],
test_type_flag[t],
solver_flag[s],
gpu_flag[g],
gpu_id_flag[gid],
qr_flag[q],
matrix_flag[m]] + extra_flags))
print("endif\n" * endifs)
print("")
print("endif")
print("")
else:
raise Exception("Unknown language")
print(" -DTEST_CASE=\\\"{0}\\\" \\".format(name))
print(" " + " \\\n ".join([
domain_flag[d],
prec_flag[p],
test_type_flag[t],
solver_flag[s],
gpu_flag[g],
gpu_id_flag[gid],
qr_flag[q],
matrix_flag[m]] + extra_flags))
print("endif\n" * endifs)
if lay == "square" or t == "generalized":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_default.sh")
elif lay == "all_layouts":
if kernel == "all_kernels":
print("check_SCRIPTS += " + name + "_extended.sh")
else:
print("check_SCRIPTS += " + name + "_extended.sh")
else:
raise Exception("Unknown layout {0}".format(lay))
if lang == "Fortran":
print(name + "_SOURCES = test/Fortran/test.F90")
print(name + "_LDADD = $(test_program_ldadd)")
print(name + "_FCFLAGS = $(test_program_fcflags) \\")
elif lang == "C":
print(name + "_SOURCES = test/C/test.c")
print(name + "_LDADD = $(test_program_ldadd) $(FCLIBS)")
print(name + "_CFLAGS = $(test_program_cflags) \\")
else:
raise Exception("Unknown language")
print(" -DTEST_CASE=\\\"{0}\\\" \\".format(name))
print(" " + " \\\n ".join([
domain_flag[d],
prec_flag[p],
test_type_flag[t],
solver_flag[s],
gpu_flag[g],
gpu_id_flag[gid],
qr_flag[q],
matrix_flag[m]] + extra_flags))
print("endif\n" * endifs)
print("")
for lang, p, d in product(sorted(language_flag.keys()), sorted(prec_flag.keys()), sorted(domain_flag.keys())):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment