US Secretary of State Rex Tillerson and Defense Secretary Jim Mattis separately called on Modi, setting to tone for the summit meeting between the prime minister and Trump.
The issues that figured prominently in these discussions included terrorism, Afghanistan and the situation in the Asia Pacific region.
"There was a strong focus on terrorism and cooperation in counter-terrorism," External Affairs Ministry spokesman Gopal Baglay told reporters while briefing on the meeting between Modi and Tillerson.
Modi conveyed to Tillerson that the "fulcrum of India's foreign policy" is to have good relations with all nations, "in particular with its neighbours."
More From This Section
Discussions between Modi and Mattis focussed on the Asia Pacific region, with a veiled reference to the South China Sea over which China is laying an absolute claim.
He said there was discussion also on counter-terrorism and on the situation in Afghanistan and the conversation with Mattis briefly touched upon how the two countries can work together on the issue.
Mattis also appreciated India's role in Afghanistan, Baglay said.
"In the context of the evaluation that is currently underway in the US on policy in context of the situation in Afghanistan, both sides decided that they would remain in touch, consult, cooperate and focus on the security situation in Afghanistan," the spokesman said.
Baglay added that both the meetings essentially conveyed the warmth of the relationship and the strong desire of both sides to consolidate multidimensional global strategic partnership between the two countries.
Modi also welcomed and endorsed the view and "conveyed India's desire also to walk side by side with US for consolidating this partnership, which is very valuable and has global implications."
"That came through very strongly in both these meetings," he said.
Tillerson conveyed to Modi that Trump was "eagerly looking forward" to receiving him at the White House and "having discussions with him," Baglay said.
Tillerson also mentioned the desire of both sides to strengthen the India-US partnership in strategic areas as well as on economic cooperation.
Baglay noted that the meetings are in the nature of courtesy meetings and very specific matters were not discussed in great detail.