Skip to content

Fix compilation error while in a ROCm environment#1628

Merged
amcadmus merged 2 commits intodeepmodeling:develfrom
denghuilu:fix-rocm-bug
Apr 16, 2022
Merged

Fix compilation error while in a ROCm environment#1628
amcadmus merged 2 commits intodeepmodeling:develfrom
denghuilu:fix-rocm-bug

Conversation

@denghuilu
Copy link
Member

No description provided.

iteratorA[ii * last_layer_size + jj] = ;
}
}
__syncthreads();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that this line should also be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there are no shared memory access operations

Copy link
Member

@njzjz njzjz Apr 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering - I do see this line in CUDA implementation

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering - I do see this line in CUDA implementation

The __syncthreads function is used to synchronise threads within the entire CUDA block, but these threads do not conflict with each other under the current implementation(There is a conflict in the previous implementation, and it is a waste to keep this __syncthreads), so this function is no longer needed.

@denghuilu
Copy link
Member Author

denghuilu commented Apr 13, 2022

@wanghan-iapcm After carefully checking, I found a variable declaration error within the test_tabulate_se_r.cc file. After fixing that error, all UTs have passed in the api_cc and lib folder within the ROCm environment.

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2022

Codecov Report

Merging #1628 (97c99e6) into devel (bdd339e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            devel    #1628   +/-   ##
=======================================
  Coverage   76.16%   76.16%           
=======================================
  Files          94       94           
  Lines        7849     7849           
=======================================
  Hits         5978     5978           
  Misses       1871     1871           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bdd339e...97c99e6. Read the comment docs.

@wanghan-iapcm
Copy link
Collaborator

@wanghan-iapcm After carefully checking, I found a variable declaration error within the test_tabulate_se_r.cc file. After fixing that error, all UTs have passed in the api_cc and lib folder within the ROCm environment.

That's great! Thanks!

@njzjz njzjz mentioned this pull request Apr 16, 2022
@amcadmus amcadmus merged commit 4994b52 into deepmodeling:devel Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants