"The Legend Of Barney Thomson", in which Carlyle also stars, will be screened at the Festival Theatre on June 17, reported Guardian online.
The thriller, set in Glasgow, also features Emma Thompson, Ray Winstone, Tom Courtenay and Ashley Jensen, who are all expected to support their director on the red carpet at the festival's launch.
"After a career-long association with EIFF, it gives me enormous pleasure to have The Legend Of Barney Thomson chosen as opening-night film," Carlyle said.
"It really is such an honour for me to have my first feature as director premiered here in Edinburgh at the festival that has played such a huge part in my life.