g6/packages/site/examples/net/gpuLayout/index.en.md
2023-08-29 15:19:51 +08:00

781 B

title order
GPU Layout 14

G6 4.0 provides two kinds of GPU layout:

  • gforce: a new built-in layout that support CPU and GPU calculation, it implements the classical force-directed algorithm;
  • fruchterman: anoher force-directed algorithm whose CPU version is supported in previous version, and G6 4.0 support GPU version fruchterman.

Since the mechanism of the memory copy between GPU and CPU, the improvement is not obviouse in small graph, sometimes GPU version even performs worse than CPU. But in middle and large graph, the calculation speed of GPU might be hundreds times of CPU. The two table below shows the comparison on different scale datasets: