When I try to compile the DPC++ migrated code, I get the following error:
In file included from fd-source-code.dp.cpp:2:
In file included from /glob/development-tools/versions/oneapi/beta09/inteloneapi/dpcpp-ct/2021.1-beta09/include/dpct/dpct.hpp:27:
/glob/development-tools/versions/oneapi/beta09/inteloneapi/dpcpp-ct/2021.1-beta09/include/dpct/device.hpp:24:10: fatal error: 'algorithm.h' file not found
1 error generated.
Since I am working on Devcloud, I don't have permission to edit any of these files. Besides that, in this environment, device.hpp is already including algorithm.h, and dpct/dpct.hpp is including device.hpp.
Could it be something related to standard C++?
We have already encountered this issue and it's specific to Devcloud. We are looking into this issue and will give you an update on it soon.
Meanwhile, you can try any different environment for executing your migrated codes.
We apologize for the inconvenience.
It seems it would be necessery edit /dpct/dpct.hpp file and replace "algorithm.h" to "algorithm" instead to fit standard c++ patern.
Since we have very restricted permissions on the DevCloud environment, we temporarily solve this issue by copying every source code that includes algorithm.h in a local directory to be able to edit the specific line (#include <algorithm.h>).
It is working for now.
We are already working on this on the issue. We appreciate your workaround and glad to know that it's working for you. This issue will get resolved soon.
We will update you as soon as it will get resolved on Devclod.