Skip to content

Commit

Permalink
calls setup_kubernetes before _setup to set cudaDeviceCount
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito committed May 2, 2024
1 parent b943289 commit f225c44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion calrissian/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,11 @@ def get_pod_name(pod):
self.make_tmpdir()
self.populate_env_vars(runtimeContext)

self._setup(runtimeContext)
# specific setup for Kubernetes
self.setup_kubernetes(runtimeContext)

self._setup(runtimeContext)

pod = self.create_kubernetes_runtime(runtimeContext) # analogous to create_runtime()
self.execute_kubernetes_pod(pod) # analogous to _execute()
completion_result = self.wait_for_kubernetes_pod()
Expand Down

0 comments on commit f225c44

Please sign in to comment.