2 Replies Latest reply on Mar 15, 2014 9:45 AM by lind

    Shared Virtual Memory Can not be larger than about 30M

    lind

      I've got an A10-7850K and a gigabyte mb, after I installed the HSA beta driver, the samples were okay. However, if I allocate more than about 30Mb memory in my own program the system will crash. It is just a simple test of SVM features:

       

      unsigned char* a = new unsigned char[size];

      unsigned char* b = new unsigned char[size];

      unsigned char* result = new unsigned char[size];

      ...

      clSetKernelArgSVMPointer(kernel, 0, a);

      clSetKernelArgSVMPointer(kernel, 1, b);

      ...

      clSetKernelArgSVMPointer(kernel, 3, result);

       

      __kernel void booleanAndHSA(global uchar* a, global uchar* b, int size, global uchar* result)

      {

          unsigned int id = get_global_id(0);

        if(id>=size)

        return;

        result[id]=a[id]&&b[id];

      }

       

      When size is 10*1000*1000, or at most 15*1000*1000, the system will crash, sometimes show a blue screen, sometimes just go black.

       

      I wonder whether it is a bug in the beta driver, or it is just because I have not get an A88X PRO proposed in the driver's readme file, or other problems .