/gem5/site_scons/gem5_scons/ |
H A D | __init__.py | 69 self.format = self.tool_color + (" [%8s] " % tool) \ 125 return self.format % (com_pfx, fmt(srcs), fmt(tgts))
|
/gem5/ext/pybind11/tests/ |
H A D | pybind11_tests.cpp | 82 .def("__repr__", [](const UserType& u) { return "UserType({})"_s.format(u.value()); }); 87 .def("__repr__", [](const IncType& u) { return "IncType({})"_s.format(u.value()); });
|
H A D | test_numpy_dtypes.py | 15 'formats': ['?', 'u4', 'f4', 'f{}'.format(ld.itemsize)], 35 return dt_fmt().format(ld.itemsize, simple_ld_off, simple_ld_off + ld.itemsize) 40 return "[('bool_', '?'), ('uint_', '{e}u4'), ('float_', '{e}f4'), ('ldbl_', '{e}f{}')]".format( 52 return dt_fmt().format(ld.itemsize, partial_ld_off, partial_ld_off + ld.itemsize) 60 return "{{'names':['a'], 'formats':[{}], 'offsets':[{}], 'itemsize':{}}}".format( 101 "[('a', {}), ('b', {})]".format(simple_dtype_fmt(), packed_dtype_fmt()), 107 "'offsets':[0,12,20,24], 'itemsize':56}}").format(e=e), 219 "'offsets':[0,12,20,24], 'itemsize':56}}").format(e=e)
|
H A D | test_pytypes.cpp | 27 py::print("list item {}: {}"_s.format(index++, item)); 53 py::print("key: {}, value={}"_s.format(item.first, item.second)); 74 auto s1 = "{} + {} = {}"_s.format(1, 2, 3); 75 auto s2 = "{a} + {b} = {c}"_s.format("a"_a=1, "b"_a=2, "c"_a=3); 94 py::print("destructing capsule: {}"_s.format((size_t) ptr)); 102 py::print("destructing capsule ({}, '{}')"_s.format( 108 py::print("created capsule ({}, '{}')"_s.format((size_t) contents, capsule.name())); 280 py::print("{a} + {b} = {c}"_s.format("a"_a="py::print", "b"_a="str.format", "c"_a="this"));
|
H A D | test_numpy_dtypes.cpp | 145 py::format_descriptor<T>::format(), 322 m.def("get_format_unbound", []() { return py::format_descriptor<UnboundStruct>::format(); }); 326 py::format_descriptor<SimpleStruct>::format(), 327 py::format_descriptor<PackedStruct>::format(), 328 py::format_descriptor<NestedStruct>::format(), 329 py::format_descriptor<PartialStruct>::format(), 330 py::format_descriptor<PartialNestedStruct>::format(), 331 py::format_descriptor<StringStruct>::format(), 332 py::format_descriptor<ArrayStruct>::format(), 333 py::format_descriptor<EnumStruct>::format(), [all...] |
H A D | test_buffers.cpp | 83 if (info.format != py::format_descriptor<float>::format() || info.ndim != 2) 84 throw std::runtime_error("Incompatible buffer format!"); 135 py::format_descriptor<int32_t>::format(), 1); 153 py::format_descriptor<int32_t>::format(), 1);
|
H A D | test_opaque_types.py | 14 assert k == "Element {}".format(i)
|
H A D | test_smart_ptr.py | 15 assert capture == "MyObject1[{i}]\n".format(i=i) * 4 30 assert capture == "MyObject1[{i}]\n".format(i=i) * (4 if isinstance(o, int) else 8) 34 expected_values = ['MyObject1[{}]'.format(i) for i in range(1, 7)] + ['MyObject1[7]'] * 4 50 assert capture == "MyObject2[{i}]\n".format(i=i) * 4 71 assert capture == "MyObject3[{i}]\n".format(i=i) * 4
|
H A D | test_numpy_vectorize.cpp | 15 py::print("my_func(x:int={}, y:float={:.0f}, z:float={:.0f})"_s.format(x, y, z));
|
/gem5/src/mem/slicc/ast/ |
H A D | OperatorExprAST.py | 77 self.error("No operator matched with {0}!" .format(self.op)) 89 format(ltype, rtype, self.op))
|
/gem5/util/maint/ |
H A D | create_patches.sh | 70 3. Generate a set of patches in git format. 149 git format-patch -p -o "$PATCH_DIR" "$UPSTREAM"
|
/gem5/ext/dsent/model/electrical/ |
H A D | MultiplexerCrossbar.cc | 94 createInputPort(String::format("Sel%d_%d", i, j)); 124 event_info->setStaticTransitionInfo(String::format("Sel%d_%d", j, k)); 155 portConnect(muxs[i], "Sel" + (String)j, String::format("Sel%d_%d", i, j)); 223 propagatePortTransitionInfo(muxi, "Sel" + (String)j, String::format("Sel%d_%d", i, j));
|
/gem5/src/arch/sparc/insts/ |
H A D | nop.cc | 83 // Primary format for integer operate instructions: 84 def format Nop(code, *opt_flags) {{
|
/gem5/configs/learning_gem5/part3/ |
H A D | simple_ruby.py | 112 print('Exiting @ tick {} because {}'.format(
|
/gem5/src/sim/ |
H A D | Process.py | 47 table in an architecture-specific format')
|
/gem5/ext/fputils/tests/ |
H A D | test_helper.c | 109 static void __attribute__((format (printf, 4, 5)))
|
/gem5/ext/nomali/tests/ |
H A D | test_helpers.c | 99 static void __attribute__((format (printf, 4, 5)))
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | complex.h | 25 static std::string format() { return std::string(value); } function in struct:format_descriptor
|
H A D | numpy.h | 449 dtype descr(_dtype_from_pep3118()(PYBIND11_STR_TYPE(info.format))); 450 // If info.itemsize == 0, use the value calculated from the format string 454 explicit dtype(const std::string &format) { 455 m_ptr = from_args(pybind11::str(format)).release().ptr(); 458 dtype(const char *format) : dtype(std::string(format)) { } 510 struct field_descr { PYBIND11_STR_TYPE name; object format; pybind11::int_ offset; }; member in struct:field_descr 516 auto format = spec[1].cast<tuple>()[0].cast<dtype>(); local 518 if (!len(name) && format.kind() == 'V') 520 field_descriptors.push_back({(PYBIND11_STR_TYPE) name, format [all...] |
/gem5/ext/googletest/googletest/scripts/ |
H A D | gen_gtest_pred_impl.py | 189 def Iter(n, format, sep=''): 190 """Given a positive integer n, a format string that contains 0 or 191 more '%s' format specs, and optionally a separator string, returns 192 the join of n strings, each formatted with the format string on an 200 # How many '%s' specs are in format? 201 spec_count = len(format.split('%s')) - 1 202 return sep.join([format % (spec_count * (i,)) for i in OneTo(n)])
|
/gem5/src/python/m5/util/ |
H A D | code_formatter.py | 214 format = args[0] 269 lines = format[:i].splitlines(True) 273 raise ValueError('Invalid format string: line %d, col %d' % 276 d = code_formatter.pattern.sub(convert, format)
|
/gem5/ext/systemc/src/sysc/utils/ |
H A D | sc_string.cpp | 375 sc_string_old sc_string_old::to_string(const char* format, ...) argument 382 va_start(argptr, format); 383 int cnt = sc_vsnprintf(buffer, 1024, format, argptr); 394 cnt = sc_vsnprintf(buf, buf_size, format, argptr); 431 // if the type of the argument is incompatible with format 452 if(old_result == result) //error in format 458 else // error in format
|
/gem5/tests/configs/ |
H A D | arm_generic.py | 109 .format(self.num_cpus),
|
/gem5/tests/gem5/ |
H A D | suite.py | 86 _name = '{given_name}-{isa}-{opt}'.format(
|
/gem5/ext/dsent/libutil/ |
H A D | String.cc | 33 String String::format(const String& format_, ...) function in class:LibUtil::String 45 String String::format(const String& format_, va_list args_) function in class:LibUtil::String
|