facebookincubator / gloo
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 180 files with 26,606 lines of code.
    • 1 very long files (7,774 lines of code)
    • 4 long files (2,708 lines of code)
    • 22 medium size files (6,817 lines of codeclsfd_ftr_w_mp_ins)
    • 30 small files (4,134 lines of code)
    • 123 very small files (5,173 lines of code)
29% | 10% | 25% | 15% | 19%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py95% | 0% | 3% | 0% | 1%
cc0% | 22% | 37% | 21% | 17%
h0% | 7% | 29% | 20% | 42%
cu0% | 0% | 87% | 12% | 0%
cmake0% | 0% | 0% | 70% | 29%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tools/amd_build/pyHIPIFY95% | 0% | 3% | 0% | <1%
gloo/transport/tcp0% | 31% | 16% | 21% | 30%
gloo/benchmark0% | 37% | 39% | 13% | 9%
gloo0% | 7% | 48% | 18% | 26%
gloo/transport/uv0% | 26% | 34% | 14% | 24%
gloo/transport/ibverbs0% | 0% | 36% | 31% | 32%
gloo/nccl0% | 0% | 63% | 36% | 0%
gloo/common0% | 0% | 35% | 17% | 46%
cmake0% | 0% | 0% | 85% | 14%
gloo/rendezvous0% | 0% | 0% | 44% | 55%
gloo/transport0% | 0% | 0% | 31% | 68%
gloo/mpi0% | 0% | 0% | 82% | 17%
cmake/Modules0% | 0% | 0% | 0% | 100%
tools/amd_build0% | 0% | 0% | 0% | 100%
gloo/mpi/example0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cuda_to_hip_mappings.py
in tools/amd_build/pyHIPIFY
7774 -
pair.cc
in gloo/transport/tcp
854 42
main.cc
in gloo/benchmark
784 46
543 8
libuv.h
in gloo/transport/uv
527 53
runner.cc
in gloo/benchmark
466 15
437 7
409 22
cuda.cu
in gloo
395 -
394 4
pair.cc
in gloo/transport/ibverbs
385 13
368 19
options.cc
in gloo/benchmark
350 4
device.cc
in gloo/transport/uv
342 14
pair.cc
in gloo/transport/uv
328 20
nccl.cu
in gloo/nccl
322 -
321 3
hipify_python.py
in tools/amd_build/pyHIPIFY
298 17
types.h
in gloo
247 5
cuda.h
in gloo
241 17
234 5
pair.cc
in gloo/transport/tcp/tls
229 8
device.cc
in gloo/transport/tcp
216 11
213 8
linux.cc
in gloo/common
212 9
206 4
204 12
pair.h
in gloo/transport/tcp
200 4
nccl.h
in gloo/nccl
188 3
cmake
186 -
cuda_main.cc
in gloo/benchmark
176 10
context.cc
in gloo/rendezvous
176 3
buffer.cc
in gloo/transport/ibverbs
174 6
cmake
Cuda.cmake
in cmake
156 -
device.cc
in gloo/transport/ibverbs
156 7
152 3
unbound_buffer.cc
in gloo/transport/tcp
149 11
147 3
pair.h
in gloo/transport/uv
146 4
reduce.cc
in gloo
146 1
136 7
130 -
130 5
unbound_buffer.cc
in gloo/transport/uv
128 9
context.h
in gloo/transport
127 11
cmake
Hip.cmake
in cmake
124 -
122 3
119 17
buffer.cc
in gloo/transport/tcp
118 7
file_store.cc
in gloo/rendezvous
114 9
Files With Most Units (Top 50)
File# lines# units
libuv.h
in gloo/transport/uv
527 53
main.cc
in gloo/benchmark
784 46
pair.cc
in gloo/transport/tcp
854 42
409 22
pair.cc
in gloo/transport/uv
328 20
368 19
hipify_python.py
in tools/amd_build/pyHIPIFY
298 17
119 17
cuda.h
in gloo
241 17
runner.cc
in gloo/benchmark
466 15
device.cc
in gloo/transport/uv
342 14
pair.cc
in gloo/transport/ibverbs
385 13
timer.h
in gloo/benchmark
80 12
204 12
context.h
in gloo/transport
127 11
unbound_buffer.cc
in gloo/transport/tcp
149 11
device.cc
in gloo/transport/tcp
216 11
cuda_main.cc
in gloo/benchmark
176 10
reduce.h
in gloo
66 10
math.h
in gloo
93 10
context.cc
in gloo/transport
82 9
unbound_buffer.cc
in gloo/transport/uv
128 9
file_store.cc
in gloo/rendezvous
114 9
scatter.h
in gloo
59 9
linux.cc
in gloo/common
212 9
54 8
unbound_buffer.h
in gloo/transport
66 8
pair.cc
in gloo/transport/tcp/tls
229 8
gather.h
in gloo
49 8
213 8
gatherv.h
in gloo
58 8
543 8
buffer.cc
in gloo/transport/tcp
118 7
device.cc
in gloo/transport/ibverbs
156 7
45 7
136 7
string.h
in gloo/common
46 7
437 7
64 7
alltoall.h
in gloo
47 7
54 7
benchmark.h
in gloo/benchmark
61 6
buffer.cc
in gloo/transport/ibverbs
174 6
gatherv.cc
in gloo
90 6
110 6
context.cc
in gloo/transport/tcp
106 5
context.cc
in gloo/mpi
105 5
types.h
in gloo
247 5
context.cc
in gloo
53 5
memory.h
in gloo/common
58 5
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
cmake
186 - 1
Correlations

