Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Frankie_F_1
Beginner
87 Views

Exit Code

Hello,

I am running VTune Amplifier XE 2013 Update 14. Are the meanings of exit-code values of amplxe-cl similar to that of Inspector?

Thanks,

Frankie

0 Kudos
12 Replies
Bernard
Black Belt
87 Views

What is the exit code(value)?

Frankie_F_1
Beginner
87 Views

Hello iliyapolak,

Exit code value is 4. And that means "Application returned a non-zero exit code.", according to Intel Inspector. So I wonder if I should see the exit code from VTune Amplifier the same way as Intel Inspector.

Frankie

Peter_W_Intel
Employee
87 Views

Use option "-return-app-exitcode" to know application' exit code. For example:
amplxe-cl -collect concurrency -return-app-exitcode -- C:\test\sample.exe
Bernard
Black Belt
87 Views

Follow Peter's advise.

Frankie_F_1
Beginner
87 Views

Hello,

Unfortunately that's not what I am asking about. I would like to know how to interpret the exit code of amplxe-cl itself.

Referring to Intel Inspector Help, there is a 'Command Line Output' : 'Exit Code' section. Is the VTune Amplifier following the same rule described there?

Thanks,

Frankie
 

Peter_W_Intel
Employee
87 Views

There is no exit code check for amplxe-cl itself...can you use "amplxe-cl -command status -r result-dir" for a running collection?

Frankie_F_1
Beginner
87 Views

Hi Peter,

I would like to check the status of the amplxe-cl, similar to this for Intel Inspector

The inspxe-cl command returns the following exit codes:

0 Success and no new problems detected
1 Usage error
2 Internal error
4 Application returned a non-zero exit code
8 At least one new problem detected
12 Application returned a non-zero exit code and at least one new problem detected

It would be useful for automation. From what I see, it is already returning some of the above, but I cannot be sure without the stated documentation.

Frankie

Peter_W_Intel
Employee
87 Views

There is no description in doc of VTune Amplifier, it is not guaranteed all return exit code can be used. Do you hope it could be a new feature request?

 I don't think that it can be used without doc declaration. I can help to escalate this to dev team.

Frankie_F_1
Beginner
87 Views

Hi Peter,

That would be great. Thanks!

Frankie

Peter_W_Intel
Employee
87 Views

I have reported this to dev team. I will post if any progress.

Vitaly_S_Intel
Employee
87 Views

The following error codes are valid for Amplifier (amplxe-cl) if option -return-app-exitcode is not specified:

0 Success
1 Usage error
2 Internal error
4 Application returned a non-zero exit code

5 Application returned a non-zero exit code and Usage error

6 Application returned a non-zero exit code and Internal error

Frankie_F_1
Beginner
87 Views

Thank you for the information.

Frankie