eholk / harlan

A language for GPU computing.
Other
1.19k stars 82 forks source link

Start Help Needed #144

Closed Stig9999 closed 9 years ago

Stig9999 commented 9 years ago

Hello.

When I try to use the 'make check' to make sure that everything works, I get an error as can be seen on the picture below.

skaermbillede 2015-02-27 kl 13 51 49

What am I doing wrong and how can I fix it? (and yes, im a bit new to all of this since its probably a "noob" question).

eholk commented 9 years ago

I saw you closed the issue. Does that mean you figured it out? If so, what was the fix?

its2mc commented 9 years ago

It seems like he did not run the make check from the cloned git repo itself as opposed to any other file location.

Stig9999 commented 9 years ago

Yeah I didn't clone the files from github.

But now when Im trying to run the make check command, the result of the run shows the following: skaermbillede 2015-03-02 kl 13 12 12

And if I scroll up further in my terminal, to see where it failed it shows this: skaermbillede 2015-03-02 kl 13 14 05

Im not sure what that means, and how im suppose to fix that error.

Can anyone help me out here?

eholk commented 9 years ago

If you run DEVICE=gpu make check, do you get the same behavior?

This looks like an issue I've seen before that turned out to be a bug in Apple's OpenCL implementation.

On Mon, Mar 2, 2015 at 7:20 AM Stig9999 notifications@github.com wrote:

Reopened #144 https://github.com/eholk/harlan/issues/144.

— Reply to this email directly or view it on GitHub https://github.com/eholk/harlan/issues/144#event-244310012.

Stig9999 commented 9 years ago

If i run the 'DEVICE=gpu make check', I get the same error and it tells me the same as the two pictures from my last post.

But if it is a bug with Apple's OpenCL implementation, how do I fix that?

And if I try to manually compile a file, I get the following: skaermbillede 2015-03-04 kl 12 50 43

But if I go to the test.bin folder and try to execute a .out file I get the following: skaermbillede 2015-03-04 kl 12 52 48

How can I get allowed to execute a file, so that I for example can see the "Hello, World" in my terminal?

--UPDATE--

I read through some of the other issues and I found out that I might be trying to compile a file wrong. Now when I compile, I use this command instead: skaermbillede 2015-03-04 kl 14 20 35 So, if it the compiler dosen't complain or tell me anything else, can I then assume that I have compiled the file correct? and if so, how can I run the file that have been compiled

-- UPDATE 2 --

I figured out how to execute the files I manually compiled.

eholk commented 9 years ago

I'm glad you figured it out!

As far as the bugs in Apple's OpenCL, the only thing we can do is wait for Apple to fix it. I've filed the bug with them and they check in with me each time a new version of OS X to see if it's fixed. On the bright side, very few Harlan programs trigger this bug, so in the meantime you can keep using Harlan and you probably won't run into the bug in the wild.

eholk commented 9 years ago

I'm closing this now because it looks like we had resolved this issue.