File Size vs. Commits (all time): 180 points

gloo/transport/tcp/device.cc x: 19 commits (all time) y: 216 lines of code gloo/transport/tcp/device.h x: 18 commits (all time) y: 42 lines of code gloo/transport/tcp/loop.cc x: 2 commits (all time) y: 83 lines of code gloo/transport/tcp/loop.h x: 2 commits (all time) y: 33 lines of code gloo/transport/tcp/pair.cc x: 46 commits (all time) y: 854 lines of code tools/amd_build/build_amd.py x: 6 commits (all time) y: 61 lines of code tools/amd_build/pyHIPIFY/hipify_python.py x: 3 commits (all time) y: 298 lines of code gloo/common/linux.cc x: 13 commits (all time) y: 212 lines of code tools/amd_build/pyHIPIFY/cuda_to_hip_mappings.py x: 3 commits (all time) y: 7774 lines of code gloo/allreduce.cc x: 12 commits (all time) y: 437 lines of code gloo/allreduce_bcube.h x: 9 commits (all time) y: 368 lines of code gloo/allreduce_halving_doubling.h x: 10 commits (all time) y: 321 lines of code gloo/allreduce_ring.h x: 7 commits (all time) y: 81 lines of code gloo/allreduce_ring_chunked.h x: 8 commits (all time) y: 147 lines of code gloo/reduce.cc x: 7 commits (all time) y: 146 lines of code gloo/transport/tcp/address.cc x: 4 commits (all time) y: 84 lines of code gloo/transport/tcp/address.h x: 3 commits (all time) y: 42 lines of code gloo/transport/tcp/tls/context.h x: 2 commits (all time) y: 25 lines of code gloo/transport/tcp/tls/dynamic_library.cc x: 1 commits (all time) y: 30 lines of code gloo/transport/tcp/tls/openssl.cc x: 1 commits (all time) y: 75 lines of code gloo/transport/tcp/tls/pair.cc x: 2 commits (all time) y: 229 lines of code gloo/benchmark/main.cc x: 32 commits (all time) y: 784 lines of code gloo/benchmark/options.cc x: 30 commits (all time) y: 350 lines of code gloo/benchmark/runner.cc x: 39 commits (all time) y: 466 lines of code gloo/benchmark/runner.h x: 19 commits (all time) y: 103 lines of code gloo/rendezvous/file_store.cc x: 5 commits (all time) y: 114 lines of code gloo/rendezvous/file_store.h x: 4 commits (all time) y: 30 lines of code gloo/benchmark/benchmark.h x: 11 commits (all time) y: 61 lines of code gloo/benchmark/options.h x: 20 commits (all time) y: 46 lines of code gloo/benchmark/timer.h x: 3 commits (all time) y: 80 lines of code gloo/context.cc x: 16 commits (all time) y: 53 lines of code gloo/transport/uv/libuv.h x: 3 commits (all time) y: 527 lines of code gloo/allreduce_local.cc x: 4 commits (all time) y: 35 lines of code gloo/common/linux_devices.h x: 3 commits (all time) y: 6 lines of code gloo/math.cc x: 5 commits (all time) y: 74 lines of code gloo/types.h x: 16 commits (all time) y: 247 lines of code gloo/rendezvous/context.cc x: 18 commits (all time) y: 176 lines of code gloo/transport/pair.h x: 9 commits (all time) y: 41 lines of code gloo/transport/tcp/pair.h x: 27 commits (all time) y: 200 lines of code gloo/transport/tcp/context.h x: 8 commits (all time) y: 59 lines of code gloo/transport/tcp/unbound_buffer.h x: 10 commits (all time) y: 57 lines of code cmake/Dependencies.cmake x: 22 commits (all time) y: 186 lines of code gloo/transport/uv/device.cc x: 4 commits (all time) y: 342 lines of code cmake/Cuda.cmake x: 9 commits (all time) y: 156 lines of code gloo/cuda_allreduce_bcube.cc x: 4 commits (all time) y: 409 lines of code gloo/cuda_allreduce_ring_chunked.cc x: 28 commits (all time) y: 234 lines of code gloo/transport/uv/device.h x: 2 commits (all time) y: 93 lines of code gloo/transport/uv/pair.h x: 2 commits (all time) y: 146 lines of code cmake/Hip.cmake x: 3 commits (all time) y: 124 lines of code gloo/alltoall.cc x: 1 commits (all time) y: 34 lines of code gloo/alltoallv.cc x: 1 commits (all time) y: 136 lines of code gloo/nccl/nccl.h x: 10 commits (all time) y: 188 lines of code gloo/cuda.cu x: 21 commits (all time) y: 395 lines of code gloo/cuda_private.cu x: 15 commits (all time) y: 101 lines of code gloo/cuda_private.h x: 16 commits (all time) y: 130 lines of code gloo/context.h x: 14 commits (all time) y: 33 lines of code gloo/transport/context.h x: 4 commits (all time) y: 127 lines of code gloo/transport/tcp/context.cc x: 9 commits (all time) y: 106 lines of code gloo/transport/uv/context.cc x: 3 commits (all time) y: 99 lines of code gloo/transport/uv/pair.cc x: 4 commits (all time) y: 328 lines of code gloo/transport/tcp/unbound_buffer.cc x: 11 commits (all time) y: 149 lines of code gloo/transport/unbound_buffer.h x: 9 commits (all time) y: 66 lines of code gloo/common/common.h x: 6 commits (all time) y: 24 lines of code gloo/allgather.cc x: 6 commits (all time) y: 68 lines of code gloo/allreduce.h x: 10 commits (all time) y: 119 lines of code gloo/benchmark/cuda_main.cc x: 24 commits (all time) y: 176 lines of code gloo/cuda_allreduce_ring_chunked.h x: 13 commits (all time) y: 48 lines of code gloo/transport/tcp/buffer.cc x: 14 commits (all time) y: 118 lines of code gloo/broadcast.h x: 5 commits (all time) y: 54 lines of code gloo/broadcast_one_to_all.h x: 6 commits (all time) y: 104 lines of code gloo/common/error.h x: 5 commits (all time) y: 28 lines of code gloo/common/linux.h x: 9 commits (all time) y: 16 lines of code gloo/cuda_allreduce_halving_doubling.cc x: 20 commits (all time) y: 543 lines of code gloo/cuda_allreduce_halving_doubling.h x: 8 commits (all time) y: 86 lines of code gloo/cuda_allreduce_ring.cc x: 23 commits (all time) y: 122 lines of code gloo/cuda_broadcast_one_to_all.cc x: 25 commits (all time) y: 152 lines of code gloo/cuda_collectives_host.h x: 2 commits (all time) y: 213 lines of code gloo/cuda_collectives_native.h x: 3 commits (all time) y: 206 lines of code gloo/math.h x: 12 commits (all time) y: 93 lines of code gloo/mpi/context.cc x: 11 commits (all time) y: 105 lines of code gloo/reduce_scatter.h x: 2 commits (all time) y: 394 lines of code gloo/transport/device.h x: 11 commits (all time) y: 21 lines of code gloo/transport/ibverbs/buffer.cc x: 12 commits (all time) y: 174 lines of code gloo/transport/ibverbs/pair.cc x: 22 commits (all time) y: 385 lines of code gloo/transport/ibverbs/pair.h x: 17 commits (all time) y: 91 lines of code
7774.0
lines of code
  min: 1.0
  average: 147.81
  25th percentile: 30.0
  median: 57.5
  75th percentile: 126.25
  max: 7774.0
