Page MenuHomePhabricator

tianshilei1992 (Shilei Tian)
Ph.D. student at Stony Brook University

Projects

User does not belong to any projects.

User Details

User Since
Oct 12 2019, 11:44 AM (181 w, 2 h)

Recent Activity

Thu, Mar 30

tianshilei1992 accepted D147238: [libc] Support suspending threads during RPC spin loops.

It looks like the two platforms are using different sleep duration? Other than that, LGTM.

Thu, Mar 30, 8:00 AM · Restricted Project, Restricted Project

Tue, Mar 28

tianshilei1992 added a comment to D146642: [OpenMP] Implement task record and replay mechanism.

I think it's better to guard the entire related code with macro.

What do you mean by this Shilei? To disable this feature?

Like a opt-in feature.

Why do you think so? What's the harm of leaving it enable as this is just an API function? Are you saying this to save space in the structs?

Tue, Mar 28, 5:07 PM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D146642: [OpenMP] Implement task record and replay mechanism.

I think it's better to guard the entire related code with macro.

What do you mean by this Shilei? To disable this feature?

Tue, Mar 28, 5:00 PM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D146642: [OpenMP] Implement task record and replay mechanism.

I think it's better to guard the entire related code with macro.

Tue, Mar 28, 4:36 PM · Restricted Project, Restricted Project
tianshilei1992 added reviewers for D146642: [OpenMP] Implement task record and replay mechanism: AndreyChurbanov, tlwilmar, jlpeyton.
Tue, Mar 28, 4:31 PM · Restricted Project, Restricted Project

Fri, Mar 24

tianshilei1992 accepted D146812: [OpenMP][libomptarget][NFC] Make private mapping test more explicit on failure.

Sure

Fri, Mar 24, 8:37 AM · Restricted Project, Restricted Project

Thu, Mar 23

tianshilei1992 accepted D146725: [libc] Implement memory fences on NVPTX.

Does it have to be sys? Does gl (kernel level) work?

It should be sys as far as I understand because this is intended to be used on the Nvidia USM to implement RPC. Also I believe __atomic_thread_fence defaults to system scope on AMDPGU as well.

Thu, Mar 23, 8:17 AM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D146725: [libc] Implement memory fences on NVPTX.

Does it have to be sys? Does gl (kernel level) work?

Thu, Mar 23, 8:13 AM · Restricted Project, Restricted Project
tianshilei1992 accepted D146689: [OpenMP] Add notifyDataUnmapped back in disassociatePtr.

LG

Thu, Mar 23, 6:32 AM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D146706: [OpenMP] Add tests on task in_reduction and depend clause.

Do we support in reduction yet?

Thu, Mar 23, 6:30 AM · Restricted Project, Restricted Project

Mon, Mar 20

tianshilei1992 committed rWaea106408874: [CGO-2022] Add the slides (authored by tianshilei1992).
[CGO-2022] Add the slides
Mon, Mar 20, 10:30 AM · Restricted Project

Wed, Mar 15

tianshilei1992 accepted D142850: [OpenMP][libomptarget] Do not rely on AsyncInfoWrapperTy's destructor to synchronize queue.

Looks reasonable to me.

Wed, Mar 15, 7:59 AM · Restricted Project, Restricted Project

Mon, Mar 13

tianshilei1992 added inline comments to D145963: [Libomptarget] Use freestanding stdint.h header for DeviceRTL.
Mon, Mar 13, 10:27 AM · Restricted Project, Restricted Project

Thu, Mar 9

tianshilei1992 added inline comments to D144893: [OpenMP][WIP] `spir64` device runtime library template.
Thu, Mar 9, 5:45 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Mar 1 2023

tianshilei1992 added inline comments to D144893: [OpenMP][WIP] `spir64` device runtime library template.
Mar 1 2023, 4:54 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 accepted D145105: [Libomptarget] Fix block and thread limit environment variables not being respected.
Mar 1 2023, 12:11 PM · Restricted Project, Restricted Project

Feb 27 2023

tianshilei1992 accepted D144930: [OpenMP][FIX] Properly align for firstprivate variables.

LG

Feb 27 2023, 4:30 PM · Restricted Project
tianshilei1992 added a comment to D144893: [OpenMP][WIP] `spir64` device runtime library template.

Can you update the patch with context?

