Write SQL query to solve given problem: Calculate the percentage of male users among all device users.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM(IIF(gender = 'M', 1, 0)) / COUNT(device_id) AS per FROM gender_age