You need to use views global filter to achieve this functionality. What you set in profile2 field you will be get it globally in views too. In view you need to add only filter for that value.
Another way you can add relationship of user profile and add in contextual filer of logged in user value of interest in gender field.