Exception thrown at 0x00007FFECF286880 (afopencl.dll)

9 views
Skip to first unread message

Shivanshu Raj

unread,
Jul 7, 2022, 1:37:39 AMJul 7
to ArrayFire Users
example code when run,gives me this error.Intel Iris Xe and I have openCL driver installed.


        static const float h_kernel[] = { 1, 1, 1, 1, 0, 1, 1, 1, 1 };
        static const af::array kernel(3, 3, h_kernel, afHost);

        af::array state = (af::randu(128, 128, f32) > 0.5); // Init state
        af::Window myWindow(256, 256);
        while (!myWindow.close())
        {
            af::array nHood = convolve(state, kernel); // Obtain neighbors
            af::array C0 = (nHood == 2);  // Generate conditions for life
            af::array C1 = (nHood == 3);
            state = state * C0 + C1;  // Update state
            myWindow.image(state);    // Display
        }
    what is problem I cant see

Reply all
Reply to author
Forward
0 new messages