Skip to content

glutamatt/gonuma

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

190 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gonuma

GRC


gonuma is a Go utility library for writing NUMA-aware applications


Availability


Original Author


License


Usage

package main

import (
        gonuma "github.com/johnsonjh/gonuma"
)

type object struct {
		X int
		_ [...]byte // pad to page size
}

var objects = make(
		[]object,
		gonuma.CPUCount(),
)

func fnxxxx() {
		cpu, node := gonuma.GetCPUAndNode()
		objects[cpu].X = xx
}

About

gonuma: A utility library for writing NUMA-aware Go applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 96.9%
  • Assembly 3.1%