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

support gpu to the grid client #666

Merged
merged 25 commits into from Jun 25, 2023
Merged

support gpu to the grid client #666

merged 25 commits into from Jun 25, 2023

Conversation

AhmedHanafy725
Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 commented Jun 20, 2023

Description

support gpu in grid client

Related Issues

Example

deployment result

[
  {
    version: 0,
    contractId: 31821,
    nodeId: 93,
    name: 'testvm',
    created: 1687430687,
    status: 'ok',
    message: '',
    flist: 'https://hub.grid.tf/tf-official-apps/base:latest.flist',
    publicIP: null,
    planetary: '301:8728:f02b:166:66d5:4750:94e4:9a88',
    interfaces: [ { network: 'wedtest', ip: '10.249.2.2' } ],
    capacity: { cpu: 8, memory: 16384 },
    mounts: [],
    env: { SSH_KEY: '' },
    entrypoint: '/sbin/zinit init',
    metadata: '{"type":"vm","name":"newVMS","projectName":""}',
    description: 'test deploying VMs via ts grid3 client',
    rootfs_size: 0,
    corex: false,
    gpu: [ '0000:0e:00.0/1002/744c' ]
  }
]

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

Base automatically changed from development_2.1 to development June 20, 2023 17:25
@xmonader
Copy link
Contributor

xmonader commented Jun 22, 2023

Looks really great, can we also include an example script please to deploy?

@AhmedHanafy725
Copy link
Contributor Author

Looks really great, can we also include an example script please to deploy?

done added

packages/grid_client/src/high_level/machine.ts Outdated Show resolved Hide resolved
packages/grid_client/src/high_level/machine.ts Outdated Show resolved Hide resolved
packages/grid_client/src/high_level/kubernetes.ts Outdated Show resolved Hide resolved
packages/grid_client/src/high_level/kubernetes.ts Outdated Show resolved Hide resolved
packages/grid_client/src/primitives/nodes.ts Show resolved Hide resolved
@Mahmoud-Emad Mahmoud-Emad self-requested a review June 25, 2023 08:07
Copy link
Contributor

@Mahmoud-Emad Mahmoud-Emad left a comment

Choose a reason for hiding this comment

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

LGTM, teslam edak ya hanafy

@AhmedHanafy725 AhmedHanafy725 merged commit 656eef1 into development Jun 25, 2023
2 checks passed
@AhmedHanafy725 AhmedHanafy725 deleted the development_gpu branch June 25, 2023 09:22
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.

None yet

4 participants