#CP2HDHKE1 hi team, i managed to setup a simple cluster on GKE . Now I want to check how workflows spin off GPUs and modified the hello_world example as follows :
Copy code
from flytekit import task, workflow, Resources
@task(requests=Resources(cpu="1", gpu="1", mem="1Gi"),
container_image="<http://ghcr.io/flyteorg/flytecookbook:kfpytorch-latest|ghcr.io/flyteorg/flytecookbook:kfpytorch-latest>",)
def say_hello() -> str:
return "Hello, World!"
@workflow
def hello_world_wf_gpu() -> str:
res = say_hello()
return res
if __name__ == "__main__":
print(f"Running my_wf() {hello_world_wf_gpu()}")
When I run this workflow, I get the follow error . Any idea how to fix this ?