{"action":"created","issue":{"url":"https://api.github.com/repos/geodynamics/specfem2d/issues/482","labels_url":"https://api.github.com/repos/geodynamics/specfem2d/issues/482/labels{/name}","comments_url":"https://api.github.com/repos/geodynamics/specfem2d/issues/482/comments","events_url":"https://api.github.com/repos/geodynamics/specfem2d/issues/482/events","html_url":"https://github.com/geodynamics/specfem2d/issues/482","id":117165201,"number":482,"title":"CUDA compilation issue","user":{"login":"EtienneBachmann","id":8615806,"avatar_url":"https://avatars.githubusercontent.com/u/8615806?v=3","gravatar_id":"","url":"https://api.github.com/users/EtienneBachmann","html_url":"https://github.com/EtienneBachmann","followers_url":"https://api.github.com/users/EtienneBachmann/followers","following_url":"https://api.github.com/users/EtienneBachmann/following{/other_user}","gists_url":"https://api.github.com/users/EtienneBachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/EtienneBachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EtienneBachmann/subscriptions","organizations_url":"https://api.github.com/users/EtienneBachmann/orgs","repos_url":"https://api.github.com/users/EtienneBachmann/repos","events_url":"https://api.github.com/users/EtienneBachmann/events{/privacy}","received_events_url":"https://api.github.com/users/EtienneBachmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T16:38:41Z","updated_at":"2015-11-25T18:20:29Z","closed_at":"2015-11-25T18:20:29Z","body":"Hello everybody,\r\n\r\nVery recently, @danielpeter made a nice contribution, involving simplification of the Makefile, and made it similar to the 3D version.\r\nNevertheless, I have a compilation issue with the CUDA code, at the linking phase, in both 2D and 3D code with this new implementation. I get many lines like that : \r\n./obj/compute_stacey_acoustic_cuda.cuda.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'\r\n\r\nI succeed to get rid of this by adding a -lstdc++ flag in the CUDA_LINK flags. I had this problem on a standalone machine, and on a cluster (the tiger Princeton cluster). It seems that on another cluster (titan Princeton cluster), users don t have this error. \r\n\r\nI guess it s a matter of version of compiler ? To avoid compilation error I suggest to add this flag (-lstdc++) in the Makefile of the 3 specfem versions.\r\n\r\nThanks\r\n\r\nEtienne \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/geodynamics/specfem2d/issues/comments/159692996","html_url":"https://github.com/geodynamics/specfem2d/issues/482#issuecomment-159692996","issue_url":"https://api.github.com/repos/geodynamics/specfem2d/issues/482","id":159692996,"user":{"login":"EtienneBachmann","id":8615806,"avatar_url":"https://avatars.githubusercontent.com/u/8615806?v=3","gravatar_id":"","url":"https://api.github.com/users/EtienneBachmann","html_url":"https://github.com/EtienneBachmann","followers_url":"https://api.github.com/users/EtienneBachmann/followers","following_url":"https://api.github.com/users/EtienneBachmann/following{/other_user}","gists_url":"https://api.github.com/users/EtienneBachmann/gists{/gist_id}","starred_url":"https://api.github.com/users/EtienneBachmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EtienneBachmann/subscriptions","organizations_url":"https://api.github.com/users/EtienneBachmann/orgs","repos_url":"https://api.github.com/users/EtienneBachmann/repos","events_url":"https://api.github.com/users/EtienneBachmann/events{/privacy}","received_events_url":"https://api.github.com/users/EtienneBachmann/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T18:20:29Z","updated_at":"2015-11-25T18:20:29Z","body":"Thanks!\r\n\r\nThis issue is now solved"}}