Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
minmingzhu committed Jul 18, 2024
1 parent 70b42da commit 14ff68a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions mllib-dal/src/main/native/GPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ sycl::queue getAssignedGPU(const ComputeDevice device, ccl::communicator &comm,
int size, int rankId, jint *gpu_indices, int n_gpu);

sycl::queue getQueue(const ComputeDevice device);

sycl::queue getGPU(const ComputeDevice device,jint *gpu_indices);
6 changes: 3 additions & 3 deletions mllib-dal/src/main/native/OneCCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ JNIEXPORT jint JNICALL Java_com_intel_oap_mllib_OneCCL_00024_c_1init(
// rank_id = getComm().rank();
// comm_size = getComm().size();
//
// jclass cls = env->GetObjectClass(param);
// jfieldID fid_comm_size = env->GetFieldID(cls, "commSize", "J");
// jfieldID fid_rank_id = env->GetFieldID(cls, "rankId", "J");
jclass cls = env->GetObjectClass(param);
jfieldID fid_comm_size = env->GetFieldID(cls, "commSize", "J");
jfieldID fid_rank_id = env->GetFieldID(cls, "rankId", "J");

env->SetLongField(param, fid_comm_size, size);
env->SetLongField(param, fid_rank_id, rank);
Expand Down

0 comments on commit 14ff68a

Please sign in to comment.