Feb 27 2023, 11:11 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 accepted D144873: [OpenMP] Ignore implicit casts on assertion for `use_device_ptr`.

LG

Feb 27 2023, 7:32 AM · Restricted Project, Restricted Project

Feb 25 2023

tianshilei1992 added a comment to D142569: [OpenMP] Introduce kernel environment.

Only llvm/test/Transforms/OpenMP/spmdization_constant_prop.ll is left.

Feb 25 2023, 10:14 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

update tests in LLVM

Feb 25 2023, 10:13 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Feb 24 2023

tianshilei1992 retitled D144749: [Attributor] Set up a dedicated simplification call back map for `GlobalVariable` from [AbstractAttributor] Set up a dedicated simplification call back map for `GlobalVariable` to [Attributor] Set up a dedicated simplification call back map for `GlobalVariable`.
Feb 24 2023, 6:38 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D144749: [Attributor] Set up a dedicated simplification call back map for `GlobalVariable`.

differentiate between no callback and unknown value

Feb 24 2023, 6:25 PM · Restricted Project, Restricted Project
tianshilei1992 requested review of D144749: [Attributor] Set up a dedicated simplification call back map for `GlobalVariable`.
Feb 24 2023, 10:25 AM · Restricted Project, Restricted Project
tianshilei1992 committed rW4588e9a1ad99: [CGO] Update schedule (authored by tianshilei1992).
[CGO] Update schedule
Feb 24 2023, 9:33 AM · Restricted Project

Feb 23 2023

tianshilei1992 committed rG22cd105a664b: [OpenMP] Fix the wrong use of `fopen` (authored by tianshilei1992).
[OpenMP] Fix the wrong use of `fopen`
Feb 23 2023, 4:13 PM · Restricted Project, Restricted Project
tianshilei1992 closed D144601: [OpenMP] Fix the wrong use of `fopen`.
Feb 23 2023, 4:13 PM · Restricted Project, Restricted Project

Feb 22 2023

tianshilei1992 updated the summary of D144601: [OpenMP] Fix the wrong use of `fopen`.
Feb 22 2023, 3:58 PM · Restricted Project, Restricted Project
tianshilei1992 added inline comments to D144601: [OpenMP] Fix the wrong use of `fopen`.
Feb 22 2023, 3:56 PM · Restricted Project, Restricted Project
tianshilei1992 requested review of D144601: [OpenMP] Fix the wrong use of `fopen`.
Feb 22 2023, 3:56 PM · Restricted Project, Restricted Project
tianshilei1992 added inline comments to D142175: [OpenMP] Create a temp file in /tmp if /dev/shm is not accessible.
Feb 22 2023, 3:22 PM · Restricted Project, Restricted Project
tianshilei1992 retitled D144590: [Clang][OpenMP] Fix shared memory allocation on AMDGPU from Fix shared memory allocation on AMDGPU to [Clang][OpenMP] Fix shared memory allocation on AMDGPU.
Feb 22 2023, 1:56 PM · Restricted Project, Restricted Project
tianshilei1992 accepted D144590: [Clang][OpenMP] Fix shared memory allocation on AMDGPU.

I think this looks reasonable to me. @jdoerfert WDYT? I'm not sure if you need to fix some clang tests. Let's see if Buildbot is happy.

Feb 22 2023, 1:56 PM · Restricted Project, Restricted Project
tianshilei1992 committed rWcd251f7751c8: [CGO] Update schedule (authored by tianshilei1992).
[CGO] Update schedule
Feb 22 2023, 11:02 AM · Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase and fix comments

Feb 22 2023, 9:29 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Feb 21 2023

tianshilei1992 added a comment to D142569: [OpenMP] Introduce kernel environment.

Pass two benchmarks: XSBench and RSBench.
The patch will break the old plugins as well. I'm wondering we might want to land it after D142820.

Feb 21 2023, 7:21 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 added inline comments to D142569: [OpenMP] Introduce kernel environment.
Feb 21 2023, 7:20 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase, update tests, fix comments

Feb 21 2023, 7:18 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 committed rG270f533e8b0c: [Clang][OpenMP] Update tests using update_cc_test_checks.py (authored by tianshilei1992).
[Clang][OpenMP] Update tests using update_cc_test_checks.py
Feb 21 2023, 6:10 PM · Restricted Project, Restricted Project
tianshilei1992 closed D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.
Feb 21 2023, 6:09 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.

