most ddr4 ram will work in both mb now. there only two or three ram chip vendors that memory makers use. if you want to check look on the ram qal list for your mb. if there same size and maker of the ram your good to go. a lot of times mb vendors cant test all ram out there. so if ram on list is one or two letters off your ok.