“If I saw Donald Trump, I’d tell him he has lost my business,” he said.

For decades, Jalisco was mainly a center for tech manufacturing. But as its talent pool has expanded, fed by highly regarded engineering programs at local universities, it has increasingly become a place for high-tech innovation.

Andy Kieffer, an American entrepreneur who runs Agave Lab, a venture capital firm in Guadalajara, said that when he was seeking investors in Silicon Valley several years ago, he was waved off.

“I couldn’t get anyone to look at Mexico,” he recalled. “They said, ‘Look, I don’t know anything about Mexico. It’s off my radar.’”

But in the past several months, he said, interest among investors has shot up.

In Canada, officials expect their new visa to give their tech industry a big boost. Not only is there no limit on the number of visas, but government employees have been hired to act as visa concierges to make it easier for companies.

“It’s a huge advantage when you contrast it to what’s happening across the border,” said Stephen Lake, whose company, Thalmic Labs, produces devices that enable users to control computers through gestures.

Sharoon Thomas, an Indian entrepreneur, last year began shifting his start-up from Mountain View, Calif., to Toronto, and officially made the move in May. Seven of his engineers are still working in the United States and other countries, but he plans to use Canada’s new visa program to bring them north.

“Canada’s immigration policy makes you feel more welcome than the U.S.,” said Mr. Thomas, whose company, fulfil.io, designs software to manage inventories.