update

Feb 21 2023, 6:08 PM · Restricted Project, Restricted Project
tianshilei1992 reopened D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.
Feb 21 2023, 6:08 PM · Restricted Project, Restricted Project
tianshilei1992 added a reverting change for rG61faf261506f: [Clang][OpenMP] Update tests using update_cc_test_checks.py: rG2ce96784ba2a: Revert "[Clang][OpenMP] Update tests using update_cc_test_checks.py".
Feb 21 2023, 5:28 PM · Restricted Project, Restricted Project
tianshilei1992 committed rG2ce96784ba2a: Revert "[Clang][OpenMP] Update tests using update_cc_test_checks.py" (authored by tianshilei1992).
Revert "[Clang][OpenMP] Update tests using update_cc_test_checks.py"
Feb 21 2023, 5:28 PM · Restricted Project, Restricted Project
tianshilei1992 added a reverting change for D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py: rG2ce96784ba2a: Revert "[Clang][OpenMP] Update tests using update_cc_test_checks.py".
Feb 21 2023, 5:28 PM · Restricted Project, Restricted Project
tianshilei1992 committed rG61faf261506f: [Clang][OpenMP] Update tests using update_cc_test_checks.py (authored by tianshilei1992).
[Clang][OpenMP] Update tests using update_cc_test_checks.py
Feb 21 2023, 5:09 PM · Restricted Project, Restricted Project
tianshilei1992 closed D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.
Feb 21 2023, 5:09 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.

remove hash

Feb 21 2023, 11:13 AM · Restricted Project, Restricted Project
tianshilei1992 committed rW20d2b3fb7d9f: [CGO] Update email addresses (authored by tianshilei1992).
[CGO] Update email addresses
Feb 21 2023, 10:51 AM · Restricted Project
tianshilei1992 committed rW7adcb8d9f7fd: [CGO] Added abstract of each presentation (authored by tianshilei1992).
[CGO] Added abstract of each presentation
Feb 21 2023, 9:28 AM · Restricted Project

Feb 20 2023

tianshilei1992 added a comment to D143306: [Driver] Default to -fno-openmp-implicit-rpath.

I prefer to follow established convention.

Feb 20 2023, 10:43 AM · Restricted Project, Restricted Project

Feb 18 2023

tianshilei1992 updated the diff for D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.

unify check prefix(es)

Feb 18 2023, 12:04 PM · Restricted Project, Restricted Project

Feb 17 2023

tianshilei1992 requested review of D144320: [Clang][OpenMP] Update tests using update_cc_test_checks.py.
Feb 17 2023, 8:57 PM · Restricted Project, Restricted Project
tianshilei1992 updated the summary of D142569: [OpenMP] Introduce kernel environment.
Feb 17 2023, 8:23 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

fix the WA, rebase, and update some tests

Feb 17 2023, 8:22 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 added a comment to D142820: [OpenMP] Delete old plugins.

Seems like the schedule is the end of Feb. I'll update the patch properly by then.

Feb 17 2023, 1:20 PM · Restricted Project, Restricted Project
tianshilei1992 added inline comments to D142569: [OpenMP] Introduce kernel environment.
Feb 17 2023, 1:19 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase and fix comments

Feb 17 2023, 1:18 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Feb 14 2023

tianshilei1992 added a comment to D143992: [openmp] Fix building for mingw targets after import library changes.

I don't know too much on Windows, but it looks reasonable to me. Better to wait for @jlpeyton and @natgla.

Feb 14 2023, 1:57 PM · Restricted Project, Restricted Project
tianshilei1992 accepted D143991: [openmp] Fix building with MSVC for ARM64.

LG

Feb 14 2023, 5:51 AM · Restricted Project, Restricted Project

Feb 12 2023

tianshilei1992 accepted D143196: [Libomptarget] Remove dependency on the DeviceRTL from the GPU plugins.

LGTM

Feb 12 2023, 7:08 AM · Restricted Project, Restricted Project

Feb 11 2023

tianshilei1992 added a comment to D143768: [Clang] Add options to disable direct linking of arch tools.

FWIW, there are methods in CMake to check if features (such as if a struct contains specific data member, or if a library contains APIs). I think that would be the right way to fix the issue.

