Skip to content

Adds GPU support#7

Open
phip123 wants to merge 26 commits into
edgerun:masterfrom
phip123:master
Open

Adds GPU support#7
phip123 wants to merge 26 commits into
edgerun:masterfrom
phip123:master

Conversation

@phip123

@phip123 phip123 commented Jul 28, 2020

Copy link
Copy Markdown
Contributor

Adds GPU support for amd64 (CUDA) and Jetson TX2.

@phip123
phip123 requested a review from thrau July 28, 2020 20:40
@thrau

thrau commented Jul 28, 2020

Copy link
Copy Markdown
Member

can't seem to run the tests any more without building something first. make all yields.

i suppose we need to add gcc as build dependency now?

2020/07/29 00:38:08 Error reading gpu measurements exec: "gpu_freq": executable file not found in $PATH

@thrau

thrau commented Jul 28, 2020

Copy link
Copy Markdown
Member

using cgo may be a good alternative to building the binary and calling exec: https://karthikkaranth.me/blog/calling-c-code-from-go/

@thrau

thrau commented Jul 28, 2020

Copy link
Copy Markdown
Member

adding some instructions on how to build the C files would be useful. i guess i need nvidia-cuda-toolkit?

Comment thread scripts/nvml/list_gpus.c
}

// source: https://github.com/gpeled/tensors/blob/master/gpuutil.c
int showUtilization (unsigned int i, nvmlDevice_t device, nvmlSamplingType_t type, int sleepInterval, int iterations)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this function here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants