You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Tanveer (Jira)" <ji...@apache.org> on 2020/04/24 16:08:00 UTC

[jira] [Comment Edited] (ARROW-8577) [GLib][Plasma] gplasma_client_options_new() default settings are enabling a check for CUDA device

    [ https://issues.apache.org/jira/browse/ARROW-8577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17091523#comment-17091523 ] 

Tanveer edited comment on ARROW-8577 at 4/24/20, 4:07 PM:
----------------------------------------------------------

Hi Kouhei,

This is the program. I am taking a RecordBatch (batch_genomics) as input in this function. The error arises at:

gPlasmaClient = gplasma_client_new("/tmp/store0",gplasmaClient_options, &error);

 
{code:java}
guint8 id_arr[20]; 
genRandom(id_arr,20);
char objID_file[] = "/home/tahmad/lib/core/objID.txt";

g_print("obj_id: %s\n", id_arr);

 gboolean success = TRUE;
 GError *error = NULL;

 GPlasmaClient *gPlasmaClient;
 GPlasmaObjectID *object_id;
 GPlasmaClientCreateOptions *create_options;
 GPlasmaClientOptions *gplasmaClient_options;
 GPlasmaCreatedObject *Object;
 GPlasmaReferredObject *refObject;
 GArrowBuffer *arrowBuffer;

 arrowBuffer = GSerializeRecordBatch(batch_genomics);
 gint32 size = garrow_buffer_get_size(arrowBuffer);

 gplasmaClient_options = gplasma_client_options_new();
 gPlasmaClient = gplasma_client_new("/tmp/store0",gplasmaClient_options, &error);
 object_id = gplasma_object_id_new(id_arr, 20, &error);
 create_options = gplasma_client_create_options_new();
 {
 guint8 metadata[] = "metadata";
 gplasma_client_create_options_set_metadata(create_options, (const guint8 *)metadata, sizeof(metadata));
 }
 Object = gplasma_client_create(gPlasmaClient, object_id, size, create_options, &error);

 g_object_unref(create_options);
 {
 GArrowBuffer *data;
 guint8 dataW[] = "data";
 g_object_get(Object, "data", &data, NULL);
 garrow_mutable_buffer_set_data(GARROW_MUTABLE_BUFFER(data),0, garrow_buffer_get_databytes(arrowBuffer),size,&error);
 g_object_unref(data);
 }

 gplasma_created_object_seal(Object, &error);
 g_object_unref(Object);
 gplasma_client_disconnect(gPlasmaClient, &error);
 g_object_unref(gPlasmaClient);{code}


was (Author: tahmad):
Hi Kouhei,

This the program. I am taking a RecordBatch (batch_genomics) as input in this function. The error arises at:

gPlasmaClient = gplasma_client_new("/tmp/store0",gplasmaClient_options, &error);

 
{code:java}
guint8 id_arr[20]; 
genRandom(id_arr,20);
char objID_file[] = "/home/tahmad/lib/core/objID.txt";

g_print("obj_id: %s\n", id_arr);

 gboolean success = TRUE;
 GError *error = NULL;

 GPlasmaClient *gPlasmaClient;
 GPlasmaObjectID *object_id;
 GPlasmaClientCreateOptions *create_options;
 GPlasmaClientOptions *gplasmaClient_options;
 GPlasmaCreatedObject *Object;
 GPlasmaReferredObject *refObject;
 GArrowBuffer *arrowBuffer;

 arrowBuffer = GSerializeRecordBatch(batch_genomics);
 gint32 size = garrow_buffer_get_size(arrowBuffer);

 gplasmaClient_options = gplasma_client_options_new();
 gPlasmaClient = gplasma_client_new("/tmp/store0",gplasmaClient_options, &error);
 object_id = gplasma_object_id_new(id_arr, 20, &error);
 create_options = gplasma_client_create_options_new();
 {
 guint8 metadata[] = "metadata";
 gplasma_client_create_options_set_metadata(create_options, (const guint8 *)metadata, sizeof(metadata));
 }
 Object = gplasma_client_create(gPlasmaClient, object_id, size, create_options, &error);

 g_object_unref(create_options);
 {
 GArrowBuffer *data;
 guint8 dataW[] = "data";
 g_object_get(Object, "data", &data, NULL);
 garrow_mutable_buffer_set_data(GARROW_MUTABLE_BUFFER(data),0, garrow_buffer_get_databytes(arrowBuffer),size,&error);
 g_object_unref(data);
 }

 gplasma_created_object_seal(Object, &error);
 g_object_unref(Object);
 gplasma_client_disconnect(gPlasmaClient, &error);
 g_object_unref(gPlasmaClient);{code}

> [GLib][Plasma] gplasma_client_options_new() default settings are enabling a check for CUDA device
> -------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-8577
>                 URL: https://issues.apache.org/jira/browse/ARROW-8577
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: GLib
>            Reporter: Tanveer
>            Assignee: Kouhei Sutou
>            Priority: Major
>
> Hi all,
>  Previously, I was using c_glib Plasma library (build 0.12) for creating plasma objects. It was working as expected. But now I want to use Arrow's newest build.  I incurred the following error:
>  
> /build/apache-arrow-0.17.0/cpp/src/arrow/result.cc:28: ValueOrDie called on an error: IOError: Cuda error 100 in function 'cuInit': [CUDA_ERROR_NO_DEVICE] no CUDA-capable device is detected
> I think plasma client options (gplasma_client_options_new()) which I am using with default settings are enabling a check for my CUDA device and I have no CUDA device attached to my system. How I can disable this check? Any help will be highly appreciated. Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)