EXHIBIT 23.1 CONSENT OF KPMG LLP The Board of Directors Sanmina-SCI Corporation: We consent to the incorporation by reference in this registration statement on Form S-8 of our report dated November 21, 2003, with respect to the consolidated balance sheets of Sanmina-SCI Corporation and subsidiaries as of September 27, 2003 and September 28, 2002, and the related consolidated statements of operations, comprehensive income (loss), stockholders' equity and cash flows for each of the years in the three-year period ended September 27, 2003, and the related financial statement schedule, which report appears in the September 27, 2003 Annual Report on Form 10-K of Sanmina-SCI Corporation. Our report dated November 21, 2003, contains an explanatory paragraph describing the Company's change in accounting for goodwill and other intangible assets. /s/ KPMG LLP Mountain View, California February 5, 2004