0 46.0
commits (all time)
min: 1.0 | average: 6.99 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 10.0 | max: 46.0

File Size vs. Contributors (all time): 180 points

gloo/transport/tcp/device.cc x: 7 contributors (all time) y: 216 lines of code gloo/transport/tcp/device.h x: 8 contributors (all time) y: 42 lines of code gloo/transport/tcp/loop.cc x: 2 contributors (all time) y: 83 lines of code gloo/transport/tcp/loop.h x: 2 contributors (all time) y: 33 lines of code gloo/transport/tcp/pair.cc x: 8 contributors (all time) y: 854 lines of code tools/amd_build/build_amd.py x: 5 contributors (all time) y: 61 lines of code tools/amd_build/pyHIPIFY/hipify_python.py x: 3 contributors (all time) y: 298 lines of code gloo/common/linux.cc x: 8 contributors (all time) y: 212 lines of code tools/amd_build/pyHIPIFY/cuda_to_hip_mappings.py x: 3 contributors (all time) y: 7774 lines of code gloo/allreduce.cc x: 4 contributors (all time) y: 437 lines of code gloo/allreduce_bcube.h x: 6 contributors (all time) y: 368 lines of code gloo/allreduce_halving_doubling.h x: 5 contributors (all time) y: 321 lines of code gloo/allreduce_ring.h x: 4 contributors (all time) y: 81 lines of code gloo/allreduce_ring_chunked.h x: 5 contributors (all time) y: 147 lines of code gloo/reduce.cc x: 4 contributors (all time) y: 146 lines of code gloo/transport/tcp/address.cc x: 3 contributors (all time) y: 84 lines of code gloo/transport/uv/address.h x: 3 contributors (all time) y: 43 lines of code gloo/transport/tcp/tls/context.cc x: 1 contributors (all time) y: 80 lines of code gloo/transport/tcp/tls/context.h x: 1 contributors (all time) y: 25 lines of code gloo/transport/tcp/tls/device.cc x: 1 contributors (all time) y: 32 lines of code gloo/transport/tcp/tls/pair.cc x: 1 contributors (all time) y: 229 lines of code gloo/benchmark/main.cc x: 10 contributors (all time) y: 784 lines of code gloo/benchmark/options.cc x: 7 contributors (all time) y: 350 lines of code gloo/benchmark/runner.cc x: 8 contributors (all time) y: 466 lines of code gloo/benchmark/runner.h x: 5 contributors (all time) y: 103 lines of code gloo/rendezvous/file_store.cc x: 4 contributors (all time) y: 114 lines of code gloo/rendezvous/file_store.h x: 3 contributors (all time) y: 30 lines of code gloo/benchmark/options.h x: 7 contributors (all time) y: 46 lines of code gloo/transport/uv/libuv.h x: 3 contributors (all time) y: 527 lines of code gloo/allreduce_local.cc x: 4 contributors (all time) y: 35 lines of code gloo/types.h x: 8 contributors (all time) y: 247 lines of code gloo/rendezvous/context.cc x: 8 contributors (all time) y: 176 lines of code gloo/transport/pair.h x: 6 contributors (all time) y: 41 lines of code cmake/Dependencies.cmake x: 9 contributors (all time) y: 186 lines of code gloo/common/win.h x: 2 contributors (all time) y: 6 lines of code gloo/transport/uv/device.cc x: 4 contributors (all time) y: 342 lines of code cmake/Cuda.cmake x: 7 contributors (all time) y: 156 lines of code gloo/cuda_allreduce_bcube.cc x: 3 contributors (all time) y: 409 lines of code gloo/cuda_allreduce_ring_chunked.cc x: 8 contributors (all time) y: 234 lines of code gloo/transport/uv/device.h x: 2 contributors (all time) y: 93 lines of code gloo/transport/uv/pair.h x: 2 contributors (all time) y: 146 lines of code cmake/Hip.cmake x: 3 contributors (all time) y: 124 lines of code gloo/alltoallv.cc x: 1 contributors (all time) y: 136 lines of code gloo/nccl/nccl.cu x: 8 contributors (all time) y: 322 lines of code gloo/nccl/nccl.h x: 5 contributors (all time) y: 188 lines of code gloo/algorithm.cc x: 4 contributors (all time) y: 23 lines of code gloo/cuda.cu x: 8 contributors (all time) y: 395 lines of code gloo/cuda_private.cu x: 6 contributors (all time) y: 101 lines of code gloo/transport/uv/pair.cc x: 2 contributors (all time) y: 328 lines of code gloo/allgatherv.cc x: 1 contributors (all time) y: 110 lines of code gloo/common/linux.h x: 5 contributors (all time) y: 16 lines of code gloo/cuda_allreduce_halving_doubling.cc x: 6 contributors (all time) y: 543 lines of code gloo/cuda_allreduce_ring.cc x: 7 contributors (all time) y: 122 lines of code gloo/cuda_broadcast_one_to_all.cc x: 8 contributors (all time) y: 152 lines of code gloo/cuda_collectives_host.h x: 2 contributors (all time) y: 213 lines of code gloo/cuda_collectives_native.h x: 3 contributors (all time) y: 206 lines of code gloo/reduce_scatter.h x: 2 contributors (all time) y: 394 lines of code gloo/rendezvous/redis_store.cc x: 3 contributors (all time) y: 97 lines of code gloo/transport/ibverbs/buffer.cc x: 4 contributors (all time) y: 174 lines of code gloo/transport/ibverbs/device.cc x: 5 contributors (all time) y: 156 lines of code gloo/transport/ibverbs/pair.h x: 6 contributors (all time) y: 91 lines of code
7774.0
lines of code
  min: 1.0
  average: 147.81
  25th percentile: 30.0
  median: 57.5
  75th percentile: 126.25
  max: 7774.0
0 10.0
contributors (all time)
min: 1.0 | average: 3.28 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 4.0 | max: 10.0

File Size vs. Commits (30 days): 5 points

gloo/transport/tcp/device.cc x: 1 commits (30d) y: 216 lines of code gloo/transport/tcp/device.h x: 1 commits (30d) y: 42 lines of code gloo/transport/tcp/loop.cc x: 1 commits (30d) y: 83 lines of code gloo/transport/tcp/loop.h x: 1 commits (30d) y: 33 lines of code gloo/transport/tcp/pair.cc x: 1 commits (30d) y: 854 lines of code
854.0
lines of code
  min: 33.0
  average: 245.6
  25th percentile: 37.5
  median: 83.0
  75th percentile: 535.0
  max: 854.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (30 days): 5 points

gloo/transport/tcp/device.cc x: 1 contributors (30d) y: 216 lines of code gloo/transport/tcp/device.h x: 1 contributors (30d) y: 42 lines of code gloo/transport/tcp/loop.cc x: 1 contributors (30d) y: 83 lines of code gloo/transport/tcp/loop.h x: 1 contributors (30d) y: 33 lines of code gloo/transport/tcp/pair.cc x: 1 contributors (30d) y: 854 lines of code
854.0
lines of code
  min: 33.0
  average: 245.6
  25th percentile: 37.5
  median: 83.0
  75th percentile: 535.0
  max: 854.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 7 points

gloo/transport/tcp/device.cc x: 1 commits (90d) y: 216 lines of code gloo/transport/tcp/device.h x: 1 commits (90d) y: 42 lines of code gloo/transport/tcp/loop.cc x: 1 commits (90d) y: 83 lines of code gloo/transport/tcp/loop.h x: 1 commits (90d) y: 33 lines of code gloo/transport/tcp/pair.cc x: 1 commits (90d) y: 854 lines of code tools/amd_build/build_amd.py x: 1 commits (90d) y: 61 lines of code tools/amd_build/pyHIPIFY/hipify_python.py x: 1 commits (90d) y: 298 lines of code
854.0
lines of code
  min: 33.0
  average: 226.71
  25th percentile: 42.0
  median: 83.0
  75th percentile: 298.0
  max: 854.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (90 days): 7 points

gloo/transport/tcp/device.cc x: 1 contributors (90d) y: 216 lines of code gloo/transport/tcp/device.h x: 1 contributors (90d) y: 42 lines of code gloo/transport/tcp/loop.cc x: 1 contributors (90d) y: 83 lines of code gloo/transport/tcp/loop.h x: 1 contributors (90d) y: 33 lines of code gloo/transport/tcp/pair.cc x: 1 contributors (90d) y: 854 lines of code tools/amd_build/build_amd.py x: 1 contributors (90d) y: 61 lines of code tools/amd_build/pyHIPIFY/hipify_python.py x: 1 contributors (90d) y: 298 lines of code
854.0
lines of code
  min: 33.0
  average: 226.71
  25th percentile: 42.0
  median: 83.0
  75th percentile: 298.0
  max: 854.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0