Hi all, I've installed pbs-drmaa1 available in apt-get but it's not working as I expected. I'm having a problem while creating a session using pbs-drmaa library. The code is very simple: create and close a drmaa session. The init function returns 'Sucessful operation', but exit returns 'No active sessions'. Has anyone experienced this issue or notice something wrong in the code? Thanks in advance. The code: #include <stdio.h> #include "drmaa.h" int main (int argc, char **argv) { char drm_system[DRMAA_CONTACT_BUFFER]; char error[DRMAA_ERROR_STRING_BUFFER]; if (drmaa_init (NULL, error, DRMAA_ERROR_STRING_BUFFER)!= DRMAA_ERRNO_SUCCESS) { fprintf (stderr, "Could not initialize the DRMAA library: %s\n",error); return 1; } fprintf (stdout, "Successfully started the DRMAA library\n"); if (drmaa_get_DRM_system(drm_system, DRMAA_CONTACT_BUFFER, error, DRMAA_ERROR_STRING_BUFFER) !=DRMAA_ERRNO_SUCCESS) { fprintf (stderr, "Could get the DRM system: %s\n", error); return 1; } printf("Default DRM_system: %s\n", drm_system); if (drmaa_exit (error, DRMAA_ERROR_STRING_BUFFER)!= DRMAA_ERRNO_SUCCESS) { fprintf (stderr, "Could not shut down the DRMAA library: %s\n", error); return 1; } return 0; } The output is: Successfully started the DRMAA library Default DRM_system: Torque Could not shut down the DRMAA library: No active DRMAA session. As you can see, drmaa_init returns DRMAA_ERRNO_SUCCESS, but drmaa_exit returns DRMAA_ERRNO_NO_ACTIVE_SESSION.
participants (1)
-
Erica Riello