Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds GPU support #7

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open

Adds GPU support #7

wants to merge 26 commits into from

Conversation

phip123
Copy link
Contributor

@phip123 phip123 commented Jul 28, 2020

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

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

thrau commented Jul 28, 2020

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
Copy link
Member

thrau commented Jul 28, 2020

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

@thrau
Copy link
Member

thrau commented Jul 28, 2020

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

}

// 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
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