Feb 11 2023, 8:24 AM · Restricted Project, Restricted Project

Feb 9 2023

tianshilei1992 accepted D143683: [openmp] Fix building z_Linux_asm.S for armv5t.

I don't know about the specific assembly but I assume it can fix the issue.

Feb 9 2023, 4:46 PM · Restricted Project, Restricted Project
tianshilei1992 added inline comments to D138704: RFC: [openmp] Provide an assembly implementation of __kmp_invoke_microtask on ARM.
Feb 9 2023, 10:54 AM · Restricted Project, Restricted Project

Feb 7 2023

tianshilei1992 added inline comments to D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.
Feb 7 2023, 6:51 PM · Restricted Project
tianshilei1992 added inline comments to D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.
Feb 7 2023, 4:27 PM · Restricted Project
tianshilei1992 updated the summary of D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.
Feb 7 2023, 4:26 PM · Restricted Project
tianshilei1992 added a comment to D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.

I’m confused that Shilei said in the issue in GitHub that this is supported already. But front end is just throwing an error message.

Our Sema can support it but CodeGen doesn't. Here we want to error it out instead of "silently" pass if assertion is disabled.

Feb 7 2023, 4:26 PM · Restricted Project
tianshilei1992 added inline comments to D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.
Feb 7 2023, 2:28 PM · Restricted Project
tianshilei1992 added a comment to D143527: [OpenMP][5.1] Fix parallel masked is ignored #59939.

Can you add a test please?

Feb 7 2023, 1:57 PM · Restricted Project

Feb 6 2023

tianshilei1992 added a comment to D143431: Switch the Windows OpenMP import library to import by name rather than ordinal..

Can you update the patch with context?

Feb 6 2023, 12:08 PM · Restricted Project, Restricted Project

Feb 3 2023

tianshilei1992 added a comment to D142593: [OpenMP] Support for wasm32 architecture.

Is it feasible to test it somehow? I doubt the regular way to invoke tests can work with WASM.

Yes, the compiled wasm can be run through node. In our product we use gtest and we only ship our wasm in the browser so we build the gtest projects using emrun so we test within a headless chrome browser.

I think node would make sense here. Which tests specifically would you like to get working? runtime/test? Can you point me to any docs or examples of running the tests. As i get time i can poke at working through that.

Feb 3 2023, 8:14 AM · Restricted Project, Restricted Project

Feb 2 2023

tianshilei1992 committed rG2d6adb366e8b: [OpenMP] Guard the code if ITT is not used (authored by tianshilei1992).
[OpenMP] Guard the code if ITT is not used
Feb 2 2023, 7:55 PM · Restricted Project, Restricted Project
tianshilei1992 closed D143004: [OpenMP] Guard the code if ITT is not used.
Feb 2 2023, 7:54 PM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D143196: [Libomptarget] Remove dependency on the DeviceRTL from the GPU plugins.

The build of plugins don't need device runtime right? We set dependences in CMake for build and test running only.

Feb 2 2023, 7:38 PM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D142593: [OpenMP] Support for wasm32 architecture.

Is it feasible to test it somehow? I doubt the regular way to invoke tests can work with WASM.

Feb 2 2023, 7:06 PM · Restricted Project, Restricted Project
tianshilei1992 added a comment to D143196: [Libomptarget] Remove dependency on the DeviceRTL from the GPU plugins.

I don't understand why a host library depends on a device library?

Feb 2 2023, 7:02 PM · Restricted Project, Restricted Project
tianshilei1992 accepted D143200: [OpenMP][libomp] Fix CMake version symbol testing.

LG, thanks!

Feb 2 2023, 7:00 PM · Restricted Project, Restricted Project

Feb 1 2023

tianshilei1992 retitled D142569: [OpenMP] Introduce kernel environment from [WIP][OpenMP] Introduce kernel argument to [OpenMP] Introduce kernel environment.
Feb 1 2023, 9:05 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase

Feb 1 2023, 8:59 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 accepted D142985: [LinkerWrapper] Fix memory issues due to unguarded accesses to global state.

LG

Feb 1 2023, 6:09 AM · Restricted Project, Restricted Project

Jan 31 2023

tianshilei1992 requested review of D143004: [OpenMP] Guard the code if ITT is not used.
Jan 31 2023, 11:30 AM · Restricted Project, Restricted Project

Jan 30 2023

Herald added a project to D103647: [OpenMP] Add GOMP 5.0 version symbols to API: Restricted Project.

We have seen a couple of reports bout the new APIs introduced in this patch, such as https://github.com/llvm/llvm-project/issues/60393 and https://github.com/llvm/llvm-project/issues/58472. Can you please fix it? We have the issue in both LLVM 15 and 16 now.

Jan 30 2023, 4:50 PM · Restricted Project, Restricted Project
tianshilei1992 committed rG516ae48170df: [OpenMP][NVPTX] Guard the target name macro definition (authored by tianshilei1992).
[OpenMP][NVPTX] Guard the target name macro definition
Jan 30 2023, 11:03 AM · Restricted Project, Restricted Project

Jan 29 2023

tianshilei1992 accepted D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.

LGTM

Jan 29 2023, 6:18 AM · Restricted Project, Restricted Project

Jan 28 2023

tianshilei1992 added inline comments to D142569: [OpenMP] Introduce kernel environment.
Jan 28 2023, 4:34 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase and fix bugs

Jan 28 2023, 4:33 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
tianshilei1992 added a comment to D142820: [OpenMP] Delete old plugins.

Where's dynamic_cuda and dynamic_hsa. Also why not replace plugins with nextgen instead of keeping the name.

Jan 28 2023, 4:08 PM · Restricted Project, Restricted Project
tianshilei1992 committed rGad95b0e97750: [OpenMP][NVPTX] Added `__tgt_rtl_launch_kernel` in old CUDA plugin (authored by tianshilei1992).
[OpenMP][NVPTX] Added `__tgt_rtl_launch_kernel` in old CUDA plugin
Jan 28 2023, 3:56 PM · Restricted Project, Restricted Project
tianshilei1992 closed D142819: [OpenMP][NVPTX] Added `__tgt_rtl_launch_kernel` in old CUDA plugin.
Jan 28 2023, 3:56 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142820: [OpenMP] Delete old plugins.

fix test line again

Jan 28 2023, 3:55 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142820: [OpenMP] Delete old plugins.

optimize run lines

Jan 28 2023, 3:53 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142820: [OpenMP] Delete old plugins.

fix typo

Jan 28 2023, 3:50 PM · Restricted Project, Restricted Project
tianshilei1992 added a reviewer for D142819: [OpenMP][NVPTX] Added `__tgt_rtl_launch_kernel` in old CUDA plugin: jhuber6.
Jan 28 2023, 3:47 PM · Restricted Project, Restricted Project
tianshilei1992 requested review of D142820: [OpenMP] Delete old plugins.
Jan 28 2023, 3:47 PM · Restricted Project, Restricted Project
tianshilei1992 requested review of D142819: [OpenMP][NVPTX] Added `__tgt_rtl_launch_kernel` in old CUDA plugin.
Jan 28 2023, 3:40 PM · Restricted Project, Restricted Project
tianshilei1992 added inline comments to D142514: [OpenMP][libomptarget] Notify the plugins regarding new mapping/unmappings.
Jan 28 2023, 3:21 PM · Restricted Project, Restricted Project
tianshilei1992 updated the diff for D142569: [OpenMP] Introduce kernel environment.

rebase and fix bugs

Jan 28 2023, 10:33 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 27 2023

tianshilei1992 added a comment to D142684: [OpenMP] Fix stack overflow for test bug54082.c.

Thanks for the fix! It does indeed seem to fix the issue.

Do you happen to know why this worked before, but now suddenly stopped working after D142297 - was the stack usage so close to the edges of what's allowed, that any minor tweak pushed it over the limit, or did the change in D142297 affect the amount of stack used in a bigger way? (I presume that the main int result[N][N] array here only gets allocated once on the stack, and the OpenMP threads just refer to that? I presume the change didn't cause the array to be allocated in more places than before?)

Jan 27 2023, 5:21 AM · Restricted Project, Restricted Project

Jan 26 2023

tianshilei1992 committed rG544f8c7f3959: [OpenMP] Fix stack overflow for test bug54082.c (authored by tianshilei1992).
[OpenMP] Fix stack overflow for test bug54082.c
Jan 26 2023, 8:45 PM · Restricted Project, Restricted Project