HPCE / hpce-2014-cw4

3 stars 5 forks source link

AWS instance not reading .cl files #16

Closed yuchen-w closed 9 years ago

yuchen-w commented 9 years ago

I am getting this error on the AWS instance.

Exception : LoadWorld : File does not start with HPCEHeatWorldV0.

I find it strange because it compiles and runs fine using Windows PowerShell (Compiled using VS) and Cygwin (re-compiled using cmake): image

However, taking the same code and running it on AWS: image

Edit: After doing some digging, it would appear that the directory "src/your_login" is being found, but the various .cl files are not. Still not sure about how to fix it though.

m8pple commented 9 years ago

Some things to check are:

If loading the .cl is not working, you might want to create a tiny test program which only loads the .cl file, then try opening that in GDB and stepping over the part where it opens the file.

chungcyk commented 9 years ago

I've got the same problem (coming from a windows environment)

For the second test though, did you mean to do cd $(HPCE_CL_SRC_DIR)? because the ls works find at the root and does return the path (I'm thinking * means wildcard)

yuchen-w commented 9 years ago

For the second test, I'm not getting anything when I do

(cd $(HPCE_CL_SRC_DIR); ls */*/*.cl)

with my environment variable set as: image

I do however get the following if I just run ls //*.cl image

With regards to point 3, I've tried both of the following:

std::string baseDir = "src/yw4311";     
std::string baseDir = "./src/yw4311";       

Both return the same error.

With point 4, it would appear that I have read permissions: image

yuchen-w commented 9 years ago

I think I might be wrong about the program not being able to find the *.cl files. I'm getting a segmentation fault when I run my step_world functions which require a .cl file

yuchen-w commented 9 years ago

I've fixed it now. I copied the original LoadSource function back in and that's fixed it all. Silly me.