search for: hostarray

Displaying 4 results from an estimated 4 matches for "hostarray".

Did you mean: has_array
2012 Jun 28
4
Optimizing grep, sort, uniq for speed
This snippet of code pulls an array of hostnames from some log files. It has to parse around 3GB of log files, so I'm keen on making it as efficient as possible. Can you think of any way to optimize this to run faster? HOSTS=() for host in $(grep -h -o "[-\.0-9a-z][-\.0-9a-z]*.com" ${TMPDIR}/* | sort | uniq); do HOSTS+=("$host") done
2016 Mar 09
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...gt;ExecutorForDeviceWithPluginConfig(device_ordinal, plugin_config) .ValueOrDie(); const uint8 seed[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}; constexpr uint64 random_element_count = 1024; using HostArray = std::array<float, random_element_count>; HostArray host_memory; const size_t data_size = host_memory.size() * sizeof(HostArray::value_type); se::ScopedDeviceMemory<float> device_memory = executor->AllocateOwnedArray<float>(random_element_count);...
2016 Mar 09
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...evice_ordinal, > plugin_config) > .ValueOrDie(); > > const uint8 seed[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, > 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}; > constexpr uint64 random_element_count = 1024; > > using HostArray = std::array<float, random_element_count>; > > HostArray host_memory; > const size_t data_size = host_memory.size() * > sizeof(HostArray::value_type); > > se::ScopedDeviceMemory<float> device_memory = > executor->AllocateOwnedArray<...
2016 Mar 10
2
RFC: Proposing an LLVM subproject for parallelism runtime and support libraries
...onfig) >> .ValueOrDie(); >> >> const uint8 seed[] = {0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, >> 0x8, 0x9, 0xa, 0xb, 0xc, 0xd, 0xe, 0xf}; >> constexpr uint64 random_element_count = 1024; >> >> using HostArray = std::array<float, random_element_count>; >> >> HostArray host_memory; >> const size_t data_size = host_memory.size() * >> sizeof(HostArray::value_type); >> >> se::ScopedDeviceMemory<float> device_memory = >> executo...