Podman compose not working with GPU support

Hi,

I have been trying to use podman compose to pass through GPU inside container with WSL2.

podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable - this command working fine for GPU pass through

However updating the same configuration in compose file which seems not working

devices:
  - nvidia.com/gpu=all
security_opt:
 - "label=disable"

Note: podman-compose command working fine with these configuration, wondering why its not working with podman compose (copied the docker-compose installer file to podman installer path)

Same problem here on ubuntu 22.04 with podman 5.3.2.
Did you found any solution?

I’m experiencing the same with Podman Compose under WSL2 Podman machine.

Found this fresh GitHub issue reporting the same:

Comment pointed to this merge that suggests it might be fixed but needs testing: